reference:https://mxnet.incubator.apache.org/api/python/gluon/data.html
vision下面主要有一些数据集和transforms
transforms可以在训练数据的时候用来做数据增强,这里的数据集增强和image API中的数据集增强大同小异。
需要注意哪些转换需要在ToTensor之前,哪些需要在ToTensor之后
Taking note of which functions should be applied before and after ToTensor
- transforms.ToTensor是将一个image NDarray转化为 tensor NDarray
Converts an image NDArray of shape (H x W x C) in the range [0, 255] to a float32 tensor NDArray of shape (C x H x W) in the range [0, 1).
If batch input, converts a batch image NDArray of shape (N x H x W x C) in the range [0, 255] to a float32 tensor NDArray of shape (N x C x H x W).