Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
16.41k stars 1.9k forks source link

[Bug]: ControNet automatically starts with all ControlNet units enabled even after a fresh clean install #2918

Closed FurkanGozukara closed 1 month ago

FurkanGozukara commented 1 month ago

After doing a fresh install ControlNet tabs are enabled automatically

Thus it causes error until you uncheck them

Tested both Ubuntu and Windows machine

Actually even after restart it still starts with all ControlNet units enabled - weird

Reactor and After Detailer extensions are installed

        script.process(p, *script_args)
      File "/home/Ubuntu/apps/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1222, in process
        self.controlnet_hack(p)
      File "/home/Ubuntu/apps/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1207, in controlnet_hack
        self.controlnet_main_entry(p)
      File "/home/Ubuntu/apps/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 919, in controlnet_main_entry
        model_net, control_model_type = Script.load_control_model(p, unet, unit.model)
      File "/home/Ubuntu/apps/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 436, in load_control_model
        control_model = Script.build_control_model(p, unet, model)
      File "/home/Ubuntu/apps/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 446, in build_control_model
        raise RuntimeError("You have not selected any ControlNet Model.")
    RuntimeError: You have not selected any ControlNet Model.
huchenlei commented 1 month ago

Problematic PR reverted.

FurkanGozukara commented 1 month ago

Problematic PR reverted.

thanks it wasted huge time of me yesterday :D