if not enable, return fast
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
You should define
self.enablefirst and then check itself.enable = enable if not self.enable: returnor it will stop with an error while passing through the
postprocess_imagefunction when you do something in the "img2img" tab
fix it
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