If you have Docker installed:
- Start Docker:
docker run -it -v [path of where you cloned repo]/Gaze-Glasses-Code:/Gaze-Glasses-Code gcr.io/tensorflow/tensorflow:latest-devel
- In Docker:
python /Gaze-Glasses-Code/label_image.py /Gaze-Glasses-Code/trainertestimage.jpg [or any other path of image]
If you only have TensorFlow installed:
- Change the paths in label_image.py:
From /Gaze-Glass-Code/label_image.py
to label_image.py
- Run:
python label_image.py trainertestimage.jpg [or any other path of image]
The output should tell you a confidence percentage of what it thinks the object is.
source: https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/#4