def random_transform_group_entry(self, image, annotations, transform=None):
    '\n        Randomly transforms image and annotation.\n        '
    if ((transform is not None) or self.transform_generator):
        if (transform is None):
            transform = adjust_transform_for_image(next(self.transform_generator), image, self.transform_parameters.relative_translation)
        image = apply_transform(transform, image, self.transform_parameters)
        annotations['bboxes'] = annotations['bboxes'].copy()
        for index in range(annotations['bboxes'].shape[0]):
            annotations['bboxes'][index, :] = transform_aabb(transform, annotations['bboxes'][index, :])
    return (image, annotations)
Randomly transforms image and annotation.
def random_transform_group_entry(self, image, annotations, transform=None):
    '\n        \n        '
    if ((transform is not None) or self.transform_generator):
        if (transform is None):
            transform = adjust_transform_for_image(next(self.transform_generator), image, self.transform_parameters.relative_translation)
        image = apply_transform(transform, image, self.transform_parameters)
        annotations['bboxes'] = annotations['bboxes'].copy()
        for index in range(annotations['bboxes'].shape[0]):
            annotations['bboxes'][index, :] = transform_aabb(transform, annotations['bboxes'][index, :])
    return (image, annotations)