Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
38.33k stars 4.95k forks source link

Error at launch after updating #319

Open Astraha opened 1 year ago

Astraha commented 1 year ago

Error calling: D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py/ui Traceback (most recent call last): File "D:\ai\stable-diffusion-webui\modules\scripts.py", line 262, in wrap_call res = func(*args, **kwargs) File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 288, in ui group, state = self.uigroup(f"ControlNet-{i}", is_img2img, elem_id_tabname) File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 268, in uigroup group.register_callbacks(is_img2img) File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet_ui\controlnet_ui_group.py", line 820, in register_callbacks self.preset_panel.register_callbacks( File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet_ui\preset.py", line 177, in register_callbacks ).then( AttributeError: 'dict' object has no attribute 'then'

Error calling: D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py/ui Traceback (most recent call last): File "D:\ai\stable-diffusion-webui\modules\scripts.py", line 262, in wrap_call res = func(*args, **kwargs) File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 288, in ui group, state = self.uigroup(f"ControlNet-{i}", is_img2img, elem_id_tabname) File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 268, in uigroup group.register_callbacks(is_img2img) File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet_ui\controlnet_ui_group.py", line 820, in register_callbacks self.preset_panel.register_callbacks( File "D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet_ui\preset.py", line 177, in register_callbacks ).then( AttributeError: 'dict' object has no attribute 'then'

how can i fix it i got this after i updated my controlnet

bhanuj10 commented 11 months ago

Hi @Astraha

it is not this repo you should have to visit this https://github.com/AUTOMATIC1111/stable-diffusion-webui

I suppose that this is your sd-webui-controlnet directory

D:\ai\stable-diffusion-webui\extensions\sd-webui-controlnet

Try deleting it and rerun the program if it runs then the problem is with the controlnet

Instead of updating, try downloading the newest version and copy to the 'extensions' directory

  1. Open Webui using the url from the terminal
  2. Open "Extensions" tab.
  3. Open "Install from URL" tab in the tab.
  4. Paste the webui-controlnet repo and install it
  5. If error appears again it might be a error in the controlnet try opening a issue there ...