Traceback (most recent call last):
File "D:\yolo_slowfast-master\yolo_slowfast.py", line 201, in
main(config)
File "D:\yolo_slowfast-master\yolo_slowfast.py", line 127, in main
video_model = slowfast_r50_detection(True).eval().to(device)
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\pytorchvideo\models\hub\slowfast.py", line 178, in slowfast_r50_detection
kwargs,
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\pytorchvideo\models\hub\slowfast.py", line 30, in _slowfast
checkpoint_path, progress=progress, map_location="cpu"
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\torch\hub.py", line 528, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\torch\serialization.py", line 585, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\torch\serialization.py", line 242, in init
super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory
RuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory**
你好,在pycharm运行,出现上述报错 这个错误表明在尝试从zip文件中读取模型状态字典时出现问题。这可能是由于zip文件损坏或不完整导致的。请问怎么解决呢?麻烦您抽空给出回答
Traceback (most recent call last): File "D:\yolo_slowfast-master\yolo_slowfast.py", line 201, in
main(config)
File "D:\yolo_slowfast-master\yolo_slowfast.py", line 127, in main
video_model = slowfast_r50_detection(True).eval().to(device)
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\pytorchvideo\models\hub\slowfast.py", line 178, in slowfast_r50_detection
kwargs,
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\pytorchvideo\models\hub\slowfast.py", line 30, in _slowfast
checkpoint_path, progress=progress, map_location="cpu"
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\torch\hub.py", line 528, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\torch\serialization.py", line 585, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "D:\Anaconda3\envs\cnslowfast\lib\site-packages\torch\serialization.py", line 242, in init
super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory
RuntimeError: [enforce fail at ..\caffe2\serialize\inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory**
你好,在pycharm运行,出现上述报错 这个错误表明在尝试从zip文件中读取模型状态字典时出现问题。这可能是由于zip文件损坏或不完整导致的。请问怎么解决呢?麻烦您抽空给出回答