Web app to remove images background using rembg.
git clone https://github.com/Alyetama/Rembg-Online.git
cd Rembg-Online
pip install -r requirements.txt
streamlit run streamlit_app.py
- Fork this repository.
- Go to this page, select your fork under
Repository
, then clickDeploy!
.
docker run \
-p 8501:8501 \
-v "${PWD}/.streamlit:/home/app/.streamlit" \
alyetama/rembg-app:latest
docker-compose up -d
docker pull alyetama/rembg-app:latest
If you're using the pre-built docker image in docker-compose, you can update the image by running:
docker-compose down
docker-compose pull
docker-compose up -d
- To configure the streamlit application, edit
.streamlit/config.toml
(configuration reference). - To configure the maximum number of uploaded files (default: 10), set the environment variable
MAX_FILES
:- Option 1: Export the variable.
export MAX_FILES=20
- Option 2: Edit the value of
MAX_FILES
in.env
.
mv .env.example .env nano .env # or any other text editor
- On Streamlit Cloud: Go to the app settings -> Secrets ->
MAX_FILES = 20
-> save.
- The very first processed image after starting the app may take few minutes, because the backend model is being downloaded for the first time.