Practical overview
When it fits
Use Map when you already have object-detection predictions and labeled ground-truth files and want to evaluate them with its documented mAP procedure.
Who it is for
- Computer-vision practitioners evaluating object-detection model outputs.
- Teams comparing model performance against a consistent labeled dataset.
Documented uses
- Calculate per-class Average Precision and an overall mean Average Precision score.
- Compare confidence-ranked detections with ground-truth bounding boxes.
- Track mAP changes between model versions using consistent evaluation inputs.
Requirements & limits
The public GitHub repository identifies the project as open source under the Apache-2.0 license.
- Matching uses the same class label and an IoU threshold of at least 0.5.
- The final mAP is the mean of class-level AP scores for classes in the ground truth.
- Python is required; Matplotlib for plots and OpenCV for animation are optional.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Calculate mAP from prepared detection files
Run the evaluator on per-image ground-truth and detection-result files in its required format.
Before you start
- Python
- A local clone of the Map repository
- One ground-truth text file and one detection-results text file per image, with matching file names
- Ground-truth rows formatted as with optional difficult marker
- Detection rows formatted as
Steps
Clone the repository from https://github.com/Cartucho/mAP.
Place ground-truth files in input/ground-truth/ and detection-results files in input/detection-results/.
Run python main.py.
Expected outcome
The program calculates Average Precision per ground-truth class and reports a mean Average Precision score.
Guide limitations
- A match requires the same class label and IoU of at least 0.5; each ground-truth object can count as a true positive only once.
- The score reflects the supplied ground truth and class set.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- Cartucho/mAP · Official homepage title · retained in its source language

