raise IOError, 'Not a gzipped file'
来源:互联网 发布:数据库进销存管理系统 编辑:程序博客网 时间:2024/05/21 22:50
There is an error:
File "tensorflow/models/image/mnist/convolutional.py", line 59, in extract_data bytestream.read(16) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 268, in read self._read(readsize) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 303, in _read self._read_gzip_header() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 197, in _read_gzip_header raise IOError, 'Not a gzipped file'
解决方法:
The code attempts to download the data files from the MNIST web site, and assumes it's properly downloaded if the file is present locally on your system. You might have a corrupted file, in which case deleting it and retrying might help. Otherwise, try to get the data via your browser directly from:
http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gzhttp://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
2 0
- raise IOError, 'Not a gzipped file'
- Python IOError: File not open for writing
- raise NoReverseMatch("%s is not a registered namespace" % key)
- 如何安装PIL--*** TKINTER support not available---IOError: cannot identify image file
- IOError: RPC server not started
- scp: not a regular file
- not a regular file问题
- not a regular file问题
- Not a PNG file..解决方案
- A class file not written.
- not a regular file问题
- file is not a zip file 解决方法
- File is not a normal file.
- django migrate raise ValueError('The database backend does not accept 0 as a '
- python IOError: cannot identify image file
- python IOError: cannot identify image file
- PIL IOError: decoder jpeg not available
- python PIL IOError: decoder jpeg not available
- POJ 2891 Strange Way to Express Integers (扩展欧几里得)
- java字符串之split
- Ubuntu16.04配置apache2+CGI
- 题目1124:Digital Roots 九度OJ
- 数据权限实现(Mybatis拦截器+JSqlParser)
- raise IOError, 'Not a gzipped file'
- 常用计算机远程控制软件介绍
- JS 调取摄像头
- C++构造函数初始化列表与赋值
- [SMOJ1783]移动信号
- JMeter目录及关键配置分析
- 循环赛日程表
- Java 接口与抽象类
- 使用canvas绘制扇形图