Skip to content

Commit

Permalink
[Community Pipeline] Fix typo that cause error on regional prompting …
Browse files Browse the repository at this point in the history
…pipeline (#10251)

fix: fix typo that cause error
  • Loading branch information
cjkangme authored Dec 17, 2024
1 parent 2739241 commit 9c68c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/community/regional_prompting_stable_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __call__(
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:
Expand Down

0 comments on commit 9c68c94

Please sign in to comment.