import input_data MNIST tensorflow not working

O.rka

TensorFlow MNIST example not running with fully_connected_feed.py

I checked this out and realized that input_data was not built-in. So I downloaded the whole folder from here. How can I start the tutorial:

import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-6-a5af65173c89> in <module>()
----> 1 import input_data
      2 mnist = tf.input_data.read_data_sets("MNIST_data/", one_hot=True)

ImportError: No module named input_data

I'm using iPython (Jupyter) so do I need to change my working directory to this folder I downloaded? or can I add this to my tensorflow directory? If so, where do I add the files? I installed tensorflow with pip (on my OSX) and the current location is ~/anaconda/lib/python2.7/site-packages/tensorflow/__init__.py

Are these files meant to be accessed directly through tensorflow like sklearn datasets? or am I just supposed to cd into the directory and work from there? The example is not clear.

EDIT:

This post is very out-dated

Salvador Dali

So let's assume that you are in the directory: /somePath/tensorflow/tutorial (and this is your working directory).

All you need to do is to download the input_data.py file and place it like this. Let's assume that the file name you invoke:

import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
...

is main.py and it is also in the same directory.

Once this is done, you can just start running main.py which will start downloading the files and will put them in the MNIST_data folder (once they are there the script will not be downloading them next time).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Error: from tensorflow.examples.tutorials.mnist import input_data

From Dev

Splitting MNIST data tensorflow

From Dev

Error downloading Tensorflow MNIST data

From Dev

Tensorflow - Does data adjancency matter ? - MNIST example

From Dev

Tensorflow MNIST Estimator: batch size affects the graph expected input?

From Dev

Having error with Tensorflow Mnist

From Dev

Predict with TensorFlow MNIST for Experts

From Dev

Windows Tensorflow with Python unable to read mnist data due to permissions

From Dev

Import TensorFlow data from pyspark

From Dev

Dillema with prediction with TensorFlow on MNIST set

From Dev

Tensorflow MNIST tutorial code error

From Dev

How many iterations a needed to train tensorflow with the entire MNIST data set (60000 images)?

From Dev

How to create 2-layers neural network using TensorFlow and python on MNIST data

From Dev

How to get the same loss value, every time training a CNN (MNIST data set), with TensorFlow?

From Dev

Changing Tensorflow MNIST code with interactive session into session

From Dev

keep_prob in TensorFlow MNIST tutorial

From Dev

how to run tensorflow distributed mnist example

From Dev

Failed to run tensorflow distributed MNIST test

From Dev

How to fix tensorflow tutorial (mnist for beginner) error?

From Dev

Tensorflow: InvalidArgumentError with MNIST, [55000] vs. [10000]

From Dev

Introductory MNIST example from Tensorflow results in Exception

From Dev

Cannot get MNIST dataset through Tensorflow on Anaconda

From Dev

Difficulty installing TensorFlow and running MNIST example

From Dev

loading mnist data in keras

From Dev

Import pandas on docker with tensorflow

From Dev

Tensorflow can't import

From Dev

Tensorflow model import to Java

From Dev

Tensorflow import error

From Dev

Import Warnings in Tensorflow

Related Related

  1. 1

    Error: from tensorflow.examples.tutorials.mnist import input_data

  2. 2

    Splitting MNIST data tensorflow

  3. 3

    Error downloading Tensorflow MNIST data

  4. 4

    Tensorflow - Does data adjancency matter ? - MNIST example

  5. 5

    Tensorflow MNIST Estimator: batch size affects the graph expected input?

  6. 6

    Having error with Tensorflow Mnist

  7. 7

    Predict with TensorFlow MNIST for Experts

  8. 8

    Windows Tensorflow with Python unable to read mnist data due to permissions

  9. 9

    Import TensorFlow data from pyspark

  10. 10

    Dillema with prediction with TensorFlow on MNIST set

  11. 11

    Tensorflow MNIST tutorial code error

  12. 12

    How many iterations a needed to train tensorflow with the entire MNIST data set (60000 images)?

  13. 13

    How to create 2-layers neural network using TensorFlow and python on MNIST data

  14. 14

    How to get the same loss value, every time training a CNN (MNIST data set), with TensorFlow?

  15. 15

    Changing Tensorflow MNIST code with interactive session into session

  16. 16

    keep_prob in TensorFlow MNIST tutorial

  17. 17

    how to run tensorflow distributed mnist example

  18. 18

    Failed to run tensorflow distributed MNIST test

  19. 19

    How to fix tensorflow tutorial (mnist for beginner) error?

  20. 20

    Tensorflow: InvalidArgumentError with MNIST, [55000] vs. [10000]

  21. 21

    Introductory MNIST example from Tensorflow results in Exception

  22. 22

    Cannot get MNIST dataset through Tensorflow on Anaconda

  23. 23

    Difficulty installing TensorFlow and running MNIST example

  24. 24

    loading mnist data in keras

  25. 25

    Import pandas on docker with tensorflow

  26. 26

    Tensorflow can't import

  27. 27

    Tensorflow model import to Java

  28. 28

    Tensorflow import error

  29. 29

    Import Warnings in Tensorflow

HotTag

Archive