".github/vscode:/vscode.git/clone" did not exist on "503d243e047d64bae3b0cd3e713cf28530e9af43"
Unverified Commit 9c68c945 authored by cjkangme's avatar cjkangme Committed by GitHub
Browse files

[Community Pipeline] Fix typo that cause error on regional prompting pipeline (#10251)

fix: fix typo that cause error
parent 2739241a
...@@ -129,7 +129,7 @@ class RegionalPromptingStableDiffusionPipeline(StableDiffusionPipeline): ...@@ -129,7 +129,7 @@ class RegionalPromptingStableDiffusionPipeline(StableDiffusionPipeline):
self.power = int(rp_args["power"]) if "power" in rp_args else 1 self.power = int(rp_args["power"]) if "power" in rp_args else 1
prompts = prompt if isinstance(prompt, list) else [prompt] 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) self.batch = batch = num_images_per_prompt * len(prompts)
if use_base: if use_base:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment