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
9c68c945
Unverified
Commit
9c68c945
authored
Dec 18, 2024
by
cjkangme
Committed by
GitHub
Dec 17, 2024
Browse files
[Community Pipeline] Fix typo that cause error on regional prompting pipeline (#10251)
fix: fix typo that cause error
parent
2739241a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/community/regional_prompting_stable_diffusion.py
examples/community/regional_prompting_stable_diffusion.py
+1
-1
No files found.
examples/community/regional_prompting_stable_diffusion.py
View file @
9c68c945
...
...
@@ -129,7 +129,7 @@ class RegionalPromptingStableDiffusionPipeline(StableDiffusionPipeline):
self
.
power
=
int
(
rp_args
[
"power"
])
if
"power"
in
rp_args
else
1
prompts
=
prompt
if
isinstance
(
prompt
,
list
)
else
[
prompt
]
n_prompts
=
negative_prompt
if
isinstance
(
prompt
,
list
)
else
[
negative_prompt
]
n_prompts
=
negative_prompt
if
isinstance
(
negative_
prompt
,
list
)
else
[
negative_prompt
]
self
.
batch
=
batch
=
num_images_per_prompt
*
len
(
prompts
)
if
use_base
:
...
...
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