Batch Transforms#
In this section are defined the classes and functions to transform a batch of images or videos.
Note
Whilst these augmentations accept batched data, some of them offer a trade-off between randomness and computational cost such as BatchRandomColorJitter.
Note
Some transforms rely on Torchvision functional.
Wrappers#
List of wrappers of the data augmentations.
|
Wrap transforms to handle image data. |
|
Wrap transforms to handle batched video data. |
Transforms#
List of the batched data augmentations.
|
Mix input tensor with linear interpolation drawn according a Beta law. |
|
Apply randomly a list of transformations to a batch of images with a given probability. |
|
Randomly change the brightness, contrast, saturation and hue to a batch of images. |
|
Blurs batch of images with randomly chosen Gaussian blur. |
|
Convert batch of images to grayscale. |
|
Horizontally flip the given batch of images randomly with a given probability. |
|
Crop a random portion of a batch of images and resize it to a given size. |
|
Solarize the batch of images randomly with a given probability by inverting all pixel values above a threshold. |
|
Abstract class to make a base class for all batch random transforms. |
|
Resize the input video to the given size. |
Functional#
List of the functions to make the batched data augmentations.
|
Adjust brightness of a batch of images. |
|
Adjust contrast of a batch of images. |
|
Adjust hue of a batch of images. |
|
Adjust color saturation of a batch of images. |
|
Performs Gaussian blurring on the batch of images by given kernel. |
|
Mix two tensors with linear interpolation. |