Contents

flip

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

Declaration

static let flip: MLImageClassifier.ImageAugmentationOptions

Discussion

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

[Image]

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

See Also

Selecting augmentation options