Skip to main content

Module configs

Module configs 

Source
Expand description

The vocabulary types a model config is built from.

Per-role output descriptors (Detection, Boxes, Scores, Classes, Segmentation, Protos, MaskCoefficients, Mask), the axis names used to declare physical layout (DimName), quantization pairs (QuantTuple), and the enums that steer decoding: DecoderType, DecoderVersion, Nms, and the resolved ModelType.

Nms is worth a note: it has no None variant. Bypassing suppression is expressed as Option<Nms>::None on the decoder configuration, and Nms::Auto means “take the mode from the config document”, falling back to Nms::ClassAgnostic when the document is silent.

Structs§

Boxes
Classes
Detection
Mask
MaskCoefficients
Protos
QuantTuple
Scores
Segmentation

Enums§

DecoderType
DecoderVersion
Decoder version for Ultralytics models.
DimName
ModelType
Nms
NMS (Non-Maximum Suppression) mode for filtering overlapping detections.

Functions§

deserialize_dshape
Deserialize dshape from either array-of-tuples or array-of-single-key-dicts.