Type Property

flip

An option for augmenting training data by flipping each image along the horizontal and vertical axes.

Declaration

Discussion

Use this option to tell the image classifier to augment your training data set by flipping the original images.

Diagram showing how the original image results in three flipped variants.

The classifier creates three new images by flipping the original horizontally, vertically, and both horizontally and vertically.

See Also

Selecting Augmentation Options

static let crop: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by creating cropped versions of each image.

static let rotation: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by rotating each image.

static let blur: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by blurring each image.

static let exposure: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by lightening or darkening each image.

static let noise: MLImageClassifier.ImageAugmentationOptions

An option for augmenting training data by adding random amounts of noise to each image.