Reputation: 135
So apparently the Yann LeCun's website is down so the following lines for reading mnist with tensorflow don't seem to be working :
FROM tensorflow.examples.tutorials.mnist IMPORT input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot = true)
Any ideas how can i read the mnist without using these above lines?
Upvotes: 1
Views: 466
Reputation: 4579
You can access the website here: https://web.archive.org/web/20160117040036/http://yann.lecun.com/exdb/mnist/ - download the data, and read it in from a local copy...
Edit Here is a code example for reading a local mnist dataset
Upvotes: 3
Reputation: 135
Ok guys i fixed my problem,my mistake was that i was extracting the files(to the \MNIST_data directory) from the .gz files where i should have left them as they were unextracted instead.Thanks for the help.
Upvotes: 0
Reputation: 155
You can download the dataset individually and put it in the directory you created.Then the code can run normally. http://yann.lecun.com/exdb/mnist/
Upvotes: 1