コード例 #1
0
ファイル: input_utils.py プロジェクト: ydfq1019/tpu
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
コード例 #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)