forked from keras-team/keras-cv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A
README
for the preprocessing layers (keras-team#1979)
* init * nits * review comments * nits
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Preprocessing Layers | ||
|
||
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! | ||
|
||
The provided table gives an overview of the different augmentation layers available and the data formats they support. | ||
|
||
| Layer Name | Vectorized | Segmentation Masks | BBoxes | Class Labels | | ||
| :-- | :--: | :--: | :--: | :--: | | ||
| AugMix | ❌ | ❌ | ✅ | ✅ | | ||
| AutoContrast | ✅ | ✅ | ✅ | ✅ | | ||
| ChannelShuffle | ✅ | ✅ | ✅ | ✅ | | ||
| CutMix | ❌ | ✅ | ❌ | ✅ | | ||
| Equalization | ❌ | ✅ | ✅ | ✅ | | ||
| FourierMix | ❌ | ❌ | ❌ | ✅ | | ||
| Grayscale | ✅ | ✅ | ✅ | ✅ | | ||
| GridMask | ❌ | ✅ | ✅ | ✅ | | ||
| JitteredResize | ✅ | ✅ | ✅ | ✅ | | ||
| MixUp | ❌ | ✅ | ✅ | ✅ | | ||
| Mosaic | ✅ | ✅ | ✅ | ✅ | | ||
| Posterization | ❌ | ✅ | ✅ | ✅ | | ||
| RandAugment | ❌ | ❌ | ❌ | ❌ | | ||
| RandomApply <sup>+</sup> | - | - | - | - | | ||
| RandomAspectRatio | ❌ | ❌ | ✅ | ✅ | | ||
| RandomBrightness | ✅| ✅ | ✅ | ✅ | | ||
| RandomChannelShift | ❌| ✅ | ✅ | ✅ | | ||
| RandomChoice <sup>+</sup> | - | - | - | - | | ||
| RandomColorDegeneration | ❌ | ✅ | ✅ | ✅ | | ||
| RandomColorJitter | ✅ | ✅ | ✅ | ✅ | | ||
| RandomContrast | ✅ | ✅ | ✅ | ✅ | | ||
| RandomCropAndResize | ❌ | ✅ | ✅ | ❌ | | ||
| RandomCrop | ✅ | ❌ | ✅ | ✅ | | ||
| RandomCutout | ❌ | ❌ | ❌ | ✅ | | ||
| RandomFlip | ✅ | ✅ | ✅ | ✅ | | ||
| RandomGaussianBlur | ❌ | ✅ | ✅ | ✅ | | ||
| RandomHue | ✅ | ✅ | ✅ | ✅ | | ||
| RandomJpegQuality | ❌ | ✅ | ✅ | ✅ | | ||
| RandomRotation | ✅ | ✅ | ✅ | ✅ | | ||
| RandomSaturation | ✅ | ✅ | ✅ | ✅ | | ||
| RandomSharpness | ✅ | ✅ | ✅ | ✅ | | ||
| RandomShear | ✅ | ❌ | ✅ | ✅ | | ||
| RandomTranslation | ✅ | ❌ | ✅ | ✅ | | ||
| RandomZoom | ✅ | ❌ | ❌ | ✅ | | ||
| RepeatedAugmentation <sup>+</sup> | - | - | - | - | | ||
| Rescaling | ❌ | ✅ | ✅ | ✅ | | ||
| Resizing | ❌ | ✅ | ✅ | ❌ | | ||
| Solarization | ✅ | ✅ | ✅ | ✅ | | ||
|
||
<sup>+</sup> Meta Layers, the data types will depend on the Sub Layers. | ||
|
||
# Base Layers | ||
|
||
- BaseImageAugmentationLayer | ||
- VectorizedBaseImageAugmentationLayer | ||
- RandomAugmentationPipeline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters