Views
No views yet


1git clone https://github.com/knightyxp/VideoCoF
2cd VideoCoF
3
4# 1. Create and activate a conda environment
5conda create -n videocof python=3.10
6conda activate videocof
7
8# 2. Install PyTorch (Choose version compatible with your CUDA)
9# For standard GPUs (CUDA 12.1):
10pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
11
12# For Hopper GPUs (e.g., H100/H800) requiring fast inference:
13# pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128
14
15# 3. Install other dependencies
16pip install -r requirements.txt1git lfs install
2git clone https://huggingface.co/Wan-AI/Wan2.1-T2V-14B
3
4# Or using huggingface-cli:
5# hf download Wan-AI/Wan2.1-T2V-14B --local-dir Wan2.1-T2V-14B1git lfs install
2git clone https://huggingface.co/XiangpengYang/VideoCoF videocof_weight
3
4# Or using huggingface-cli:
5# hf download XiangpengYang/VideoCoF --local-dir videocof_weight1export CUDA_VISIBLE_DEVICES=0
2torchrun --nproc_per_node=1 inference.py \
3 --video_path assets/two_man.mp4 \
4 --prompt "Remove the young man with short black hair wearing black shirt on the left." \
5 --output_dir results/obj_rem \
6 --model_name /scratch3/yan204/models/Wan2.1-T2V-14B \
7 --seed 0 \
8 --num_frames 33 \
9 --source_frames 33 \
10 --reasoning_frames 4 \
11 --repeat_rope \
12 --videocof_path videocof_weight/videocof.safetensorssh scripts/parallel_infer.sh1@article{yang2025videocof,
2 title={Unified Video Editing with Temporal Reasoner},
3 author={Yang, Xiangpeng and Xie, Ji and Yang, Yiyuan and Huang, Yan and Xu, Min and Wu, Qiang},
4 journal={arXiv preprint arXiv:2512.07469},
5 year={2025}
6}