Instructions to use FastVideo/Wan2.2-S2V-14B-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/Wan2.2-S2V-14B-Diffusers 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("FastVideo/Wan2.2-S2V-14B-Diffusers", 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
File size: 803 Bytes
010f325 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | {
"__name__": "Config: Transformer config for WanModel_S2V",
"_class_name": "WanModel_S2V",
"_diffusers_version": "0.34.0",
"adain_mode": "attn_norm",
"add_last_motion": true,
"audio_dim": 1024,
"audio_inject_layers": [
0,
4,
8,
12,
16,
20,
24,
27,
30,
33,
36,
39
],
"cond_dim": 16,
"dim": 5120,
"enable_adain": true,
"enable_framepack": true,
"enable_motioner": false,
"enable_tsm": false,
"eps": 1e-06,
"ffn_dim": 13824,
"framepack_drop_mode": "padd",
"freq_dim": 256,
"in_dim": 16,
"model_type": "s2v",
"motion_token_num": 1024,
"num_audio_token": 4,
"num_heads": 40,
"num_layers": 40,
"out_dim": 16,
"text_len": 512,
"trainable_token_pos_emb": false,
"zero_init": true,
"zero_timestep": true
} |