目标检测中计算mAP开发说明书

mAP (mean Average Precision)

https://github.com/Cartucho/mAP
This code will evaluate the performance of your neural net for object recognition.
In practice, a higher mAP value indicates a better performance of your neural net, given your ground-truth and set of classes.

First, we calculate the Average Precision (AP), for each of the classes present in the ground-truth. Finally, we calculate the mAP (mean Average Precision) value.

1. Calculate AP

对于每个类来说, 将网络的输出按照score(confidence)进行降序, 并结合ground truth进行计算. --> 计算出precision/recall曲线. --> AP是曲线的面积.

2. Calculate mAP

计算所有AP的平均值.

3. 需要matplotlib. opencv库.

其计算过程如下:

1) 建立ground truth files. 将这个文件移至./ground-truth.
其中txt文件名和image文件名是一致的. txt文件每一行的格式为:
<class
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值