Av2SensorDatasetProcessor¶
- class standard_e2e.caching.src_datasets.av2_sensor.Av2SensorDatasetProcessor(common_output_path, split, index_data_generator=None, adapters=None, context_aggregators=None)[source]¶
Bases:
SourceDatasetProcessorProcessor for the Argoverse 2 sensor dataset.
A “frame” is a single lidar sweep timestamp; ring-camera images are matched by nearest timestamp per camera, and 3D box annotations are filtered for that exact sweep timestamp (AV2 annotates one cuboid per sweep, not per camera frame). One log = one segment.
Per-log state (calibration, ego-pose table, full annotations table, static map) is read once and reused across every sweep of the log; the cache is keyed by
log_dirso workers that hop between logs only reload when they actually transition.- Parameters:
common_output_path (str)
split (str)
index_data_generator (IndexDataGenerator | None)
adapters (list[AbstractAdapter] | None)
context_aggregators (list[SegmentContextAggregator] | None)
- DATASET_NAME = 'av2_sensor'¶
- property context_aggregators¶
- needs_attr(attr)¶
Whether at least one registered adapter reads this
StandardFrameDatafield. Used by per-dataset processors to skip expensive modality builds (cameras, lidar, hd_map, detections, …) when no adapter would consume them.Truewhenattris in the consumed-attrs union, plus a hard-coded special case: the identifier / index fields are always treated as needed since they are required for the cache + index regardless of adapter chain.- Return type:
- Parameters:
attr (StandardFrameDataField)