Panoptic Quality as a function of its four counts
Lax303562.PanopticQuality · concepts/Lax303562/PanopticQuality.lean · lax-303562
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The Panoptic Quality of an instance segmentation (Kirillov et al., 2019) scores a set of predicted instances against a set of annotated instances. Predictions and annotations are matched by intersection over union; a matched pair is a true positive, an unmatched prediction a false positive, an unmatched annotation a false negative. The metric is
Everything in this submission is a statement about this quotient as a function of four numbers: the sum of the matched IoUs, the number of matched pairs, and the counts and of false positives and false negatives. How the matching is produced is a separate question, treated in .
The denominator is defined on its own because every result below is an exact statement about how it moves when one count changes.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Data.Real.Basic |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Panoptic Quality as a function of its four counts |
| 6 | type: definition |
| 7 | --- |
| 8 | The *Panoptic Quality* of an instance segmentation (Kirillov et al., 2019) scores |
| 9 | a set of predicted instances against a set of annotated instances. Predictions and |
| 10 | annotations are matched by intersection over union; a matched pair is a *true |
| 11 | positive*, an unmatched prediction a *false positive*, an unmatched annotation a |
| 12 | *false negative*. The metric is |
| 13 | |
| 14 | |
| 15 | |
| 16 | Everything in this submission is a statement about this quotient as a function of |
| 17 | four numbers: the sum `s` of the matched IoUs, the number `n` of matched pairs, |
| 18 | and the counts `fp` and `fn` of false positives and false negatives. How the |
| 19 | matching is produced is a separate question, treated in `Matching`. |
| 20 | |
| 21 | The denominator is defined on its own because every result below is an exact |
| 22 | statement about how it moves when one count changes. |
| 23 | -/ |
| 24 | |
| 25 | namespace Lax303562.PanopticQuality |
| 26 | |
| 27 | /-- The denominator of Panoptic Quality: matched pairs count `1`, unmatched |
| 28 | predictions and unmatched annotations count `½` each. -/ |
| 29 | noncomputable def den (n fp fn : ℕ) : ℝ := (n : ℝ) + (fp + fn) / 2 |
| 30 | |
| 31 | /-- Panoptic Quality: the sum `s` of the matched IoUs over the denominator. -/ |
| 32 | noncomputable def pq (s : ℝ) (n fp fn : ℕ) : ℝ := s / den n fp fn |
| 33 | |
| 34 | end Lax303562.PanopticQuality |
| 35 |
Builds on
none
Used by
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments