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

if not enable, return fast

Open huaizong opened this issue 2 years ago • 3 comments

huaizong avatar Aug 17 '23 09:08 huaizong

You should define self.enable first and then check it

self.enable = enable
if not self.enable:
    return

or it will stop with an error while passing through the postprocess_image function when you do something in the "img2img" tab

Gourieff avatar Aug 19 '23 06:08 Gourieff

You should define self.enable first and then check it

self.enable = enable
if not self.enable:
    return

or it will stop with an error while passing through the postprocess_image function when you do something in the "img2img" tab

fix it

huaizong avatar Aug 21 '23 04:08 huaizong

I implemented almost the same logic in my fork, it really gives a little speed up when extension is not enabled Thanks for noticing this moment! I mentioned you as a contributor in the latest Release https://github.com/Gourieff/sd-webui-reactor/releases

Gourieff avatar Aug 21 '23 06:08 Gourieff