I am running some evaluation metrics using the YOLOv5 object detection algorithm, and wish to calculate my true positives and false positives. For instance, the evaluation metric outputs are as follows:
Class Images Labels Prec Recall mAP@.5 mAP@.5:.95:
all 100 36 0.444 0.702 0.481 0.223
Class 1 50 29 0.588 0.689 0.668 0.333
Class 2 50 7 0.301 0.714 0.293 0.113
Looking at this source, I found that you could calculate the true positives and false positives with the following equations:
#Computed for Class 1
TP = Recall * Labels = 34.45 ≈ 34
FP = (TP / Precision) - TP = 23.82 ≈ 24
I am new to evaluation metrics, so at first glance, I'm thinking that the false positive number is fairly high. Is this the correct formula to compute the true positives and false positives? I'm just looking for some verification and some explanation as to why this works, if it does.