Removing Anomalies as Noises for Industrial Defect Localization

Abstract

Unsupervised anomaly detection aims to train models with only anomaly-free images to detect and localize unseen anomalies. Previous reconstruction-based methods have been limited by inaccurate reconstruction results. This work presents a denoising model to detect and localize the anomalies with a generative diffusion model. In particular, we introduce random noise to overwhelm the anomalous pixels and obtain pixel-wise precise anomaly scores from the intermediate denoising process. We find that the KL divergence of the diffusion model serves as a better anomaly score compared with the traditional RGB space score. Furthermore, we reconstruct the features from a pre-trained deep feature extractor as our feature level score to improve localization performance. Moreover, we propose a gradient denoising process to smoothly transform an anomalous image into a normal one. Our denoising model outperforms the state-of-the-art reconstruction-based anomaly detection methods for precise anomaly localization and high-quality normal image reconstruction on the MVTec-AD benchmark.

Cite

Text

Lu et al. "Removing Anomalies as Noises for Industrial Defect Localization." International Conference on Computer Vision, 2023. doi:10.1109/ICCV51070.2023.01481

Markdown

[Lu et al. "Removing Anomalies as Noises for Industrial Defect Localization." International Conference on Computer Vision, 2023.](https://mlanthology.org/iccv/2023/lu2023iccv-removing/) doi:10.1109/ICCV51070.2023.01481

BibTeX

@inproceedings{lu2023iccv-removing,
  title     = {{Removing Anomalies as Noises for Industrial Defect Localization}},
  author    = {Lu, Fanbin and Yao, Xufeng and Fu, Chi-Wing and Jia, Jiaya},
  booktitle = {International Conference on Computer Vision},
  year      = {2023},
  pages     = {16166-16175},
  doi       = {10.1109/ICCV51070.2023.01481},
  url       = {https://mlanthology.org/iccv/2023/lu2023iccv-removing/}
}