Skip to content

abc-125/viad-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beyond Academic Benchmarks: Critical Analysis and Best Practices for Visual Industrial Anomaly Detection

Work in progress

Spotlight paper✨ at VAND workshop at CVPR 2025. It presents a comprehensive empirical analysis of Visual Industrial Anomaly Detection with a focus on real-world applications. We demonstrate that recent SOTA methods perform worse than methods from 2021 when evaluated on a variety of datasets. We also investigate how different practical aspects, such as input size, distribution shift, data contamination, supervised training, and having a validation set, affect the results.

TLDR:

  • Existing academic evaluation practices do not reliably predict real-world industrial performance for anomaly detection models (e.g., early stop on the test dataset, center crop on the object).
  • Higher input resolution helps detect small defects, but for some models, it also makes the detection of large and logical defects worse, demonstrating the restrictions of the receptive field.
  • Anomaly detection models are sensitive to noisy labels in the training data, and truly unsupervised approaches still underperform compared to one-class methods even in the presence of noisy labels.
  • Data distribution shift is detected as anomaly by all the tested models, demonstrating the necessity for models which are capable of capturing semantic meaning rather than pixel values.
  • Usage of the validation set for an early stop strongly improves performance, even if it is not identical to the test set.

🔧 Install

git clone https://github.com/abc-125/viad-benchmark
cd viad-benchmark/anomalib
pip install -e .
anomalib install
cd ..
pip install mlflow==2.21.3

🚀 Get started

Modify run.py to include required models and datasets. Currently, only the Evaluation experiment is available.

python run.py

🙏 Acknowledgement

We use Anomalib library and the official implementations of models: DRAEM, MMR, MSFlow, GLASS, SimpleNet, DevNet, DRA, InReaCh. We are thankful for their amazing work!

✨ Citation

Please cite our paper if you find it useful:

@inproceedings{baitieva2025benchmark,
      title={Beyond Academic Benchmarks: Critical Analysis and Best Practices for Visual Industrial Anomaly Detection}, 
      author={Aimira Baitieva and Yacine Bouaouni and Alexandre Briot and Dick Ameln and Souhaiel Khalfaoui and Samet Akcay},
      booktitle = {CVPRW},
      year={2025},
      pages={4024-4034}
}

Releases

No releases published

Packages

 
 
 

Contributors