Tony607 / WorkFlowTest

0 stars 0 forks source link

Demo ISSUE 1 #1

Open Tony607 opened 4 years ago

Tony607 commented 4 years ago

Demo ISSUE 1: Fix a bug.

mhmdghazal commented 4 years ago

Hi I'm so interesting in your work of (object_detection_demo) i tried to run your code of (tensorflow-object-detection-training-colab.ipynb) on colab, but i got an error related to Gfile i tried to solve it by import tensorflow.compat.v1 as tf with no success

AttributeError Traceback (most recent call last)

in () 1 import re 2 ----> 3 num_classes = get_num_classes(label_map_pbtxt_fname) 4 with open(pipeline_fname) as f: 5 s = f.read() 1 frames /content/models/research/object_detection/utils/label_map_util.py in load_labelmap(path) 136 path: path to StringIntLabelMap proto text file. 137 Returns: --> 138 a StringIntLabelMapProto 139 """ 140 with tf.gfile.GFile(path, 'r') as fid: AttributeError: module 'tensorflow' has no attribute 'gfile'