def filter_det_list(det_list, label_map_dict, subcategory):
    """
    Filter out those detections that do not belong to subcategory.
    """
    return [x for x in det_list if x['category_id']==label_map_dict[subcategory]]