cd back/
- Install dependencies with
pip install -r requirements.txt
- Download the bigger model u2net.pth (173.6 MB) - Default (Can be changed from app.py)
- Download the smaller model u2netp.pth (4.7 MB)
Run server with gunicorn: gunicorn --bind 0.0.0.0:8080 --workers 1 --threads 8 app:app
To get base64 output image url (you should not do this in terminal 🤐):
curl -X POST -F "file=@test_image.jpg" "http://0.0.0.0:8080/remove"