-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in the code #9
Comments
Did you download the dataset? |
Dear author , when I run the instruction (/home/gamkiu/anaconda3/envs/test) gamkiu@ubuntu:~/csgm$ ./quick_scripts/mnist_reconstr.sh batch_size = 10 Extracting ./data/mnist/train-images-idx3-ubyte.gz |
here is the problem, when I run the demos, each returns
Traceback (most recent call last):
File "./src/compressed_sensing.py", line 177, in
main(HPARAMS)
File "./src/compressed_sensing.py", line 19, in main
xs_dict = model_input(hparams)
File "/home/feiht/csgm/src/mnist_input.py", line 56, in model_input
mnist = input_data.read_data_sets('./data/mnist', one_hot=True)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/deprecation.py", line 306, in new_func
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 262, in read_data_sets
train_images = extract_images(f)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/deprecation.py", line 306, in new_func
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 62, in extract_images
magic = _read32(bytestream)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 43, in _read32
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
why is it, thank you!
The text was updated successfully, but these errors were encountered: