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", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -94,13 +94,13 @@ pip install -r requirements.txt
|
|
| 94 |
Download models using 🤗 huggingface-cli:
|
| 95 |
```
|
| 96 |
pip install "huggingface_hub[cli]"
|
| 97 |
-
huggingface-cli download Wan-AI/Wan2.1-I2V-14B-480P --local-dir ./Wan2.1-I2V-14B-480P
|
| 98 |
```
|
| 99 |
|
| 100 |
Download models using 🤖 modelscope-cli:
|
| 101 |
```
|
| 102 |
pip install modelscope
|
| 103 |
-
modelscope download Wan-AI/Wan2.1-I2V-14B-480P --local_dir ./Wan2.1-I2V-14B-480P
|
| 104 |
```
|
| 105 |
|
| 106 |
#### Run Image-to-Video Generation
|
|
|
|
| 94 |
Download models using 🤗 huggingface-cli:
|
| 95 |
```
|
| 96 |
pip install "huggingface_hub[cli]"
|
| 97 |
+
huggingface-cli download Wan-AI/Wan2.1-I2V-14B-480P-Diffusers --local-dir ./Wan2.1-I2V-14B-480P-Diffusers
|
| 98 |
```
|
| 99 |
|
| 100 |
Download models using 🤖 modelscope-cli:
|
| 101 |
```
|
| 102 |
pip install modelscope
|
| 103 |
+
modelscope download Wan-AI/Wan2.1-I2V-14B-480P-Diffusers --local_dir ./Wan2.1-I2V-14B-480P-Diffusers
|
| 104 |
```
|
| 105 |
|
| 106 |
#### Run Image-to-Video Generation
|