Commit 95115f9
Merge main the feature branch. (#2376)
* Update timm requirement from <=1.0.7,>=1.0.7 to >=1.0.7,<=1.0.9 (#2274)
* Update timm requirement from <=1.0.7,>=1.0.7 to >=1.0.7,<=1.0.9
Updates the requirements on [timm](https://github.com/huggingface/pytorch-image-models) to permit the latest version.
- [Release notes](https://github.com/huggingface/pytorch-image-models/releases)
- [Commits](huggingface/pytorch-image-models@v1.0.7...v1.0.9)
---
updated-dependencies:
- dependency-name: timm
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <[email protected]>
* Update pyproject.toml
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samet Akcay <[email protected]>
* 🐞Update `setuptools` requirement for PEP 660 support (#2320)
Update setup tools
Signed-off-by: Samet Akcay <[email protected]>
* Fix transforms for draem, dsr and rkde (#2324)
Signed-off-by: Blaz Rolih <[email protected]>
* Add check before loading metrics data from checkpoint (#2323)
Add check before loading from checkpoint
Signed-off-by: Blaz Rolih <[email protected]>
Co-authored-by: Samet Akcay <[email protected]>
* Add PIMO (#2329)
* 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]>
* 🗑️ Remove numba (#2313)
* remove numba
Signed-off-by: Ashwin Vaidya <[email protected]>
* fix pre-commit checks
Signed-off-by: Ashwin Vaidya <[email protected]>
* add third-party-programs.txt
Signed-off-by: Ashwin Vaidya <[email protected]>
---------
Signed-off-by: Ashwin Vaidya <[email protected]>
* 🗑️ Remove unused methods (#2315)
* remove numba
Signed-off-by: Ashwin Vaidya <[email protected]>
* fix pre-commit checks
Signed-off-by: Ashwin Vaidya <[email protected]>
* remove all unused methods
Signed-off-by: Ashwin Vaidya <[email protected]>
---------
Signed-off-by: Ashwin Vaidya <[email protected]>
* PIMO: Port Numpy → Torch (#2316)
* remove numba
Signed-off-by: Ashwin Vaidya <[email protected]>
* fix pre-commit checks
Signed-off-by: Ashwin Vaidya <[email protected]>
* remove all unused methods
Signed-off-by: Ashwin Vaidya <[email protected]>
* replace numpy with torch
Signed-off-by: Ashwin Vaidya <[email protected]>
---------
Signed-off-by: Ashwin Vaidya <[email protected]>
* 🔨Refactor methods across files (#2321)
* remove numba
Signed-off-by: Ashwin Vaidya <[email protected]>
* fix pre-commit checks
Signed-off-by: Ashwin Vaidya <[email protected]>
* remove all unused methods
Signed-off-by: Ashwin Vaidya <[email protected]>
* replace numpy with torch
Signed-off-by: Ashwin Vaidya <[email protected]>
* refactor code
Signed-off-by: Ashwin Vaidya <[email protected]>
* refactor
move functional inside update
remove path from the metric
* Add changes from comments
Signed-off-by: Ashwin Vaidya <[email protected]>
---------
Signed-off-by: Ashwin Vaidya <[email protected]>
* Remove model to model comparison (#2325)
* rename to pimo
Signed-off-by: Ashwin Vaidya <[email protected]>
* minor refactor
Signed-off-by: Ashwin Vaidya <[email protected]>
* remove model to model comparison
Signed-off-by: Ashwin Vaidya <[email protected]>
* fix test
Signed-off-by: Ashwin Vaidya <[email protected]>
* PR comments
Signed-off-by: Ashwin Vaidya <[email protected]>
* Minor refactor
Signed-off-by: Ashwin Vaidya <[email protected]>
---------
Signed-off-by: Ashwin Vaidya <[email protected]>
* PR comments
Signed-off-by: Ashwin Vaidya <[email protected]>
* Remove unused enums
Signed-off-by: Ashwin Vaidya <[email protected]>
* update doc strings
Signed-off-by: Ashwin Vaidya <[email protected]>
* update param names
Signed-off-by: Ashwin Vaidya <[email protected]>
* add aupimo basic usage tutorial notebook (#2330)
* add aupimo basic usage tutorial notebook
Signed-off-by: jpcbertoldo <[email protected]>
* update scipy import
Signed-off-by: jpcbertoldo <[email protected]>
* add cite us
Signed-off-by: jpcbertoldo <[email protected]>
* minor
Signed-off-by: jpcbertoldo <[email protected]>
* modify texts and add illustration
Signed-off-by: jpcbertoldo <[email protected]>
* udpate working dir
Signed-off-by: jpcbertoldo <[email protected]>
---------
Signed-off-by: jpcbertoldo <[email protected]>
---------
Signed-off-by: jpcbertoldo <[email protected]>
Signed-off-by: Ashwin Vaidya <[email protected]>
Co-authored-by: Joao P C Bertoldo <[email protected]>
Co-authored-by: Samet Akcay <[email protected]>
* Makes batch size dynamic (#2339)
Made batch dimension of ONNX export dynamic when specifying input shape.
* Add pimo tutorial advanced i (fixed) (#2336)
* uset all padim features to make it deterministic
Signed-off-by: jpcbertoldo <[email protected]>
* add aupimo notebook advanced i
Signed-off-by: jpcbertoldo <[email protected]>
* update readme
Signed-off-by: jpcbertoldo <[email protected]>
* modify changelog
Signed-off-by: jpcbertoldo <[email protected]>
* correct readme
Signed-off-by: jpcbertoldo <[email protected]>
* correct again
Signed-off-by: jpcbertoldo <[email protected]>
* minor corrections
Signed-off-by: jpcbertoldo <[email protected]>
---------
Signed-off-by: jpcbertoldo <[email protected]>
* Pimo tutorials/02 advanced ii (#2347)
* uset all padim features to make it deterministic
Signed-off-by: jpcbertoldo <[email protected]>
* add aupimo notebook advanced i
Signed-off-by: jpcbertoldo <[email protected]>
* update readme
Signed-off-by: jpcbertoldo <[email protected]>
* modify changelog
Signed-off-by: jpcbertoldo <[email protected]>
* correct readme
Signed-off-by: jpcbertoldo <[email protected]>
* correct again
Signed-off-by: jpcbertoldo <[email protected]>
* minor corrections
Signed-off-by: jpcbertoldo <[email protected]>
* add aupimo notebook advanced ii (pimo curve and integration bounds)
Signed-off-by: jpcbertoldo <[email protected]>
* fix links
Signed-off-by: jpcbertoldo <[email protected]>
* correct change log
Signed-off-by: jpcbertoldo <[email protected]>
---------
Signed-off-by: jpcbertoldo <[email protected]>
* Create epic.yaml
* 🔨 Update the issue templates (#2363)
* Update epic.yaml
* Update epic.yaml
* Update epic.yaml
* Update epic.yaml
* Update task.yaml
* Create user_story.yaml
* Update epic.yaml
* Pimo tutorials/03 advanced iii (#2348)
* add aupimo notebook advanced iii (aupimo score of a random model)
Signed-off-by: jpcbertoldo <[email protected]>
* add cite us
Signed-off-by: jpcbertoldo <[email protected]>
* update notebooks readme
Signed-off-by: jpcbertoldo <[email protected]>
---------
Signed-off-by: jpcbertoldo <[email protected]>
Co-authored-by: Samet Akcay <[email protected]>
* 🔨 Deprecate try import and replace it with Lightning's package_available (#2373)
Replace try_import with lightnings package_available function
Signed-off-by: Samet Akcay <[email protected]>
* Refactor folder3d to avoid complex-structure (C901) issue (#2185)
* Refactored-make_folder3d_dataset-ruff-error-C901 (#1926)
Signed-off-by: sahusiddharth <[email protected]>
* Simplify folder 3d dataset (#2184)
---------
Signed-off-by: sahusiddharth <[email protected]>
Co-authored-by: Siddharth Sahu <[email protected]>
---------
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Samet Akcay <[email protected]>
Signed-off-by: Blaz Rolih <[email protected]>
Signed-off-by: jpcbertoldo <[email protected]>
Signed-off-by: Ashwin Vaidya <[email protected]>
Signed-off-by: sahusiddharth <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Blaž Rolih <[email protected]>
Co-authored-by: Ashwin Vaidya <[email protected]>
Co-authored-by: Joao P C Bertoldo <[email protected]>
Co-authored-by: Marcus Pertlwieser <[email protected]>
Co-authored-by: Siddharth Sahu <[email protected]>1 parent 06daad9 commit 95115f9
File tree
35 files changed
+7349
-70
lines changed- .github/ISSUE_TEMPLATE
- notebooks
- 700_metrics
- src/anomalib
- cli
- utils
- data
- datasets/depth
- utils
- loggers
- metrics
- pimo
- models
- components/base
- image
- draem
- dsr
- rkde
- utils/exceptions
- tests/unit
- data/utils
- metrics/pimo
35 files changed
+7349
-70
lines changed| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 13 | + | |
| 14 | + | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | | - | |
| 18 | + | |
23 | 19 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 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 | + | |
29 | 57 | | |
30 | 58 | | |
31 | 59 | | |
32 | | - | |
| 60 | + | |
33 | 61 | | |
34 | | - | |
35 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments