sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

Fix/skip img2img

Open hananbeer opened this issue 2 years ago • 0 comments

In settings there's a skip_img2img option but it does not work at all.

This patch makes some small changes:

  • Skip img2img when the setting is enabled
    • Also skip img2img if preprocessor selected is "none"
  • Skip loading model if "none" is selected (it is not needed when skipping img2img)

Note that regardless of skip img2img you must select some image in the main input image field. That is because the first thing it does is call img2img before any callbacks which tries to convert the image. So be aware of that.

hananbeer avatar Mar 12 '23 16:03 hananbeer