Pytorch:terminate called after throwing an instance of ‘c10::Error‘

it2024-10-26  36

这个是LZ在加载模型时报的一个错误,一直以为是版本什么的问题,最后发现完整报错如下:

RuntimeError: unexpected EOF, expected 41812675 more bytes. The file might be corrupted. terminate called after throwing an instance of 'c10::Error'

EOF是代表文件结束的标记,原来是模型被破坏了,后面重新下载了一遍模型,问题解决!

最新回复(0)