package documentation
Built-in custom Albumentations transforms.
The TRANSFORMATIONS registry contains Luxonis transforms that can be used by
AlbumentationsEngine through augmentation configuration records. Registered
transforms are referenced by class name in the name field, the same way as
standard Albumentations transforms.
Built-in custom transforms include:
LetterboxResizefor aspect-ratio preserving resize and padding.MixUpfor blending pairs of images and compatible labels.Mosaic4for composing a 2×2 image mosaic.- Symmetric keypoint flips and transposition helpers for keypoint tasks.
User-defined transforms can be registered with TRANSFORMATIONS.register and then used by name in loader augmentation configuration.
TRANSFORMATIONS.register(module=CustomTransform)
augmentation_config = [
{
"name": "CustomTransform",
"params": {"p": 1.0},
},
]| Module | letterbox |
Undocumented |
| Module | mixup |
Undocumented |
| Module | mosaic |
Undocumented |
| Module | symmetric |
Undocumented |
From __init__.py:
| Class | |
Flip images and symmetric keypoints horizontally. |
| Class | |
Augmentation that resizes an image with padding to maintain the aspect ratio. |
| Class | |
Batch-based augmentation that blends two images together. |
| Class | |
Batch-based augmentation that creates a mosaic of four images. |
| Class | |
Transpose images and symmetric keypoints. |
| Class | |
Flip images and symmetric keypoints vertically. |
| Constant | TRANSFORMATIONS |
Undocumented |