A Prototype-Based Neural Network for Image Anomaly Detection and Localization

Chao Huang, Zhao Kang, Hong Wu
10/4/2023
cs.CV

Official code: 98chao/ProtoAD (7 stars, last commit 2022-07-09).

Abstract

Image anomaly detection and localization perform not only image-level anomaly classification but also locate pixel-level anomaly regions. Recently, it has received much research attention due to its wide application in various fields. This paper proposes ProtoAD, a prototype-based neural network for image anomaly detection and localization. First, the patch features of normal images are extracted by a deep network pre-trained on nature images. Then, the prototypes of the normal patch features are learned by non-parametric clustering. Finally, we construct an image anomaly localization network (ProtoAD) by appending the feature extraction network with $L2$ feature normalization, a $1\times1$ convolutional layer, a channel max-pooling, and a subtraction operation. We use the prototypes as the kernels of the $1\times1$ convolutional layer; therefore, our neural network does not need a training phase and can conduct anomaly detection and localization in an end-to-end manner. Extensive experiments on two challenging industrial anomaly detection datasets, MVTec AD and BTAD, demonstrate that ProtoAD achieves competitive performance compared to the state-of-the-art methods with a higher inference speed. The source code is available at: https://github.com/98chao/ProtoAD.

View on arXivView PDF

Code Implementations(1)

98chao/ProtoADOfficial100%

ProtoAD for Image Anomaly Detection and Localization

70Shell, PythonJul 9, 20224 years ago

Similar Papers

Cite this paper

@article{huang2023prototypebased,
  title  = {A Prototype-Based Neural Network for Image Anomaly Detection and Localization},
  author = {Chao Huang and Zhao Kang and Hong Wu},
  year   = {2023},
  eprint = {2310.02576},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.02576v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.02576.svg)](https://codeofpaper.com/paper/2310.02576)

Discussion