Pytorch PytorchStreamReader failed reading zip archive 解决方案

本文最后更新于:2022年8月5日 晚上

本文记录 pytorch: PytorchStreamReader failed reading zip archive 解决方案。

错误

Pytorch 加载模型时报错

1
PytorchStreamReader failed reading zip archive: failed finding central directory

问题原因

  • 保存模型过程没有完成,留下了残片数据,加载无法成功报错

解决方案

  • 找到损坏的模型,删除重新训练模型即可

参考资料



文章链接:
https://www.zywvvd.com/notes/study/deep-learning/pytorch/stream-reader-failed/stream-reader-failed/


Pytorch PytorchStreamReader failed reading zip archive 解决方案
https://www.zywvvd.com/notes/study/deep-learning/pytorch/stream-reader-failed/stream-reader-failed/
作者
Yiwei Zhang
发布于
2022年3月15日
许可协议