Closed naga-k closed 3 years ago
Are you sure you installed the newest version of the Tensorflow 2 OD API, because for the newest version they already changed the code to use tf.io.gfile.GFile
instead of tf.gfile.GFile
.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Hey, I'm trying to learn object detection on Tensorflow
Tensotflow object detection
And on line,
category_index = label_map_util.create_category_index_from_labelmap(PATH_TO_LABELS, use_display_name=True)
I get the error:
AttributeError: module 'tensorflow' has no attribute 'gfile'
According to what I understand the error is because the function has been moved after Tensorflow 1.14.0 but the API has not been updated.