Skip to content

About

From Understanding to Erasing: Towards Complete and Stable Video Object Removal

Resources

Stars

30 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

From Understanding to Erasing: Towards Complete and Stable Video Object Removal

This repository is the official implementation of our work accepted by AAAI 2027.

1Peking University  2WeChat Vision, Tencent Inc. 

Paper PDF


Results

Open demo video

Video & Mask Output Video & Mask Output
WILD_ENV001_00039 input with mask WILD_ENV001_00039 output WILD_ENV001_00060 input with mask WILD_ENV001_00060 output
WILD_ENV002_00008 input with mask WILD_ENV002_00008 output WILD_ENV002_00046 input with mask WILD_ENV002_00046 output
WILD_ENV002_00063 input with mask WILD_ENV002_00063 output REAL_ENV900_00002_002_05 input with mask REAL_ENV900_00002_002_05 output
REAL_ENV900_00053_001_01 input with mask REAL_ENV900_00053_001_01 output REAL_ENV900_00021_004_03 input with mask REAL_ENV900_00021_004_03 output

Dependencies

Create Conda Environment and Install Dependencies

conda create -n undereraser python=3.12 -y
conda activate undereraser

pip3 install -r requirements.txt

Get Started

Models

Download the UnderEraser checkpoint (checkpoint.safetensors) and the LightX2V LoRA (lightx2v.safetensors). Save both files in weight/. Google Drive weights

Download the complete Wan2.1-Fun-V1.1-14B-InP base model into models/Wan2.1-Fun-V1.1-14B-InP/. Hugging Face model files

After downloading the models and weights, arrange the files as shown below.

weight/
├── checkpoint.safetensors
├── lightx2v.safetensors
└── put weight here.txt

models/
├── put models here.txt
└── Wan2.1-Fun-V1.1-14B-InP/
    ├── google/
    │   └── umt5-xxl/
    │       ├── spiece.model
    │       └── ...
    ├── xlm-roberta-large/
    │   ├── sentencepiece.bpe.model
    │   └── ...
    ├── config.json
    ├── configuration.json
    ├── diffusion_pytorch_model.safetensors
    ├── models_clip_open-clip-xlm-roberta-large-vit-huge-14.pth
    ├── models_t5_umt5-xxl-enc-bf16.pth
    └── Wan2.1_VAE.pth

Inference

The data folder contains one example. The input video and its mask share the same .mp4 filename. Example video · Example mask

Run the example from the project directory.

UNDERERASER_OUTPUT_DIR=./results_examples python predict.py

You can also prepare and test your own data following the same format.

Dataset

Our constructed Camera-Bench is available at this link.

Citation

If you find our repo useful for your research, please consider citing our paper:

 @inproceedings{liu2027understanding,
 title={From understanding to erasing: Towards complete and stable video object removal},
 author={Liu, Dingming and Wang, Wenjing and Li, Chen and Lyu, Jing and Dong, Haotian},
 booktitle={Proceedings of the AAAI conference on artificial intelligence},
 year={2027}
 }

Acknowledgement

This code is based on VideoX-Fun and LightX2V. Thanks for their awesome works!

About

From Understanding to Erasing: Towards Complete and Stable Video Object Removal

Resources

Stars

30 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages