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

mindspore.dataset.transforms.c_transforms.Compose

Compose a list of transforms into a single transform.

mindspore.dataset.transforms.c_transforms.Concatenate

Tensor operation that concatenates all columns into a single tensor.

mindspore.dataset.transforms.c_transforms.Duplicate

Duplicate the input tensor to a new output tensor.

mindspore.dataset.transforms.c_transforms.Fill

Tensor operation to create a tensor filled with input scalar value.

mindspore.dataset.transforms.c_transforms.Mask

Mask content of the input tensor with the given predicate.

mindspore.dataset.transforms.c_transforms.OneHot

Tensor operation to apply one hot encoding.

mindspore.dataset.transforms.c_transforms.PadEnd

Pad input tensor according to pad_shape, need to have same rank.

mindspore.dataset.transforms.c_transforms.RandomApply

Randomly perform a series of transforms with a given probability.

mindspore.dataset.transforms.c_transforms.RandomChoice

Randomly selects one transform from a list of transforms to perform operation.

mindspore.dataset.transforms.c_transforms.Slice

Slice operation to extract a tensor out using the given n slices.

mindspore.dataset.transforms.c_transforms.TypeCast

Tensor operation to cast to a given MindSpore data type.

mindspore.dataset.transforms.c_transforms.Unique

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

mindspore.dataset.transforms.py_transforms.Compose

Compose a list of transforms.

mindspore.dataset.transforms.py_transforms.OneHotOp

Apply one hot encoding transformation to the input label, make label be more smoothing and continuous.

mindspore.dataset.transforms.py_transforms.RandomApply

Randomly perform a series of transforms with a given probability.

mindspore.dataset.transforms.py_transforms.RandomChoice

Randomly select one transform from a series of transforms and applies that on the image.

mindspore.dataset.transforms.py_transforms.RandomOrder

Perform a series of transforms to the input PIL image in a random order.