Skip to main content

Streaming Video Inpainting via ProPainter

A package for using ProPainter 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
  1. Install virtualenv (actual instructions):
sudo -H pip install --upgrade pip setuptools wheel
sudo -H pip install virtualenv
  1. Clone repo, create and activate environment:
git clone --recurse-submodules git@github.com:osmr/propainter.git
cd propainter
virtualenv venv
source venv/bin/activate
  1. Update preinstalled packages:
pip install --upgrade pip setuptools wheel
  1. Install package:
pip install -e .
  1. 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=<frame_dir> --masks=<mask_dir> --output=<output_dir> --resize_ratio=1.0 --save

License

Please note that ProPainter is subject to a non-commercial S-Lab license.

Acknowledgement

This code is based on ProPainter. Thanks for this awesome work.

Metadata

Release files for propainter 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for propainter 0.0.4
File Size Uploaded
propainter-0.0.4.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for propainter 0.0.4
File Interpreter ABI Platform
propainter-0.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 12.9 kB

Release files / propainter-0.0.4.tar.gz

Download URL propainter-0.0.4.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5647ef8a09a1acce1dbe1547a0ad4bb3d6337cde36641833eca875f302f32ac3
BLAKE2b-256 checksum
How to use checksums
2a10756587ada9d0e2ddd1431bfb93f7180c479883cbe65f3e83313b99f7c907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / propainter-0.0.4-py2.py3-none-any.whl

Download URL propainter-0.0.4-py2.py3-none-any.whl
Size 6.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bf7b64c08769cd32c8bee6be7dbaa45df9e47cb76478042766b7b9e1ad368ad7
BLAKE2b-256 checksum
How to use checksums
9a4c1c9d1aef34e96665e911f028433810f908730b3c001f7aa670bbf7a577fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page