portraitseg/data_augmentations.py
def mirror(inp, target):
    """
    - Horizontal flip
    - Appropriate for image transformation tasks
    - Requires the width axis to be the last axis
    """
    def mirror(image):
        return np.flip(image, -1).copy()
    inp, target = apply_data_aug(inp, target, mirror)
    return inp, target

    - Horizontal flip
    - Appropriate for image transformation tasks
    - Requires the width axis to be the last axis
    
Horizontal flip
Appropriate for image transformation tasks
Requires the width axis to be the last axis
Horizontal flip Appropriate for image transformation tasks Requires the width axis to be the last axis
def mirror(inp, target):
    def mirror(image):
        return np.flip(image, -1).copy()
    inp, target = apply_data_aug(inp, target, mirror)
    return inp, target
def mirror ( inp , target ) : def mirror ( image ) : return np . flip ( image , - 1 ) . copy ( ) inp , target = apply_data_aug ( inp , target , mirror ) return inp , target
Horizontal flip
 Appropriate for image transformation tasks
 Requires the width axis to be the last axis
Horizontal flip Appropriate for image transformation tasks Requires the width axis to be the last axis
"""
    - Horizontal flip
    - Appropriate for image transformation tasks
    - Requires the width axis to be the last axis
    """
inp
target