Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
[2025/3/09] 📢 📢
VideoPainter
are released, an efficient, any-length video inpainting & editing framework with plug-and-play context control.
[2025/3/09] 📢 📢
VPData
and
VPBench
are released, the largest video inpainting dataset with precise segmentation masks and dense video captions (>390K clips).
We propose a novel dual-stream paradigm VideoPainter that incorporates an efficient context encoder (comprising only 6% of the backbone parameters) to process masked videos and inject backbone-aware background contextual cues to any pre-trained video DiT, producing semantically consistent content in a plug-and-play manner. This architectural separation significantly reduces the model's learning complexity while enabling nuanced integration of crucial background context. We also introduce a novel target region ID resampling technique that enables any-length video inpainting, greatly enhancing our practical applicability. Additionally, we establish a scalable dataset pipeline leveraging current vision understanding models, contributing VPData and VPBench to facilitate segmentation-based inpainting training and assessment, the largest video inpainting dataset and benchmark to date with over 390K diverse clips. Using inpainting as a pipeline basis, we also explore downstream applications including video editing and video editing pair data generation, demonstrating competitive performance and significant practical potential.
Then, you can install diffusers (implemented in this repo) with:
cd ./diffusers
pip install -e .
After that, you can install required ffmpeg thourgh:
conda install -c conda-forge ffmpeg -y
Optional, you can install sam2 for gradio demo thourgh:
cd ./app
pip install -e .
Data Download ⬇️
VPBench and VPData
You can download the VPBench
here
, and the VPData
here
(as well as the Davis we re-processed), which are used for training and testing the BrushNet. By downloading the data, you are agreeing to the terms and conditions of the license. The data structure should be like:
You can download the VPBench, and put the benchmark to the
data
folder by:
git lfs install
git clone https://huggingface.co/datasets/TencentARC/VPBench
mv VPBench data
cd data
unzip pexels.zip
unzip videovo.zip
unzip davis.zip
unzip video_inpainting.zip
You can download the VPData (only mask and text annotations due to the space limit), and put the dataset to the
data
folder by:
git lfs install
git clone https://huggingface.co/datasets/TencentARC/VPData
mv VPBench data
cd data
unzip video_inpainting.zip
Noted:
Due to the space limit, you need to run the following script to download the raw videos of the complete VPData. The format should be consistent with VPData/VPBench above (After download the VPData/VPBench, the script will automatically place the raw videos of VPData into the corresponding dataset directories that have been created by VPBench).
cd data_utils
python VPData_download.py
Checkpoints
Checkpoints of VideoPainter can be downloaded from
here
. The ckpt folder contains
VideoPainter pretrained checkpoints for CogVideoX-5b-I2V
VideoPainter IP Adapter pretrained checkpoints for CogVideoX-5b-I2V
pretrinaed CogVideoX-5b-I2V checkpoint from
HuggingFace
.
You can download the checkpoints, and put the checkpoints to the
ckpt
folder by:
You can inference for the video inpainting or editing with the script:
cd infer
# video inpainting
bash inpaint.sh
# video inpainting with ID resampling
bash inpaint_id_resample.sh
# video editing
bash edit.sh
Our VideoPainter can also function as a video editing pair data generator, you can inference with the script:
bash edit_bench.sh
Since VideoPainter is trained on public Internet videos, it primarily performs well on general scenarios. For high-quality industrial applications (e.g., product exhibitions, virtual try-on), we recommend training the model on your domain-specific data. We welcome and appreciate any contributions of trained models from the community!
cd evaluate
# video inpainting
bash eval_inpainting.sh
# video inpainting with ID resampling
bash eval_inpainting_id_resample.sh
# video editing
bash eval_edit.sh
# video editing with ID resampling
bash eval_editing_id_resample.sh
🤝🏼 Cite Us
@misc{bian2025videopainteranylengthvideoinpainting,
title={VideoPainter: Any-length Video Inpainting and Editing with Plug-and-Play Context Control},
author={Yuxuan Bian and Zhaoyang Zhang and Xuan Ju and Mingdeng Cao and Liangbin Xie and Ying Shan and Qiang Xu},
year={2025},
eprint={2503.05639},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2503.05639},
}
More Information About VideoPainter huggingface.co Model
VideoPainter huggingface.co
VideoPainter huggingface.co is an AI model on huggingface.co that provides VideoPainter's model effect (), which can be used instantly with this TencentARC VideoPainter model. huggingface.co supports a free trial of the VideoPainter model, and also provides paid use of the VideoPainter. Support call VideoPainter model through api, including Node.js, Python, http.
VideoPainter huggingface.co is an online trial and call api platform, which integrates VideoPainter's modeling effects, including api services, and provides a free online trial of VideoPainter, you can try VideoPainter online for free by clicking the link below.
TencentARC VideoPainter online free url in huggingface.co:
VideoPainter is an open source model from GitHub that offers a free installation service, and any user can find VideoPainter on GitHub to install. At the same time, huggingface.co provides the effect of VideoPainter install, users can directly use VideoPainter installed effect in huggingface.co for debugging and trial. It also supports api for free installation.