网友给的方法:

解决方法1:
in 1.7:

torch.save(model_.state_dict(), 'model_best_bacc.pth.tar', _use_new_zipfile_serialization=False)

解决方法2:

torch.load('model_best_bacc.pth.tar',map_location='cpu')

face_alignment_net = torch.jit.load(model_path, map_location="cpu")

但是我这情况是,模型是网络开源的,自己没法重新保存。

后来找到原因
pth没有下载完整

解决方法:

重新上传或者下载pth文件

PytorchStreamReader failed reading zip archive: failed finding central directory相关推荐

  1. RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading zip arc

    RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading zip arc ...

  2. error: unpacking of archive failed on file错误的解决

    2019独角兽企业重金招聘Python工程师标准>>> 今天在用yum安装软件包的时候出现如下错误信息(这只是部分):  Installing : pango-1.28.1-11.e ...

  3. Error opening archive: Failed to open ‘/Users/**\**/Library/

    安装Kafka报错 Error opening archive: Failed to open '/Users/**/Library/Caches/Homebrew/downloads/**–open ...

  4. 安装kubectl失败:error: unpacking of archive failed on file /usr/bin/kubectl: cpio: rename

    腾讯云服务安装器安装k8s相关组件,kubectl失败 尝试了卸载腾讯云的yunsuo,参考这一篇Linux实例中执行"yum update bash"命令时提示"err ...

  5. mysql error unpacking_error: unpacking of archive failed on file错误的解决

    今天在用yum安装软件包的时候出现如下错误信息(这只是部分): Installing : pango-1.28.1-11.el6.x86_64                              ...

  6. mysql error unpacking_linux 安装 mysql rpm包出现error: unpacking of archive failed on file

    安装mysql mysql-community-common mysql-community-libs mysql-community-client mysql-community-server 前三 ...

  7. unpacking of archive failed: cpio: lstat failed - Not a directory

    今天在公司服务器上安装rpm包的时候报了一个奇怪的cpio错误.(大部分错误可以重装cpio或者重新下载rpm包可以解决) unpacking of archive failed: cpio: lst ...

  8. android生成apk包出现Unable to add XXX Zip add failed问题

    最近在尝试集成中手游play800sdk到cocos2d-x项目中去,一切都搞好,准备生成apk包时出现了大量的 [2014-06-03 20:02:52 - MyApp]       Unable ...

  9. linuX中error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3....

    linuX中error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/s ...

最新文章

  1. 小技巧:帮你批量删除代码前的行号
  2. 皮一皮:中国好男友!!!
  3. 数列分块入门(套题)(loj6277,loj6278,loj6279,loj6280,loj6281,loj6282,loj6283,loj6284,loj6285)
  4. 今天,送你一份交通行业最全数据集(共享单车、自动驾驶、网约出租车、交通信号识别)
  5. 动态规划应用--双11购物凑单
  6. c语言布尔类型赋值给整型,C语言的布尔类型(_Bool)【转】
  7. 下找到vue变量_Vue:npm run serve 到底做了什么?
  8. 技术人员转行产品经理读这些书就够了
  9. Linux内存管理:Fixmaps(固定映射地址)和ioremap
  10. bilibili缓存文件在哪里_Android——bilibili缓存视频合并教程[2.1]
  11. indexed true mysql_一行代码,搞定浏览器数据库 IndexedDB
  12. STL中的序列式容器——list(列表)
  13. 在系统可编程器件一般使用计算机,eda技术与vhdl复习练习题
  14. 经典与科技碰撞之美!CGU 2018九段卡皇耀世登场
  15. html焦点图自动轮播,jQuery图片轮播(焦点图)插件jquery.slideBox
  16. ​李宏毅机器学习——领域适应Domain Adaptation
  17. 元气骑士如何获得机器人成就皮肤_元气骑士:新版本皮肤上架,隐藏皮肤这样才能获得,其实很简单...
  18. 手Q游戏中心上线 完美释放娱乐基因
  19. swal如何加入html语言,前端基础(九):SweetAlert(弹出框)
  20. parametrize参数化中使用skip标记

热门文章

  1. Python轻松实现音乐播放器
  2. PHP数据库拓展之PDO使用总结
  3. Mybatis generator的简单使用
  4. 天津小学计算机老师的工资,最辛苦的3种小学教师,工资都差不多,工作量差距大...
  5. mysql验证索引正确性_mysql调优--根据explain结果分析索引有效性,正确使用索引
  6. 3X3c语言子函数行列式,3x3矩阵行列式函数
  7. 获取微信数据,从此轻松可得!
  8. Flutter 弹出键盘认识
  9. 天才基本法_如何评价长洱的《天才基本法》?
  10. 网格布局之合并单元格