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
-
update demo (#6)
Verified signature- fix load error & update readme (3cb3d96865bbe334ac52f981b3b437333b0eabed) - update readme (c7c741dcdbce91016f160a1907332bf757a3e89a) Co-authored-by: sypyp <ypyp@users.noreply.huggingface.co>ba97433
-
Update image_processor/preprocessor_config.json (#3)
Verified signature- Update image_processor/preprocessor_config.json (59dc91280d8f8bb7708a546651860a3f4111c51a) Co-authored-by: YiYi Xu <YiYiXu@users.noreply.huggingface.co>34fe37a
-
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