Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: keypoints #10

Open
ravish33 opened this issue May 28, 2020 · 0 comments
Open

AttributeError: keypoints #10

ravish33 opened this issue May 28, 2020 · 0 comments

Comments

@ravish33
Copy link

Got this error on running the code:

label_map_util.py in convert_label_map_to_categories(label_map, max_num_classes, use_display_name)
AttributeError Traceback (most recent call last)
in
39 # dictionary mapping integers to appropriate string labels would be fine
40 label_map = label_map_util.load_labelmap(PATH_TO_LABELS)
---> 41 categories = label_map_util.convert_label_map_to_categories(label_map, max_num_classes=NUM_CLASSES, use_display_name=True)
42 category_index = label_map_util.create_category_index(categories)
43
~\Documents\Face Mask Detection Project\face_mask_detection_May_28_2020\models-master\models-master\research\object_detection\utils\label_map_util.py in convert_label_map_to_categories(label_map, max_num_classes, use_display_name)
131 list_of_ids_already_added.append(item.id)
132 category = {'id': item.id, 'name': name}
--> 133 if item.keypoints:
134 keypoints = {}
135 list_of_keypoint_ids = []
AttributeError: keypoints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant