本文最后更新于:2024年1月14日 晚上

本文记录 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日
许可协议