A simple and incomplete implementation of paper:
MVTec, Uninformed Students: Student–Teacher Anomaly Detection with Discriminative Latent Embeddings. CVPR, 2020.
arXiv:1911.02357
Another implementation repo: https://github.com/denguir/student-teacher-anomaly-detection
python3
pytorch~=1.3
torchvision
numpy
opencv-python
imagenet (any image dataset)
MVTec_AD
choose a patch_size
from (17, 33 or 65) and
python teacher_train.py
choose a patch_size
(the teacher net should have been pretrained), and set st_id
python student_train.py
python evaluate.py
the res.jpg will be saved to the current directory.
metric learning and descriptor compactness in teacher_train.py
complete evaluate.py
...
https://github.com/erezposner/Fast_Dense_Feature_Extraction
https://github.com/denguir/student-teacher-anomaly-detection