Skip to main content

impl_yolo_split_float

Function impl_yolo_split_float 

Source
pub fn impl_yolo_split_float<B: BBoxTypeTrait, BOX: Float + AsPrimitive<f32> + Send + Sync, SCORE: Float + AsPrimitive<f32> + Send + Sync>(
    boxes_tensor: ArrayView2<'_, BOX>,
    scores_tensor: ArrayView2<'_, SCORE>,
    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 float tensors.

Expected shapes of inputs:

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

§Panics

Panics if shapes don’t match the expected dimensions.