Instructions to use FastVideo/CausalWan2.2-I2V-A14B-Preview-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/CausalWan2.2-I2V-A14B-Preview-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("FastVideo/CausalWan2.2-I2V-A14B-Preview-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
Update README.md
Browse files
README.md
CHANGED
|
@@ -65,7 +65,7 @@ def main():
|
|
| 65 |
)
|
| 66 |
|
| 67 |
sampling_param = SamplingParam.from_pretrained("FastVideo/SFWan2.2-I2V-A14B-Preview-Diffusers")
|
| 68 |
-
sampling_param.num_frames =
|
| 69 |
sampling_param.width = 832
|
| 70 |
sampling_param.height = 480
|
| 71 |
sampling_param.seed = 1000
|
|
|
|
| 65 |
)
|
| 66 |
|
| 67 |
sampling_param = SamplingParam.from_pretrained("FastVideo/SFWan2.2-I2V-A14B-Preview-Diffusers")
|
| 68 |
+
sampling_param.num_frames = 81
|
| 69 |
sampling_param.width = 832
|
| 70 |
sampling_param.height = 480
|
| 71 |
sampling_param.seed = 1000
|