Instructions to use Wan-AI/Wan-Dancer-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wan-AI/Wan-Dancer-14B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan-Dancer-14B", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
Wan-Dancer-14B
π Wan-Dancer ο½ π₯οΈ GitHub | π€ Hugging Face | π€ ModelScope | π Paper
Wan-Dancer: A Hierarchical Framework for Minute-scale Coherent Music-to-Dance Generation
π₯ Latest News!!
- July 13, 2026: π We introduce Wan-Dancer, a method can generate long-duration, high-quality, rhythmic dance videos from music with global structure and temporal continuity. We released the model weights and inference code. And now you can try it on ModelScope Studio or HuggingFace Space!
π Todo List
- Wan-Dancer Music-to-Dance
- Inference code of Wan-Dancer
- Checkpoints of Wan-Dancer
- ComfyUI integration
Run Wan-Dancer
Installation
Clone the repo:
git clone https://github.com/Wan-Video/Wan-Dancer.git
cd Wan-Dancer
Install dependencies:
python -m venv venv_wan_dancer
source venv_wan_dancer/bin/activate
# Install package in editable mode
pip install -e .
# Install additional and specific versions dependencies
pip install moviepy loguru librosa
pip install https://mirrors.aliyun.com/pytorch-wheels/cu124/torch-2.6.0+cu124-cp310-cp310-linux_x86_64.whl
pip install torchvision==0.21.0
pip install diffusers==0.34.0
pip install yunchang==0.5.0
pip install flash_attn==2.6.3
pip install xfuser==0.4.0
pip install transformers==4.46.2
Model Download
| Models | Download Links | Description |
|---|---|---|
| Wan-Dancer-14B | π€ Huggingface π€ ModelScope | Music-to-Dance |
Download models using huggingface-cli:
pip install "huggingface_hub[cli]"
huggingface-cli download Wan-AI/Wan-Dancer-14B --local-dir ./Wan-Dancer-14B
Download models using modelscope-cli:
pip install modelscope
modelscope download Wan-AI/Wan-Dancer-14B --local_dir ./Wan-Dancer-14B
Run Wan-Dancer
Wan-Dancer can generate long-duration, high-quality, rhythmic dance videos from music with global structure and temporal continuity. Our method decouples the process into global keyframe planning and local temporal refinement, leveraging full-track musical context to ensure long-range coherence.
1. π¬ Generate Global Keyframe Video
Run the global stage script:
cd Wan-Dancer
./gen_video_global.sh
π§ Important Parameters
| Parameter | Description |
|---|---|
seed |
Random seed for reproducibility. |
image_path |
Path to reference image. Example: gen_video/ref_image/1001.jpg |
prompt_path |
Path to prompt file (defines dance style). Available styles:
|
music_path |
Path to input music file. Example: gen_video/music/ChineseClassicDance.WAV |
output_folder |
Output directory for generated video. |
timestamp |
Timestamp identifier for output files. |
num_inference_steps |
Number of diffusion inference steps (e.g., 48). |
π° Examples
2. π₯ Generate Final High-Resolution Video
Run the local refinement stage:
cd Wan-Dancer
./gen_video_local.sh
π§ Additional Required Parameters
| Parameter | Description |
|---|---|
global_video_path |
Path to the global video generated in Step 1. Required for local refinement. |
prompt_path |
Path to prompt file (defines dance style). Available styles:
|
β All other parameters (
seed,image_path, etc.) are identical to Step 1.
π° Examples
Note: The num_inference_steps should be set to a larger value (e.g., 48) for longer time videos.
Citation
If you use this code or framework in your research, please cite:
@article{wan-dancer-2026,
title={Wan-Dancer: A Hierarchical Framework for Minute-scale Coherent Music-to-Dance Generation},
author={Mingyang Huang, Peng Zhang, Li Hu, Guangyuan Wang, Bang Zhang},
website={https://humanaigc.github.io/wan-dancer/},
url={https://arxiv.org/abs/2607.09581},
year={2026}
}
License Agreement
This project is licensed under the Apache 2.0 License β see the LICENSE file for details.
Acknowledgements
This work builds upon and integrates components from the following open-source projects:
- Downloads last month
- -




