Instructions to use DiffusersVersionsOfModels/HunyuanVideo-1.5-720p_i2v with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DiffusersVersionsOfModels/HunyuanVideo-1.5-720p_i2v with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("DiffusersVersionsOfModels/HunyuanVideo-1.5-720p_i2v", 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
File size: 968 Bytes
86a94a0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | {
"_class_name": "HunyuanVideo_1_5_DiffusionTransformer",
"_diffusers_version": "0.35.0",
"attn_mode": "flash",
"attn_param": null,
"concat_condition": true,
"glyph_byT5_v2": true,
"guidance_embed": false,
"heads_num": 16,
"hidden_size": 2048,
"ideal_resolution": "720p",
"ideal_task": "i2v",
"in_channels": 32,
"is_reshape_temporal_channels": false,
"mlp_act_type": "gelu_tanh",
"mlp_width_ratio": 4,
"mm_double_blocks_depth": 54,
"mm_single_blocks_depth": 0,
"out_channels": 32,
"patch_size": [
1,
1,
1
],
"qk_norm": true,
"qk_norm_type": "rms",
"qkv_bias": true,
"rope_dim_list": [
16,
56,
56
],
"rope_theta": 256,
"text_pool_type": null,
"text_projection": "single_refiner",
"text_states_dim": 3584,
"text_states_dim_2": null,
"use_attention_mask": true,
"use_cond_type_embedding": true,
"use_meanflow": false,
"vision_projection": "linear",
"vision_states_dim": 1152
}
|