- (Optional) Create virtual env
python -m venv .venv
and activate it based on your OS.
for windows:
./.venv/Scripts/activate.ps1
for linux:
source ./.venv//bin/activate
- Install prerequisites
pip install -r ./requirements.txt
- Add images into the /input folder
- Run bg_remover.py
> python bg_remover.py
- Find images with backgrounds removed in the output folder
You can specify different input and output folders with the flags:
python bg_remover.py --input-path ../path/to/input --output-path ./path/to/output