Comments (9)
you seem to have an old version of the code
I have pushed TF 1.0 changes recently
try to refresh (i.e. git pull)
from tensorflow-mnist-tutorial.
I checked the code, the tensorflow docs and realized that tf.concat
has now a different order in the argument list. The code was this:
everything_incorrect_first = tf.concat(0, [incorrectly_recognised_indices, correctly_recognised_indices])
Whereas it should be this, I suppose:
everything_incorrect_first = tf.concat([incorrectly_recognised_indices, correctly_recognised_indices], 0)
Although, I changed the code and got a new error:
$ python mnist_1.0_softmax.py
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
Traceback (most recent call last):
File "mnist_1.0_softmax.py", line 78, in <module>
I = tensorflowvisu.tf_format_mnist_images(X, Y, Y_) # assembles 10x10 images by default
File "/home/gabriel/Work/tensorflow-mnist-tutorial/tensorflowvisu.py", line 55, in tf_format_mnist_images
superimposed_digits = tf.select(correct_prediction_s, tf.zeros_like(correct_tags),correct_tags+computed_tags) # only pring the correct and computed digits on unrecognised images
AttributeError: module 'tensorflow' has no attribute 'select'
Am I using the incorrect version of tensorflow?
If yes, what version should I be using for now?
from tensorflow-mnist-tutorial.
That was something odd, because I had forked the repo just 2 days ago. Anyway, I've updated the code and the script is working now. **However, the animation didn't show up. Any clue why I'm not seeing it? **
from tensorflow-mnist-tutorial.
I downloaded the latest tensorflow today and cloned the repo and I had to convert the tf.concat() functions to the original param structure to get them to work:
everything_incorrect_first = tf.concat(0, [incorrectly_recognised_indices, correctly_recognised_indices])
Maybe TensorFlow changed their concat function to be like it was before but I thought I would let you know.
from tensorflow-mnist-tutorial.
It should be fixed by this commit f8ed776.
Please give a try :).
from tensorflow-mnist-tutorial.
Odd, you are not the first person reporting this although it works well for me.
Are you installing Tensorflow using "pip3 install --upgrade tensorflow" ?
Or maybe you are specifying a versioned package explicitly ?
from tensorflow-mnist-tutorial.
Yes, you're exactly right. I had a couple of issues. I was using a conda environment where tensorflow had previously been installed and wouldn't update. I created a fresh environment but ran into this issue described here where the tensorflow install wouldn't work in a new conda environment:
ContinuumIO/anaconda-issues#542
Once that was working I ran into another issue due to using a Mac with matplotlib:
http://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python
Once I got through these everything is working normally with the current code.
Sorry for the confusion. Hopefully this can help others avoid confusion in the future.
Love the course!
from tensorflow-mnist-tutorial.
Thanks.
I'll leave this issue open for a couple of days to capture similar experiences.
from tensorflow-mnist-tutorial.
The other person reporting a similar issue also confirmed he was testing with the wrong Python environment. Closing.
from tensorflow-mnist-tutorial.
Related Issues (20)
- max test accuracy: 0 HOT 5
- Empty plots HOT 6
- line 37 (3.0, 3.1, 4.2) HOT 1
- cross_entropy * 100 HOT 2
- Guide for Installing TensorFlow and Python 3.5 on Windows HOT 2
- BatchNorm is not in 'test mode' inside update_train_data HOT 2
- Error in mnist_1.0_softmax.py file HOT 4
- Doesn't work with latest pandas 0.20.1 and 0.20.2 HOT 4
- Issue with OSX HOT 2
- Examples are running very slow on AWS HOT 1
- _tkinter.TclError: no display name and no $DISPLAY environment variable HOT 1
- error while compiling the model HOT 1
- How to visualize? HOT 1
- How about tf.contrib.layers.batch_norm ? HOT 1
- Error occured when trying to run the script mnist_1.0_softmax.py HOT 1
- How to run on GPU? HOT 2
- how to download slides HOT 1
- Prediction is missing HOT 1
- Question related to compatible_convolutional_noise_shape function. HOT 1
- Point classification using DNN HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-mnist-tutorial.