RuntimeError: unexpected EOF, expected 309663195 more bytes. The file might be corrupted.暴力解决

这是因为使用Pytorch下载网络模型时由于网络等的原因导致模型参数下载不完整造成的,我们可以去到下载模型的文件夹中将其删除,然后再重新下载。
预训练模型保存位置:C:\Users\admin\.cache\torch\hub\checkpoints

你可能感兴趣的:(Pytorch,深度学习)