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
aad69ac2
Unverified
Commit
aad69ac2
authored
Jan 30, 2025
by
SahilCarterr
Committed by
GitHub
Jan 29, 2025
Browse files
[FIX] check_inputs function in Auraflow Pipeline (#10678)
fix_shape_error
parent
ea76880b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py
src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py
+4
-2
No files found.
src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py
View file @
aad69ac2
...
@@ -160,8 +160,10 @@ class AuraFlowPipeline(DiffusionPipeline):
...
@@ -160,8 +160,10 @@ class AuraFlowPipeline(DiffusionPipeline):
prompt_attention_mask
=
None
,
prompt_attention_mask
=
None
,
negative_prompt_attention_mask
=
None
,
negative_prompt_attention_mask
=
None
,
):
):
if
height
%
8
!=
0
or
width
%
8
!=
0
:
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
prompt
is
not
None
and
prompt_embeds
is
not
None
:
if
prompt
is
not
None
and
prompt_embeds
is
not
None
:
raise
ValueError
(
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