Skip to content

Commit

Permalink
Merge pull request #147 from fpt/fix-146-img2img-argument-error
Browse files Browse the repository at this point in the history
fix: #146 Add arguments to img2img
  • Loading branch information
Interpause committed May 3, 2023
2 parents 1433721 + e991bf6 commit 0071435
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,10 @@ def f_img2img(req: Img2ImgRequest):
req.seed_resize_from_h, # seed_resize_from_h
req.seed_resize_from_w, # seed_resize_from_w
req.seed_enable_extras, # seed_enable_extras
1, # selected_scale_tab
height, # height
width, # width
1.0, # scale_by
req.resize_mode, # resize_mode
False, # req.inpaint_full_res, # inpaint_full_res
0, # req.inpaint_full_res_padding, # inpaint_full_res_padding
Expand Down

1 comment on commit 0071435

@gustavorios2929
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really hope we can have this for sd.next (vlad diffusion) one day (since automatic1111 is broken and probably will stay like that)

Please sign in to comment.