❓How to extract anomaly score of patchcore? #1720
-
What is the motivation for this task?
Describe the solution you'd likeI'm looking for a function outputting the anomaly score Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
blaz-r
Feb 8, 2024
Replies: 1 comment 9 replies
-
Hi, Patchcore model returns a dict with anomaly map and the score: |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
samet-akcay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, Patchcore model returns a dict with anomaly map and the score:
https://github.com/openvinotoolkit/anomalib/blob/4459c2b9e90321ccdd8a7820f15b8e367e884a9e/src/anomalib/models/image/patchcore/torch_model.py#L105-L108
pred_score
contains the anomaly score.