File size: 2,783 Bytes
df14522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a2c43f7
 
 
 
eb692b3
a2c43f7
eb692b3
a2c43f7
eb692b3
a2c43f7
 
eb692b3
a2c43f7
 
df14522
 
 
8d9754f
 
df14522
 
 
 
 
 
 
 
 
8d9754f
df14522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ecefa3
df14522
 
 
 
 
 
5ecefa3
df14522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
license: cc-by-nc-sa-4.0
tags:
- anomaly-detection
- industrial-inspection
- computer-vision
- mvtec
- unsupervised-learning
---

# MVTec Anomaly Detection Dataset (MVTec AD)

## Dataset description

The **MVTec Anomaly Detection (MVTec AD)** dataset is a large-scale real-world dataset for unsupervised anomaly detection in industrial inspection scenarios.  
It contains high-resolution images of multiple object and texture categories, including normal samples and various defect types with pixel-level ground truth masks.

Official website:  
https://www.mvtec.com/company/research/datasets/mvtec-ad

---

## Dataset format

In this repository, the dataset is provided as a **single compressed archive**:

**`mvtec_anomaly_detection.tar.xz`**

After downloading, the archive must be extracted locally:

```bash
tar -xJf mvtec_anomaly_detection.tar.xz
```

---
## Dataset structure


```text
Each category follows the structure:
category/
├── train/
│ └── good/
├── test/
│ ├── good/
│ └── defect_type/
└── ground_truth/
└── defect_type/
```

- Training set: only normal images  
- Test set: normal and anomalous images  
- Ground truth: pixel-level defect masks  

---

## Categories

The dataset includes objects and textures such as:

bottle, cable, capsule, carpet, grid, hazelnut, leather, metal_nut, pill, screw, tile, toothbrush, transistor, wood, zipper, and others.

---

## License

This dataset is distributed under:

**Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International  
(CC BY-NC-SA 4.0)**

You may:

- Share and redistribute the dataset  
- Adapt and build upon the dataset  

Under the conditions:

- Attribution required  
- Non-commercial use only  
- Share-alike under the same license  

Full license text:  
https://creativecommons.org/licenses/by-nc-sa/4.0/

---

## Citation

If you use this dataset in academic work, please cite:

```bibtex
@inproceedings{bergmann2019mvtec,
  title={MVTec AD — A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection},
  author={Bergmann, Paul and Fauser, Michael and Sattlegger, David and Steger, Carsten},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
  year={2019}
}
```

---

## Source and attribution

This dataset is originally provided by:

MVTec Software GmbH
[https://www.mvtec.com](https://www.mvtec.com)

All rights remain with the original authors.

---

## Intended use

This dataset is intended for:

* Academic research
* Educational purposes
* Benchmarking anomaly detection algorithms

Commercial use is not permitted.

---

## Disclaimer

This repository is not affiliated with MVTec Software GmbH.
It is provided only for research and educational purposes.

---