Instructions to use FastVideo/HY-WorldPlay-Bidirectional-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/HY-WorldPlay-Bidirectional-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/HY-WorldPlay-Bidirectional-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
File size: 531 Bytes
fe019fd 13dcc12 fe019fd 13dcc12 fe019fd 13dcc12 fe019fd 13dcc12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ---
license: other
tags:
- image-to-video
---
# HY-World 1.5 Diffusers
A Diffusers-compatible version of HY-World 1.5 for use with FastVideo.
## Model Sources
| Component | Source |
|-----------|--------|
| Transformer | [tencent/HY-WorldPlay (bidirectional_model)](https://huggingface.co/tencent/HY-WorldPlay/tree/main/bidirectional_model) |
| VAE, Text Encoder, Scheduler, etc. | [hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_i2v](https://huggingface.co/hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_i2v) | |