Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ArrowInvalid
Message:      JSON parse error: Invalid value. in row 0
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 324, in _generate_tables
                  df = pandas_read_json(f)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
                  return pd.read_json(path_or_buf, **kwargs)
                         ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 791, in read_json
                  json_reader = JsonReader(
                      path_or_buf,
                  ...<16 lines>...
                      engine=engine,
                  )
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 905, in __init__
                  self.data = self._preprocess_data(data)
                              ~~~~~~~~~~~~~~~~~~~~~^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/json/_json.py", line 917, in _preprocess_data
                  data = data.read()
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 844, in read_with_retries
                  out = read(*args, **kwargs)
                File "<frozen codecs>", line 325, in decode
              UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4408, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2679, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2861, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2395, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 327, in _generate_tables
                  raise e
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
                  pa_table = paj.read_json(
                      io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
                  )
                File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: JSON parse error: Invalid value. in row 0

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

πŸ† MMAD Remake β€” Unified Industrial Anomaly Detection Benchmark

Welcome to the MMAD Remake Benchmark Dataset, a comprehensive, unified Multimodal Visual Question Answering (VQA) and detailed image captioning benchmark built for evaluating Frontier Vision-Language Models (VLMs) across industrial quality control and visual anomaly detection.


πŸ“Œ Dataset Overview

  • Combined Datasets (4 Sources):
    1. GoodsAD: Supermarket goods anomaly detection (4,875 images)
    2. MVTec AD: Industrial surface & object anomaly detection (5,354 images)
    3. VisA: High-resolution printed circuit boards & multi-instance objects (10,821 images)
    4. MVTec LOCO AD: Structural and logical constraint anomalies (3,122 images)
  • Total Images: 24,172 high-resolution images
  • Total VQA Question Set: ~120,000+ multiple-choice questions across 7 core industrial subtasks.
  • Caption Model: Qwen2-VL-2B-Instruct
  • VQA Generator Model: Qwen2.5-7B-Instruct (4-bit Quantized)

πŸ“‚ Directory Structure

MMAD_remake_Benchmark/
β”œβ”€β”€ images/                             # Contains image files organized by source dataset
β”‚   β”œβ”€β”€ goodsad/                        # 6 supermarket product categories
β”‚   β”œβ”€β”€ mvtecad/                        # 15 industrial object & texture categories
β”‚   β”œβ”€β”€ visa/                           # 12 PCB & multi-instance categories
β”‚   └── mvtecloco/                      # 5 logical constraint categories
β”œβ”€β”€ mmad_remake_captions.json           # Unified image captions across all 24,172 images
β”œβ”€β”€ mmad_remake_questions.json          # Unified Multiple-Choice VQA Benchmark questions
β”œβ”€β”€ mmad_remake_metadata.csv            # Overview metadata table for easy filtering
└── README.md                           # Benchmark documentation

πŸ“‘ Core VQA Subtasks Evaluated

  1. Anomaly Detection: Binary verification (Yes / No) if a defect exists.
  2. Anomaly Classification: Identifying the exact defect category/type.
  3. Anomaly Localization: Identifying the relative spatial location of the defect.
  4. Attribute QA: Inquiring about physical attributes (colors, OCR text, branding, material).
  5. Structural Reasoning: Evaluating component alignment, symmetry, and structural integrity.
  6. Logical Reasoning: Checking for missing parts, extra items, or placement constraint violations.
  7. Complex Decision Making: Final Quality Control pass/reject determination.

πŸ› οΈ Usage Example (Python PyTorch / HuggingFace)

import os
import json
import pandas as pd
from PIL import Image

BENCHMARK_ROOT = "./MMAD_remake_Benchmark"
QUESTIONS_FILE = os.path.join(BENCHMARK_ROOT, "mmad_remake_questions.json")

with open(QUESTIONS_FILE, "r", encoding="utf-8") as f:
    benchmark_data = json.load(f)

print(f"Total benchmark samples: {len(benchmark_data)}")

# Load a sample item
sample = benchmark_data[0]
image_full_path = os.path.join(BENCHMARK_ROOT, sample["image_path"])

# Open image
img = Image.open(image_full_path)
print(f"Sample Global ID: {sample['global_id']} (Source: {sample['dataset_source']})")
print(f"Loaded image: {image_full_path} (Size: {img.size})")

# Iterate questions
for q in sample["questions"]:
    print(f"\n[{q['subtask']}] {q['question']}")
    for opt in q["options"]:
        print(f"  {opt}")
    print(f"Correct Answer: {q['answer']}")

πŸ“œ License & Citation

The original images belong to their respective dataset creators (PKU-GoodsAD, MVTec Software GmbH, Amazon Research). Please cite the original papers when conducting non-commercial research using this benchmark:

@inproceedings{mmad_remake_2026,
  title={MMAD Remake: A Unified Multimodal Benchmark for Industrial Visual Anomaly Detection},
  author={Celesnity Research},
  year={2026}
}
Downloads last month
46