Skip to content

Commit 9edee8d

Browse files
cjkangmesayakpaul
authored andcommitted
[Community Pipeline] Fix typo that cause error on regional prompting pipeline (#10251)
fix: fix typo that cause error
1 parent f2cc207 commit 9edee8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/community/regional_prompting_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __call__(
129129
self.power = int(rp_args["power"]) if "power" in rp_args else 1
130130

131131
prompts = prompt if isinstance(prompt, list) else [prompt]
132-
n_prompts = negative_prompt if isinstance(prompt, list) else [negative_prompt]
132+
n_prompts = negative_prompt if isinstance(negative_prompt, list) else [negative_prompt]
133133
self.batch = batch = num_images_per_prompt * len(prompts)
134134

135135
if use_base:

0 commit comments

Comments
 (0)