Giter Club home page Giter Club logo

riad-pytorch's Introduction

[PyTorch] Reconstruction by inpainting for visual anomaly detection (RIAD)

PyTorch implementation of "Reconstruction by inpainting for visual anomaly detection (RIAD)"

Concept

Concept ot the RIAD [1].

Model

Training Strategy

Overal Procedure

Preprocessing

Inference and Postprocessing

Experiments

Preparing for Disjoint Masking

Input (Given)


Set of disjoint masks



Disjoint masks with $k={2, 4}$.
First and second row shows the mask of $k=2$ and $k=4$ respectively.
Each column shows the $i$-$th$ mask for each cell size $k$.

Set of mask applied input


Anomaly Detection using MNIST dataset

Setting

  • Normal (Good): 1
  • Abnormal (Not-good): 0, 2, 3, 4, 5, 6, 7, 8, 9 (other than 1)

Results

Loss convergence

Reconstruction

Anomaly detection performance (w/ validation set)

Result of training: result.json (w/ test set)

root

name_best:"model_2_best_auroc.pth"
auroc:0.9974551381667722
loss:0.0017763811201996548
select_norm:1
masking_mode:"disjoint_mask"
disjoint_n:3
nn:2000
dim_h:28
dim_w:28
dim_c:1
ksize:3
mode_optim:"adam"
learning_rate:0.001
mode_lr:0
path_ckpt:"Checkpoint"
ngpu:1
device:"cuda"
filters:"[1, 64, 128, 256, 512]"

Requirements

  • PyTorch 1.11.0

Reference

[1] Vitjan Zavrtanik et al. "Reconstruction by inpainting for visual anomaly detection." Pattern Recognition, vol. 112, 2021.
[2] Taiki Inoue. MSGMS (python module).

riad-pytorch's People

Contributors

yeonghyeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

helizi2024

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.