MCPcopy Create free account
hub / github.com/Tencent/ncnn / nms

Function nms

python/ncnn/utils/functional.py:79–109  ·  view source on GitHub ↗

Args: box_scores (N, 5): boxes in corner-form(x1, y1, x2, y2) and probabilities. iou_threshold: intersection over union threshold. top_k: keep top_k results. If k <= 0, keep all the results. candidate_size: only consider the candidates with the highest scores.

(boxes, scores, iou_threshold, top_k=-1, candidate_size=200)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

non_max_suppressionMethod · 0.85
__call__Method · 0.85
detectMethod · 0.85
non_max_suppressionMethod · 0.85

Calls 2

iou_ofFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected