Running into an error when trying to use within A1111.

#3
by manchovies - opened

Windows, RTX 2070 Super, Ryzen 3600X, fresh install of A1111

This is the error I'm running into. Any idea why this is happening? Look forward to having a working CN inpaint model. Thanks for your work on this!

Cheers

2023-11-06 14:22:56,485 - ControlNet - INFO - Loading model: sdxl_controlnet_inpaint_pre_encoded_controlnet_cond_checkpoint_200000 [ee1bc9ce]
2023-11-06 14:22:59,892 - ControlNet - INFO - Loaded state_dict from [D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\models\ControlNet\sdxl_controlnet_inpaint_pre_encoded_controlnet_cond_checkpoint_200000.safetensors]
2023-11-06 14:22:59,921 - ControlNet - INFO - t2i_adapter_config
*** Error running process: D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py
Traceback (most recent call last):
File "D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\modules\scripts.py", line 619, in process
script.process(p, *script_args)
File "D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 977, in process
self.controlnet_hack(p)
File "D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 966, in controlnet_hack
self.controlnet_main_entry(p)
File "D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 688, in controlnet_main_entry
model_net = Script.load_control_model(p, unet, unit.model)
File "D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 321, in load_control_model
model_net = Script.build_control_model(p, unet, model)
File "D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 350, in build_control_model
network = build_model_by_guess(state_dict, unet, model_path)
File "D:\Stable-Diffusion-Automatic1111\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet_model_guess.py", line 193, in build_model_by_guess
ksize = int(state_dict['body.0.block2.weight'].shape[2])
KeyError: 'body.0.block2.weight'

Sign up or log in to comment