Keras导入数据集报'NpzFile' object has no attribute 'zip'错误解决方案
来源:互联网 发布:eppendorf移液器淘宝 编辑:程序博客网 时间:2024/06/06 12:25
在Keras实践过程中,常常需要先导入一些数据集,例如:
from keras.datasets import mnist
但是,在运行时可能会导致'NpzFile' object has no attribute 'zip'错误。其主要原因是上一次的数据集导入中途发生了中断,程序无法在这里恢复。
解决方法是:
keras默认将下载来的数据集放在了"~/.keras/datasets"目录下,因此,只要到该目录下,将下载失败的缓存文件删除即可。
例如,在Winodws下,这个文件夹一般为“C:\Users\Administrator\.keras\datasets”
阅读全文
1 0
- Keras导入数据集报'NpzFile' object has no attribute 'zip'错误解决方案
- 【问题】Keras AttributeError: 'Tensor' object has no attribute '_keras_history'
- 'function' object has no attribute '_name_'错误
- 导入Beautifulsoup 报错 AttributeError: 'module' object has no attribute '_base'
- 导入Beautifulsoup 报错 AttributeError: 'module' object has no attribute '_base'
- Ubuntu运行scrapy报“scrapy: 'module' object has no attribute 'OP_SINGLE_ECDH_USE'错误解决方法”
- Python报错——错误“AttributeError:'builtin_function_or_method' object has no attribute 'sleep'”
- Scrapy抓取数据循环报AttributeError: 'str' object has no attribute 'css'
- python3 报错: AttributeError: 'module' object has no attribute 'urlopen'
- 报错AttributeError: 'module' object has no attribute 'HTTPSConnection'
- 报错 AttributeError: 'module' object has no attribute 'bool_'
- Tensorflow报错:AttributeError: 'module' object has no attribute 'summary'
- 【Tensorflow】报错:AttributeError: 'module' object has no attribute 'scalar_summary'
- import module报错AttributeError: 'module' object has no attribute
- Tensorflow报错:AttributeError: 'module' object has no attribute 'scalar_summary'
- django 报错'NoneType' object has no attribute 'strftime'
- pandas报错AttributeError: 'module' object has no attribute 'plotting'
- tensorflow报错:AttributeError: 'module' object has no attribute 'get_or_create_global_step'
- 业余时间决定了你的人生
- 欢迎使用CSDN-markdown编辑器
- Java进阶之虚拟机《五》:多态性实现机制--静态分派与动态分派
- bzoj1055 [HAOI2008]玩具取名(区间)
- LCD主流显示接口介绍
- Keras导入数据集报'NpzFile' object has no attribute 'zip'错误解决方案
- IDEA中使用MyBaits的配置问题
- 将电脑已连接过的wifi及密码保存到桌面脚本
- 【真题】拼多多2018校招内推编程题 六一儿童节
- CSS网页布局时常犯的几种小错误
- Jetson Tegra X系列刷机教程
- Java常用类——Math类
- VMware发生不可恢复错误:(vmui)
- 判断两幅Mat型的图片是否相同