https://github.com/anselmoo/spade-pytorch
PyTorch implementation of "Sub-Image Anomaly Detection with Deep Pyramid Correspondences"
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.4%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
PyTorch implementation of "Sub-Image Anomaly Detection with Deep Pyramid Correspondences"
Basic Info
- Host: GitHub
- Owner: Anselmoo
- License: apache-2.0
- Default Branch: master
- Size: 3.67 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 0
Fork of byungjae89/SPADE-pytorch
Created over 4 years ago
· Last pushed over 4 years ago
https://github.com/Anselmoo/SPADE-pytorch/blob/master/
# Sub-Image Anomaly Detection with Deep Pyramid Correspondences (SPADE) in PyTorch PyTorch implementation of [Sub-Image Anomaly Detection with Deep Pyramid Correspondences](https://arxiv.org/abs/2005.02357) (SPADE). **SPADE** presents an anomaly segmentation approach which does not require a training stage. It is fast, robust and achieves SOTA on `MVTec AD` dataset. * *We used K=5 nearest neighbors, which differs from the original paper K=50.* ## Prerequisites * python 3.6+ * PyTorch 1.5+ * sklearn, matplotlib Install prerequisites with: ``` pip install -r requirements.txt ``` If you already download [`MVTec AD`](https://www.mvtec.com/company/research/datasets/mvtec-ad/) dataset, move a file to `data/mvtec_anomaly_detection.tar.xz`. If you don't have a dataset file, it will be automatically downloaded during the code running. ## Usage To test **SPADE** on `MVTec AD` dataset: ``` cd src python main.py ``` After running the code above, you can see the ROCAUC results in `src/result/roc_curve.png` ## Results Below is the implementation result of the test set ROCAUC on the `MVTec AD` dataset. ### 1. Image-level anomaly detection accuracy (ROCAUC %) | | Paper | Implementation | | - | - | - | | bottle | - | 97.2 | | cable | - | 84.8 | | capsule | - | 89.7 | | carpet | - | 92.8 | | grid | - | 47.3 | | hazelnut | - | 88.1 | | leather | - | 95.4 | | metal_nut | - | 71.0 | | pill | - | 80.1 | | screw | - | 66.7 | | tile | - | 96.5 | | toothbrush | - | 88.9 | | transistor | - | 90.3 | | wood | - | 95.8 | | zipper | - | 96.6 | | Average | 85.5 | 85.4 | ### 2. Pixel-level anomaly detection accuracy (ROCAUC %) | | Paper | Implementation | | - | - | - | | bottle | 98.4 | 97.0 | | cable | 97.2 | 92.3 | | capsule | 99.0 | 98.4 | | carpet | 97.5 | 98.9 | | grid | 93.7 | 98.3 | | hazelnut | 99.1 | 98.5 | | leather | 97.6 | 99.3 | | metal_nut | 98.1 | 97.1 | | pill | 96.5 | 95.0 | | screw | 98.9 | 99.1 | | tile | 87.4 | 92.8 | | toothbrush | 97.9 | 98.8 | | transistor | 94.1 | 86.6 | | wood | 88.5 | 95.3 | | zipper | 96.5 | 98.6 | | Average | 96.5 | 96.4 | ### ROC Curve  ### Localization results               
Owner
- Name: Anselm Hahn
- Login: Anselmoo
- Kind: user
- Location: Switzerland
- Repositories: 100
- Profile: https://github.com/Anselmoo