Skip to content

MNIST dataset load error #1

@Mrxiaoyuer

Description

@Mrxiaoyuer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions