sd-webui-controlnet
sd-webui-controlnet copied to clipboard
Recieving FileNotFoundError: [Errno 2] No such file or directory: stable-diffusion-webui\\extensions\\sd-webui-controlnet\\models\\cldm_v15.yaml'
Seems this issue popped up when I updated webui. Updating controlnet did not alievate the situation
Is cldm_v15.yaml
located in extensions\sd-webui-controlnet\models\
? Check if any file is missing or invalid.
Yes, the file is there. I'm thinking I should reinstall that specific file to see if that helps. I should also note that one of my attempts to fix the problem was uninstalling and reinstalling the whole extension, but it did not work.
Maybe specify your controlnet config path in settings panel will help
So I tried what you mentioned earlier and nothing. I'm also posting this screenshot to see if there's anything you can find here.
I had the same issue when I moved my stable diffusion folder from one drive to another
I had to change the path to the yaml file inside config.json (at the root of the stable diffusion folder)
Re-installing controlnet did not change the path by itself
Thanks, Bigfield77. Your comment help me solve the problem. @Bigfield77
Good to hear!
facing the same issue now and not sure which line to change within config.json file... Can you please tell me?
fixed in https://github.com/Mikubill/sd-webui-controlnet/commit/9b19c63e9872e3dc059c07a592bbe83250e8ce79
I also faced the same issue while adding controlnet extension
Yeah I just updated 3mins ago and I'm still getting FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\extensions\sd-webui-controlnet\models\cldm_v15.yaml'
I've changed the path under ControlNet settings Config file for Control Net models extensions\sd-webui-controlnet\models\cldm_v15.yaml Config file for Adapter models extensions\sd-webui-controlnet\models\sketch_adapter_v14.yaml
Not sure what else to do.
I see this in the Config.json file (root of the stable diffusion folder) (Please note: the extra \ is not showing in this post) Line 190: "control_net_model_config": "extensions\sd-webui-controlnet\models\cldm_v15.yaml", Line 191: "control_net_model_adapter_config": "extensions\sd-webui-controlnet\models\sketch_adapter_v14.yaml",
When I remove the extra \ and save the file and start webui-user I get an error and it wont boot up.
Use models\sketch_adapter_v14.yaml and models\cldm_v15.yaml as config path and check if any errors occur
Yes that worked. Thank you
Another error just came up
Loading preprocessor: canny Error running process: C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\controlnet.py Traceback (most recent call last): File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\modules\scripts.py", line 386, in process script.process(p, *script_args) File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 655, in process detected_map = preprocessor(input_image, res=pres, thr_a=pthr_a, thr_b=pthr_b) File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\processor.py", line 14, in canny from annotator.canny import apply_canny ImportError: cannot import name 'apply_canny' from 'annotator.canny' (C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\canny_init_.py)
fixed in 9b19c63
No, it has not been fixed. I have last version of SD and ControlNet and issue persists. It doesn't detect yaml file when it is clearly there.
Another error just came up
Loading preprocessor: canny Error running process: C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\controlnet.py Traceback (most recent call last): File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\modules\scripts.py", line 386, in process script.process(p, *script_args) File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 655, in process detected_map = preprocessor(input_image, res=pres, thr_a=pthr_a, thr_b=pthr_b) File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\processor.py", line 14, in canny from annotator.canny import apply_canny ImportError: cannot import name 'apply_canny' from 'annotator.canny' (C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\canny__init__.py)
Hi, have you solved this issue? I have the same issue(cannot import name 'apply_canny' from 'annotator.canny') even when I just installed controlnet. Any advice? Thanks!
fixed in 9b19c63
No, it has not been fixed. I have last version of SD and ControlNet and issue persists. It doesn't detect yaml file when it is clearly there.
Same here. I never had any issues until today when it suddenly started saying the file was missing.
Another error just came up Loading preprocessor: canny Error running process: C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\controlnet.py Traceback (most recent call last): File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\modules\scripts.py", line 386, in process script.process(p, *script_args) File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 655, in process detected_map = preprocessor(input_image, res=pres, thr_a=pthr_a, thr_b=pthr_b) File "C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\processor.py", line 14, in canny from annotator.canny import apply_canny ImportError: cannot import name 'apply_canny' from 'annotator.canny' (C:\Users\Soshi\Desktop\stablediffusion\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\canny__init__.py)
Hi, have you solved this issue? I have the same issue(cannot import name 'apply_canny' from 'annotator.canny') even when I just installed controlnet. Any advice? Thanks!
solved, reinstalled sd webui...