A package for using ProPainter in streaming mode (e.g. for a very long video).
python >= 3.10
pip install propainter
- Install prerequisites:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove
- Install virtualenv (actual instructions):
sudo -H pip install --upgrade pip setuptools wheel
sudo -H pip install virtualenv
- Clone repo, create and activate environment:
git clone --recurse-submodules git@github.com:osmr/propainter.git
cd propainter
virtualenv venv
source venv/bin/activate
- Update preinstalled packages:
pip install --upgrade pip setuptools wheel
- Install package:
pip install -e .
- Optionally install pytest:
pip install pytest
- Investigate the
example.py
script. - Investigate pytest scripts in
tests
directory. - Launch the
example.py
script on your data:
python example.py --frames=<frame_dir> --masks=<mask_dir> --output=<output_dir> --resize_ratio=1.0 --save
Please note that ProPainter is subject to a non-commercial S-Lab license.
This code is based on ProPainter. Thanks for this awesome work.