tensorflow-mnist-tutorial icon indicating copy to clipboard operation
tensorflow-mnist-tutorial copied to clipboard

max test accuracy: 0

Open mehransahandi opened this issue 9 years ago • 16 comments

there is no error but my accuracy is always 0, How should I solve it ?

mehransahandi avatar Jan 23 '17 10:01 mehransahandi

I have the same error here, using Linux Mint 17.3 and Python3.4.3.

Extracting data/train-images-idx3-ubyte.gz Extracting data/train-labels-idx1-ubyte.gz Extracting data/t10k-images-idx3-ubyte.gz Extracting data/t10k-labels-idx1-ubyte.gz max test accuracy: 0

jorgemadridportillo avatar Feb 03 '17 13:02 jorgemadridportillo

Is your loss NaN ? Could it be one of the problems described on this page: https://codelabs.developers.google.com/codelabs/cloud-tensorflow-mnist/#7

If you are running one of the samples without any changes, then it is something else.

martin-gorner avatar Feb 03 '17 13:02 martin-gorner

No, it is not even displaying the GUI, it seems like it is not even calling the training_step function for me...

jorgemadridportillo avatar Feb 03 '17 13:02 jorgemadridportillo

No GUI for me too. Program ends with max test accuracy: 0

neoscreenager avatar Feb 15 '17 16:02 neoscreenager

Have you tried upgrading to Python 3.5? Have you tried updating your matplotlib library (pip3 install --upgrade matplotlib) ?

martin-gorner avatar Feb 24 '17 09:02 martin-gorner

Updating to Python 3.5 solved the problem completely!, thanks.

jorgemadridportillo avatar Feb 24 '17 10:02 jorgemadridportillo

I'll leave this open for a while to hear from others. Then I'll fold it into https://github.com/martin-gorner/tensorflow-mnist-tutorial/issues/5

martin-gorner avatar Feb 24 '17 10:02 martin-gorner

All is working well after upgrading to python3.5 and pulling the updated code. Thanks :)

Current environment where the updated code is working for me is python 3.5, matplotlib 2.0.0 and tensorflow 1.0.0.

neoscreenager avatar Feb 24 '17 16:02 neoscreenager

I have the same problem, and I'm running the program with CentOS 7.3.1611, Python 3.5.1, matplotlib 2.0.0, tensorflow 1.0.0.

val620 avatar Mar 03 '17 06:03 val620

Is your code updated? If not then please update it to latest revision and then try.

neoscreenager avatar Mar 03 '17 07:03 neoscreenager

non of updates solved the problem, I just cancelled every GUI parts and then worked well, the only solution worked for me.

mehransahandi avatar Mar 03 '17 07:03 mehransahandi

@mehransahandi What is your environment?

neoscreenager avatar Mar 03 '17 07:03 neoscreenager

Did you try with other graphical engine like TkAgg or Qt5Agg (depends on py-qt5)?

kakawait avatar Mar 03 '17 07:03 kakawait

All code is updated, still doesn't work. @mehransahandi Can you elaborate?

val620 avatar Mar 03 '17 07:03 val620

I have had the same problem: no GUI for displaying graphs, after extracting mnist data, it goes directly to max accuracy = 0, and I've tried upgrading all to the latest( Python 2.7 in virtualenv, 3.6.1 in system with tensorflow...) I solved it by checking (macOS) /Users/you/.matplotlib/matplotlibrc and make sure the configuration something like below backend : TkAgg

KortVea avatar May 22 '17 03:05 KortVea

I have the same problem. tensorflow-1.8.0; python 3.6.3 ; matplotlib-2.2.2. Still cannot work it out.

Lobsterrr avatar May 01 '18 23:05 Lobsterrr