bourdakos1 / Custom-Object-Detection

Custom Object Detection with TensorFlow
https://medium.freecodecamp.org/tracking-the-millenium-falcon-with-tensorflow-c8c86419225e
MIT License
347 stars 181 forks source link

when i run the last command python object_detection/object_detection_runner.py #8

Closed pigpeak closed 6 years ago

pigpeak commented 6 years ago

Traceback (most recent call last): File "object_detection/object_detection_runner.py", line 95, in detect_objects(image_path) File "object_detection/object_detection_runner.py", line 64, in detect_objects plt.imshow(image_np, aspect = 'normal') File "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 3080, in imshow *kwargs) File "/usr/local/lib/python2.7/dist-packages/matplotlib/init.py", line 1710, in inner return func(ax, args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 5189, in imshow self.set_aspect(aspect) File "/usr/local/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 1273, in set_aspect self._aspect = float(aspect) # raise ValueError if necessary ValueError: could not convert string to float: normal

bourdakos1 commented 6 years ago

Check out issue #7 You can fix this by changing:

plt.imshow(image_np, aspect = 'normal')

To

plt.imshow(image_np)

Or

plt.imshow(image_np, aspect = 'auto')

I will push an update to fix this soon :)

bourdakos1 commented 6 years ago

finally pushed an update, sorry that took so long...