I'm trying to build an object detector using tensorflow from a YouTube tutorial. I have created a conda environment and installed all the required packages. Now when I try to run its script in VScode, it shows this error.
Traceback (most recent call last):
File "updated_old_example.py", line 79, in <module>
categories = label_map_util.convert_label_map_to_categories(label_map,max_num_classes=NUM_CLASSES, use_display_name=True)
File "/Users/Home/Desktop/Project/Object_Detection/models/research/object_detection/utils/label_map_util.py", line 133, in convert_label_map_to_categories
if item.HasField('frequency'):
ValueError: Protocol message StringIntLabelMapItem has no field frequency.
This is the first time I'm encountering this error. Some fix would be really appreciated.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…