Apparently something from the model is missing, I did something wrong Traceback (most recent call la

Apparently something from the model is missing, I did something wrong Traceback (most recent call last):
File "gradio_canny2image.py", line 21, in <module>
model.load_state_dict(load_state_dict('./models/control_sd15_canny.pth', location='cuda'))
File "D:\ControlNet\cldm\model.py", line 18, in load_state_dict
state_dict = get_state_dict(torch.load(ckpt_path, map_location=torch.device(location)))
File "C:\Users\simon\AppData\Local\conda\conda\envs\control\lib\site-packages\torch\serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "C:\Users\simon\AppData\Local\conda\conda\envs\control\lib\site-packages\torch\serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "C:\Users\simon\AppData\Local\conda\conda\envs\control\lib\site-packages\torch\serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './models/control_sd15_canny.pth'
Was this page helpful?