A Parallel Implementation of Computing Mean Average Precision
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 8 of its 17 references that are in the map. First posted on arXiv 19 Jun 2022.
Builds on
8 of 17 references.
References · 8
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
- 2015SSD: Single Shot MultiBox Detectorcited by 3,125
- 2018YOLOv3: An Incremental Improvementcited by 2,652
- 2019CenterNet: Keypoint Triplets for Object Detectioncited by 654
- 2016End-to-end training of object class detectors for mean average precisioncited by 35
Built on by
Citing papers per year: 2024: 3; 2025: 1.
4 papers.
- 2024NBBOX: Noisy Bounding Box Improves Remote Sensing Object Detectioncited by 2
- 2024A comprehensive GeoAI review: Progress, Challenges and Outlookscited by 1
- 2024Investigating Long-term Training for Remote Sensing Object Detectioncited by 0
- 2025AI and Vision based Autonomous Navigation of Nano-Drones in Partially-Known Environmentscited by 0
- 2025AI and Vision based Autonomous Navigation of Nano-Drones in Partially-Known Environments8 May 2025
- 2024A comprehensive GeoAI review: Progress, Challenges and Outlooks16 Dec 2024
- 2024NBBOX: Noisy Bounding Box Improves Remote Sensing Object Detection14 Sep 2024
- 2024Investigating Long-term Training for Remote Sensing Object Detection21 Jul 2024