Skip to main content

postprocess_boxes_multilabel_index_quant

Function postprocess_boxes_multilabel_index_quant 

Source
pub fn postprocess_boxes_multilabel_index_quant<B: BBoxTypeTrait, Boxes: PrimInt + AsPrimitive<f32> + Send + Sync, Scores: PrimInt + AsPrimitive<f32> + Send + Sync>(
    threshold: Scores,
    boxes: ArrayView2<'_, Boxes>,
    scores: ArrayView2<'_, Scores>,
    quant_boxes: Quantization,
) -> DecoderResult<Vec<(DetectBoxQuantized<Scores>, usize)>>
Expand description

Multi-label variant of [postprocess_boxes_index_quant]: one entry per class at or above threshold, sharing the anchor’s bbox and index.

Intended for validation decode; deployment uses the argmax variant.

§Errors

DecoderError::InvalidShape unless boxes are [N, 4] and scores [N, C].