Views
No views yet
1conda create -n stream python=3.10.0
2conda activate stream
3# Require CUDA 12.4 or above, please check via `nvcc -V`
4pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu124
5pip install -r requirements.txt
6python setup.py develop1huggingface-cli download --resume-download Wan-AI/Wan2.1-T2V-1.3B --local-dir wan_models/Wan2.1-T2V-1.3B
2huggingface-cli download --resume-download jerryfeng/StreamDiffusionV2 --local-dir ./ckpts/wan_causal_dmd_v2v1python streamv2v/inference.py \
2--config_path configs/wan_causal_dmd_v2v.yaml \
3--checkpoint_folder ckpts/wan_causal_dmd_v2v \
4--output_folder outputs/ \
5--prompt_file_path prompt.txt \
6--video_path original.mp4 \
7--height 480 \
8--width 832 \
9--fps 16 \
10--step 2--step sets how many denoising steps are used during inference.1torchrun --nproc_per_node=2 --master_port=29501 streamv2v/inference_pipe.py \
2--config_path configs/wan_causal_dmd_v2v.yaml \
3--checkpoint_folder ckpts/wan_causal_dmd_v2v \
4--output_folder outputs/ \
5--prompt_file_path prompt.txt \
6--video_path original.mp4 \
7--height 480 \
8--width 832 \
9--fps 16 \
10--step 2
11# --schedule_block # optional: enable block scheduling--step sets how many denoising steps are used during inference. Enabling --schedule_block can provide optimal throughput.
Adjust --nproc_per_node to your GPU count. For different resolutions or FPS, change --height, --width, and --fps accordingly.demo/. For setup and startup, please refer to demo.http://0.0.0.0:7860 or http://localhost:78601@article{streamdiffusionv2,
2 title={StreamDiffusionV2: An Open-Sourced Interactive Diffusion Pipeline for Streaming Applications},
3 author={Tianrui Feng and Zhi Li and Haocheng Xi and Muyang Li and Shuo Yang and Xiuyu Li and Lvmin Zhang and Kelly Peng and Song Han and Maneesh Agrawala and Kurt Keutzer and Akio Kodaira and Chenfeng Xu},
4 journal={Project Page},
5 year={2025},
6 url={https://streamdiffusionv2.github.io/}
7}