Views
No views yet

From Slow Bidirectional to Fast Autoregressive Video Diffusion Models,
Tianwei Yin*, Qiang Zhang*, Richard Zhang, William T. Freeman, Frédo Durand, Eli Shechtman, Xun Huang (* equal contribution)
CVPR 2025 (arXiv 2412.07772)
1conda create -n causvid python=3.10 -y
2conda activate causvid
3pip install torch torchvision
4pip install -r requirements.txt
5python setup.py developpython minimal_inference/autoregressive_inference.py --config_path configs/wan_causal_dmd.yaml --checkpoint_folder XXX --output_folder XXX --prompt_file_path XXX python minimal_inference/longvideo_autoregressive_inference.py --config_path configs/wan_causal_dmd.yaml --checkpoint_folder XXX --output_folder XXX --prompt_file_path XXX --num_rollout XXX python minimal_inference/bidirectional_inference.py --config_path configs/wan_bidirectional_dmd_from_scratch.yaml --checkpoint_folder XXX --output_folder XXX --prompt_file_path XXX 1# download and extract video from the Mixkit dataset
2python distillation_data/download_mixkit.py --local_dir XXX
3
4# convert the video to 480x832x81
5python distillation_data/process_mixkit.py --input_dir XXX --output_dir XXX --width 832 --height 480 --fps 16
6
7# precompute the vae latent
8torchrun --nproc_per_node 8 distillation_data/compute_vae_latent.py --input_video_folder XXX --output_latent_folder XXX --info_path sample_dataset/video_mixkit_6484_caption.json
9
10# combined everything into a lmdb dataset
11python causvid/ode_data/create_lmdb_iterative.py --data_path XXX --lmdb_path XXX1torchrun --nnodes 8 --nproc_per_node=8 --rdzv_id=5235 \
2 --rdzv_backend=c10d \
3 --rdzv_endpoint $MASTER_ADDR causvid/train_distillation.py \
4 --config_path configs/wan_bidirectional_dmd_from_scratch.yaml 1torchrun --nproc_per_node 8 causvid/models/wan/generate_ode_pairs.py --output_folder XXX --caption_path sample_dataset/mixkit_prompts.txt
2
3python causvid/ode_data/create_lmdb_iterative.py --data_path XXX --lmdb_path XXX 1torchrun --nnodes 8 --nproc_per_node=8 --rdzv_id=5235 \
2 --rdzv_backend=c10d \
3 --rdzv_endpoint $MASTER_ADDR causvid/train_ode.py \
4 --config_path configs/wan_causal_ode.yaml --no_visualize1torchrun --nnodes 8 --nproc_per_node=8 --rdzv_id=5235 \
2 --rdzv_backend=c10d \
3 --rdzv_endpoint $MASTER_ADDR causvid/train_distillation.py \
4 --config_path configs/wan_causal_dmd.yaml --no_visualize1@inproceedings{yin2025causvid,
2 title={From Slow Bidirectional to Fast Autoregressive Video Diffusion Models},
3 author={Yin, Tianwei and Zhang, Qiang and Zhang, Richard and Freeman, William T and Durand, Fredo and Shechtman, Eli and Huang, Xun},
4 booktitle={CVPR},
5 year={2025}
6}
7
8@inproceedings{yin2024improved,
9 title={Improved Distribution Matching Distillation for Fast Image Synthesis},
10 author={Yin, Tianwei and Gharbi, Micha{\"e}l and Park, Taesung and Zhang, Richard and Shechtman, Eli and Durand, Fredo and Freeman, William T},
11 booktitle={NeurIPS},
12 year={2024}
13}
14
15@inproceedings{yin2024onestep,
16 title={One-step Diffusion with Distribution Matching Distillation},
17 author={Yin, Tianwei and Gharbi, Micha{\"e}l and Zhang, Richard and Shechtman, Eli and Durand, Fr{\'e}do and Freeman, William T and Park, Taesung},
18 booktitle={CVPR},
19 year={2024}
20}