class documentation

class Config(LuxonisConfig):

View In Hierarchy

Root configuration for a single- or multi-stage model.

A mapping without stages is wrapped as a single stage automatically. Shared keys placed beside stages are copied into each stage unless the stage supplies its own value.

Method get_stage_config Return a stage config, inferring it for single-stage models.
Instance Variable name Pipeline name. Derived from stage names when omitted.
Instance Variable rich_logging Whether conversion tools should use rich terminal logs.
Instance Variable stages Stage configurations keyed by stage name.
Class Method _validate_name Undocumented
Class Method _validate_stages Undocumented
Method _validate_single_stage_name Changes the default 'default_stage' name to the name of the input model.
def get_stage_config(self, stage: str | None) -> SingleStageConfig:

Return a stage config, inferring it for single-stage models.

name: str =

Pipeline name. Derived from stage names when omitted.

rich_logging: bool =

Whether conversion tools should use rich terminal logs.

stages: Annotated[dict[str, SingleStageConfig], Field(min_length=1)] =

Stage configurations keyed by stage name.

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

Undocumented

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

Undocumented

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

Changes the default 'default_stage' name to the name of the input model.