FrameLoader¶
- class standard_e2e.dataset_utils.frame_loader.FrameLoader(frame_name, required_modalities, frame_selector, processed_data_path=None)[source]¶
Bases:
objectLoads individual frames from processed data with selection logic.
- Parameters:
frame_name (str)
frame_selector (FrameSelector)
processed_data_path (str | None)
- load_frame(current_frame_idx, index_data, modality_defaults=None)[source]¶
Load and materialize a frame selected relative to
current_frame_idx.Uses the configured
FrameSelectorto map the requested index to the required frame, loads it from disk, attaches modality defaults, and computestimestamp_diffvs. the current frame.Returns a mapping of
frame_name -> TransformedFrameDatafor easy merging across multiple loaders.- Return type:
- Parameters:
current_frame_idx (int)
index_data (DataFrame)
modality_defaults (dict[Modality, ModalityDefaults] | None)