transform#

Classes

Functions

albu_to_yxyx(xyxy, img_size)

Albumentations format (i.e.

apply_transform(transform, **kwargs)

Apply Albumentations transform to possibly batched images.

classification_transformer()

Apply transform to image only.

object_detection_transformer()

Apply transform to image, bounding boxes, and labels.

regression_transformer()

Apply transform to image only.

semantic_segmentation_transformer()

Apply transform to image and mask.

xywh_to_albu(xywh, img_size)

Unnormalized [xmin, ymin, w, h] to Albumentations format i.e. normalized [ymin, xmin, ymax, xmax].

yxyx_to_albu(yxyx, img_size)

Unnormalized [ymin, xmin, ymax, xmax] to Albumentations format i.e. normalized [ymin, xmin, ymax, xmax].