-
Notifications
You must be signed in to change notification settings - Fork 111
Description
When a run this code, I get this error
!python3 {SCRIPTS_PATH + '/generate_tfrecord.py'} -x {IMAGE_PATH + '/train'} -l {ANNOTATION_PATH + '/label_map.pbtxt'} -o {ANNOTATION_PATH + '/train.record'}
!python3 {SCRIPTS_PATH + '/generate_tfrecord.py'} -x {IMAGE_PATH + '/test'} -l {ANNOTATION_PATH + '/label_map.pbtxt'} -o {ANNOTATION_PATH + '/test.record'}
Traceback (most recent call last):
File "/Users/mulamba/Desktop/XXX/RealTimeSignLanguageDetectionwithTFJS/Tensorflow/scripts/generate_tfrecord.py", line 29, in
from object_detection.utils import dataset_util, label_map_util
File "/Users/mulamba/anaconda3/lib/python3.11/site-packages/object_detection/utils/label_map_util.py", line 21, in
from object_detection.protos import string_int_label_map_pb2
ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (/Users/mulamba/anaconda3/lib/python3.11/site-packages/object_detection/protos/init.py)
Traceback (most recent call last):
File "/Users/mulamba/Desktop/XXX/RealTimeSignLanguageDetectionwithTFJS/Tensorflow/scripts/generate_tfrecord.py", line 29, in
from object_detection.utils import dataset_util, label_map_util
File "/Users/mulamba/anaconda3/lib/python3.11/site-packages/object_detection/utils/label_map_util.py", line 21, in
from object_detection.protos import string_int_label_map_pb2
ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (/Users/mulamba/anaconda3/lib/python3.11/site-packages/object_detection/protos/init.py)
m