Lambda

Targets:
image
mask
bboxes
keypoints
Image Types:uint8, float32

Transform that applies user-defined callables per target (image, mask, bboxes, keypoints). Callables must accept **kwargs.

Arguments
image
Callable[..., Any] | None

Image transformation function.

mask
Callable[..., Any] | None

Mask transformation function.

keypoints
Callable[..., Any] | None

Keypoints transformation function.

bboxes
Callable[..., Any] | None

BBoxes transformation function.

p
float
1

probability of applying the transform. Default: 1.0.