奇牛C++从入门到精通
信度得分和IoU均用作确定检测是真阳性还是假阳性的标准。下面的伪代码显示了如何:
for each detection that has a confidence score > threshold:
among the ground-truths, choose one that belongs to the same class and has the highest IoU with the detection if no ground-truth can be chosen or IoU < threshold (e.g., 0.5):
the detection is a false positive else:
the detection is a true positive