Skip to content

Commit

Permalink
fix strength
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 13, 2023
1 parent 8bf8889 commit eb428e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/diffusers/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ def run_img2img_pipeline(

pipe_params = {}
if params.pipeline == "controlnet":
pipe_params["controlnet_conditioning_scale"] = params.strength
pipe_params["controlnet_conditioning_scale"] = strength
elif params.pipeline == "img2img":
pipe_params["strength"] = params.strength
pipe_params["strength"] = strength

progress = job.get_progress_callback()
if params.lpw():
Expand Down

0 comments on commit eb428e9

Please sign in to comment.