{"id":22799122,"url":"https://github.com/thomd/image-background-removal-service","last_synced_at":"2026-05-14T23:42:05.468Z","repository":{"id":66830069,"uuid":"430449355","full_name":"thomd/image-background-removal-service","owner":"thomd","description":"Image Backgrond Removal","archived":false,"fork":false,"pushed_at":"2022-03-31T08:30:29.000Z","size":24542,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T19:14:57.360Z","etag":null,"topics":["computer-vision","machine-learning","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-21T18:35:22.000Z","updated_at":"2022-09-19T11:27:25.000Z","dependencies_parsed_at":"2023-02-23T01:01:11.659Z","dependency_job_id":null,"html_url":"https://github.com/thomd/image-background-removal-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomd/image-background-removal-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fimage-background-removal-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fimage-background-removal-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fimage-background-removal-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fimage-background-removal-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomd","download_url":"https://codeload.github.com/thomd/image-background-removal-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fimage-background-removal-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267289402,"owners_count":24064726,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["computer-vision","machine-learning","python"],"created_at":"2024-12-12T07:07:57.007Z","updated_at":"2026-05-14T23:42:00.439Z","avatar_url":"https://github.com/thomd.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Background Removal Service\n\nThis service is based on the pre-trained [MODNet](https://github.com/ZHKKKe/MODNet) model.\n\nThe folder `model/pretrained` contains the official pre-trained models of MODNet. You can download them from this [link](https://drive.google.com/drive/folders/1umYmlCulvIFNaqPjwod1SayFmSRHziyR?usp=sharing).\n\n## Setup\n\n    conda create --name ibrs python=3.9\n    conda activate ibrs\n    conda install --yes --file requirements.txt\n\n## Test\n\n    python -c \"import inference; inference.remove_background('images/lea.jpg')\"\n\n## Service Endpoints\n\nDepending on the `Accept` request header, the service returns an PNG image or an DataURI:\n\n    curl -F \"file=@image.jpg\" -H 'Accept: image/png' 'http://localhost:8000/file'\n    curl -F \"file=@image.jpg\" -H 'Accept: application/json' 'http://localhost:8000/file'\n\nThe service does **not** persist images, but does allow to request the ...\n\n\n## TODO\n\n- [ ] rate limiter\n- [ ] demo webpage\n- [ ] error handling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Fimage-background-removal-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomd%2Fimage-background-removal-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Fimage-background-removal-service/lists"}