class documentation

class InputConfig(OutputConfig):

View In Hierarchy

Undocumented

Class Variable encoding Undocumented
Class Variable frozen_value Undocumented
Class Variable mean_values Undocumented
Class Variable scale_values Undocumented
Property encoding_mismatch Undocumented
Property is_color_input Undocumented
Class Method _validate_encoding Undocumented
Static Method _parse_mean_values Parses the mean_values from the config.
Static Method _parse_scale_values Parses the scale_values from the config.
Static Method _parse_values Resolves named values from the config.
Method _validate_dynamic_batch_size Undocumented
Method _validate_grayscale_inputs Undocumented

Inherited from OutputConfig:

Method validate_layout Undocumented
Class Variable layout Undocumented
Class Variable name Undocumented
Class Variable shape Undocumented
Class Method _make_default_layout Undocumented

Inherited from CustomBaseModel (via OutputConfig):

Class Variable model_config Undocumented
encoding: EncodingConfig =

Undocumented

frozen_value: Any | None =

Undocumented

mean_values: Annotated[list[float], Field(min_length=1)] | None =

Undocumented

scale_values: Annotated[list[float], Field(min_length=1)] | None =

Undocumented

@property
encoding_mismatch: bool =

Undocumented

@property
is_color_input: bool =

Undocumented

@model_validator(mode='before')
@classmethod
def _validate_encoding(cls, data: dict[str, Any]) -> dict[str, Any]:

Undocumented

@field_validator('mean_values', mode='before')
@staticmethod
def _parse_mean_values(value: Any) -> Any:

Parses the mean_values from the config.

@field_validator('scale_values', mode='before')
@staticmethod
def _parse_scale_values(value: Any) -> Any:

Parses the scale_values from the config.

@staticmethod
def _parse_values(values_type: Literal['mean', 'scale'], value: Any) -> Any:

Resolves named values from the config.

@model_validator(mode='after')
def _validate_dynamic_batch_size(self) -> Self:

Undocumented

@model_validator(mode='after')
def _validate_grayscale_inputs(self) -> Self:

Undocumented