gskielian / JPG-PNG-to-MNIST-NN-Format

Python/Bash scripts for creating custom Neural Net Training Data -- this repo is for the MNIST format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to load the created binary files?

UmerIftikhar opened this issue · comments

Hi,
I now have four files:
test-images-idx3-ubyte.gz
test-labels-idx1-ubyte.gz
train-images-idx3-ubyte.gz
train-labels-idx1-ubyte.gz

How can I replace this line(#37) in the TensorFlow tutorial, so I could read the above mentioned files and save them to the mnist variable
#mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=True)

Thanks in advance. :)

hi , Try the below :

`data = input_data.read_data_sets("tmp/MNIST/", one_hot=True)
print("Size of:")
print("- Training-set:\t\t{}".format(len(data.train.labels)))
print("- Test-set:\t\t{}".format(len(data.test.labels)))
print("- Validation-set:\t{}".format(len(data.validation.labels)))

Hello. unfortunately I also have this problem. And don't understand how to load our 4 files as train dataset