-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi, Thanks for the project.
I am trying to track with object detector models provided in the https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf1_detection_zoo.md . But while i am running this it says it doesn't have labelmap.json file.
Where can I find labelmap.json file??
Although I created a json file like this.
{"label" : "person" , "index" : 0}
Ir returns the below error.
Traceback (most recent call last):
File "track.py", line 113, in
detections = detector.detect(frame)
File "/mvmed_tracker/detector.py", line 215, in detect
output_dict = self._get_output_dict(frame)
File "/mvmed_tracker/detector.py", line 329, in _get_output_dict
cls_labels.append(self._class_index_to_label(cls_idx))
File "/mvmed_tracker/detector.py", line 81, in _class_index_to_label
class_label = [map["label"] for map in self.label_map if map["index"] == class_index][0]
File "/mvmed_tracker/detector.py", line 81, in
class_label = [map["label"] for map in self.label_map if map["index"] == class_index][0]
TypeError: string indices must be integers
Thanks.