logo
Loading...

執行net.load_weights('ssd300_mAP_77.43_v2.pth') 出現FileNotFoundError: [Errno 2] No such file or directory: 'ssd300_mAP_77.43_v2.pth' - Cupoy

請問老師,我在執行demo到第四個cell:net.load_weights('ssd300_mAP...

cvdl-1,cvdl-1-d29

執行net.load_weights('ssd300_mAP_77.43_v2.pth') 出現FileNotFoundError: [Errno 2] No such file or directory: 'ssd300_mAP_77.43_v2.pth'

2020/02/10 12:22 PM
電腦視覺深度學習論壇
王思之
觀看數:0
回答數:2
收藏數:0
cvdl-1
cvdl-1-d29

請問老師,我在執行demo到第四個cell:

net.load_weights('ssd300_mAP_77.43_v2.pth')

出現錯誤。錯誤信息如下:

Loading weights into state dict... 


--------------------------------------------------------------------------- FileNotFoundError                         Traceback (most recent call last) <ipython-input-16-aff6311158cd> in <module> ----> 1 net.load_weights('ssd300_mAP_77.43_v2.pth') D:\Python\1st-DL-CVMarathon\D29\Object Detection 程式導讀\ssd.py in load_weights(self, base_file)     116             print('Loading weights into state dict...')     117             self.load_state_dict(torch.load(base_file, --> 118                                  map_location=lambda storage, loc: storage))     119             print('Finished!')     120 else: ~\Anaconda3\envs\keras\lib\site-packages\torch\serialization.py in load(f, map_location, pickle_module, **pickle_load_args)     523         pickle_load_args['encoding'] = 'utf-8'     524 --> 525 with _open_file_like(f, 'rb') as opened_file:     526 if _is_zipfile(opened_file):     527 with _open_zipfile_reader(f) as opened_zipfile: ~\Anaconda3\envs\keras\lib\site-packages\torch\serialization.py in _open_file_like(name_or_buffer, mode)     210 def _open_file_like(name_or_buffer, mode):     211 if _is_path(name_or_buffer): --> 212 return _open_file(name_or_buffer, mode)     213 else:     214 if 'w' in mode: ~\Anaconda3\envs\keras\lib\site-packages\torch\serialization.py in __init__(self, name, mode)     191 class _open_file(_opener):     192 def __init__(self, name, mode): --> 193 super(_open_file, self).__init__(open(name, mode))     194     195 def __exit__(self, *args): FileNotFoundError: [Errno 2] No such file or directory: 'ssd300_mAP_77.43_v2.pth'

請問老師是什麼問題,該如何解決?

謝謝老師