def preprocess_group_entry(self, image, annotations):
    '\n        Preprocess image and its annotations.\n        '
    (image, scale, offset_h, offset_w) = self.preprocess_image(image)
    annotations['bboxes'] *= scale
    annotations['bboxes'][:, [0, 2]] += offset_w
    annotations['bboxes'][:, [1, 3]] += offset_h
    return (image, annotations)
Preprocess image and its annotations.
def preprocess_group_entry(self, image, annotations):
    '\n        \n        '
    (image, scale, offset_h, offset_w) = self.preprocess_image(image)
    annotations['bboxes'] *= scale
    annotations['bboxes'][:, [0, 2]] += offset_w
    annotations['bboxes'][:, [1, 3]] += offset_h
    return (image, annotations)