-
Notifications
You must be signed in to change notification settings - Fork 912
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
AttributeError: 'Legend' object has no attribute 'draggable' #43
Comments
I had same issue running Ubuntu 18.04, python 3.6.7. I commented out And I will also add: thanks for the video and code! |
I met the same issue in win 10 in Python 3.7. with Tensorflow version 1.15.0. It is about matplotlib version: I updated it, then no errors reported, but still no training I guess, I just got empty figures returned. ps. lots of warnings: `WARNING:tensorflow:From F:\tensorflow\tensorflow-mnist-tutorial\tensorflowvisu.py:27: The name tf.set_random_seed is deprecated. Please use tf.compat.v1.set_random_seed instead. INFO:tensorflow:Tensorflow version 1.15.0 WARNING:tensorflow:From F:/tensorflow/tensorflow-mnist-tutorial/mnist_1.0_softmax.py:44: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead. WARNING:tensorflow:From F:/tensorflow/tensorflow-mnist-tutorial/mnist_1.0_softmax.py:67: The name tf.log is deprecated. Please use tf.math.log instead. WARNING:tensorflow:From F:/tensorflow/tensorflow-mnist-tutorial/mnist_1.0_softmax.py:75: The name tf.train.GradientDescentOptimizer is deprecated. Please use tf.compat.v1.train.GradientDescentOptimizer instead. WARNING:tensorflow:From F:/tensorflow/tensorflow-mnist-tutorial/mnist_1.0_softmax.py:85: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.` |
I also got these warnings, which may explain no training I guess, but i do not know how to fix.
WARNING:tensorflow:From F:/tensorflow/tensorflow-mnist-tutorial/mnist_2.0_five_layers_sigmoid.py:74: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version. Future major versions of TensorFlow will allow gradients to flow See WARNING:tensorflow:From F:/tensorflow/tensorflow-mnist-tutorial/mnist_2.0_five_layers_sigmoid.py:90: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.` |
Hi,
first let me say thanks a lot for your videos, making it easier to bring deep learning to my colleagues. But if I run the demo code I get AttributeError: 'Legend' object has no attribute 'draggable' in /tensorflowvisu.py", line 192, in init
legend.draggable(True)
I get this on Mac OS with Python 3.7 and on Linux with Python 3.7
But commenting it out both times everything works fine on Mac OS - on Linux Ubuntu I get max test accurancy:0 and no training
Kind regards,
Dirk
The text was updated successfully, but these errors were encountered: