Commit b3889ea
Add modular pipeline for HunyuanVideo 1.5 (#13389)
* Add modular pipeline support for HunyuanVideo 1.5
* Fix I2V latent/cond spatial dimension mismatch
* Fix guidance_scale default to 7.5 matching ClassifierFreeGuidance
* Fix tokenizer type: use Qwen2TokenizerFast to match model
* Fix system message string formatting to match standard pipeline
* Rewrite HunyuanVideo 1.5 modular: use standard pipeline methods directly
* Remove I2V exports (T2V only for now)
* Fix encoder: use static methods directly instead of encode_prompt
* Inline all standard pipeline methods, remove runtime dependency
* Add HunyuanVideo 1.5 image-to-video modular blocks
* Fix missing FrozenDict import in before_denoise.py
* auto-generated docstrings via #auto_docstring
* Fix ruff lint and format issues
* use InputParam/OutputParam templates and fix ruff
* Address LTX review feedback here like add AutoBlocks, refactor I2V latents, lift encoders
* Add workflow map, workflow tests, auto docstrings, export only AutoBlocks
* Address Claude CI review
* Address claude CI review 2
---------
Co-authored-by: YiYi Xu <yixu310@gmail.com>1 parent e0c1ec4 commit b3889ea
13 files changed
Lines changed: 2036 additions & 0 deletions
File tree
- src/diffusers
- modular_pipelines
- hunyuan_video1_5
- utils
- tests/modular_pipelines/hunyuan_video1_5
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| |||
1244 | 1246 | | |
1245 | 1247 | | |
1246 | 1248 | | |
| 1249 | + | |
| 1250 | + | |
1247 | 1251 | | |
1248 | 1252 | | |
1249 | 1253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
| |||
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments