This repository is the official implementation of our work accepted by AAAI 2027.
| Video & Mask | Output | Video & Mask | Output |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Create Conda Environment and Install Dependencies
conda create -n undereraser python=3.12 -y
conda activate undereraser
pip3 install -r requirements.txtDownload 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
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.pyYou can also prepare and test your own data following the same format.
Our constructed Camera-Bench is available at this link.
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}
}
This code is based on VideoX-Fun and LightX2V. Thanks for their awesome works!















