googlecodelabs / feedback

Provide feedback to our codelabs by filing an issue here
18 stars 22 forks source link

[tensorflow-mnist-tutorial ] mnist_1.0_softmax.py attribute error 'Cycler' in visu #230

Open richardjgo opened 7 years ago

richardjgo commented 7 years ago

laptop:tensorflow-mnist-tutorial user$ python mnist_1.0_softmax.py Tensorflow version 1.1.0 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 81, in datavis = tensorflowvisu.MnistDataVis() File "/Users/user/tensorflow-mnist-tutorial/tensorflowvisu.py", line 166, in init self._color4 = self.get_histogram_cyclecolor(histogram4colornum) File "/Users/user/tensorflow-mnist-tutorial/tensorflowvisu.py", line 160, in get_histogram_cyclecolor colors = clist.by_key()['color'] AttributeError: 'Cycler' object has no attribute 'by_key'

richardjgo commented 7 years ago

workaround by updating to matplotlib 2.0, and running thru pythonw within conda environment