Home

Awesome

<p align="left"> <img src=assets/logo.svg width="70%" /> </p>

black blackdoc flake8 isort mypy

PyTorch re-implementation of Reconstruction by Inpainting for Visual Anomaly Detection

<br>

1. AUROC Scores

categoryPaperMy Implementation
zipper0.9810.975
wood0.9300.965
transistor0.9090.918
toothbrush1.0000.972
tile0.9870.997
screw0.8450.799
pill0.8380.786
metal_nut0.8850.920
leather1.0001.000
hazelnut0.8330.890
grid0.9960.983
carpet0.8420.781
capsule0.8840.731
cable0.8190.655
bottle0.9990.971
<br>

2. Graphical Results

zipper

<p align="left"> <img src=assets/zipper.gif width="100%" /> </p>

wood

<p align="left"> <img src=assets/wood.gif width="100%" /> </p>

transistor

<p align="left"> <img src=assets/transistor.gif width="100%" /> </p>

toothbrush

<p align="left"> <img src=assets/toothbrush.gif width="100%" /> </p>

tile

<p align="left"> <img src=assets/tile.gif width="100%" /> </p>

screw

<p align="left"> <img src=assets/screw.gif width="100%" /> </p>

pill

<p align="left"> <img src=assets/pill.gif width="100%" /> </p>

metal_nut

<p align="left"> <img src=assets/metal_nut.gif width="100%" /> </p>

leather

<p align="left"> <img src=assets/leather.gif width="100%" /> </p>

hazelnut

<p align="left"> <img src=assets/hazelnut.gif width="100%" /> </p>

grid

<p align="left"> <img src=assets/grid.gif width="100%" /> </p>

carpet

<p align="left"> <img src=assets/carpet.gif width="100%" /> </p>

capsule

<p align="left"> <img src=assets/capsule.gif width="100%" /> </p>

cable

<p align="left"> <img src=assets/cable.gif width="100%" /> </p>

bottle

<p align="left"> <img src=assets/bottle.gif width="100%" /> </p> <br>

3. Requirements

<br>

4. Usage

a) Download docker image and run docker container

docker pull taikiinoue45/mvtec:riad
docker run --runtime nvidia -it --workdir /app --network host taikiinoue45/mvtec:riad /usr/bin/zsh

b) Download this repository

git clone https://github.com/taikiinoue45/RIAD.git
cd /app/RIAD/riad

c) Run experiments

sh run.sh

d) Visualize experiments

mlflow ui
<br>

5. Contacts