TrajectoryResamplingΒΆ

class standard_e2e.dataset_utils.augmentation.TrajectoryResampling(history_target_timestamps=None, future_target_timestamps=None, target_frame_names=None)[source]ΒΆ

Bases: FrameAugmentation

Resample past/future/preference trajectories onto target timestamps.

Parameters:
  • history_target_timestamps (list[float] | None)

  • future_target_timestamps (list[float] | None)

  • target_frame_names (list[str] | 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]