PanoImageAdapter¶

class standard_e2e.caching.adapters.PanoImageAdapter(top_cut_frac=0.0, max_size=640, cameras_order=None)[source]¶

Bases: AbstractAdapter

Image adapter for Waymo E2E dataset.

Parameters:
DEFAULT_CAMERAS_ORDER = [CameraDirection.FRONT_LEFT, CameraDirection.FRONT, CameraDirection.FRONT_RIGHT]¶
property consumes_attrs: set[StandardFrameDataField]¶

StandardFrameData fields this adapter reads.

Used by source-dataset processors to skip building modalities that no adapter consumes (lazy-load). For example, an HDMapBEVAdapter returns {StandardFrameDataField.HD_MAP}; a processor whose adapter chain registers no HD-map adapter can then skip the (often expensive) _build_hd_map step entirely.

Returning an empty set means “this adapter does not gate any modality build” — appropriate for adapters that read optional aux_data keys (e.g. preference trajectories) which the processor populates unconditionally and cheaply.

property metadata: dict[str, Any]¶

Per-frame metadata this adapter contributes to aux_data.

Override in subclasses to surface adapter-side configuration that a downstream consumer needs to interpret the modality output (e.g. the ordered channel list of a BEV rasterizer). The default is an empty dict; the source dataset processor merges these into each frame’s aux_data so the .npz remains self-describing.

property name: str¶

Name of the adapter. Must be implemented by subclasses.

transform(standard_frame_data)¶

Validate input frame and dispatch to subclass implementation.

Return type:

dict[Modality, Any]

Parameters:

standard_frame_data (StandardFrameData)