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
8ceec90d
Unverified
Commit
8ceec90d
authored
Jan 28, 2025
by
victolee0
Committed by
GitHub
Jan 27, 2025
Browse files
fix check_inputs func in LuminaText2ImgPipeline (#10651)
parent
158c5c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/diffusers/pipelines/lumina/pipeline_lumina.py
src/diffusers/pipelines/lumina/pipeline_lumina.py
+4
-2
No files found.
src/diffusers/pipelines/lumina/pipeline_lumina.py
View file @
8ceec90d
...
...
@@ -396,8 +396,10 @@ class LuminaText2ImgPipeline(DiffusionPipeline):
prompt_attention_mask
=
None
,
negative_prompt_attention_mask
=
None
,
):
if
height
%
8
!=
0
or
width
%
8
!=
0
:
raise
ValueError
(
f
"`height` and `width` have to be divisible by 8 but are
{
height
}
and
{
width
}
."
)
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
{
self
.
vae_scale_factor
*
2
}
but are
{
height
}
and
{
width
}
."
)
if
prompt
is
not
None
and
prompt_embeds
is
not
None
:
raise
ValueError
(
...
...
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