PytorchStreamReader failed reading zip archive: failed finding central directory
网友给的方法:
解决方法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相关推荐
- 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 ...
- error: unpacking of archive failed on file错误的解决
2019独角兽企业重金招聘Python工程师标准>>> 今天在用yum安装软件包的时候出现如下错误信息(这只是部分): Installing : pango-1.28.1-11.e ...
- Error opening archive: Failed to open ‘/Users/**\**/Library/
安装Kafka报错 Error opening archive: Failed to open '/Users/**/Library/Caches/Homebrew/downloads/**–open ...
- 安装kubectl失败:error: unpacking of archive failed on file /usr/bin/kubectl: cpio: rename
腾讯云服务安装器安装k8s相关组件,kubectl失败 尝试了卸载腾讯云的yunsuo,参考这一篇Linux实例中执行"yum update bash"命令时提示"err ...
- mysql error unpacking_error: unpacking of archive failed on file错误的解决
今天在用yum安装软件包的时候出现如下错误信息(这只是部分): Installing : pango-1.28.1-11.el6.x86_64 ...
- 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 前三 ...
- unpacking of archive failed: cpio: lstat failed - Not a directory
今天在公司服务器上安装rpm包的时候报了一个奇怪的cpio错误.(大部分错误可以重装cpio或者重新下载rpm包可以解决) unpacking of archive failed: cpio: lst ...
- android生成apk包出现Unable to add XXX Zip add failed问题
最近在尝试集成中手游play800sdk到cocos2d-x项目中去,一切都搞好,准备生成apk包时出现了大量的 [2014-06-03 20:02:52 - MyApp] Unable ...
- 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 ...
最新文章
- 小技巧:帮你批量删除代码前的行号
- 皮一皮:中国好男友!!!
- 数列分块入门(套题)(loj6277,loj6278,loj6279,loj6280,loj6281,loj6282,loj6283,loj6284,loj6285)
- 今天,送你一份交通行业最全数据集(共享单车、自动驾驶、网约出租车、交通信号识别)
- 动态规划应用--双11购物凑单
- c语言布尔类型赋值给整型,C语言的布尔类型(_Bool)【转】
- 下找到vue变量_Vue:npm run serve 到底做了什么?
- 技术人员转行产品经理读这些书就够了
- Linux内存管理:Fixmaps(固定映射地址)和ioremap
- bilibili缓存文件在哪里_Android——bilibili缓存视频合并教程[2.1]
- indexed true mysql_一行代码,搞定浏览器数据库 IndexedDB
- STL中的序列式容器——list(列表)
- 在系统可编程器件一般使用计算机,eda技术与vhdl复习练习题
- 经典与科技碰撞之美!CGU 2018九段卡皇耀世登场
- html焦点图自动轮播,jQuery图片轮播(焦点图)插件jquery.slideBox
- ​李宏毅机器学习——领域适应Domain Adaptation
- 元气骑士如何获得机器人成就皮肤_元气骑士:新版本皮肤上架,隐藏皮肤这样才能获得,其实很简单...
- 手Q游戏中心上线 完美释放娱乐基因
- swal如何加入html语言,前端基础(九):SweetAlert(弹出框)
- parametrize参数化中使用skip标记