该模块的功能主要有:随机加噪、随机抖动(色相、亮度、饱和度 or 对比度)、正则化、裁剪、翻转、resize 调整大小
vision.transforms
Gluon provides pre-defined vision transformation and data augmentation functions in the mxnet.gluon.data.vision.transforms
module.
Sequentially composes multiple transforms. | |
Cast input to a specific data type | |
Converts an image NDArray or batch of image NDArray to a tensor NDArray. | |
Normalize an tensor of shape (C x H x W) or (N x C x H x W) with mean and standard deviation. | |
Crop the input image with random scale and aspect ratio. | |
Crops the image src to the given size by trimming on all four sides and preserving the center of the image. | |
Resize an image or a batch of image NDArray to the given size. | |
Randomly flip the input image left to right with a probability of 0.5. | |
Randomly flip the input image top to bottom with a probability of 0.5. | |
Randomly jitters image brightness with a factor chosen from [max(0, 1 - brightness), 1 + brightness]. | |
Randomly jitters image contrast with a factor chosen from [max(0, 1 - contrast), 1 + contrast]. | |
Randomly jitters image saturation with a factor chosen from [max(0, 1 - saturation), 1 + saturation]. | |
Randomly jitters image hue with a factor chosen from [max(0, 1 - hue), 1 + hue]. | |
Randomly jitters the brightness, contrast, saturation, and hue of an image. | |
Add AlexNet-style PCA-based noise to an image. |