Closed cjy513203427 closed 2 months ago
Please install the latest version of anomalib from source: https://github.com/openvinotoolkit/anomalib?tab=readme-ov-file#-installation
AUPR was lately updated to be a child class of BinaryPrecisionRecallCurve
instead of PrecisionRecallCurve
which needed a task argument
@alexriedel1, thanks for the help!
@cjy513203427 if you want to use the pip version, we will try to release the new version on the 30th of May. Meanwhile you could use the source installation as @alexriedel1 mentioned
Please install the latest version of anomalib from source: https://github.com/openvinotoolkit/anomalib?tab=readme-ov-file#-installation
AUPR was lately updated to be a child class of
BinaryPrecisionRecallCurve
instead ofPrecisionRecallCurve
which needed a task argument
Thanks for the quick reply. Could you tell me how can I add a task argument for metrics if I use source mode?
you should not need task
anymore as the base class is binary precision recall curve
Describe the bug
When I change
engine = Engine(pixel_metrics=["AUROC", "AUPR", "PRO"], image_metrics=["AUROC", "AUPR", "PRO"], task=TaskType.SEGMENTATION)
toengine = Engine(pixel_metrics=["AUROC", "PRO"], image_metrics=["AUROC", "PRO"], task=TaskType.SEGMENTATION)
or with default metricsEngine(task=TaskType.SEGMENTATION)
, it has no error reporting.Dataset
MVTec
Model
PADiM
Steps to reproduce the behavior
Thanks for the great work!
I used API to train the code
Then I got the error. Error message doesn't seem to be related.
What I see in the file under "src/anomalib/metrics/", It should support the following metrics:
Do I miss something?
OS information
OS information:
Expected behavior
The metrics should be supported.
Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
1.0.1
Configuration YAML
Logs
Code of Conduct