PaDiM-Anomaly-Detection-Localization-master icon indicating copy to clipboard operation
PaDiM-Anomaly-Detection-Localization-master copied to clipboard

how to deploy this method in an industry application

Open mrljwlm opened this issue 3 years ago • 3 comments

can this model export to tensorRT or onnx format? if I want to use it in an industry application, any idea?

mrljwlm avatar Aug 10 '21 08:08 mrljwlm

You can use it directly

DeepKnowledge1 avatar Nov 25 '21 21:11 DeepKnowledge1

This PaDiM model cannot be exported to TensorRT or ONNX, as there is no "real" model training, hence no trained CNN model which has to be exported or optimized. The CNN in this approach is only(!) used for feature maps extraction. The PaDiM approach can be implemented to be as fast (or faster in my case) than other anomaly detection approaches which use CNN (autoencoders, etc) for model training and inference.

bjaeger1 avatar Aug 02 '22 09:08 bjaeger1

In practice, how to define the decision threshold to get precision and recall? In this paper, the author find the optimal threshold to achieve the best f1 score based on the precision recall curve from all testing data. In the real world, we do not have the sufficient test data to get the decision threshold, how can we deal with this issue? Thanks

RichardChangCA avatar Sep 29 '23 05:09 RichardChangCA