请帮忙看看这个问题吧!您好像没有在文件中附给ckpt文件
Closed this issue · 0 comments
感谢您的工作!请帮忙看看这个问题吧!您好像没有在文件中附给ckpt文件
Traceback (most recent call last):
File "/opt/data/private/LightDiff-main/train.py", line 39, in
model.load_state_dict(load_state_dict(resume_path, location='cpu'), strict=False)
File "/opt/data/private/LightDiff-main/cldm/model.py", line 18, in load_state_dict
state_dict = get_state_dict(torch.load(ckpt_path, map_location=torch.device(location)))
File "/root/miniconda3/envs/lightdiff/lib/python3.8/site-packages/torch/serialization.py", line 594, in load
with _open_file_like(f, 'rb') as opened_file:
File "/root/miniconda3/envs/lightdiff/lib/python3.8/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/root/miniconda3/envs/lightdiff/lib/python3.8/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: './your checkpoints'