Skip to content

missing labelmap.json file #2

Description

@bhargav-sudo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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