Skip to main content

IoU Distribution

Available

object_detection.iou_distribution

How tightly the model's boxes overlap the real objects, measured by mean intersection-over-union.

Contract​

FieldValue
version1.0.0
metric_typepointwise
scorer_contractper_row
directionhigher_is_better
entrypointaip_metrics_object_detection.answered.iou_distribution
target_kindNone

Required columns​

  • image_id
  • label
  • predictions

Accepted schemas​

[
{
"name": "gdi_image_v1",
"task_types": [
"detection"
]
}
]

Methodology​

  1. Deterministic - no LLM. Uses Resaro's cv-eval library (custom Jaccard IoU).
  2. For each predicted box, compute its maximum IoU against all ground-truth boxes.
  3. Average those best-overlap values across the predictions (0.0 when there are no boxes).

Score semantics​

Scores range 0-1, the average best overlap (IoU) of each prediction with the ground-truth boxes. A high score means boxes are tightly localised; a low score means loose or misplaced boxes. Higher is better.

Worked example​

Two predictions with best overlaps of 0.8 and 0.6 -> mean IoU = (0.8 + 0.6)/2 = 0.70.

Configuration schema​

{
"properties": {
"inverted": {
"default": false,
"title": "Inverted",
"type": "boolean",
"x-aip-param-role": "scoring_metadata"
},
"label_map": {
"anyOf": [
{
"additionalProperties": {
"type": "integer"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Label Map"
},
"max": {
"default": 1.0,
"title": "Max",
"type": "number",
"x-aip-param-role": "scoring_metadata"
},
"metric_name": {
"default": "iou_distribution",
"title": "Metric Name",
"type": "string",
"x-aip-param-role": "scoring_metadata"
},
"min": {
"default": 0.0,
"title": "Min",
"type": "number",
"x-aip-param-role": "scoring_metadata"
},
"weight": {
"default": 1.0,
"title": "Weight",
"type": "number",
"x-aip-param-role": "scoring_metadata"
}
},
"title": "InitializationConfig",
"type": "object"
}

Execution​

{
"emits_metric_family": false,
"function_name": null,
"max_concurrency": null,
"processing_kind": "cpu",
"stream_batch_size": null,
"timeout_seconds": 60
}

Complete manifest​

accepts:
- name: gdi_image_v1
task_types:
- detection
config_schema:
properties:
inverted:
default: false
title: Inverted
type: boolean
x-aip-param-role: scoring_metadata
label_map:
anyOf:
- additionalProperties:
type: integer
type: object
- type: 'null'
default: null
title: Label Map
max:
default: 1.0
title: Max
type: number
x-aip-param-role: scoring_metadata
metric_name:
default: iou_distribution
title: Metric Name
type: string
x-aip-param-role: scoring_metadata
min:
default: 0.0
title: Min
type: number
x-aip-param-role: scoring_metadata
weight:
default: 1.0
title: Weight
type: number
x-aip-param-role: scoring_metadata
title: InitializationConfig
type: object
dependencies: []
description: How tightly do the model's boxes overlap the real objects?
direction: higher_is_better
display_name: IoU Distribution
entrypoint: aip_metrics_object_detection.answered.iou_distribution
execution:
emits_metric_family: false
function_name: null
max_concurrency: null
processing_kind: cpu
stream_batch_size: null
timeout_seconds: 60
kind: metric
manifest_version: '1'
max_prompt_slots: 0
metric_metadata:
methodology:
- Deterministic - no LLM. Uses Resaro's cv-eval library (custom Jaccard IoU).
- For each predicted box, compute its maximum IoU against all ground-truth boxes.
- Average those best-overlap values across the predictions (0.0 when there are no
boxes).
score_semantics: Scores range 0-1, the average best overlap (IoU) of each prediction
with the ground-truth boxes. A high score means boxes are tightly localised; a
low score means loose or misplaced boxes. Higher is better.
summary: How tightly the model's boxes overlap the real objects, measured by mean
intersection-over-union.
worked_example: Two predictions with best overlaps of 0.8 and 0.6 -> mean IoU =
(0.8 + 0.6)/2 = 0.70.
metric_type: pointwise
name: object_detection.iou_distribution
partition_types: []
required_columns:
- image_id
- label
- predictions
required_kinds: []
scorer_contract: per_row
target_kind: null
unsupported_trace_shapes: []
version: 1.0.0