PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization
Thomas Defard, Aleksandr Setkov, Angelique Loesch, Romaric Audigier
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/openvinotoolkit/anomalibpytorch★ 5,507
- github.com/xiahaifeng1995/PaDiM-Anomaly-Detection-Localization-masterpytorch★ 473
- github.com/open-edge-platform/getipytorch★ 467
- github.com/rvorias/ind_knn_adpytorch★ 165
- github.com/OpenAOI/anodetpytorch★ 83
- github.com/Burf/tfdetectiontf★ 56
- github.com/taikiinoue45/PaDiMpytorch★ 40
- github.com/Pangoraw/PaDiMpytorch★ 30
- github.com/Ultranity/Anomaly.Paddlepaddle★ 28
- github.com/JohnnyHopp/PaDiM-EfficientNetV2pytorch★ 25
Abstract
We present a new framework for Patch Distribution Modeling, PaDiM, to concurrently detect and localize anomalies in images in a one-class learning setting. PaDiM makes use of a pretrained convolutional neural network (CNN) for patch embedding, and of multivariate Gaussian distributions to get a probabilistic representation of the normal class. It also exploits correlations between the different semantic levels of CNN to better localize anomalies. PaDiM outperforms current state-of-the-art approaches for both anomaly detection and localization on the MVTec AD and STC datasets. To match real-world visual industrial inspection, we extend the evaluation protocol to assess performance of anomaly localization algorithms on non-aligned dataset. The state-of-the-art performance and low complexity of PaDiM make it a good candidate for many industrial applications.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| Hyper-Kvasir Dataset | PaDiM | AUC | 0.92 | — | Unverified |
| LAG | PaDiM | AUC | 0.69 | — | Unverified |
| MVTec AD | PaDiM | Detection AUROC | 97.9 | — | Unverified |
| MVTec AD | PaDiM-WR50-Rd550 | Detection AUROC | 95.3 | — | Unverified |
| MVTec AD | PaDiM-R18-Rd100 | Segmentation AUROC | 96.7 | — | Unverified |
| VisA | PaDiM | Segmentation AUPRO (until 30% FPR) | 85.9 | — | Unverified |