Skip to content
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

How to load the created binary files? #6

Open
UmerIftikhar opened this issue Dec 29, 2016 · 2 comments
Open

How to load the created binary files? #6

UmerIftikhar opened this issue Dec 29, 2016 · 2 comments

Comments

@UmerIftikhar
Copy link

UmerIftikhar commented Dec 29, 2016

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. :)

@ijbo
Copy link

ijbo commented Jul 12, 2017

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)))

@ArtemGuy
Copy link

ArtemGuy commented Mar 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants