Unsupervised Visual Defect Detection with Score-Based Generative Model

11/29/2022
by   Yapeng Teng, et al.
0

Anomaly Detection (AD), as a critical problem, has been widely discussed. In this paper, we specialize in one specific problem, Visual Defect Detection (VDD), in many industrial applications. And in practice, defect image samples are very rare and difficult to collect. Thus, we focus on the unsupervised visual defect detection and localization tasks and propose a novel framework based on the recent score-based generative models, which synthesize the real image by iterative denoising through stochastic differential equations (SDEs). Our work is inspired by the fact that with noise injected into the original image, the defects may be changed into normal cases in the denoising process (i.e., reconstruction). First, based on the assumption that the anomalous data lie in the low probability density region of the normal data distribution, we explain a common phenomenon that occurs when reconstruction-based approaches are applied to VDD: normal pixels also change during the reconstruction process. Second, due to the differences in normal pixels between the reconstructed and original images, a time-dependent gradient value (i.e., score) of normal data distribution is utilized as a metric, rather than reconstruction loss, to gauge the defects. Third, a novel T scales approach is developed to dramatically reduce the required number of iterations, accelerating the inference process. These practices allow our model to generalize VDD in an unsupervised manner while maintaining reasonably good performance. We evaluate our method on several datasets to demonstrate its effectiveness.

READ FULL TEXT

page 1

page 3

page 5

page 7

research
10/09/2021

Focus Your Distribution: Coarse-to-Fine Non-Contrastive Learning for Anomaly Detection and Localization

The essence of unsupervised anomaly detection is to learn the compact di...
research
10/28/2021

OMASGAN: Out-of-Distribution Minimum Anomaly Score GAN for Sample Generation on the Boundary

Generative models trained in an unsupervised manner may set high likelih...
research
01/25/2019

Skip-GANomaly: Skip Connected and Adversarially Trained Encoder-Decoder Anomaly Detection

Despite inherent ill-definition, anomaly detection is a research endeavo...
research
02/10/2023

Industrial and Medical Anomaly Detection Through Cycle-Consistent Adversarial Networks

In this study, a new Anomaly Detection (AD) approach for real-world imag...
research
11/14/2022

Denoising Diffusion Models for Out-of-Distribution Detection

Out-of-distribution detection is crucial to the safe deployment of machi...
research
11/16/2022

On the Connection of Generative Models and Discriminative Models for Anomaly Detection

Anomaly detection (AD) has attracted considerable attention in both acad...
research
05/28/2019

Anomaly scores for generative models

Reconstruction error is a prevalent score used to identify anomalous sam...

Please sign up or login with your details

Forgot password? Click here to reset