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
def random_horizontal_flip(image, boxes=None, masks=None): """Randomly flips input image and bounding boxes.""" return preprocessor.random_horizontal_flip(image, boxes, masks)