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
5199ee4f
Unverified
Commit
5199ee4f
authored
Mar 26, 2024
by
Long(Tony) Lian
Committed by
GitHub
Mar 26, 2024
Browse files
Fix missing raise statements in check_inputs (#7473)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
544710ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
examples/community/llm_grounded_diffusion.py
examples/community/llm_grounded_diffusion.py
+1
-1
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py
...able_diffusion_gligen/pipeline_stable_diffusion_gligen.py
+1
-1
No files found.
examples/community/llm_grounded_diffusion.py
View file @
5199ee4f
...
...
@@ -530,7 +530,7 @@ class LLMGroundedDiffusionPipeline(
)
if
len
(
phrases
)
!=
len
(
boxes
):
ValueError
(
raise
ValueError
(
"length of `phrases` and `boxes` has to be same, but"
f
" got: `phrases`
{
len
(
phrases
)
}
!= `boxes`
{
len
(
boxes
)
}
"
)
...
...
src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py
View file @
5199ee4f
...
...
@@ -469,7 +469,7 @@ class StableDiffusionGLIGENPipeline(DiffusionPipeline, StableDiffusionMixin):
)
if
len
(
gligen_phrases
)
!=
len
(
gligen_boxes
):
ValueError
(
raise
ValueError
(
"length of `gligen_phrases` and `gligen_boxes` has to be same, but"
f
" got: `gligen_phrases`
{
len
(
gligen_phrases
)
}
!= `gligen_boxes`
{
len
(
gligen_boxes
)
}
"
)
...
...
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