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
f381402e
Commit
f381402e
authored
May 08, 2023
by
Patrick von Platen
Browse files
make fix-copies
parent
3d8b3d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py
...es/stable_diffusion/pipeline_stable_diffusion_diffedit.py
+1
-1
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py
View file @
f381402e
...
...
@@ -560,7 +560,7 @@ class StableDiffusionDiffEditPipeline(DiffusionPipeline, TextualInversionLoaderM
uncond_tokens
:
List
[
str
]
if
negative_prompt
is
None
:
uncond_tokens
=
[
""
]
*
batch_size
elif
type
(
prompt
)
is
not
type
(
negative_prompt
):
elif
prompt
is
not
None
and
type
(
prompt
)
is
not
type
(
negative_prompt
):
raise
TypeError
(
f
"`negative_prompt` should be the same type to `prompt`, but got
{
type
(
negative_prompt
)
}
!="
f
"
{
type
(
prompt
)
}
."
...
...
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