Code Monkey home page Code Monkey logo

rembg-online's Introduction

Rembg App

Web app to remove images background using rembg.

Docker Build pages-build-deployment Vercel deploy Docker Hub Supported Python versions Streamlit PEP8

Deployment

git clone https://github.com/Alyetama/Rembg-Online.git
cd Rembg-Online

Option 1: Run locally

pip install -r requirements.txt
streamlit run streamlit_app.py

Option 2: Free cloud hosting on Streamlit Cloud

streamlit_cloud

Option 3: Docker

docker run \
    -p 8501:8501 \
    -v "${PWD}/.streamlit:/home/app/.streamlit" \
    alyetama/rembg-app:latest

Docker Compose

docker-compose up -d
Updating
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

Configuration

  • 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.

Notes

  • The very first processed image after starting the app may take few minutes, because the backend model is being downloaded for the first time.

rembg-online's People

Contributors

alyetama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rembg-online's Issues

Docker image deploys tracker

The Streamlit config does not work for the Docker image, meaning that along with the other options gatherUsageStats = false is not applied. This results in the deployment of Streamlit's standard tracking script.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.