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