RuntimeError : unexcepted EOF, excepted 2599001 more bytes. The file might be corrupted.
![]()
原因2类:
- torchvision的模型下载失败
- 不知什么时候下载中断了,导致下载的预训练模型错误,需要删除:
- /home/××××××/.cache/torch/hub/checkpoints将其删除,重新下载
- /home/.cache/torch/hub/checkpoints将其删除,重新下载
- .cache文件是隐藏文件,需要打开Show Hideen Files

本文介绍了当遇到torchvision预训练模型下载失败导致的RuntimeError时的解决方法。通常原因是下载过程中断,造成模型文件损坏。解决方案是删除特定缓存文件夹内的内容,并重新下载模型。

1万+

被折叠的 条评论
为什么被折叠?



