Shortcuts

mmcv.transforms

BaseTransform

Base class for all transformations.

TestTimeAug

Test-time augmentation transform.

Loading

LoadAnnotations

Load and process the instances and seg_map annotation provided by dataset.

LoadImageFromFile

Load an image from file.

Processing

CenterCrop

Crop the center of the image, segmentation masks, bounding boxes and key points.

MultiScaleFlipAug

Test-time augmentation with multiple scales and flipping.

Normalize

Normalize the image.

Pad

Pad the image & segmentation map.

RandomChoiceResize

Resize images & bbox & mask from a list of multiple scales.

RandomFlip

Flip the image & bbox & keypoints & segmentation map.

RandomGrayscale

Randomly convert image to grayscale with a probability.

RandomResize

Random resize images & bbox & keypoints.

Resize

Resize images & bbox & seg & keypoints.

ToTensor

Convert some results to torch.Tensor by given keys.

ImageToTensor

Convert image to torch.Tensor by given keys.

Wrapper

Compose

Compose multiple transforms sequentially.

KeyMapper

A transform wrapper to map and reorganize the input/output of the wrapped transforms (or sub-pipeline).

RandomApply

Apply transforms randomly with a given probability.

RandomChoice

Process data with a randomly chosen transform from given candidates.

TransformBroadcaster

A transform wrapper to apply the wrapped transforms to multiple data items.