ModalityDefaultsΒΆ
- class standard_e2e.dataset_utils.modality_defaults.ModalityDefaults[source]ΒΆ
Bases:
ABCBase class for modality-specific default value handling on the fly.
- abstract property allowed_modalities: list[Modality]ΒΆ
Return a list of allowed modalities for this defaults handler.
- final normalize(raw_value, modality)[source]ΒΆ
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.