GRADE — deployable students for MVTec AD (live demo)
Exported student packages of GRADE: Generalizable Reliability-Aware Distillation from Expert VLMs for Zero-Annotation
Industrial Defect Detection (Master's thesis, FAU Erlangen-Nürnberg, FAPS), one per MVTec AD development product
(bottle, capsule, hazelnut, metal nut, pill, screw, transistor, zipper). Each student was fitted without any annotation
from the thesis verdicts of the offline VLM teacher (grade bench mvtec_ad --suite development + grade export, GRADE v1.0.1) and scores
one image with no VLM call and no memory search: image score, label-free decision and anomaly map.
Run the live demo for free in Google Colab:
Or locally:
pip install torch transformers "gradio>=4.44,<6" matplotlib scipy huggingface_hub
python -c "from huggingface_hub import snapshot_download; print(snapshot_download('MSherbinii/grade-demo-mvtec'))"
# then: cd <that folder> && python app.py
grade_infer.py is a minimal stand-alone runtime of the exported student packages (bit-identical outputs to the GRADE
release predictor on all bundled examples); the full GRADE code (teacher, VLM providers, training, export) is available
on request.
| product | bottle | capsule | hazelnut | metal nut | pill | screw | transistor | zipper |
|---|---|---|---|---|---|---|---|---|
| image AUROC (%) on its test stream | 99.92 | 97.13 | 100.00 | 99.95 | 98.83 | 99.67 | 99.50 | 100.00 |
Recomputed by grade bench from the published verdicts (thesis: 99.92 / 97.45 / 100.00 / 99.90 / 98.91 / 99.67 / 99.21 /
99.97; all within the 0.5 tolerance).
The students were fitted transductively on the MVTec AD test images (the thesis setting), so the bundled examples are images each student has seen without labels. Own images work best when framed like MVTec AD.
- Project page: https://msherbinii.github.io/grade/
Licence. Student weights are derived from MVTec AD images; examples are MVTec AD images (© MVTec Software GmbH, CC BY-NC-SA 4.0). Non-commercial use only. Code (app.py, grade_infer.py): MIT.