def get_cropped_and_rotated_group(self, group):
    image_group = self.load_image_group(group)
    annotations_group = self.load_annotations_group(group)
    (image_group, annotations_group) = self.filter_annotations(image_group, annotations_group, group)
    (image_group, annotations_group) = self.random_crop_group(image_group, annotations_group)
    (image_group, annotations_group) = self.random_rotate_group(image_group, annotations_group)
    return (image_group, annotations_group)
def get_cropped_and_rotated_group(self, group):
    image_group = self.load_image_group(group)
    annotations_group = self.load_annotations_group(group)
    (image_group, annotations_group) = self.filter_annotations(image_group, annotations_group, group)
    (image_group, annotations_group) = self.random_crop_group(image_group, annotations_group)
    (image_group, annotations_group) = self.random_rotate_group(image_group, annotations_group)
    return (image_group, annotations_group)