Coder Social home page Coder Social logo

vt-adl's Introduction

VT-ADL : A Vision Transformer Network for Image Anomaly Detection and Localization

Authors - Pankaj Mishra, Ricardo Verk, Daniele Fornasier, Claudio Piciarelli, Gian Luca Foresti

Abstract- We present a transformer-based image anomaly detection and localization network. Our proposed model is a combination of a reconstruction-based approach and patch embedding. The use of transformer networks helps preserving the spatial information of the embedded patches, which is later processed by a Gaussian mixture density network to localize the anomalous areas. In addition, we also publish BTAD, a real-world industrial anomaly dataset. Our results are compared with other state-of-the-art algorithms using publicly available datasets like MNIST and MVTec.

Network

The network is inspired from Vision Transformer. It adapts the trasnformer network for image anomaly detection and localization.

Novel Dataset

Dataset contains RGB images of three industrial products – Scan to download

  • Product 1 : Contains 400 images of 1600x1600 pixels
  • Product 2 : Contains 1000 images of 600x600 pixels
  • Product 3 : Contains 399 images of 800x600 pixels

Results

  • MVTec Dataset - Real world anomaly dataset. contains 5354 high-resolution color and grey images of different texture and object categories.

  • BTAD Dataset - Consists of high resolution 1.8K RGB images of industrial products.

Ablation

  • Choice of number of Gaussian’s in the mixture model is justified with increasing number of Gaussian’s.
  • PRO Score first increases and then becomes constant

Regularization

  • Gaussian noise has been added to the encoded features from the transformer for regularization.
  • With Noise added the PRO score is 0.897 in contrary to 0.807 without noise.

Train (Command Line)

python train.py -p "hazelnut"

Cite

@article{mishra2021vt,
  title={VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localization},
  author={Mishra, Pankaj and Verk, Riccardo and Fornasier, Daniele and Piciarelli, Claudio and Foresti, Gian Luca},
  journal={arXiv preprint arXiv:2104.10036},
  year={2021}
}

vt-adl's People

Contributors

pankajmishra000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.