lllyasviel / ControlNet-v1-1-nightly

Nightly release of ControlNet 1.1
4.77k stars 376 forks source link

Error: Images generated but CN not working, even when enable checked #113

Open mrmeseeks23 opened 1 year ago

mrmeseeks23 commented 1 year ago

Using latest update to Automatic1111 (this error also occurred with prior version). Have all .pth and .yaml files in the models subdirectory within the sd-webui-controlnet directory. Images generate fine but it doesn't seem to be respoding to the control net. Control yet functionality within the Auto-1111/gradio gui seems okay. Able to see all types of nets, models will load within the gui. Preview will generate okay. But no CN upon image generation.

` 2023-09-01 05:48:57,094 - ControlNet - INFO - Loading model: control_v11f1p_sd15_depth [e3b0c442] Error running process: /workspace/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py Traceback (most recent call last): File "/workspace/stable-diffusion-webui/modules/scripts.py", line 619, in process script.process(p, script_args) File "/workspace/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 738, in process model_net = Script.load_control_model(p, unet, unit.model, unit.low_vram) File "/workspace/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 311, in load_control_model model_net = Script.build_control_model(p, unet, model, lowvram) File "/workspace/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 339, in build_control_model state_dict = load_state_dict(model_path) File "/workspace/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/utils.py", line 23, in load_state_dict torch.load(ckpt_path, map_location=torch.device(location)) File "/workspace/stable-diffusion-webui/modules/safe.py", line 108, in load return load_with_extra(filename, *args, extra_handler=global_extra_handler, *kwargs) File "/workspace/stable-diffusion-webui/modules/safe.py", line 156, in load_with_extra return unsafe_torch_load(filename, args, kwargs) File "/workspace/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/serialization.py", line 815, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "/workspace/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/serialization.py", line 1033, in _legacy_load magic_number = pickle_module.load(f, pickle_load_args) _pickle.UnpicklingError: invalid load key, 'v'. `

HanLiii commented 2 months ago

same issue