Skip to content

Commit

Permalink
fix(api): pass batch size and eta params to txt2img stage
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 4, 2023
1 parent 17b90ef commit 89dbf81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/onnx_web/chain/source_txt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def run(
guidance_scale=params.cfg,
latents=latents,
negative_prompt=params.negative_prompt,
num_images_per_prompt=params.batch,
num_inference_steps=params.steps,
eta=params.eta,
callback=callback,
)
else:
Expand All @@ -84,7 +86,9 @@ def run(
guidance_scale=params.cfg,
latents=latents,
negative_prompt=params.negative_prompt,
num_images_per_prompt=params.batch,
num_inference_steps=params.steps,
eta=params.eta,
callback=callback,
)

Expand Down

0 comments on commit 89dbf81

Please sign in to comment.