Instructions to use Wan-AI/Wan2.1-I2V-14B-480P-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wan-AI/Wan2.1-I2V-14B-480P-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("Wan-AI/Wan2.1-I2V-14B-480P-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
Commit History
-
Diffusers-format weights (#1)
Verified signature- Upload folder using huggingface_hub (29750dd6398252fbcc6b6c4999b13c539c3bc674) - Create README.md (0324b3134cc974d4402369ba432da077d6d16221) - Update README.md (e2aea09e2333d2c016cec61c67cc9e26c90e54d4) - Update README.md (1309fc689087da4314a9bdf0205bce37602a02d3) Co-authored-by: Aryan V S <a-r-r-o-w@users.noreply.huggingface.co>6383bdc