class documentation
class SingleStageConfig(CustomBaseModel):
Configuration for one model in a conversion pipeline.
Inputs and outputs are inferred from ONNX, OpenVINO IR, and TFLite models when omitted. PyTorch inputs are supported for YOLO models and use the configured yolo_input_shape.
| Method | get |
Returns the target configuration for the given target. |
| Class Variable | disable |
Undocumented |
| Class Variable | disable |
Undocumented |
| Class Variable | input |
Undocumented |
| Class Variable | intermediate |
Undocumented |
| Class Variable | keep |
Undocumented |
| Class Variable | output |
Undocumented |
| Class Variable | put |
Undocumented |
| Instance Variable | hailo |
Hailo-specific settings. |
| Instance Variable | input |
Weights file paired with an OpenVINO XML graph. |
| Instance Variable | input |
Local or remote path to the source model. |
| Instance Variable | inputs |
Input tensor definitions and preprocessing. |
| Instance Variable | outputs |
Output tensor definitions. |
| Instance Variable | rvc2 |
RVC2-specific settings. |
| Instance Variable | rvc3 |
RVC3-specific settings. |
| Instance Variable | rvc4 |
RVC4-specific settings. |
| Class Method | _download |
Resolve input model paths and normalize OpenVINO IR inputs. |
| Class Method | _validate |
Expand top-level config shortcuts into explicit tensor config. |
Inherited from CustomBaseModel:
| Class Variable | model |
Undocumented |
@model_validator( mode='before')
@classmethod
def _download_input_model(cls, value: @classmethod
dict[ str, Any]) -> dict[ str, Any]:
¶
Resolve input model paths and normalize OpenVINO IR inputs.
@model_validator( mode='before')
@classmethod
def _validate_model(cls, data: @classmethod
dict[ str, Any]) -> dict[ str, Any]:
¶
Expand top-level config shortcuts into explicit tensor config.
This fills in inferred metadata, default inputs and outputs, and propagates shared calibration and preprocessing settings down to per-input configuration.