GithubHelp home page GithubHelp logo

wenkong01 / padim-anomaly-detection-localization-master Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiahaifeng1995/padim-anomaly-detection-localization-master

0.0 0.0 0.0 2.45 MB

This is an unofficial implementation of the paper “PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization”.

License: Apache License 2.0

Python 100.00%

padim-anomaly-detection-localization-master's Introduction

PaDiM-Anomaly-Detection-Localization-master

This is an implementation of the paper PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization.

This code is heavily borrowed from both SPADE-pytorch(https://github.com/byungjae89/SPADE-pytorch) and MahalanobisAD-pytorch(https://github.com/byungjae89/MahalanobisAD-pytorch) projects

Requirement

  • python == 3.7
  • pytorch == 1.5
  • tqdm
  • sklearn
  • matplotlib

Datasets

MVTec AD datasets : Download from MVTec website

Results

Implementation results on MVTec

  • Image-level anomaly detection accuracy (ROCAUC)
MvTec R18-Rd100 WR50-Rd550
Carpet 0.984 0.999
Grid 0.898 0.957
Leather 0.988 1.0
Tile 0.959 0.974
Wood 0.990 0.988
All texture classes 0.964 0.984
Bottle 0.996 0.998
Cable 0.855 0.922
Capsule 0.870 0.915
Hazelnut 0.841 0.933
Metal nut 0.974 0.992
Pill 0.869 0.944
Screw 0.745 0.844
Toothbrush 0.947 0.972
Transistor 0.925 0.978
Zipper 0.741 0.909
All object classes 0.876 0.941
All classes 0.905 0.955
  • Pixel-level anomaly detection accuracy (ROCAUC)
MvTec R18-Rd100 WR50-Rd550
Carpet 0.988 0.990
Grid 0.936 0.965
Leather 0.990 0.989
Tile 0.917 0.939
Wood 0.940 0.941
All texture classes 0.953 0.965
Bottle 0.981 0.982
Cable 0.949 0.968
Capsule 0.982 0.986
Hazelnut 0.979 0.979
Metal nut 0.967 0.971
Pill 0.946 0.961
Screw 0.972 0.983
Toothbrush 0.986 0.987
Transistor 0.968 0.975
Zipper 0.976 0.984
All object classes 0.971 0.978
All classes 0.965 0.973

ROC Curve

  • ResNet18

  • Wide_ResNet50_2

Localization examples

Reference

[1] Thomas Defard, Aleksandr Setkov, Angelique Loesch, Romaric Audigier. PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization. https://arxiv.org/pdf/2011.08785

[2] https://github.com/byungjae89/SPADE-pytorch

[3] https://github.com/byungjae89/MahalanobisAD-pytorch

padim-anomaly-detection-localization-master's People

Contributors

prob1995 avatar xiahaifeng1995 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.