Tensorflow trial

Followed this digitalocean tutorial on Tensorflow to try an image classification on my computer.

Tried with a Robot image first.

https://www.robotshop.com/media/catalog/product/cache/15/image/900x900/9df78eab33525d08d6e5fb8d27136e95/e/z/ez-robot-jd-humanoid-robot.jpg

It couldn't recognize it that well.

$ python classify_image.py --image_file ez-robot-jd-humanoid-robot.jpg 2>/dev/null
whistle (score = 0.05857)
tripod (score = 0.03762)
microphone, mike (score = 0.03662)
radio, wireless (score = 0.01969)
spotlight, spot (score = 0.01623)

But, eureka for Cats!

https://www.petmd.com/sites/default/files/what-does-it-mean-when-cat-wags-tail.jpg
$ python classify_image.py --image_file what-does-it-mean-when-cat-wags-tail.jpg 2>/dev/null
tabby, tabby cat (score = 0.51155)
Egyptian cat (score = 0.36965)
tiger cat (score = 0.06952)
lynx, catamount (score = 0.00368)
doormat, welcome mat (score = 0.00064)

Comments

Comments powered by Disqus