Transforms#
In this section are defined the classes and functions to transform an image or video.
Note
Whilst some of these augmentations accept batched data, it will only sample random parameters once which might be detrimental to an effective learning.
Note
Some transforms rely on Torchvision functional.
Wrappers and Bases#
List of wrappers of the data augmentations.
|
Wrap transforms to handle tensor data. |
|
Wrap transforms to handle image data. |
|
Wrap transforms to handle video data. |
List of bases for the data augmentations and wrappers.
|
Abstract class to make a base class for all video transforms. |
Transforms#
List of the data augmentations.
|
Divide a tensor by 255. |
|
Mix input tensor with linear interpolation drawn according a Beta law. |
|
Multiply a tensor by 255. |
|
Normalize a tensor image with mean and standard deviation. |
|
Apply randomly a list of transformations with a given probability. |
|
Randomly change the brightness, contrast, saturation and hue to images. |
|
Blurs image with randomly chosen Gaussian blur. |
|
Solarize the image randomly with a given probability by inverting all pixel values above a threshold. |
Abstract class to make a base class for all random transforms. |
|
|
Normalize a tensor video with mean and standard deviation. |
Functional#
List of the functions to make the data augmentations.
|
Adjust hue of an image. |
|
Divide the given tensor by 255. |
|
Performs Gaussian blurring on the image by given kernel. |
|
Mix two tensors with linear interpolation. |
|
Multiply the given tensor by 255. |
|
Normalize a tensor image with mean and standard deviation. |
|
Solarize an RGB/grayscale image by inverting all pixel values above a threshold. |