vis4d.data.transforms.mixup¶
Mixup data augmentation.
Classes
|
Generate the parameters for a mixup operation. |
|
Mixup a batch of boxes. |
|
Mixup a batch of categories. |
|
Mixup a batch of images. |
Typed dict for mixup parameters. |
- class GenMixupParameters(*, in_keys=('images',), out_keys=('transforms.mixup',), sensors=None, same_on_batch=True, **kwargs)[source]¶
Generate the parameters for a mixup operation.
- __call__(images)[source]¶
Generate parameters for MixUp.
- Return type:
list
[MixupParam
]
- class MixupBoxes2D(*, in_keys=('boxes2d', 'boxes2d_classes', 'boxes2d_track_ids', 'transforms.mixup'), out_keys=('boxes2d', 'boxes2d_classes', 'boxes2d_track_ids'), sensors=None, same_on_batch=True, **kwargs)[source]¶
Mixup a batch of boxes.
- class MixupCategories(*, in_keys=('categories', 'transforms.mixup'), out_keys=('categories',), sensors=None, same_on_batch=True, **kwargs)[source]¶
Mixup a batch of categories.