Skip to content

Latest commit

 

History

History

back

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Back-end part

Setup

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

Usage

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"