Skip to content

Commit

Permalink
Produce 4 upscaled images
Browse files Browse the repository at this point in the history
Signed-off-by: bghira <[email protected]>
  • Loading branch information
bghira committed May 7, 2023
1 parent b22680d commit 3381a2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discord_tron_client/classes/image_manipulation/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,11 @@ def _run_pipeline(
elif upscaler:
new_image = pipe(
prompt_embeds=prompt_embed,
num_images_per_prompt=4,
negative_prompt_embeds=negative_embed,
image=image,
num_inference_steps=int(float(steps)),
).images[0]
).images
else:
raise Exception(
"Invalid combination of parameters for image generation"
Expand Down

0 comments on commit 3381a2a

Please sign in to comment.