平均精度计算的并行实现
A Parallel Implementation of Computing Mean Average Precision
摘要:
平均精度(mAP)已被广泛用于评估对象检测器的质量,但仍然缺乏一个有效的实现。当前的实现只能通过顺序地循环该类的每个检测来一次计数一个类的真阳性(TP)和假阳性(FP)。这些方法不仅效率低下,而且在训练期间报告验证mAP也不方便。我们提出了一个并行化的替代方案,可以处理小批量的检测到的边界框(DTBB的)和地面实况边界框(GTBB的)的推理去,这样的mAP可以立即计算推理完成后。顺序实现中的循环和控制语句被广播、掩码和索引的广泛使用所取代。所有涉及的运算符都由流行的机器学习框架支持,如PyTorch和TensorFlow。因此,我们的实现速度要快得多,可以很容易地适应典型的训练例程。我们实现的PyTorch版本可以在https://github.com/bwangca/fast-map上获得。
英文摘要:
Mean Average Precision (mAP) has been widely used for evaluating the quality of object detectors, but an efficient implementation is still absent. Current implementations can only count true positives (TP's) and false positives (FP's) for one class at a time by looping through every detection of that class sequentially. Not only are these approaches inefficient, but they are also inconvenient for reporting validation mAP during training. We propose a parallelized alternative that can process mini-batches of detected bounding boxes (DTBB's) and ground truth bounding boxes (GTBB's) as inference goes such that mAP can be instantly calculated after inference is finished. Loops and control statements in sequential implementations are replaced with extensive uses of broadcasting, masking, and indexing. All operators involved are supported by popular machine learning frameworks such as PyTorch and TensorFlow. As a result, our implementation is much faster and can easily fit into typical training routines. A PyTorch version of our implementation is available at https://github.com/bwangca/fast-map.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。