Instructions to use Wan-AI/Wan2.2-S2V-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wan-AI/Wan2.2-S2V-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/Wan2.2-S2V-14B", torch_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
ساخت ویدیویی که مورچه ها بازی بسکتبال میکنند
“Cinematic close-up shot, macro photography, a group of tiny ants playing basketball on a miniature wooden court made of twigs and a matchbox. One ant is dribbling a tiny ball made of a small red berry, while another ant jumps to dunk it into a hoop made of a bent paperclip. Bright natural sunlight, shallow depth of field, highly detailed, realistic textures, 4k, energetic atmosphere.”

“Cinematic close-up shot, macro photography, a group of tiny ants playing basketball on a miniature wooden court made of twigs and a matchbox. One ant is dribbling a tiny ball made of a small red berry, while another ant jumps to dunk it into a hoop made of a bent paperclip. Bright natural sunlight, shallow depth of field, highly detailed, realistic textures, 4k, energetic atmosphere.”
“Cinematic, wide shot, professional NBA indoor basketball arena with bright stadium lights and cheering crowd in the background. A group of tall, slender extraterrestrials with glowing bioluminescent skin and elongated limbs are playing a basketball game. One alien leaps exceptionally high, defying gravity, and performs a powerful, explosive slam dunk into the hoop. The floor reflects the stadium lights. Realistic textures, 8k resolution, motion blur, highly detailed, dramatic shadows, hyper-realistic, dynamic camera movement following the dunk.”