-
Notifications
You must be signed in to change notification settings - Fork 18
Description
tensorflow version: 1.2.1
When I tried to run python adagan_mnist.py, it showed this error:
2017-07-07 19:46:49,618 - Loading MNIST
Traceback (most recent call last):
File "adagan_mnist.py", line 152, in
main()
File "adagan_mnist.py", line 113, in main
data = DataHandler(opts)
File "/home/xiaoyu/adagan/datahandler.py", line 62, in init
self._load_data(opts)
File "/home/xiaoyu/adagan/datahandler.py", line 69, in _load_data
self._load_mnist(opts)
File "/home/xiaoyu/adagan/datahandler.py", line 212, in _load_mnist
tr_X = loaded[16:].reshape((60000, 28, 28, 1)).astype(np.float)
ValueError: cannot reshape array of size 9912406 into shape (60000,28,28,1)
The dataset is downloaded from the MNIST website. So does anyone have any idea about what's wrong?