Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ML Metrics Detection APmAPAR #382

Open
junxnone opened this issue Feb 16, 2023 · 0 comments
Open

ML Metrics Detection APmAPAR #382

junxnone opened this issue Feb 16, 2023 · 0 comments

Comments

@junxnone
Copy link
Owner

junxnone commented Feb 16, 2023

AP & mAP & AR

  • mAP@[0.5:.05:.95] - 当前比较流行的衡量标准

AP

  • PR 曲线下的面积
  • AP 一般指单个类别

计算步骤

GT image
Predict Dog image

计算 Precision & Recall

  • 根据 confidence 排序

image

Plot PRCurve

  • 每个 Recall LevelPrecision 值 使用右侧最大值 使其单调?

image
mean-average-precision-map-calculation-11-point-interpolation-pascal-voc-manual

11 Point Interpolation Method
  • 11 Recall Point: N=11 [0, 0.1, 0.2, ..., 0,9, 1.0]

image

  • $\huge AP = \frac{1}{11}\times \int_{1}^{11}Precisions$
  • $\huge =\frac{1}{11}\times (1+4\times 0.71+6\times 0)$
  • $\huge =0.349$

The intention in interpolating the precision/recall curve in this way is to reduce the impact of the “wiggles” in the precision/recall curve, caused by small variations in the ranking of examples.

Interpolating all points
  • AUC(Area Under Curve) on PR Curve

$\huge \sum_{0}^{n}(r_{n+1} - r_n)p_{interp}(r_{n+1})\newline p_{interp}(r_{n+1})=\underset{\bar{r}:\bar(r)\geq r_{n+1}}{max}p(\tilde{r})$

101 Point Interpolation AP
  • N=101: MSCOCO AP [0:.01:1]

mAP

  • mAP - mAP 一般指所有类别的平均
  • $mAP = \frac{\int_{1}^{n} AP}{n}$

  • [email protected] - 当 IoU 大于 0.50 时认为正确识别的 mAP
  • [email protected] - 当 IoU 大于 0.75 时认为正确识别时的 mAP
  • mAP@[.5:.95] - IoU [0.5, 0.95] 范围内以步长 0.05 间隔计算 mAP

COCO 中称 mAP 为 AP
We make no distinction between AP and mAP (and likewise AR and mAR) and assume the difference is clear from context.

AR

  • AR - 在每个图像中检测到固定数量的最大召回(recall),在类别和IoU上平均
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant