Pictograph Research

MVTec AD

Pictograph Research · Updated 13h ago · CC-BY-NC-SA-4.0

Industrial anomaly detection: 15 products, 73 defect kinds.

Dataset Card

MVTec AD

A public anomaly-detection dataset of 5,354 industrial images across 15 products: 4,096 defect-free and 1,258 defective, every defect outlined pixel for pixel.

Pictograph Research · CC-BY-NC-SA-4.0 · Public · Updated 2026-11-25

Overview

MVTec AD is the standard benchmark for unsupervised anomaly detection in industrial inspection: high-resolution photographs of 5 textures and 10 objects. Each product's training images are all defect-free, so a model learns only what normal looks like. Its test images add 73 kinds of real defect, from scratches and cracks to contamination and missing parts, each outlined at the pixel.

Here every outline is a defect polygon and every image carries tags for its state, its product and its defect kind. Each product is its own problem: learn from its normal training images, then score its test images by image (normal or anomalous) and by pixel (the defect polygons).

At a glance

Metric Value
Images5,354
Normal (defect-free)4,096
Anomalous (defective)1,258
Defect polygons1,888
Products15 (5 textures, 10 objects)
Defect kinds73
Classes66 (65 tags, 1 polygon)
Splitstrain 3,629, test 1,725
Annotation typespolygon, tag
VisibilityPublic

Products

Product Type Size (px) Train normal Test normal Test anomalous Defect polygons
bottleobject900209206368
cableobject1,0242245892151
capsuleobject1,00021923109114
carpettexture1,024280288997
gridtexture1,0242642157170
hazelnutobject1,0243914070136
leathertexture1,024245329299
metal_nutobject7002202293132
pillobject80026726141245
screwobject1,02432041119135
tiletexture840230338486
toothbrushobject1,02460123066
transistorobject1,024213604044
woodtexture1,0242471960168
zipperobject1,02424032119177
Total3,6294671,2581,888

Images are square and stored as MVTec published them, PNG byte for byte (an anomaly model reads every pixel, so nothing is re-encoded). Grid, screw and zipper are grayscale.

Defect kinds

Product Kinds
bottlebroken_large, broken_small, contamination
cablebent_wire, cable_swap, combined, cut_inner_insulation, cut_outer_insulation, missing_cable, missing_wire, poke_insulation
capsulecrack, faulty_imprint, poke, scratch, squeeze
carpetcolor, cut, hole, metal_contamination, thread
gridbent, broken, glue, metal_contamination, thread
hazelnutcrack, cut, hole, print
leathercolor, cut, fold, glue, poke
metal_nutbent, color, flip, scratch
pillcolor, combined, contamination, crack, faulty_imprint, pill_type, scratch
screwmanipulated_front, scratch_head, scratch_neck, thread_side, thread_top
tilecrack, glue_strip, gray_stroke, oil, rough
toothbrushdefective
transistorbent_lead, cut_lead, damaged_case, misplaced
woodcolor, combined, hole, liquid, scratch
zipperbroken_teeth, combined, fabric_border, fabric_interior, rough, split_teeth, squeezed_teeth

combined holds several defects in one image.

Annotations

Image tags. Every image is tagged with:

  • normal (MVTec's good) or anomalous;
  • its product, e.g. bottle, so a tag filter picks one product;
  • on an anomalous image, its defect kind: MVTec's folder name, e.g. broken_large.

Defect polygons. MVTec ships a binary mask for each defective image and none for a defect-free one. Each connected region of a mask is one defect polygon: its outline first, then rings for its holes, filled by the even-odd rule. Vertices sit on pixel centres and nothing is simplified. Rasterized back by Pictograph's even-odd rasterizers, every one of the 1,258 masks is reproduced exactly (IoU 1.0, minimum and median): 1,888 regions, 156 holes.

Splits

MVTec's own: train holds defect-free images only; test holds defect-free and defective ones. There is no validation split. Folders mirror the source: /<product>/train/good, /<product>/test/good and /<product>/test/<defect kind>.

Use this dataset

from pictograph import Client, Dataset

client = Client()  # reads PICTOGRAPH_API_KEY
dataset: Dataset = client.datasets.get("MVTec AD")
print(dataset.image_count, dataset.annotation_count)
  • Import it into your own workspace with one click from its page.
  • Pull it with the Pictograph SDK (shown above) or the CLI.
  • Export to COCO, YOLO, Darwin V7, Pascal VOC, and more.

License

Released under CC-BY-NC-SA-4.0 (Creative Commons Attribution-NonCommercial-ShareAlike 4.0):

  • Attribution: credit MVTec Software GmbH and cite the papers below.
  • NonCommercial: no commercial use. For commercial use, contact MVTec.
  • ShareAlike: share what you build on it, these polygons included, under the same license.

Source

The images and masks come from MVTec AD, created by MVTec Software GmbH (Bergmann et al., CVPR 2019) and released under CC-BY-NC-SA-4.0. Changed here: each mask became defect polygons and each image got tags; folders keep MVTec's names. Please credit the original authors when you use this data.

Citation

@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 = {2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  pages = {9584--9592},
  year = {2019},
  doi = {10.1109/CVPR.2019.00982}
}

@article{bergmann2021mvtec,
  title = {The {MVTec} Anomaly Detection Dataset: A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection},
  author = {Bergmann, Paul and Batzner, Kilian and Fauser, Michael and Sattlegger, David and Steger, Carsten},
  journal = {International Journal of Computer Vision},
  volume = {129},
  number = {4},
  pages = {1038--1059},
  year = {2021},
  doi = {10.1007/s11263-020-01400-4}
}
5,354 images
Loading images…
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Data / content

Allows use and adaptation with credit, but not for commercial purposes, and adaptations must be shared under the same license.

Source: MVTec AD, created by MVTec Software GmbH (Bergmann et al., CVPR 2019). Credit the original authors when you use this data.

Read the full Creative Commons Attribution-NonCommercial-ShareAlike 4.0 →

Join the discussion

Comments and reactions live in the app.

Sign in to comment

Build your first vision tool

$25 of free compute to start. No card required.