MultipleFramesImageAugmentationΒΆ

class standard_e2e.dataset_utils.augmentation.MultipleFramesImageAugmentation(regime, train_transform=None, val_transform=None, *args, **kwargs)[source]ΒΆ

Bases: FrameAugmentation

Apply an Albumentations pipeline to each camera modality in given frames.

Parameters:
  • regime (str)

  • train_transform (Compose | None)

  • val_transform (Compose | None)

ALLOWED_REGIMES = ['train', 'val', 'test']ΒΆ
augment(frames, regime)ΒΆ

Apply augmentation to the given frame data.

Parameters:
Returns:

The augmented frame data.

Return type:

dict[str, TransformedFrameData]