Traceback (most recent call last):
File "", line 1, in
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/wangyue/Desktop/手写数字识别/Handwritten-Numeral-Recognition/minist_eval.py", line 46, in
main()
File "/Users/wangyue/Desktop/手写数字识别/Handwritten-Numeral-Recognition/minist_eval.py", line 41, in main
mnist = input_data.read_data_sets("../../../datasets/MNIST_data", one_hot=True)
File "/Users/wangyue/opt/anaconda3/envs/py36/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 243, in read_data_sets
train_images = extract_images(f)
File "/Users/wangyue/opt/anaconda3/envs/py36/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 55, in extract_images
magic = _read32(bytestream)
File "/Users/wangyue/opt/anaconda3/envs/py36/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 37, in _read32
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
同样的源代码同学可以,但是我就是运行不出来,奇奇怪怪