https://github.com/osmr/propainter
Streaming ProPainter
https://github.com/osmr/propainter
Last synced: about 1 year ago
JSON representation
Streaming ProPainter
- Host: GitHub
- URL: https://github.com/osmr/propainter
- Owner: osmr
- License: mit
- Created: 2024-08-14T06:49:17.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-18T17:50:01.000Z (over 1 year ago)
- Last Synced: 2025-03-31T09:11:12.922Z (about 1 year ago)
- Language: Python
- Size: 88.9 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streaming Video Inpainting via ProPainter
A package for using [ProPainter](https://arxiv.org/pdf/2309.03897) in streaming mode (e.g. for a very long video).
### Prerequisites
python >= 3.10
### Deployment
```
pip install propainter
```
### Deployment for testing from repo
1. Install prerequisites:
```
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove
```
2. Install virtualenv (actual [instructions](https://virtualenv.pypa.io/en/latest/installation.html)):
```
sudo -H pip install --upgrade pip setuptools wheel
sudo -H pip install virtualenv
```
3. Clone repo, create and activate environment:
```
git clone --recurse-submodules git@github.com:osmr/propainter.git
cd propainter
virtualenv venv
source venv/bin/activate
```
4. Update preinstalled packages:
```
pip install --upgrade pip setuptools wheel
```
5. Install package:
```
pip install -e .
```
6. Optionally install pytest:
```
pip install pytest
```
### Usage
1. Investigate the `example.py` script.
2. Investigate pytest scripts in `tests` directory.
3. Launch the `example.py` script on your data:
```
python example.py --frames= --masks= --output= --resize_ratio=1.0 --save
```
### License
Please note that ProPainter is subject to a non-commercial [S-Lab license](https://github.com/sczhou/ProPainter/blob/main/LICENSE).
### Acknowledgement
This code is based on [ProPainter](https://github.com/sczhou/ProPainter). Thanks for this awesome work.