SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentation

Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang, Onkar Dabeer
7/28/2022
907 citations
cs.CV
contrastive-ssl

No official code found. Best implementation: amazon-science/spot-diff (274 stars, Python, Apache-2.0, last commit 2022-09-22).

Abstract

Visual anomaly detection is commonly used in industrial quality inspection. In this paper, we present a new dataset as well as a new self-supervised learning method for ImageNet pre-training to improve anomaly detection and segmentation in 1-class and 2-class 5/10/high-shot training setups.

Show full abstract

We release the Visual Anomaly (VisA) Dataset consisting of 10,821 high-resolution color images (9,621 normal and 1,200 anomalous samples) covering 12 objects in 3 domains, making it the largest industrial anomaly detection dataset to date. Both image and pixel-level labels are provided. We also propose a new self-supervised framework - SPot-the-difference (SPD) - which can regularize contrastive self-supervised pre-training, such as SimSiam, MoCo and SimCLR, to be more suitable for anomaly detection tasks. Our experiments on VisA and MVTec-AD dataset show that SPD consistently improves these contrastive pre-training baselines and even the supervised pre-training. For example, SPD improves Area Under the Precision-Recall curve (AU-PR) for anomaly segmentation by 5.9% and 6.8% over SimSiam and supervised pre-training respectively in the 2-class high-shot regime. We open-source the project at http://github.com/amazon-research/spot-diff .

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Project for <SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentation> (ECCV 2022)

27422PythonJul 18, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{zou2022spotthedifference,
  title  = {SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentation},
  author = {Yang Zou and Jongheon Jeong and Latha Pemula and Dongqing Zhang and Onkar Dabeer},
  year   = {2022},
  eprint = {2207.14315},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.14315v1}
}

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/2207.14315.svg)](https://codeofpaper.com/paper/2207.14315)

Discussion