HDMapBEVDefaults¶
- class standard_e2e.dataset_utils.modality_defaults.HDMapBEVDefaults(shape)[source]¶
Bases:
ModalityDefaultsSubstitute a missing
HD_MAP_BEVmodality with a zero tensor of the given(C, H, W)shape. Usefrom_adapter()so the empty shape stays in sync with the BEV adapter’s output.- property allowed_modalities: list[Modality]¶
Return a list of allowed modalities for this defaults handler.
- classmethod from_adapter(adapter)[source]¶
Build defaults whose empty shape matches
adapter.output_shape.- Return type:
- Parameters:
adapter (HDMapBEVAdapter)
- normalize(raw_value, modality)¶
Normalize a raw modality payload using the subclass implementation.
- Parameters:
- Returns:
The normalized payload produced by
_normalize.- Return type:
- Raises:
ValueError – If
modalityis not aModalityenum member or is not allowed for this defaults handler.