Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
f0707751
Unverified
Commit
f0707751
authored
Feb 21, 2025
by
Aryan
Committed by
GitHub
Feb 21, 2025
Browse files
Some consistency-related fixes for HunyuanVideo (#10835)
* update * update
parent
d9ee3879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py
...ffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py
+3
-4
No files found.
src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py
View file @
f0707751
...
...
@@ -387,7 +387,7 @@ class HunyuanVideoPipeline(DiffusionPipeline, HunyuanVideoLoraLoaderMixin):
def
prepare_latents
(
self
,
batch_size
:
int
,
num_channels_latents
:
32
,
num_channels_latents
:
int
=
32
,
height
:
int
=
720
,
width
:
int
=
1280
,
num_frames
:
int
=
129
,
...
...
@@ -402,7 +402,7 @@ class HunyuanVideoPipeline(DiffusionPipeline, HunyuanVideoLoraLoaderMixin):
shape
=
(
batch_size
,
num_channels_latents
,
num_frames
,
(
num_frames
-
1
)
//
self
.
vae_scale_factor_temporal
+
1
,
int
(
height
)
//
self
.
vae_scale_factor_spatial
,
int
(
width
)
//
self
.
vae_scale_factor_spatial
,
)
...
...
@@ -624,13 +624,12 @@ class HunyuanVideoPipeline(DiffusionPipeline, HunyuanVideoLoraLoaderMixin):
# 5. Prepare latent variables
num_channels_latents
=
self
.
transformer
.
config
.
in_channels
num_latent_frames
=
(
num_frames
-
1
)
//
self
.
vae_scale_factor_temporal
+
1
latents
=
self
.
prepare_latents
(
batch_size
*
num_videos_per_prompt
,
num_channels_latents
,
height
,
width
,
num_
latent_
frames
,
num_frames
,
torch
.
float32
,
device
,
generator
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment