Skip to content

vluz/RemoveBackground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remove Background

Streamlit app that uses rembg to remove the background from a picture.


NOTE: Images provided are generated by Stable Diffusion
Image generation metadata has been preserved to mark the files.
Files are CC0 and published for research and testing purposes.


Open a command prompt and cd to a new directory of your choosing:

(optional; recommended) Create a virtual environment with:

python -m venv "venv"
venv\Scripts\activate

To install do:

git clone https://github.com/vluz/RemoveBackground.git
cd RemoveBackground
pip install -r requirements.txt

On first run it may download several models.
The GUI may be blank or unresponsive for the duration of the setup.
It will take quite some time, both on reqs above and on first run.
Please allow it time to finish.
All runs after the first are then faster to load.

To run do:
streamlit run delbg.py

Gui will open on your default browser


TODO: add other methods, display all outputs and let user choose the best

NOTE: Not tested, do not use in production

About

Streamlit app that uses rembg to remove a picture background

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages