Closed jimlin1668478052 closed 1 year ago
make sure that you download
https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_openpose.pth
not
https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_openpose.pth
Feel free to reopen if not solved
Can confirm that I also had downloaded the 140 KB file, instead of the actual ControlNet model which is around 1GB in size. Downloading the actual model fixed the issue
Is there an existing issue for this?
What happened?
Today I start to use RunPod Fast Stable Diffusion, and install controlnet and models in huggingface, When I try to use openpose, the error below is reported. Although images can be generated, they do not follow the poses of my input image to the control net. Error running process: /workspace/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py Traceback (most recent call last): File "/workspace/sd/stable-diffusion-webui/modules/scripts.py", line 451, in process script.process(p, script_args) File "/workspace/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 684, in process model_net = Script.load_control_model(p, unet, unit.model, unit.low_vram) File "/workspace/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 268, in load_control_model model_net = Script.build_control_model(p, unet, model, lowvram) File "/workspace/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 296, in build_control_model state_dict = load_state_dict(model_path) File "/workspace/sd/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/utils.py", line 20, in load_state_dict torch.load(ckpt_path, map_location=torch.device(location)) File "/workspace/sd/stable-diffusion-webui/modules/safe.py", line 107, in load return load_with_extra(filename, args, extra_handler=global_extra_handler, *kwargs) File "/workspace/sd/stable-diffusion-webui/modules/safe.py", line 152, in load_with_extra return unsafe_torch_load(filename, args, kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 815, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 1033, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.
Steps to reproduce the problem
What should have happened?
There should be no error, the image should be with figures with similar movements as the input images of openpose
Commit where the problem happens
webui: version: v1.3.2 • python: 3.10.10 • torch: 2.0.0+cu117 • xformers: N/A • gradio: 3.29.0 • checkpoint: 5493a0ec49 controlnet: v1.1.219 99408b9f
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of enabled extensions
Console logs
Additional information
No response