Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

问题 #28

Open
xqc-qc opened this issue Jul 18, 2023 · 0 comments
Open

问题 #28

xqc-qc opened this issue Jul 18, 2023 · 0 comments

Comments

@xqc-qc
Copy link

xqc-qc commented Jul 18, 2023

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文件损坏或不完整导致的。请问怎么解决呢?麻烦您抽空给出回答

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant