Skip to content

xDarylle/ipbr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intellegent Portrait Background Replacement

A solution for removing and replacing backgrounds for graduation photo, IDs, etc. This is based on MODNet: Trimap-Free Portrait Matting in Real Time

Prerequisite

Instructions

  1. Clone this repository
git clone https://github.com/xShiro2/ipbr.git
cd ipbr
  1. Setup and activate virtual environment
python -m venv venv
venv/Scripts/activate
  1. Download pre-trained model and extract contents to MODNet/pretrained

  2. Install the required python dependencies

pip install -r requirements.txt
  1. Install Pytorch seperately from here

  2. Run code

python -m scripts.main_gui

About

A solution for removing and replacing backgrounds for graduation photo, IDs, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages