mindspore.dataset.transforms
This module is to support common augmentations. C_transforms is a high performance image augmentation module which is developed with C++ OpenCV. Py_transforms provide more kinds of image augmentations which is developed with Python PIL.
mindspore.dataset.transforms.c_transforms
Compose a list of transforms into a single transform. |
|
Tensor operation that concatenates all columns into a single tensor. |
|
Duplicate the input tensor to a new output tensor. |
|
Tensor operation to create a tensor filled with input scalar value. |
|
Mask content of the input tensor with the given predicate. |
|
Tensor operation to apply one hot encoding. |
|
Pad input tensor according to pad_shape, need to have same rank. |
|
Randomly perform a series of transforms with a given probability. |
|
Randomly selects one transform from a list of transforms to perform operation. |
|
Slice operation to extract a tensor out using the given n slices. |
|
Tensor operation to cast to a given MindSpore data type. |
|
Return an output tensor containing all the unique elements of the input tensor in the same order that they occur in the input tensor. |
mindspore.dataset.transforms.py_transforms
Compose a list of transforms. |
|
Apply one hot encoding transformation to the input label, make label be more smoothing and continuous. |
|
Randomly perform a series of transforms with a given probability. |
|
Randomly select one transform from a series of transforms and applies that on the image. |
|
Perform a series of transforms to the input PIL image in a random order. |