HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flows

Marco Rudolph Bastian Wandt Bodo Rosenhahn

Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flows

Abstract

The detection of manufacturing errors is crucial in fabrication processes to ensure product quality and safety standards. Since many defects occur very rarely and their characteristics are mostly unknown a priori, their detection is still an open research question. To this end, we propose DifferNet: It leverages the descriptiveness of features extracted by convolutional neural networks to estimate their density using normalizing flows. Normalizing flows are well-suited to deal with low dimensional data distributions. However, they struggle with the high dimensionality of images. Therefore, we employ a multi-scale feature extractor which enables the normalizing flow to assign meaningful likelihoods to the images. Based on these likelihoods we develop a scoring function that indicates defects. Moreover, propagating the score back to the image enables pixel-wise localization. To achieve a high robustness and performance we exploit multiple transformations in training and evaluation. In contrast to most other methods, ours does not require a large number of training samples and performs well with as low as 16 images. We demonstrate the superior performance over existing approaches on the challenging and newly proposed MVTec AD and Magnetic Tile Defects datasets.

Code Repositories

MattSkiff/cow_flow
pytorch
Mentioned in GitHub
marco-rudolph/differnet
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
anomaly-detection-on-inspladDifferNet
Detection AUROC: 92.46
anomaly-detection-on-mvtec-adDifferNet
Detection AUROC: 94.9
FPS: 2
anomaly-detection-on-surface-defect-saliencyDifferNet (unsupervised)
Detection AUROC: 97.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flows | Papers | HyperAI