Esempio n. 1
0
def random_horizontal_flip(image, boxes=None, masks=None):
    """Randomly flips input image and bounding boxes."""
    results = preprocessor.random_horizontal_flip(image, boxes, masks)
    if boxes is None and masks is None:
        return results[0]
    else:
        return results
Esempio n. 2
0
def random_horizontal_flip(image, boxes=None, masks=None):
    """Randomly flips input image and bounding boxes."""
    return preprocessor.random_horizontal_flip(image, boxes, masks)