pub fn impl_yolo_split_quant<B: BBoxTypeTrait, BOX: PrimInt + AsPrimitive<f32> + Send + Sync, SCORE: PrimInt + AsPrimitive<f32> + Send + Sync>(
boxes: (ArrayView2<'_, BOX>, Quantization),
scores: (ArrayView2<'_, SCORE>, Quantization),
score_threshold: f32,
iou_threshold: f32,
nms: Option<Nms>,
output_boxes: &mut Vec<DetectBox>,
)where
f32: AsPrimitive<SCORE>,Expand description
Internal implementation of YOLO split detection decoding for quantized tensors.
Expected shapes of inputs:
- boxes: (4, num_boxes)
- scores: (num_classes, num_boxes)
§Panics
Panics if shapes don’t match the expected dimensions.