CutPaste: Self-Supervised Learning for Anomaly Detection and Localization

Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, Tomas Pfister
4/8/2021
1,385 citations
cs.CV
contrastive-ssl

No official code found. Best implementation: LilitYolyan/CutPaste (133 stars, Python, MIT, PyTorch, last commit 2022-04-21). 1 more below.

Abstract

We aim at constructing a high performance model for defect detection that detects unknown anomalous patterns of an image without anomalous data. To this end, we propose a two-stage framework for building anomaly detectors using normal training data only.

Show full abstract

We first learn self-supervised deep representations and then build a generative one-class classifier on learned representations. We learn representations by classifying normal data from the CutPaste, a simple data augmentation strategy that cuts an image patch and pastes at a random location of a large image. Our empirical study on MVTec anomaly detection dataset demonstrates the proposed algorithm is general to be able to detect various types of real-world defects. We bring the improvement upon previous arts by 3.1 AUCs when learning representations from scratch. By transfer learning on pretrained representations on ImageNet, we achieve a new state-of-theart 96.6 AUC. Lastly, we extend the framework to learn and extract representations from patches to allow localizing defective areas without annotations during training.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
LilitYolyan/CutPasteCommunity133PythonMIT2022-04-21
Lieberk/CutpasteCommunity3–––
PyTorchMIT

Unofficial implementation of Google "CutPaste: Self-Supervised Learning for Anomaly Detection and Localization" in PyTorch

13328PythonDec 21, 20214 years agoMIT
anomaly-detectiondeep-learningpytorchself-supervised-learning
Lieberk/CutpasteCommunity25%

An implemention of 'CutPaste: Self-Supervised Learning for Anomaly Detection and Localization' based on PaddlePaddle

30

Similar Papers

Cite this paper

@article{li2021cutpaste,
  title  = {CutPaste: Self-Supervised Learning for Anomaly Detection and Localization},
  author = {Chun-Liang Li and Kihyuk Sohn and Jinsung Yoon and Tomas Pfister},
  year   = {2021},
  eprint = {2104.04015},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.04015}
}

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

Discussion