I installed tensorflow today, followed the setup tutorial found on github. Installation was fine with protobuff 3.4. The setup is complete and the object_detection.ipynb example code runs just fine.
But the problem is when i try to use live object detection. i followed (https://pythonprogramming.net/video-tensorflow-object-detection-api-tutorial/) this tutorial. My third cell seems to have a problem. Should i move the mscoco_label_map.pbtxt (it is present in data of the object detection folder) somewhere? Also why is there an OS error. Isn't it built into python.
Thanks for your help guys
# What model to download.
MODEL_NAME = 'ssd_mobilenet_v1_coco_11_06_2017'
MODEL_FILE = MODEL_NAME + '.tar.gz'
DOWNLOAD_BASE = 'http://download.tensorflow.org/models/object_detection/'
# Path to frozen detection graph. This is the actual model that is used
for
the object detection.
PATH_TO_CKPT = MODEL_NAME + '/frozen_inference_graph.pb'
# List of the strings that is used to add correct label for each box.
PATH_TO_LABELS = os.path.join('data', 'mscoco_label_map.pbtxt')
NUM_CLASSES = 90
MODEL_NAME = 'ssd_mobilenet_v1_coco_11_06_2017'
MODEL_FILE = MODEL_NAME + '.tar.gz'
DOWNLOAD_BASE = 'http://download.tensorflow.org/models/object_detection/'
# Path to frozen detection graph. This is the actual model that is used for the object detection.
PATH_TO_CKPT = MODEL_NAME + '/frozen_inference_graph.pb'
# List of the strings that is used to add correct label for each box.
PATH_TO_LABELS = os.path.join('data', 'mscoco_label_map.pbtxt')
NUM_CLASSES = 90
# ## Download ModelTraceback (most recent call last):
File "<ipython-input-2-08073e128cca>", line 9, in <module>
PATH_TO_LABELS = os.path.join('data', 'mscoco_label_map.pbtxt')
NameError: name 'os' is not defined