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
a6b843a7
Unverified
Commit
a6b843a7
authored
Feb 15, 2025
by
SahilCarterr
Committed by
GitHub
Feb 14, 2025
Browse files
[FIX] check_inputs function in lumina2 (#10784)
parent
27b90235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/diffusers/pipelines/lumina2/pipeline_lumina2.py
src/diffusers/pipelines/lumina2/pipeline_lumina2.py
+3
-1
No files found.
src/diffusers/pipelines/lumina2/pipeline_lumina2.py
View file @
a6b843a7
...
...
@@ -379,7 +379,9 @@ class Lumina2Text2ImgPipeline(DiffusionPipeline):
max_sequence_length
=
None
,
):
if
height
%
(
self
.
vae_scale_factor
*
2
)
!=
0
or
width
%
(
self
.
vae_scale_factor
*
2
)
!=
0
:
raise
ValueError
(
f
"`height` and `width` have to be divisible by 8 but are
{
height
}
and
{
width
}
."
)
raise
ValueError
(
f
"`height` and `width` have to be divisible by
{
self
.
vae_scale_factor
*
2
}
but are
{
height
}
and
{
width
}
."
)
if
callback_on_step_end_tensor_inputs
is
not
None
and
not
all
(
k
in
self
.
_callback_tensor_inputs
for
k
in
callback_on_step_end_tensor_inputs
...
...
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