{"id":19271564,"url":"https://github.com/balewgize/background-remover-django","last_synced_at":"2025-04-21T21:33:31.618Z","repository":{"id":212388413,"uuid":"613895472","full_name":"balewgize/background-remover-django","owner":"balewgize","description":"Remove background from images using pre-trained ML models. (Django)","archived":false,"fork":false,"pushed_at":"2023-03-25T06:43:05.000Z","size":1669,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-14T01:53:48.005Z","etag":null,"topics":["ai","background-image","background-removal","django"],"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/balewgize.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}},"created_at":"2023-03-14T13:40:46.000Z","updated_at":"2023-12-14T01:53:49.926Z","dependencies_parsed_at":"2023-12-14T01:53:49.428Z","dependency_job_id":"8d7481f7-fab2-4772-809f-85d7cfceff62","html_url":"https://github.com/balewgize/background-remover-django","commit_stats":null,"previous_names":["balewgize/background-remover-django"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balewgize%2Fbackground-remover-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balewgize%2Fbackground-remover-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balewgize%2Fbackground-remover-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balewgize%2Fbackground-remover-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balewgize","download_url":"https://codeload.github.com/balewgize/background-remover-django/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223880740,"owners_count":17219188,"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":["ai","background-image","background-removal","django"],"created_at":"2024-11-09T20:32:25.678Z","updated_at":"2024-11-09T20:32:26.329Z","avatar_url":"https://github.com/balewgize.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003eBackground remover\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Remove background from images using pre-trained AI model.\n    \u003cbr /\u003e\n    \u003ca href=\"#\" target=\"_blank\"\u003e\u003cstrong\u003eView Demo »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n[![Screenshot](static/images/screenshot.png?raw=true \"Tomar\")](#)\n\nA web app built with Python/Django that enables users to remove background from images using pre-trained AI model. It allows users to download the final result image with a transparent background. \n\nIt does well for most images that doesn't have messy background but I'm sure you won't expect photoshop like results :) \n\n### Deployment\n**Note:** The project is production ready and can be easily deployed. But it requires good amount of resource to run ML models used by **rembg** in the cloud. At the moment, I'm unable to deploy the django version for free.\n\nSo I used ```Streamlit``` to deploy the main script with enchanced functionality. \u003ca href=\"https://bgremover.streamlit.app/\" target=\"_blank\"\u003e\u003cstrong\u003eCheck here\u003c/strong\u003e\u003c/a\u003e\n\n\n### Features\n- Downloadable final result\n- Transparent background\n- Production ready\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Built With\n- Python/Django\n- Bootstrap\n- rembg\n- Dropbox\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nTo get a local copy up and running follow these simple steps.\n\n### Prerequisites\n\n* Django\n\n### Installation\n\n1. Clone the repo and navigate to ```background-remover-django``` directory \n   ```\n   git clone https://github.com/balewgize/background-remover-django.git\n   ```\n   ```\n   cd background-remover-django\n   ```\n2. Install required packages (virtual environments recommended)\n   ```\n   python3 -m venv venv \u0026\u0026 source venv/bin/activate\n   ```\n   ```\n   pip install -r requirements/local.txt\n   ```\n3. Provide credentials in ```.env```  (example in .env.dev file)\n   ```\n    DJANGO_SECRET_KEY=\n   ```\n   Use this command to generate strong ```SECRET_KEY```\n   ```\n   python3 -c \"from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())\"\n   ```\n4. Apply migrations and start the server\n   ```\n   python manage.py migrate\n   ```\n   ```\n    python manage.py runserver\n    ``` \n5. Goto http://127.0.0.1:8000 on your browser\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\nThanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalewgize%2Fbackground-remover-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalewgize%2Fbackground-remover-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalewgize%2Fbackground-remover-django/lists"}