Skip to main content

decode_yolo_split_det_float

Function decode_yolo_split_det_float 

Source
pub fn decode_yolo_split_det_float<T>(
    boxes: ArrayView2<'_, T>,
    scores: ArrayView2<'_, T>,
    score_threshold: f32,
    iou_threshold: f32,
    nms: Option<Nms>,
    output_boxes: &mut Vec<DetectBox>,
)
where T: Float + AsPrimitive<f32> + Send + Sync + 'static, f32: AsPrimitive<T>,
Expand description

Decodes YOLO split detection outputs from float tensors into detection boxes.

Boxes are expected to be in XYWH format.

Expected shapes of inputs:

  • boxes: (4, num_boxes)
  • scores: (num_classes, num_boxes)

§Panics

Panics if shapes don’t match the expected dimensions.