sp500_yolo_params Struct Reference

sp500_yolo_params Struct Reference#

Mobilint REGULUS: sp500_yolo_params Struct Reference
Mobilint REGULUS v4.1
SP500 DSP API
sp500_yolo_params Struct Reference

Model shape and thresholds. More...

#include <sp500/yolo.h>

Data Fields

int32_t img_w
int32_t img_h
int32_t num_classes
int32_t max_detections
float conf_threshold
float iou_threshold
int32_t anchors_per_level
const float * anchors
uint32_t anchors_count
uint32_t reserved0
sp500_buffer proto
int32_t mask_coeffs
int32_t proto_h
int32_t proto_w
float mask_threshold
uint32_t reserved [6]

Detailed Description

Model shape and thresholds.

Fill this with sp500_yolo_params_init(). The defaults fit a 640x640, 80-class detection model, so a plain detector needs no field set at all. img_w, img_h, num_classes and max_detections must be in 1..65535.

Definition at line 173 of file yolo.h.

Field Documentation

◆ img_w

int32_t sp500_yolo_params::img_w

network input width in pixels; default 640

Definition at line 175 of file yolo.h.

◆ img_h

int32_t sp500_yolo_params::img_h

network input height in pixels; default 640

Definition at line 176 of file yolo.h.

◆ num_classes

int32_t sp500_yolo_params::num_classes

class count; default 80. Pose heads use 1

Definition at line 177 of file yolo.h.

◆ max_detections

int32_t sp500_yolo_params::max_detections

upper bound on returned records; default 100. Also sizes output.records

Definition at line 178 of file yolo.h.

◆ conf_threshold

float sp500_yolo_params::conf_threshold

scores below this are discarded; default 0.25

Definition at line 180 of file yolo.h.

◆ iou_threshold

float sp500_yolo_params::iou_threshold

NMS overlap threshold; default 0.7. Ignored by the top-k families (NMSFREE, DFLFREE)

Definition at line 181 of file yolo.h.

◆ anchors_per_level

int32_t sp500_yolo_params::anchors_per_level

anchor boxes per feature level, 1..3; default 3

Definition at line 185 of file yolo.h.

◆ anchors

const float* sp500_yolo_params::anchors

anchors_per_level * 3 (w,h) pixel pairs, level-major for strides 8, 16 and 32. NULL selects the COCO v5 defaults, which requires anchors_per_level == 3. Read only during the call. Default NULL

Definition at line 187 of file yolo.h.

◆ anchors_count

uint32_t sp500_yolo_params::anchors_count

floats in anchors; must be anchors_per_level * 6 when set, else 0

Definition at line 192 of file yolo.h.

◆ reserved0

uint32_t sp500_yolo_params::reserved0

must be zero

Definition at line 194 of file yolo.h.

◆ proto

sp500_buffer sp500_yolo_params::proto

prototype masks, [proto_h][proto_w][mask_coeffs] float

Definition at line 197 of file yolo.h.

◆ mask_coeffs

int32_t sp500_yolo_params::mask_coeffs

mask coefficients per detection, typically 32

Definition at line 199 of file yolo.h.

◆ proto_h

int32_t sp500_yolo_params::proto_h

prototype height, typically img_h / 4

Definition at line 200 of file yolo.h.

◆ proto_w

int32_t sp500_yolo_params::proto_w

prototype width, typically img_w / 4

Definition at line 201 of file yolo.h.

◆ mask_threshold

float sp500_yolo_params::mask_threshold

a mask pixel is set when its logit exceeds this; default 0

Definition at line 202 of file yolo.h.

◆ reserved

uint32_t sp500_yolo_params::reserved[6]

must be zero

Definition at line 205 of file yolo.h.


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