-
Trying to use the Canny preset in ControlNet, but I get this error. *** Error running process: /stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py
Traceback (most recent call last):
File "/stable-diffusion-webui/modules/scripts.py", line 825, in process
script.process(p, *script_args)
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1222, in process
self.controlnet_hack(p)
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1207, in controlnet_hack
self.controlnet_main_entry(p)
File "/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 "/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 "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 464, in build_control_model
state_dict = load_state_dict(model_path)
File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/utils.py", line 21, in load_state_dict
state_dict = safetensors.torch.load_file(ckpt_path, device=location)
File "/opt/conda/lib/python3.10/site-packages/safetensors/torch.py", line 308, in load_file
with safe_open(filename, framework="pt", device=device) as f:
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
that is basically saying that it was unable to read the file I think the model that control net is trying to load is somehow "wrong" delete the model and redownload it if you downloaded the file yourself then it is possible that you mistook the file for what it is and and place it where it didn't belong |
Beta Was this translation helpful? Give feedback.
that is basically saying that it was unable to read the file
I think the model that control net is trying to load is somehow "wrong"
likely corrupted
delete the model and redownload it
if the file was automatically downloaded then still delete it and let it redownload
if you downloaded the file yourself then it is possible that you mistook the file for what it is and and place it where it didn't belong
and so the UI is trying read it as something that it isn't