NavsimDatasetProcessor¶
- class standard_e2e.caching.src_datasets.navsim.NavsimDatasetProcessor(common_output_path, split, index_data_generator=None, adapters=None, context_aggregators=None, maps_root_path=None)[source]¶
Bases:
SourceDatasetProcessorProcessor for NAVSIM (OpenScene-v1.1 trainval).
A “frame” is one ego timestamp inside a scene pickle. Per-log state (the entire pickle) is loaded once and reused for every frame in that log; the cache key is the pickle path, so workers that hop between logs only reload at log boundaries.
HD-map handling: nuPlan
map.gpkgfiles for the 4 OpenScene cities are loaded lazily viaget_maps_apiand cached permap_locationstring (so each worker holds at most 4NuPlanMapinstances). The maps root is resolved with the same precedence NAVSIM users expect:explicit
maps_root_pathconstructor arg;NUPLAN_MAPS_ROOTenvironment variable (NAVSIM’s own convention, documented at navsim/docs/install.md);<input_path>/mapsderived from the converter’sinput_pathat frame-prep time (matches OpenScene-v1.1’s on-disk layout).
If none of the three resolves to an existing directory, HD-map extraction is skipped and a warning is logged once.
- Parameters:
common_output_path (str)
split (str)
index_data_generator (IndexDataGenerator | None)
adapters (list[AbstractAdapter] | None)
context_aggregators (list[SegmentContextAggregator] | None)
maps_root_path (Optional[str])
- DATASET_NAME = 'navsim'¶
- 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)