Spidy20 / face_mask_detection

Face mask detection system using Deep learning.
MIT License
201 stars 74 forks source link

AttributeError: keypoints #10

Open ravish33 opened 4 years ago

ravish33 commented 4 years ago

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