MathGaron / mean_average_precision

Small and simple python/numpy utility to compute mean average precision (mAP) on detection task.
MIT License
117 stars 45 forks source link

How exactly are multiple detections of same object counted? #19

Closed AmitaiPerlstein closed 6 years ago

AmitaiPerlstein commented 6 years ago

ReadME says:

**True positive (TP): Gt x predicted as x

False positive (FP): Gt x classified as x more than once**

Say I have two detections of same object. Will the more confident one be treated as TP while the less confident one as FP (which makes sense)? Or will all detections of this object be treated as FP (which is what I understand from the ReadME)?

MathGaron commented 6 years ago

Hey @AmitaiPerlstein ,

The more confident one will be treated as TP, and other detections will be treated as FP (as seen on the figure) The ReadMe is indeed unclear, I will update it thanks! Just ask if you have more questions!