mxnet.gluon.data.vision.transforms 模块的功能了解一下
该模块的功能主要有:随机加噪、随机抖动(色相、亮度、饱和度 or 对比度)、正则化、裁剪、翻转、resize 调整大小vision.transformsGluon provides pre-defined vision transformation and data augmentation functions in themxnet.gluon.data.vision.transformsmod
该模块的功能主要有:随机加噪、随机抖动(色相、亮度、饱和度 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. |
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)