Commit 29cb912
PIMO (#1726)
* update
Signed-off-by: jpcbertoldo <[email protected]>
* test binclf curves numpy and numba and fixes
Signed-off-by: jpcbertoldo <[email protected]>
* correct som docstrings
Signed-off-by: jpcbertoldo <[email protected]>
* torch interface and tests
Signed-off-by: jpcbertoldo <[email protected]>
* torch interface and tests
Signed-off-by: jpcbertoldo <[email protected]>
* constants regrouped in dataclass as class vars
Signed-off-by: jpcbertoldo <[email protected]>
* result class was unneccesary for per_image_binclf_curve
Signed-off-by: jpcbertoldo <[email protected]>
* factorize function _get_threshs_minmax_linspace
Signed-off-by: jpcbertoldo <[email protected]>
* small docs fixes
Signed-off-by: jpcbertoldo <[email protected]>
* add pimo numpy version and test
Signed-off-by: jpcbertoldo <[email protected]>
* move validation
Signed-off-by: jpcbertoldo <[email protected]>
* add `shared_fpr_metric` option
Signed-off-by: jpcbertoldo <[email protected]>
* add pimo torch functional version and test
Signed-off-by: jpcbertoldo <[email protected]>
* add torchmetrics interface and test
Signed-off-by: jpcbertoldo <[email protected]>
* renames and put things in init
Signed-off-by: jpcbertoldo <[email protected]>
* validate inputs in result objects
Signed-off-by: jpcbertoldo <[email protected]>
* result objects to from dict and tests
Signed-off-by: jpcbertoldo <[email protected]>
* add save and load methods to result objects and test
Signed-off-by: jpcbertoldo <[email protected]>
* refactor validations and minor changes
Signed-off-by: jpcbertoldo <[email protected]>
* test result objects' properties
Signed-off-by: jpcbertoldo <[email protected]>
* minor refactors
Signed-off-by: jpcbertoldo <[email protected]>
* add missing docstrings
Signed-off-by: jpcbertoldo <[email protected]>
* minore vocabulary fix for consistency
Signed-off-by: jpcbertoldo <[email protected]>
* add per image scores statistics and test it
Signed-off-by: jpcbertoldo <[email protected]>
* refactor constants notation
Signed-off-by: jpcbertoldo <[email protected]>
* add stats tests and test it
Signed-off-by: jpcbertoldo <[email protected]>
* change the meaning of AUPIMO.num_thresh
Signed-off-by: jpcbertoldo <[email protected]>
* interface to format pairwise test results
Signed-off-by: jpcbertoldo <[email protected]>
* improve doc
Signed-off-by: jpcbertoldo <[email protected]>
* add optional `paths` to result objects and some minor fixes and refactors
Signed-off-by: jpcbertoldo <[email protected]>
* remove frozen from dataclasses and some done todos
Signed-off-by: jpcbertoldo <[email protected]>
* review headers
Signed-off-by: jpcbertoldo <[email protected]>
* doc modifs
Signed-off-by: jpcbertoldo <[email protected]>
* refactor `score_less_than_thresh` in `_binclf_one_curve_python`
Signed-off-by: jpcbertoldo <[email protected]>
* correct license comments
Signed-off-by: jpcbertoldo <[email protected]>
* fix doc
Signed-off-by: jpcbertoldo <[email protected]>
* numba as extra requirement
Signed-off-by: jpcbertoldo <[email protected]>
* refactor copyrights from jpcbertoldo
Signed-off-by: jpcbertoldo <[email protected]>
* remove from __future__ import annotations
Signed-off-by: jpcbertoldo <[email protected]>
* refactor validations names
Signed-off-by: jpcbertoldo <[email protected]>
* dedupe file path validation
Signed-off-by: jpcbertoldo <[email protected]>
* fix tests
Signed-off-by: jpcbertoldo <[email protected]>
* Add todo
Signed-off-by: jpcbertoldo <[email protected]>
* refactor enums
Signed-off-by: jpcbertoldo <[email protected]>
* only logger.warning
Signed-off-by: jpcbertoldo <[email protected]>
* refactor test imports
Signed-off-by: jpcbertoldo <[email protected]>
* refactor docs
Signed-off-by: jpcbertoldo <[email protected]>
* refactor some docs
Signed-off-by: jpcbertoldo <[email protected]>
* correct pre commit errors
Signed-off-by: jpcbertoldo <[email protected]>
* remove author tag
Signed-off-by: jpcbertoldo <[email protected]>
* add thrid party program
Signed-off-by: jpcbertoldo <[email protected]>
* Update src/anomalib/metrics/per_image/pimo.py
* move HAS_NUMBA
Signed-off-by: jpcbertoldo <[email protected]>
* remove PIMOSharedFPRMetric
Signed-off-by: jpcbertoldo <[email protected]>
* make torchmetrics compute avg by dft
Signed-off-by: jpcbertoldo <[email protected]>
* pre-commit hooks corrections
Signed-off-by: jpcbertoldo <[email protected]>
* correct numpy.trapezoid
Signed-off-by: jpcbertoldo <[email protected]>
---------
Signed-off-by: jpcbertoldo <[email protected]>
Co-authored-by: Samet Akcay <[email protected]>1 parent cdd338c commit 29cb912
File tree
18 files changed
+4974
-2
lines changed- src/anomalib
- data/utils
- metrics
- per_image
- tests/unit
- data/utils
- metrics/per_image
18 files changed
+4974
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| 157 | + | |
| 158 | + | |
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
| |||
213 | 220 | | |
214 | 221 | | |
215 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
216 | 228 | | |
217 | 229 | | |
218 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
0 commit comments