transform Module

The transform module contains augmentations for preprocessing images.

class ucs.data.transform.Augmentation[source]

A class to define and manage data augmentation pipelines for training. :ivar transform: A composition of augmentation transformations applied to training images and masks.

__call__(image, mask)[source]

Applies transformations to an image and (optionally) a mask.

Example

transform = Augmentation()
image, mask = transform(image, mask)  # Apply augmentation