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

本文介绍了一个用于评估神经网络目标检测性能的代码,重点在于计算mAP(mean Average Precision)。高mAP值表示更好的检测效果。首先,按得分排序网络输出并结合真实值计算每个类别的AP,然后取所有AP的平均值得到mAP。该项目还涵盖了AP、Recall、IoU等指标,依赖matplotlib和opencv库,提供了全面的评价功能。
摘要由CSDN通过智能技术生成

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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值