{"id":21534070,"url":"https://github.com/voinic/u2net-keras","last_synced_at":"2025-04-10T01:34:56.112Z","repository":{"id":244949496,"uuid":"330713175","full_name":"Voinic/u2net-keras","owner":"Voinic","description":"Minimal scripts for testing U-2-Net models in Keras","archived":false,"fork":false,"pushed_at":"2021-01-20T14:02:25.000Z","size":5225,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:12:23.285Z","etag":null,"topics":["image-segmentation","keras","python-image-processing","tensorflow","u-2-net","u2net"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Voinic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-18T15:44:23.000Z","updated_at":"2024-02-27T11:16:12.000Z","dependencies_parsed_at":"2024-06-18T15:00:11.651Z","dependency_job_id":"49486b3e-ec9f-406b-ac75-59025f894a69","html_url":"https://github.com/Voinic/u2net-keras","commit_stats":null,"previous_names":["voinic/u2net-keras"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fu2net-keras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fu2net-keras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fu2net-keras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voinic%2Fu2net-keras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Voinic","download_url":"https://codeload.github.com/Voinic/u2net-keras/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140966,"owners_count":21054374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-segmentation","keras","python-image-processing","tensorflow","u-2-net","u2net"],"created_at":"2024-11-24T03:09:03.271Z","updated_at":"2025-04-10T01:34:56.085Z","avatar_url":"https://github.com/Voinic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# u2net-keras\nSimple scripts for testing U-2-Net models in Keras. \u003cbr/\u003e\nBased on https://github.com/NathanUA/U-2-Net and https://github.com/shreyas-bk/U-2-Net-Keras \u003cbr/\u003e\nKeras u2net, u2netp and u2net_portrait models were converted from the original pytorch models. \u003cbr/\u003e\n\n# Quick start\n1. Clone this repo to local\n```\ngit clone https://github.com/Voinic/u2net-keras.git\n```\n2. Get models from [**here**](https://drive.google.com/drive/folders/1oLFscPEoqxHIcRvNT80ps4XAH9ab5LH2)\n\n3. Test u2net/u2netp (background substraction) models\n```\npython u2net-keras.py images/input.jpg images/output.png\n```\n\n4. Test u2net_portrait model\n```\npython u2net_portrait-keras.py images/input_portrait.jpg images/output_portrait.png\n```\n\n# Results\nBackground substraction model \u003cbr/\u003e\n![input](images/input.jpg) \u003cbr/\u003e\n![output](images/output.png) \u003cbr/\u003e\nPortrait creation model \u003cbr/\u003e\n![input_portrait](images/input_portrait.jpg) \u003cbr/\u003e\n![output_portrait](images/output_portrait.png) \u003cbr/\u003e\n\n# Known issues\n- Dont work with tensorflow without CUDA support. \u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoinic%2Fu2net-keras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoinic%2Fu2net-keras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoinic%2Fu2net-keras/lists"}