Skip to main content

decode

Function decode 

Source
pub fn decode(
    output: &[f32],
    config: &YoloxConfig,
    scale: f64,
) -> Result<Vec<Detection>, YoloxOutputError>
Expand description

Turn a raw output (anchors × (5 + C) values, the batch dimension dropped) into detections in image pixels, sorted by score, highest first.