Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 934 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 934 Bytes

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