Skip to content

Commit e3bc4aa

Browse files
a-r-r-o-wLangdxHowe2018
authored
SkyReels Hunyuan T2V & I2V (huggingface#10837)
* update * make fix-copies * update * tests * update * update * add co-author Co-Authored-By: Langdx <[email protected]> * add co-author Co-Authored-By: howe <[email protected]> * update --------- Co-authored-by: Langdx <[email protected]> Co-authored-by: howe <[email protected]>
1 parent f070775 commit e3bc4aa

File tree

9 files changed

+1309
-13
lines changed

9 files changed

+1309
-13
lines changed

docs/source/en/api/pipelines/hunyuan_video.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ Recommendations for inference:
3232
- For smaller resolution videos, try lower values of `shift` (between `2.0` to `5.0`) in the [Scheduler](https://huggingface.co/docs/diffusers/main/en/api/schedulers/flow_match_euler_discrete#diffusers.FlowMatchEulerDiscreteScheduler.shift). For larger resolution images, try higher values (between `7.0` and `12.0`). The default value is `7.0` for HunyuanVideo.
3333
- For more information about supported resolutions and other details, please refer to the original repository [here](https://github.com/Tencent/HunyuanVideo/).
3434

35+
## Available models
36+
37+
The following models are available for the [`HunyuanVideoPipeline`](text-to-video) pipeline:
38+
39+
| Model name | Description |
40+
|:---|:---|
41+
| [`hunyuanvideo-community/HunyuanVideo`](https://huggingface.co/hunyuanvideo-community/HunyuanVideo) | Official HunyuanVideo (guidance-distilled). Performs best at multiple resolutions and frames. Performs best with `guidance_scale=6.0`, `true_cfg_scale=1.0` and without a negative prompt. |
42+
| [`https://huggingface.co/Skywork/SkyReels-V1-Hunyuan-T2V`](https://huggingface.co/Skywork/SkyReels-V1-Hunyuan-T2V) | Skywork's custom finetune of HunyuanVideo (de-distilled). Performs best with `97x544x960` resolution, `guidance_scale=1.0`, `true_cfg_scale=6.0` and a negative prompt. |
43+
44+
The following models are available for the image-to-video pipeline:
45+
46+
| Model name | Description |
47+
|:---|:---|
48+
| [`https://huggingface.co/Skywork/SkyReels-V1-Hunyuan-I2V`](https://huggingface.co/Skywork/SkyReels-V1-Hunyuan-I2V) | Skywork's custom finetune of HunyuanVideo (de-distilled). Performs best with `97x544x960` resolution. Performs best at `97x544x960` resolution, `guidance_scale=1.0`, `true_cfg_scale=6.0` and a negative prompt. |
49+
3550
## Quantization
3651

3752
Quantization helps reduce the memory requirements of very large models by storing model weights in a lower precision data type. However, quantization may have varying impact on video quality depending on the video model.

src/diffusers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@
305305
"HunyuanDiTControlNetPipeline",
306306
"HunyuanDiTPAGPipeline",
307307
"HunyuanDiTPipeline",
308+
"HunyuanSkyreelsImageToVideoPipeline",
308309
"HunyuanVideoPipeline",
309310
"I2VGenXLPipeline",
310311
"IFImg2ImgPipeline",
@@ -804,6 +805,7 @@
804805
HunyuanDiTControlNetPipeline,
805806
HunyuanDiTPAGPipeline,
806807
HunyuanDiTPipeline,
808+
HunyuanSkyreelsImageToVideoPipeline,
807809
HunyuanVideoPipeline,
808810
I2VGenXLPipeline,
809811
IFImg2ImgPipeline,

src/diffusers/pipelines/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
"IFSuperResolutionPipeline",
218218
]
219219
_import_structure["hunyuandit"] = ["HunyuanDiTPipeline"]
220-
_import_structure["hunyuan_video"] = ["HunyuanVideoPipeline"]
220+
_import_structure["hunyuan_video"] = ["HunyuanVideoPipeline", "HunyuanSkyreelsImageToVideoPipeline"]
221221
_import_structure["kandinsky"] = [
222222
"KandinskyCombinedPipeline",
223223
"KandinskyImg2ImgCombinedPipeline",
@@ -558,7 +558,7 @@
558558
FluxPriorReduxPipeline,
559559
ReduxImageEncoder,
560560
)
561-
from .hunyuan_video import HunyuanVideoPipeline
561+
from .hunyuan_video import HunyuanSkyreelsImageToVideoPipeline, HunyuanVideoPipeline
562562
from .hunyuandit import HunyuanDiTPipeline
563563
from .i2vgen_xl import I2VGenXLPipeline
564564
from .kandinsky import (

src/diffusers/pipelines/hunyuan_video/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
_dummy_objects.update(get_objects_from_module(dummy_torch_and_transformers_objects))
2424
else:
25+
_import_structure["pipeline_hunyuan_skyreels_image2video"] = ["HunyuanSkyreelsImageToVideoPipeline"]
2526
_import_structure["pipeline_hunyuan_video"] = ["HunyuanVideoPipeline"]
2627

2728
if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
@@ -32,6 +33,7 @@
3233
except OptionalDependencyNotAvailable:
3334
from ...utils.dummy_torch_and_transformers_objects import *
3435
else:
36+
from .pipeline_hunyuan_skyreels_image2video import HunyuanSkyreelsImageToVideoPipeline
3537
from .pipeline_hunyuan_video import HunyuanVideoPipeline
3638

3739
else:

0 commit comments

Comments
 (0)