Model evaluation: see what one mAP hides
For computer vision and ML engineers who ship models to devices, where quantization, input size and model size trade off against accuracy.
One mAP number hides where a model got worse. Quantize a detector to int8 and it gets several times smaller, while the average moves less than what you lost on one kind of scene, or on the objects far away. QA-Board compares every candidate with the model you ship, slice by slice, class by class, down to the images where it went wrong.
What it changes for your team
- The truth per slice, not an average. Every metric for every slice of your test set, against the release model, green when it got better and red when it got worse.
- From a number to the images in one click. Detections drawn on the images, precision-recall curves over the reference's, and the report your own code writes, in each run's card.
- Tuning without notebooks. Start sweeps or an automated tuning (
qa optimize, with Optuna) from the browser; the analysis says which settings matter and what to try next. - Releases the team agrees on. Save a model as a milestone and compare every candidate with it;
qa gate(experimental) fails CI when a model regresses. - Next to your training stack. Each run links to the model it evaluated: its model card, its training run. See deep learning.
See it in action
The pictures come from a demo detector, at the moment its first int8 model is compared with the fp32 release.
The average hid a 35% drop indoors
The model is 72% smaller on every slice. mAP and AP on small objects fall on the indoor slice.


The curves say which class
Precision-recall curves per class, the int8 model's over the fp32 release's, drawn dashed.


The images say which objects
Each run draws its detections; the ground truth it missed shows in red.


Your report, in the run's card
Your code writes any HTML: here AP per class and object size, and the images where the most objects were missed.

Win it back with tuning
qa optimize searches the quantization and post-processing settings. Tuning Analysis shows how the search went,
the best parameters, and whether more evaluations would help.


Ship it as the next reference
The tuned model's commit is saved as a milestone, with a name and notes, shared with the team. The next changes are compared with it.


How it's set up
:image in a path gives a slider over the slice's images, synced across runs. The plots set their traces' colors, so
with side_by_side: false the web app draws the reference dashed and faded on the same axes.
inputs:
# relative to this folder: each slice of the test set is a folder with its images and labels.json
database:
linux: inputs
globs: labels.json
use_parent_folder: true
batches: qa/batches.yaml
outputs:
metrics: qa/metrics.yaml
# Run cards wide enough for the photos (new and reference about 415 px wide each) and the plots (840 px by default)
style:
width: 840px
visualizations:
- name: Detections
path: "images/:image.jpg" # 1..N, a synced slider over the slice's images
- name: Precision-recall
path: pr.plotly.json # a curve per class at IoU 0.5: the reference's are dashed
side_by_side: false
- name: Recall by object size
path: size_recall.plotly.json
side_by_side: false
- name: Report
path: report.html # per-class AP, AP by size, latency, the images with the most missed objects
- name: Confusions
path: confusion.plotly.json # labeled class x detected class, and the background
default_hidden: true
- name: Detections (JSON)
path: detections.json
default_hidden: true
# Experimental: may change without notice
gate:
reference: main
labels: [ci]
rules:
- {metric: map, min: 0.15} # median over the batch's runs
- {metric: ap_small, max_regression: 10%}
- {metric: map, per_test_max_regression: 25%} # no slice and variant much worse than in the reference
max_failed_runs: 0
The variants are configurations (fp32, int8, size-320...), so each run shows them as tags. To compare int8
with fp32 on the same commit, select the commit as the reference too (Also show in the bottom bar), then filter each
bar's runs by configuration. See choose another reference.
Try it on the demo
examples/detection-eval runs an
off-the-shelf detector (torchvision's SSDlite) on CPU with ONNX Runtime, in fp32 and int8, at several input sizes, on
four slices of images: indoor, outdoor, warehouse, and small objects. Each run measures COCO-style AP, AP per object
size and per class, model size and latency.
The story the pictures tell, and how the demo is built
- The first int8 model is 3.5 times smaller, which is what the robot's accelerator needs. It loses 35% of its mAP on the indoor slice, and some of the small objects.
- Per-channel weights and percentile calibration bring the indoor slice back.
qa optimizesearches the quantization and post-processing settings. With what it finds, the int8 model finds small objects as well as the last fp32 release.- The tuned model ships as a milestone, the next reference.
The photos are public domain, and no detection dataset is: their labels come from a much larger model (Faster R-CNN), not from people. The int8 model is scored with its reference arithmetic (quantization in float, as its graph says) rather than with ONNX Runtime's int8 kernels, which round differently from one CPU to another, so its metrics don't move from one CI runner to the next.
You need Python 3.11 or later and uv. The first run downloads the photos (about 20 MB) and the model's weights, and exports the model to ONNX with PyTorch for CPU, which uv installs in its cache (about 200 MB).
cd examples/detection-eval
pip install qaboard -r requirements.txt
qa --config int8 --config size-320 run --input slices/small-objects
qa batch ci # 4 slices, fp32 and int8: about 30 s
qa batch ci shows the results in the web app. With the
quickstart's server, first
export QABOARD_URL=http://localhost:5151 QA_STORAGE=/tmp/qaboard. See the example's
README for the other batches and the
tuning.
Where next
- Project integrationDeep learning and MLOpsEvaluate models next to the training tracker you already use, and gate releases in CI.
- User guideReading metricsThe Summary, the Metrics Table and the Metrics Diff, and what their colors mean.
- User guideAutomated tuningFind the best parameters, then read what the search found.