anomalib
anomalib copied to clipboard
π¨ Add default metrics to Engine
π Description
- Metric values in Engine is currently
None
. When Engine is used with default values, the validation step is not run since there is no metric. Due to this there is no test results. This PR addsAUROC
andF1Score
as the default metrics to bothimage
andpixel
level metrics. - π οΈ Fixes #1747
β¨ Changes
Select what type of change your PR is:
- [ ] π Bug fix (non-breaking change which fixes an issue)
- [x] π¨ Refactor (non-breaking change which refactors the code base)
- [ ] π New feature (non-breaking change which adds functionality)
- [ ] π₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] π Documentation update
- [ ] π Security update
β Checklist
Before you submit your pull request, please make sure you have completed the following steps:
- [ ] π I have summarized my changes in the CHANGELOG and followed the guidelines for my type of change (skip for minor changes, documentation updates, and test enhancements).
- [ ] π I have made the necessary updates to the documentation (if applicable).
- [ ] π§ͺ I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).
For more information about code review checklists, see the Code Review Checklist.
Check out this pull request onΒ
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
I see that some tests are failing as they directly access pixel_metric_names