Skip to main content

PicoDetPreprocessConfig

Type Alias PicoDetPreprocessConfig 

Source
pub type PicoDetPreprocessConfig = ScaleAwareDetectorPreprocessConfig;
Expand description

Preprocessing configuration for PicoDet model.

This is a type alias for the generic configuration with PicoDet defaults.

Aliased Type§

pub struct PicoDetPreprocessConfig {
    pub image_shape: (u32, u32),
    pub keep_ratio: bool,
    pub limit_side_len: u32,
    pub scale: f32,
    pub mean: Vec<f32>,
    pub std: Vec<f32>,
    pub resize_filter: FilterType,
    pub color_order: ColorOrder,
}

Fields§

§image_shape: (u32, u32)

Target image shape (height, width)

§keep_ratio: bool

Whether to keep aspect ratio when resizing

§limit_side_len: u32

Limit side length

§scale: f32

Normalization scale factor

§mean: Vec<f32>

Normalization mean values (RGB)

§std: Vec<f32>

Normalization std values (RGB)

§resize_filter: FilterType

Interpolation filter for resizing

§color_order: ColorOrder

Expected output color order for the model