Skip to content

Output Details of Exported Model #2312

Closed Answered by blaz-r
Mervetemurr asked this question in Q&A
Discussion options

You must be logged in to vote

I believe that the model exported by Engine is what's contained inside torch_model of specific architecture. So for PatchCore you can see the forward code inside torch_model here:

output = {"anomaly_map": anomaly_map, "pred_score": pred_score}
return output

So your assumption about returned values is correct, one is anomaly map, the other is anomaly score. Some models like padim only return anomaly map, in which case the anomaly score is calculated as max(anomaly_map).

Since you want to determine whether the score indicates normal or anomalous image, you'll need to threshold…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mervetemurr
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