Lambda
A flexible transformation class for using user-defined transformation functions per targets.
Function signature must include **kwargs to accept optional arguments like interpolation method, image size, etc:
Supported Targets
image
mask
bboxes
keypoints
Arguments
Name | Type | Default | Description |
---|---|---|---|
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 | probability of applying the transform. Default: 1.0. |
Image Types
uint8, float32