sd-webui-controlnet icon indicating copy to clipboard operation
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'

Open DQL003 opened this issue 2 years ago • 19 comments

Seems this issue popped up when I updated webui. Updating controlnet did not alievate the situation

DQL003 avatar Feb 17 '23 04:02 DQL003

Is cldm_v15.yaml located in extensions\sd-webui-controlnet\models\? Check if any file is missing or invalid.

Mikubill avatar Feb 17 '23 04:02 Mikubill

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.

DQL003 avatar Feb 17 '23 04:02 DQL003

Maybe specify your controlnet config path in settings panel will help

Mikubill avatar Feb 17 '23 04:02 Mikubill

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. Screenshot (633)

DQL003 avatar Feb 17 '23 04:02 DQL003

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

Bigfield77 avatar Feb 20 '23 17:02 Bigfield77

Thanks, Bigfield77. Your comment help me solve the problem. @Bigfield77

riirxx avatar Feb 23 '23 02:02 riirxx

Good to hear!

Bigfield77 avatar Feb 23 '23 06:02 Bigfield77

facing the same issue now and not sure which line to change within config.json file... Can you please tell me?

smileyuver avatar Mar 02 '23 11:03 smileyuver

fixed in https://github.com/Mikubill/sd-webui-controlnet/commit/9b19c63e9872e3dc059c07a592bbe83250e8ce79

Mikubill avatar Mar 02 '23 13:03 Mikubill

I also faced the same issue while adding controlnet extension

shikhar24022 avatar Mar 02 '23 14:03 shikhar24022

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.

flaa2000 avatar Mar 02 '23 15:03 flaa2000

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.

flaa2000 avatar Mar 02 '23 15:03 flaa2000

Use models\sketch_adapter_v14.yaml and models\cldm_v15.yaml as config path and check if any errors occur

Mikubill avatar Mar 02 '23 23:03 Mikubill

Yes that worked. Thank you

flaa2000 avatar Mar 03 '23 05:03 flaa2000

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)

flaa2000 avatar Mar 03 '23 11:03 flaa2000

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.

LgnGithub avatar Mar 23 '23 14:03 LgnGithub

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!

ippfcox avatar Mar 23 '23 19:03 ippfcox

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.

skullzy77 avatar Mar 23 '23 20:03 skullzy77

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...

ippfcox avatar Apr 06 '23 05:04 ippfcox