def load_annotations_group(self, group):
    '\n        Load annotations for all images in group.\n        '
    annotations_group = [self.load_annotations(image_index) for image_index in group]
    for annotations in annotations_group:
        assert isinstance(annotations, dict), "'load_annotations' should return a list of dictionaries, received: {}".format(type(annotations))
        assert ('labels' in annotations), "'load_annotations' should return a list of dictionaries that contain 'labels' and 'bboxes'."
        assert ('bboxes' in annotations), "'load_annotations' should return a list of dictionaries that contain 'labels' and 'bboxes'."
    return annotations_group
Load annotations for all images in group.
def load_annotations_group(self, group):
    '\n        \n        '
    annotations_group = [self.load_annotations(image_index) for image_index in group]
    for annotations in annotations_group:
        assert isinstance(annotations, dict), "'load_annotations' should return a list of dictionaries, received: {}".format(type(annotations))
        assert ('labels' in annotations), "'load_annotations' should return a list of dictionaries that contain 'labels' and 'bboxes'."
        assert ('bboxes' in annotations), "'load_annotations' should return a list of dictionaries that contain 'labels' and 'bboxes'."
    return annotations_group