FourierMix
classkeras_cv.layers.FourierMix(alpha=0.5, decay_power=3, seed=None, **kwargs)
FourierMix implements the FMix data augmentation technique.
Arguments
References
Example
(images, labels), _ = keras.datasets.cifar10.load_data()
fourier_mix = keras_cv.layers.preprocessing.FourierMix(0.5)
augmented_images, updated_labels = fourier_mix(
{'images': images, 'labels': labels}
)
# output == {'images': updated_images, 'labels': updated_labels}