Instructions to use FastDM/Wan2.2-I2V-A14B-Merge-Lightning-V1.0-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastDM/Wan2.2-I2V-A14B-Merge-Lightning-V1.0-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("FastDM/Wan2.2-I2V-A14B-Merge-Lightning-V1.0-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
BXset commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -48,8 +48,8 @@ output = pipe(
|
|
| 48 |
height=height,
|
| 49 |
width=width,
|
| 50 |
num_frames=81,
|
| 51 |
-
guidance_scale=
|
| 52 |
-
num_inference_steps=
|
| 53 |
generator=generator,
|
| 54 |
).frames[0]
|
| 55 |
export_to_video(output, "i2v_output.mp4", fps=16)
|
|
|
|
| 48 |
height=height,
|
| 49 |
width=width,
|
| 50 |
num_frames=81,
|
| 51 |
+
guidance_scale=1.0,
|
| 52 |
+
num_inference_steps=4,
|
| 53 |
generator=generator,
|
| 54 |
).frames[0]
|
| 55 |
export_to_video(output, "i2v_output.mp4", fps=16)
|