Skip to content

from object_detection.protos import string_int_label_map_pb2 #5

@Elie60

Description

@Elie60

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions