Skip to content
Discussion options

You must be logged in to vote

Hello. Plotting is not immediately implemented for all metrics in Anomalib, but I believe you can implement precision plotting without much trouble. As you can see inside MetricVisulizerCallback for plot to be generated, metric needs generate_figure method. So you could implement a wrapper for Torchmetrics PrecisionRecallCurve and put it inside /src/anomalib/utils/metrics. For implementation, you can refer to aupr implemntation. You will most likely need PrecisionRecallCurve from torchemtrics to get precision for all thresholds.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samet-akcay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1512 on January 12, 2024 09:01.