Trained weights for CLIP-based anomaly detectors (MVTec AD, VisA)

Re-trained checkpoints of six CLIP-based anomaly-detection models, trained with each model's official code and default settings. We made them for a study of how robust these detectors are to universal adversarial perturbations, and share them so the clean numbers can be reproduced without retraining.

Model Paper Setting Folder
PromptAD CVPR 2024 few-shot, k = 4 promptad/
ReMP-AD ICCV 2025 few-shot, k = 4 rempad/
IIPAD AF-CLIP authors, ACM MM 2025 few-shot, k = 4 iipad/
InCTRL CVPR 2024 few-shot, k = 4 inctrl/
MoECLIP CVPR 2026 zero-shot moeclip/
MRAD-FT ICLR 2026 (MRAD) zero-shot mrad_ft/

Training protocol

  • Few-shot (k = 4): trained and tested per dataset with 4 normal reference images per class, one seed per model (the papers average 3-5 seeds).
  • Zero-shot / cross-dataset: trained on one dataset and tested on the other (MVTec AD -> VisA and VisA -> MVTec AD), as in the papers. The folder name says which way (train_on_<dataset>, trained_on_<dataset>, test_on_<dataset>).
  • InCTRL: trained_on_mvtecad/ is ours (used for VisA). The MVTec AD result uses the authors' published VisA-trained checkpoint, which is not re-hosted here; download it from the InCTRL repository.

Clean results: our run (official test code) vs the paper

ok = within 1.5 points, minor = within 3, MAJOR = more than 3. Image AUROC shown; the full table with AP, F1, pixel AUROC and AUPRO is in clean_vs_papers_k4.csv.

Model MVTec AD ours / paper VisA ours / paper
PromptAD 95.9 / 96.6 89.2 / 89.1
ReMP-AD 96.9 / 96.8 94.5 / 94.1
IIPAD 96.3 / 96.1 86.0 / 88.3 (minor)
InCTRL 94.9 / 94.5 (authors' ckpt) 90.1 / 87.7 (minor)
MoECLIP 93.4 / 93.9 82.7 / 83.6
MRAD-FT 93.1 / 92.3 80.5 / 85.5 (MAJOR)

Other gaps: PromptAD VisA AUPRO 82.9 vs 86.2, MRAD-FT MVTec AUPRO 81.5 vs 85.4 and VisA image AP 84.3 vs 87.8. MRAD-FT on VisA is below the paper in our single run.

Usage

pip install -U "huggingface_hub[cli]"
hf download Parsagh1383/vlm-ad-trained-k4 --local-dir outputs

Load each checkpoint with the model's official repository; the files are in the format that repository's own training script writes.

Licence and credit

These weights are derived from each model's official code and the MVTec AD and VisA datasets, so each folder follows the licence of its upstream repository and of the datasets. MVTec AD is CC BY-NC-SA 4.0, which restricts commercial use. Please cite the original papers when you use a checkpoint.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support