Git Product home page Git Product logo

dsar's Introduction

DSAR is a reconstruction-based algorithm for anomaly detection. It employs an encoder-decoder structure embedded with feature distillation and spatial attention for feature extraction. For feature classification, the algorithm utilizes a U-Net network. DSAR demonstrates effective detection results for both structural and textural industrial defects.

DSAR

Network Structure

Features

Dataset and Annotation Software

We have organized a magnetic tile industrial dataset, which includes five types of defects and normal samples. Click here to download the dataset.The types of defects and data distribution are shown.

Network Structure

We have embedded the anomaly detection results into the annotation software LabelMe, enhancing the speed and accuracy of defect labeling. The annotation software can be downloaded by clicking here.

Network

  • Feature DIstillation
  • Spatial attention

Detection Pipeline

Supervisied Algorithms and Anomaly Detection

Results

Numerical Results---MVTecAD AUROC score ( mean of 4 trials)

Category Image Level AUROC Pixel Level AUROC
Carpet 99.5 97.2
Grid 100.0 99.6
Tile 100.0 99.2
Wood 100.0 96.4
Leather 100.0 99.3
Bottle 99.9 99.2
Capsule 99.1 90.7
Pill 98.4 96.7
Transistor 95.4 88.2
Zipper 100.0 98.0
cable 96.3 95.2
Hazelnut 100.0 99.3
Metal nut 100.0 99.4
Screw 98.5 98.1
Toothbrush 100.0 96.1
Mean 99.1 96.8

Numerical Results---Magnetic Tile Dataset AUROC score ( mean of 4 trials)

Network Structure

Results-Visualization

Magnetic Tile

The last line is the result of our DSAR algorithm.

Network Structure

Ablation Study-Visualization

MVTec

Network Structure

Magnetic Tile

Network Structure

Getting Started

Installation

git clone [email protected]:Wangh257/DSAR.git
cd DSAR
# python=3.7  torch=1.8.0  torchvision=0.9.0 numpy=1.19.0 
pip install -r requirements.txt

Usage

# cd DSAR/tools
#train
sh train.sh 
#test
sh test.sh
#visual
sh visual.sh

#structure of Dataset
train.txt / test.txt / visual.txt
img1_path
img2_path
....

Contact

dsar's People

Contributors

wangh257 avatar

Watchers

 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.