Instructions to use hunyuanvideo-community/HunyuanVideo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hunyuanvideo-community/HunyuanVideo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hunyuanvideo-community/HunyuanVideo", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
add sample_size to transformer/config.json which is required by recent versions of diffusers
#8
by technillogue - opened
- transformer/config.json +1 -0
transformer/config.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
"num_refiner_layers": 2,
|
| 11 |
"num_single_layers": 40,
|
| 12 |
"out_channels": 16,
|
|
|
|
| 13 |
"patch_size": 2,
|
| 14 |
"patch_size_t": 1,
|
| 15 |
"pooled_projection_dim": 768,
|
|
|
|
| 10 |
"num_refiner_layers": 2,
|
| 11 |
"num_single_layers": 40,
|
| 12 |
"out_channels": 16,
|
| 13 |
+
"sample_size": 128,
|
| 14 |
"patch_size": 2,
|
| 15 |
"patch_size_t": 1,
|
| 16 |
"pooled_projection_dim": 768,
|