|
| 1 | +# Preprocessing Layers |
| 2 | + |
| 3 | +KerasCV offers many preprocessing and data augmentation layers which support classification, object detection, and segmentation masks. When you use KerasCV augmentation layers to augment your training data, class labels, bounding boxes, and mask labels automatically get augmented alongside the image augmentations! |
| 4 | + |
| 5 | +The provided table gives an overview of the different augmentation layers available and the data formats they support. |
| 6 | + |
| 7 | +| Layer Name | Vectorized | Segmentation Masks | BBoxes | Class Labels | |
| 8 | +| :-- | :--: | :--: | :--: | :--: | |
| 9 | +| AugMix | ❌ | ❌ | ✅ | ✅ | |
| 10 | +| AutoContrast | ✅ | ✅ | ✅ | ✅ | |
| 11 | +| ChannelShuffle | ✅ | ✅ | ✅ | ✅ | |
| 12 | +| CutMix | ❌ | ✅ | ❌ | ✅ | |
| 13 | +| Equalization | ❌ | ✅ | ✅ | ✅ | |
| 14 | +| FourierMix | ❌ | ❌ | ❌ | ✅ | |
| 15 | +| Grayscale | ✅ | ✅ | ✅ | ✅ | |
| 16 | +| GridMask | ❌ | ✅ | ✅ | ✅ | |
| 17 | +| JitteredResize | ✅ | ✅ | ✅ | ✅ | |
| 18 | +| MixUp | ❌ | ✅ | ✅ | ✅ | |
| 19 | +| Mosaic | ✅ | ✅ | ✅ | ✅ | |
| 20 | +| Posterization | ❌ | ✅ | ✅ | ✅ | |
| 21 | +| RandAugment | ❌ | ❌ | ❌ | ❌ | |
| 22 | +| RandomApply <sup>+</sup> | - | - | - | - | |
| 23 | +| RandomAspectRatio | ❌ | ❌ | ✅ | ✅ | |
| 24 | +| RandomBrightness | ✅| ✅ | ✅ | ✅ | |
| 25 | +| RandomChannelShift | ❌| ✅ | ✅ | ✅ | |
| 26 | +| RandomChoice <sup>+</sup> | - | - | - | - | |
| 27 | +| RandomColorDegeneration | ❌ | ✅ | ✅ | ✅ | |
| 28 | +| RandomColorJitter | ✅ | ✅ | ✅ | ✅ | |
| 29 | +| RandomContrast | ✅ | ✅ | ✅ | ✅ | |
| 30 | +| RandomCropAndResize | ❌ | ✅ | ✅ | ❌ | |
| 31 | +| RandomCrop | ✅ | ❌ | ✅ | ✅ | |
| 32 | +| RandomCutout | ❌ | ❌ | ❌ | ✅ | |
| 33 | +| RandomFlip | ✅ | ✅ | ✅ | ✅ | |
| 34 | +| RandomGaussianBlur | ❌ | ✅ | ✅ | ✅ | |
| 35 | +| RandomHue | ✅ | ✅ | ✅ | ✅ | |
| 36 | +| RandomJpegQuality | ❌ | ✅ | ✅ | ✅ | |
| 37 | +| RandomRotation | ✅ | ✅ | ✅ | ✅ | |
| 38 | +| RandomSaturation | ✅ | ✅ | ✅ | ✅ | |
| 39 | +| RandomSharpness | ✅ | ✅ | ✅ | ✅ | |
| 40 | +| RandomShear | ✅ | ❌ | ✅ | ✅ | |
| 41 | +| RandomTranslation | ✅ | ❌ | ✅ | ✅ | |
| 42 | +| RandomZoom | ✅ | ❌ | ❌ | ✅ | |
| 43 | +| RepeatedAugmentation <sup>+</sup> | - | - | - | - | |
| 44 | +| Rescaling | ❌ | ✅ | ✅ | ✅ | |
| 45 | +| Resizing | ❌ | ✅ | ✅ | ❌ | |
| 46 | +| Solarization | ✅ | ✅ | ✅ | ✅ | |
| 47 | + |
| 48 | +<sup>+</sup> Meta Layers, the data types will depend on the Sub Layers. |
| 49 | + |
| 50 | +# Base Layers |
| 51 | + |
| 52 | +- BaseImageAugmentationLayer |
| 53 | +- VectorizedBaseImageAugmentationLayer |
| 54 | +- RandomAugmentationPipeline |
0 commit comments