我正在尝试使用TensorFlow API的对象检测教程。 我正在使用Python 3和TensorFlow版本2。 但是收到下面的错误。 我尝试了几种方法:
File "C:\Aniruddhya\object_detection\object_detection\utils\label_map_util.py", line 137, in load_labelmap
with tf.gfile.GFile(path, 'r') as fid:
AttributeError: module 'tensorflow' has no attribute 'gfile'
有人可以帮我运行这个吗? 代码链接:https://drive.google.com/drive/u/3/folders/1XHpnr5rsENzOOSzoWNTvRqhEbLKXaenL