Closed kantikumari closed 6 years ago
This error means that MNIST dataset is not downloaded. It can be an internet connection issue (Or server issue of MNIST data homepage). Please check that there is MNIST_data
directory and .gz files are in that directory.
Yes, there was some issue in downloading the dataset. I solved the issue by manually downloading. Thank you.
Nice. I'll close this issue.
Hi
Please look at the following error which I got when I tried to train the network.
File "train.py", line 26, in
main()
File "train.py", line 14, in main
dh = MNISTDataHandler("MNIST_data", is_train=True)
File "/home/uavws/Desktop/kanti/NN/tesnsorflow/DIRNet/data.py", line 13, in init
self.data = self._get_data()
File "/home/uavws/Desktop/kanti/NN/tesnsorflow/DIRNet/data.py", line 31, in _get_data
images = extract_images(f)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 55, in extract_images
magic = _read32(bytestream)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 37, in _read32
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
File "/usr/lib/python2.7/gzip.py", line 261, in read
self._read(readsize)
File "/usr/lib/python2.7/gzip.py", line 296, in _read
self._read_gzip_header()
File "/usr/lib/python2.7/gzip.py", line 190, in _read_gzip_header
raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file
Looking forward to hear from you soon.