Home

Awesome

Student-Teacher anomaly detection

This is an implementation of the paper Uninformed Students: Student–Teacher Anomaly Detection with Discriminative Latent Embeddings.

How to use

./mvtec_dataset.sh
cd src
python3 resnet18_training.py --dataset carpet
cd src
python3 teacher_training.py --dataset carpet --patch_size 33 
cd src
python students_training.py --dataset carpet --patch_size 33 --n_students 3
cd src
python anomaly_detection.py --dataset carpet --patch_size 33 --n_students 3

Results

result 1 result 2 result 5

And more results are available under /result folder

Performance

roc

References

Original paper

MVTec dataset paper

Fast Dense Feature Extraction