qbcompiler.configs.models.PreprocessingConfig Class Reference

qbcompiler.configs.models.PreprocessingConfig Class Reference#

Mobilint SDK qb Compiler: qbcompiler.configs.models.PreprocessingConfig Class Reference
Mobilint SDK qb Compiler v1.4
MCS002-KR
qbcompiler.configs.models.PreprocessingConfig Class Reference

Configuration for input preprocessing pipeline. More...

Inheritance diagram for qbcompiler.configs.models.PreprocessingConfig:

Public Member Functions

"PreprocessingConfig" with_updates (self, **kwargs)
 Return a copy with updated fields.

Static Public Attributes

 model_config
bool apply
bool auto_convert_format
Any pipeline
Any input_configs

Detailed Description

Configuration for input preprocessing pipeline.

Defines preprocessing operations to be applied to model inputs, including operations like resize, normalize, color conversion, etc. Each pipeline entry is {"op": <name>, ...op keys}; unknown keys are rejected. resize/letterbox take "backend": "torch" (default, float interpolate), "pil" (Pillow, bit-exact, bilinear/bicubic) or "opencv" (cv2 INTER_LINEAR, bit-exact), so calibration sees the same pixels as an evaluator built on that library. letterbox "alignType" is 0 (default: center, padding split around the image) or 1 (top-left: padding only at the bottom and right, as YOLOX and DAMO-YOLO use). letterbox "roundType" is 0 (default: each backend's rounding of the resized size) or 1 (floor: upstream YOLOX and DAMO-YOLO's int(w * r)); a fuseIntoFirstLayer letterbox ignores it, since its exact odd decimation has no fraction to round.

Parameters
applybool. If true, apply preprocessing pipeline
auto_convert_formatbool. If true, automatically convert input format
pipelineList[Dict[str, Any]]. List of preprocessing operations to apply globally
input_configsDict[str, Any]. Per-input preprocessing configurations. Keys are input names

Definition at line 47 of file models.py.

Member Function Documentation

◆ with_updates()

"PreprocessingConfig" qbcompiler.configs.models.PreprocessingConfig.with_updates ( self,
** kwargs )

Return a copy with updated fields.

Definition at line 91 of file models.py.

Member Data Documentation

◆ model_config

qbcompiler.configs.models.PreprocessingConfig.model_config
static
Initial value:
= ConfigDict(
populate_by_name=True,
extra="forbid",
)

Definition at line 69 of file models.py.

◆ apply

bool qbcompiler.configs.models.PreprocessingConfig.apply
static
Initial value:
= Field(
default=False, description="If true, apply preprocessing pipeline"
)

Definition at line 74 of file models.py.

◆ auto_convert_format

bool qbcompiler.configs.models.PreprocessingConfig.auto_convert_format
static
Initial value:
= Field(
default=False,
alias="autoConvertFormat",
description="If true, automatically convert input format",
)

Definition at line 77 of file models.py.

◆ pipeline

Any qbcompiler.configs.models.PreprocessingConfig.pipeline
static
Initial value:
= Field(
default=[], description="List of preprocessing operations to apply globally"
)

Definition at line 82 of file models.py.

◆ input_configs

Any qbcompiler.configs.models.PreprocessingConfig.input_configs
static
Initial value:
= Field(
default={},
alias="inputConfigs",
description="Per-input preprocessing configurations. Keys are input names",
)

Definition at line 85 of file models.py.


The documentation for this class was generated from the following file: