Datasets:
Duplicate from jiang-cc/MMAD
Browse filesCo-authored-by: Jiang <jiang-cc@users.noreply.huggingface.co>
- .gitattributes +59 -0
- DS-MVTec.zip +3 -0
- GoodsAD.zip +3 -0
- MVTec-AD.zip +3 -0
- MVTec-LOCO.zip +3 -0
- README.md +72 -0
- VisA.zip +3 -0
- domain_knowledge.json +0 -0
- metadata.csv +0 -0
- mmad.json +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
# Video files - compressed
|
| 57 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
mmad.json filter=lfs diff=lfs merge=lfs -text
|
DS-MVTec.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b0ff7b548021e977a755b02167c069dc03e701718d4436e635071f7e1f899f3
|
| 3 |
+
size 1663225174
|
GoodsAD.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d80d03b2f4c9d8ab8f54322d0bcd48ef407e27bca8199c4abdd3a4e3112c29ef
|
| 3 |
+
size 13338776535
|
MVTec-AD.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a4ff072fafcfc4bccce68c0657b5d3890cb3c01737c66ab36259f806438faf2
|
| 3 |
+
size 5273925193
|
MVTec-LOCO.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2bbcb234fcb7478199dde32a861642eadade7c10ea762958bc7d762f3cd82e9
|
| 3 |
+
size 6131998488
|
README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- question-answering
|
| 5 |
+
tags:
|
| 6 |
+
- Anomaly Detection
|
| 7 |
+
- MLLM
|
| 8 |
+
size_categories:
|
| 9 |
+
- 10K<n<100K
|
| 10 |
+
dataset_info:
|
| 11 |
+
# - config_name: viewer
|
| 12 |
+
# features:
|
| 13 |
+
# - name: question
|
| 14 |
+
# dtype: string
|
| 15 |
+
# - name: options
|
| 16 |
+
# dtype: string
|
| 17 |
+
# - name: answer
|
| 18 |
+
# dtype: string
|
| 19 |
+
# - name: query_image
|
| 20 |
+
# dtype: image
|
| 21 |
+
# - name: template_image
|
| 22 |
+
# dtype: image
|
| 23 |
+
# - name: mask
|
| 24 |
+
# dtype: image
|
| 25 |
+
configs:
|
| 26 |
+
- config_name: viewer
|
| 27 |
+
data_files: "metadata.csv"
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# MMAD: The First-Ever Comprehensive Benchmark for Multimodal Large Language Models in Industrial Anomaly Detection
|
| 31 |
+
|
| 32 |
+
[](https://arxiv.org/abs/2410.09453)
|
| 33 |
+
[](https://github.com/jam-cc/MMAD)
|
| 34 |
+
|
| 35 |
+
## 💡 This dataset is the full version of MMAD
|
| 36 |
+
- **Content**:Containing both questions, images, and captions.
|
| 37 |
+
|
| 38 |
+
- **Questions**: All questions are presented in a multiple-choice format with manual verification, including options and answers.
|
| 39 |
+
|
| 40 |
+
- **Images**:Images are collected from the following links:
|
| 41 |
+
[DS-MVTec](https://huggingface.co/datasets/DefectSpectrum/Defect_Spectrum/tree/main/DS-MVTec)
|
| 42 |
+
, [MVTec-AD](https://www.mvtec.com/company/research/datasets/mvtec-ad)
|
| 43 |
+
, [MVTec-LOCO](https://www.mvtec.com/company/research/datasets/mvtec-loco)
|
| 44 |
+
, [VisA](https://github.com/amazon-science/spot-diff)
|
| 45 |
+
, [GoodsAD](https://github.com/jianzhang96/GoodsAD).
|
| 46 |
+
We retained the mask format of the ground truth to facilitate future evaluations of the segmentation performance of multimodal large language models.
|
| 47 |
+
|
| 48 |
+
- **Captions**:Most images have a corresponding text file with the same name in the same folder, which contains the associated caption. Since this is not the primary focus of this benchmark, we did not perform manual verification. Although most captions are of good quality, please use them with caution.
|
| 49 |
+
|
| 50 |
+
## 👀 Overview
|
| 51 |
+
In the field of industrial inspection, Multimodal Large Language Models (MLLMs) have a high potential to renew the paradigms in practical applications due to their robust language capabilities and generalization abilities. However, despite their impressive problem-solving skills in many domains, MLLMs' ability in industrial anomaly detection has not been systematically studied. To bridge this gap, we present MMAD, the first-ever full-spectrum MLLMs benchmark in industrial Anomaly Detection. We defined seven key subtasks of MLLMs in industrial inspection and designed a novel pipeline to generate the MMAD dataset with 39,672 questions for 8,366 industrial images. With MMAD, we have conducted a comprehensive, quantitative evaluation of various state-of-the-art MLLMs.
|
| 52 |
+
|
| 53 |
+
Our benchmark responds to the following questions:
|
| 54 |
+
- How well are current MLLMs performing as industrial quality inspectors?
|
| 55 |
+
- Which MLLM performs the best in industrial anomaly detection?
|
| 56 |
+
- What are the key challenges in industrial anomaly detection for MLLMs?
|
| 57 |
+
|
| 58 |
+
## 🕹️ How to evaluate
|
| 59 |
+
Please refer to the ['evaluation/examples'](https://github.com/jam-cc/MMAD/tree/main/evaluation/examples) folder in our [GitHub repository](https://github.com/jam-cc/MMAD).
|
| 60 |
+
|
| 61 |
+
## 🥹 BibTex Citation
|
| 62 |
+
|
| 63 |
+
If you find this paper and repository useful for your study, please cite our paper☺️.
|
| 64 |
+
|
| 65 |
+
```bibtex
|
| 66 |
+
@inproceedings{Jiang2024MMADTF,
|
| 67 |
+
title={MMAD: The First-Ever Comprehensive Benchmark for Multimodal Large Language Models in Industrial Anomaly Detection},
|
| 68 |
+
author={Xi Jiang and Jian Li and Hanqiu Deng and Yong Liu and Bin-Bin Gao and Yifeng Zhou and Jialin Li and Chengjie Wang and Feng Zheng},
|
| 69 |
+
year={2024},
|
| 70 |
+
journal={arXiv preprint arXiv:2410.09453},
|
| 71 |
+
}
|
| 72 |
+
```
|
VisA.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8a0511b7c2231fbfc16d59f1e00fc20c6eafcaff262b3f64805273e404a2e24
|
| 3 |
+
size 1916719940
|
domain_knowledge.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
metadata.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mmad.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:639343b491bc67b2abb3c5d719f221ce27f83b2ed97948f4e88055aaa31f1c1e
|
| 3 |
+
size 30404810
|