Traceback (most recent call last):
File "D:\yolov5-master\train.py", line 640, in <module>
main(opt)
File "D:\yolov5-master\train.py", line 529, in main
train(opt.hyp, opt, device, callbacks)
File "D:\yolov5-master\train.py", line 124, in train
ckpt = torch.load(weights, map_location='cpu') # load checkpoint to CPU to avoid CUDA memory leak
File "D:\Anaconda\envs\pytorch\lib\site-packages\torch\serialization.py", line 797, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "D:\Anaconda\envs\pytorch\lib\site-packages\torch\serialization.py", line 283, in __init__
super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
yolov5这样的问题怎么解决呀?
最新推荐文章于 2024-07-22 11:00:25 发布