The MVTec Logical Constraints Anomaly Detection (MVTec LOCO AD) dataset is intended for the evaluation of unsupervised anomaly localization algorithms. The dataset includes both structural and logical anomalies. It contains 3644 images from five different categories inspired by real-world industrial inspection scenarios. Structural anomalies appear as scratches, dents, or contaminations in the manufactured products. Logical anomalies violate underlying constraints, e.g., a permissible object being present in an invalid location or a required object not being present at all. The dataset also includes pixel-precise ground truth data for each anomalous region.
More information can be found in our corresponding paper titled "Beyond Dents and Scratches: Logical Constraints in Unsupervised Anomaly Detection and Localization".
PLEASE NOTE: LICENSE TERMS & ATTRIBUTION
The data is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). In particular, it is not allowed to use the dataset for commercial purposes. If you are unsure whether or not your application violates the non-commercial use clause of the license, please contact us via the form below.
If you use this dataset in scientific work, please cite our paper:
Paul Bergmann, Kilian Batzner, Michael Fauser, David Sattlegger, Carsten Steger: Beyond Dents and Scratches: Logical Constraints in Unsupervised Anomaly Detection and Localization; in: International Journal of Computer Vision, 2022, DOI: 10.1007/s11263-022-01578-9.
Download the MVTec Loco AD Dataset
For your convenience, we provide a download link for the whole dataset, as well as links for each object category.
For each object, the data consist of four folders:
- 'train', which contains the anomaly-free training images.
- 'validation', which contains the anomaly-free validation images.
- 'test', which contains the test images in three subdirectories: 'good', logical_anomalies', and 'structural_anomalies'.
- 'ground_truth', which contains the pixel-precise annotations of anomalous regions which are represented as a 1-channel PNG image.
The file 'defects_config.json' contains the mapping between defect names and pixel values as well as parameters used for evaluation.
Download the whole dataset
Since the whole dataset is about 5.71 GB in size, we also provide links to download each object category separately:
In order to ensure a fair and consistent comparison of new and existing methods on our dataset, we provide python scripts that allow an easy evaluation. For details on how to use the script, please have a look at the included readme file. For details on the metrics used for the evaluation we refer to our corresponding paper.
Download the evaluation code