﻿# FiftyOne detection evaluation: class, geometry and crowd policy define a match

Make FiftyOne detection evaluations comparable by recording matching classes, geometry, confidence ordering, crowd handling and the evaluated dataset view.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-fiftyone-detection-match-configuration/
Language: en

## Define which mistakes the evaluation measures

A detector locates a bus accurately but labels it as a truck. Should this count as a successful localization or a failed detection? The [FiftyOne COCO evaluation reference](https://docs.voxel51.com/api/fiftyone.utils.eval.coco.html) exposes `classwise` matching to distinguish these questions. Record the choice explicitly. Comparing a class-agnostic experiment with a class-aware baseline can create apparent progress without improving category recognition at all.

## Preserve the geometry used for overlap

A bounding box can overlap another box well while its segmentation mask misses the actual object. The evaluation configuration distinguishes mask-based overlap and box-based treatment of polylines. Check the representation supplied by both prediction and ground-truth fields before interpreting IoU. In a damaged-parts inspection workflow, box localization and pixel coverage answer different operational questions; a shared object category does not make their metrics interchangeable.

## Inspect competition and crowd behavior

COCO-style matching processes predictions by descending confidence. Crowd-marked ground truth can receive multiple true-positive matches under the documented policy. Consequently, a duplicate prediction near an ordinary object and several detections inside a crowd region need different interpretation. Preserve the crowd annotation and score field in any conversion. The [detection evaluation tutorial](https://docs.voxel51.com/tutorials/evaluate_detections.html) shows how retained evaluation fields support inspection of particular errors rather than only an aggregate table.

## Name the evaluated population

A [FiftyOne dataset view](https://docs.voxel51.com/user_guide/using_views.html) selects the samples and labels presented to an operation. Record its filters and source revision with the evaluation configuration. Removing difficult images, hiding low-confidence detections or selecting a category subset changes the population being scored. For reproducible comparisons, preserve the selected sample identities and label fields instead of relying on a view name that another person cannot reconstruct from the release.

## Separate an operating point from a sweep

A matching threshold and a confidence filter describe a particular inspection setting. A precision-recall or IoU sweep involves additional configuration and should be reported as such. Keep the evaluation key, settings and representative false positives and false negatives. The guides on [COCO identities](/journal/data-guide-coco-instance-caption-identities/) and [label completeness](/journal/data-guide-openimages-label-completeness/) explain why an apparently unmatched prediction can also reveal a data-conversion error or missing reference annotation.
