Skip to content

filnow/bg-changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This project is mostly for learning dash/flask and mediapipe/opencv/paddleseg.

Segmentation and matting is done with PaddleSegMatting more specifically I used a PP-MattingV2 that is SOTA for image matting. The model is also lite and runs in about 0.5 seconds per photo with preprocessing on CPU.

The results are as good as most online background removers or changers.

Preview

Alt text

Run

git clone https://github.com/filnow/bg-changer.git
cd bg-changer
pip install -r requirements.txt
python3 app.py

TODO

  • add video support
  • make frontend kinda good