Expand description
Kernel that decodes raw detection head output into boxes/scores/classes. Fused dist2bbox decode Triton kernel for YOLO detection post-processing.
Converts raw LTRB distance predictions from a detection head into XYWH world-coordinate boxes, fusing the dist2bbox conversion and stride-scaling into a single kernel pass.
Layout:
boxes:[B, 4, A]— raw LTRB distancesanchor_x:[A]— anchor centre x per anchoranchor_y:[A]— anchor centre y per anchorstrides:[A]— stride scale per anchorout:[B, 4, A]— decoded XYWH boxes in world coordinates
Parallelism: one CTA per (batch, BLOCK_A-wide anchor tile).
Grid: B * cdiv(A, BLOCK_A) flat CTAs.
Structs§
- Detect
Decode Forward - Fused dist2bbox + stride-scale decode: LTRB distances → XYWH world coords.
- Detect
Decode Op - Graph-level representation of the detect_decode op.
- Detect
Decode Runtime Op - Runtime dispatch for the detect_decode kernel.
Functions§
- detect_
decode_ forward - Fused dist2bbox + stride-scale decode: LTRB distances → XYWH world coords.