Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: IndexError
Message: list index out of range
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1859, in _prepare_split_single
original_shard_lengths[original_shard_id] += len(table)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text string |
|---|
3 0.955943 0.973164 0.030738 0.053672 |
1 0.025338 0.481781 0.050676 0.591093 |
4 0.500000 0.189076 1.000000 0.378151 |
4 0.500000 0.054412 1.000000 0.108824 |
3 0.138704 0.952083 0.088040 0.095833 |
3 0.522007 0.446352 0.350352 0.678112 |
4 0.500000 0.798354 1.000000 0.403292 |
4 0.500000 0.772575 1.000000 0.454849 |
1 0.878307 0.934375 0.243386 0.131250 |
1 0.219577 0.029687 0.068783 0.059375 |
1 0.055556 0.033582 0.111111 0.067164 |
4 0.588063 0.737003 0.823875 0.238532 |
2 0.456621 0.481061 0.063927 0.962121 |
3 0.517241 0.533846 0.474138 0.932308 |
1 0.118908 0.058252 0.198830 0.116505 |
0 0.566327 0.664634 0.030612 0.028455 |
0 0.941509 0.044944 0.041509 0.039326 |
2 0.733202 0.972441 0.035573 0.055118 |
2 0.407115 0.023622 0.071146 0.047244 |
1 0.096774 0.072954 0.064516 0.145907 |
4 0.357477 0.166667 0.714953 0.333333 |
2 0.506356 0.016710 0.055085 0.033419 |
2 0.381356 0.006427 0.050847 0.012853 |
1 0.500000 0.668937 1.000000 0.662125 |
0 0.968326 0.711397 0.027149 0.033088 |
4 0.500000 0.162857 1.000000 0.325714 |
0 0.472477 0.836431 0.064220 0.037175 |
2 0.752665 0.141892 0.046908 0.283784 |
1 0.903141 0.898855 0.109948 0.095420 |
0 0.921569 0.782101 0.049020 0.077821 |
0 0.155556 0.233524 0.022222 0.042980 |
3 0.108401 0.034946 0.124661 0.048387 |
4 0.500000 0.129393 1.000000 0.258786 |
2 0.237179 0.057951 0.017949 0.115903 |
2 0.701900 0.057796 0.021378 0.115591 |
2 0.516627 0.064516 0.026128 0.129032 |
0 0.564484 0.161725 0.021825 0.026954 |
1 0.076172 0.050938 0.082031 0.085791 |
4 0.519685 0.886968 0.066929 0.013298 |
4 0.042323 0.918883 0.084646 0.162234 |
4 0.783465 0.884309 0.228346 0.231383 |
1 0.934524 0.960106 0.107143 0.047872 |
0 0.632479 0.329181 0.153846 0.074733 |
0 0.455752 0.505172 0.150442 0.031034 |
4 0.574951 0.856287 0.850099 0.287425 |
0 0.334821 0.123239 0.098214 0.028169 |
4 0.500000 0.137153 1.000000 0.274306 |
0 0.293103 0.127698 0.103448 0.075540 |
2 0.536304 0.797521 0.009901 0.404959 |
0 0.433114 0.018325 0.028509 0.026178 |
1 0.970492 0.379371 0.019672 0.409091 |
0 0.509434 0.593333 0.030189 0.061333 |
4 0.500000 0.741245 1.000000 0.517510 |
1 0.030428 0.455078 0.060855 0.566406 |
4 0.768443 0.162429 0.036885 0.002825 |
4 0.485656 0.069209 0.971311 0.138418 |
3 0.521404 0.443723 0.327055 0.670996 |
4 0.500000 0.779743 1.000000 0.440514 |
4 0.500000 0.207692 1.000000 0.415385 |
4 0.059278 0.594855 0.015464 0.019293 |
4 0.520619 0.646302 0.762887 0.585209 |
3 0.479284 0.500000 0.408663 1.000000 |
1 0.075916 0.044118 0.130890 0.088235 |
4 0.996047 0.826220 0.007905 0.018293 |
4 0.276680 0.734756 0.332016 0.219512 |
2 0.457014 0.490530 0.072398 0.981061 |
3 0.533898 0.541787 0.694915 0.916427 |
1 0.116896 0.071885 0.210216 0.143770 |
0 0.564171 0.673160 0.037433 0.030303 |
0 0.951362 0.048851 0.042802 0.045977 |
4 0.012097 0.939437 0.024194 0.014085 |
4 0.417339 0.723944 0.834677 0.422535 |
4 0.835616 0.132530 0.328767 0.265060 |
0 0.880952 0.891854 0.102041 0.087079 |
0 0.943182 0.468165 0.022727 0.029963 |
1 0.815534 0.500000 0.368932 1.000000 |
0 0.968750 0.702166 0.026786 0.032491 |
4 0.500000 0.933692 1.000000 0.132616 |
1 0.915789 0.876866 0.115789 0.082090 |
2 0.737234 0.140921 0.040426 0.281843 |
0 0.924528 0.786275 0.047170 0.074510 |
2 0.698851 0.060484 0.022989 0.120968 |
2 0.520690 0.081989 0.034483 0.163978 |
1 0.070423 0.057487 0.080483 0.082888 |
4 0.500000 0.886486 1.000000 0.227027 |
1 0.933532 0.951058 0.121032 0.050265 |
0 0.419048 0.494700 0.152381 0.028269 |
0 0.552632 0.879004 0.140351 0.049822 |
0 0.344538 0.122414 0.100840 0.031034 |
4 0.500000 0.119048 1.000000 0.238095 |
0 0.297414 0.124088 0.094828 0.072993 |
1 0.764228 0.128521 0.276423 0.257042 |
3 0.956198 0.858079 0.087603 0.257642 |
3 0.100000 0.554585 0.180165 0.890830 |
2 0.543002 0.805328 0.016863 0.389344 |
0 0.327684 0.032995 0.033898 0.025381 |
1 0.382743 0.982759 0.022124 0.034483 |
1 0.636062 0.958621 0.033186 0.082759 |
1 0.801991 0.950000 0.103982 0.100000 |
1 0.948009 0.898276 0.068584 0.203448 |
MagneticTile-corrected
Magnetic tile surface defect detection — cleaned and bounding-box standardized version of the Magnetic Tile Surface Defect Dataset.
磁瓦表面缺陷检测 —— 磁瓦表面缺陷数据集的目标检测清洗与边界框规整版。
English
What is this?
A cleaned and standardized object-detection version of the Magnetic Tile Surface Defect Dataset (Huang, Qiu & Yuan — "Saliency of magnetic tile surface defects", arXiv:1805.01168, 2018; upstream repo: abin24/Magnetic-tile-defect-datasets).
The original benchmark provides only continuous probability grayscale saliency masks (PNG) without bounding boxes, contains high-frequency industrial camera burst-shot duplicate frames that cause benchmark evaluation data leakage, has blank defect annotations, and lacks standard dataset partitions.
This release converts the saliency masks into precise YOLO TXT and Pascal VOC XML bounding boxes, strips out redundant burst-shot duplicates, removes corrupt blank masks, provides a stratified 70/10/20 train/val/test split, and supplies ready-to-train YOLO configuration files.
✅ Upstream license: Creative Commons Attribution 4.0 International (CC BY 4.0). This release maintains the same open license.
Corrections vs. the official release
| # | Correction | Detail |
|---|---|---|
| 1 | Added Bounding Boxes (YOLO + Pascal VOC) | Upstream released only grayscale saliency masks (0–255) and zero bounding boxes. Adaptive Otsu thresholding and morphological closing were applied to extract tight, high-precision bounding boxes (437 BBoxes) across all 5 defect categories. |
| 2 | Removed 22 Burst-Shot Duplicates | Industrial cameras captured identical tiles in rapid burst intervals (e.g. exp2_num_86854 vs exp2_num_85846, MAE = 1.64). 22 near-identical temporal duplicates were isolated into _removed_duplicates/, preventing evaluation data leakage between splits. |
| 3 | Removed 4 Zero-Defect Dirty Images | In category MT_Uneven, 4 images were labeled as defective but had 100% black masks (0 foreground defect pixels: exp3_num_45042, exp4_num_124690, exp4_num_352527, exp4_num_45057). Removed to prevent harmful negative-supervision. |
| 4 | Added Reproducible Stratified Split | Partitioned images into Train (70%) / Val (10%) / Test (20%) using seeded stratified sampling to guarantee rare classes (such as Fray) are well-represented across all splits. |
| 5 | Standard Packaging | Added data.yaml, classes.txt, and synchronized dual-format annotations (Annotations/ + labels/). |
Dataset at a glance
| Property | Value |
|---|---|
| Images (total) | 1,318 (941 defect-free normal negatives, 377 defective) |
| Classes | 5 — Blowhole, Break, Crack, Fray, Uneven |
| Bounding boxes | 437 |
| Formats | Pascal VOC XML · YOLO TXT |
| Split | train 920 (70%) / val 129 (10%) / test 269 (20%) |
Boxes per class:
Break 121 · Blowhole 113 · Uneven 105 · Crack 61 · Fray 37
Structure
MagneticTile-corrected/
├── images/
│ ├── train/ # 920 images
│ ├── val/ # 129 images
│ └── test/ # 269 images
├── labels/
│ ├── train/ # 920 YOLO TXT files
│ ├── val/ # 129 YOLO TXT files
│ └── test/ # 269 YOLO TXT files
├── Annotations/ # Pascal VOC XML annotations (1,318 files)
├── JPEGImages/ # Full image collection (1,318 images)
├── classes.txt # 5 defect category names
├── data.yaml # Ultralytics YOLO configuration
├── _KeenForge_MagneticTile_compare.png # Visual inspection proof
└── README.md
Quick Start (Ultralytics YOLO)
yolo detect train data=data.yaml model=yolov8n.pt epochs=100 imgsz=640
Citation
1. The original dataset — please always cite this.
@article{huang2018saliency,
title = {Saliency of magnetic tile surface defects},
author = {Huang, Yibin and Qiu, Congying and Yuan, Kui},
journal = {arXiv preprint arXiv:1805.01168},
year = {2018}
}
2. This corrected release — please cite it as well.
@misc{magnetictile_corrected,
author = {KeenForgeAI},
title = {MagneticTile-corrected: a cleaned and bounding-box standardized release of the Magnetic Tile Surface Defect dataset},
year = {2026},
version = {1.0},
publisher = {KeenForgeAI},
url = {https://huggingface.co/datasets/KeenForgeAI/MagneticTile-corrected},
note = {Curated by Lu Gan and Sam Li. Derived from Huang et al. (2018),
arXiv:1805.01168. CC BY 4.0 licensed.}
}
3. The annotation and quality inspection tool.
@software{keenforge,
author = {KeenForgeAI},
title = {KeenForge: a local-first, offline image annotation and model-training desktop tool},
year = {2026},
publisher = {KeenForgeAI},
url = {https://github.com/KeenForgeAI/KeenForge},
note = {MIT licensed. Developed by Lu Gan and Sam Li.}
}
License
CC BY 4.0 — Creative Commons Attribution 4.0 International, matching the upstream repository's terms. Please also credit the original authors.
中文
这是什么?
磁瓦表面缺陷数据集(Magnetic Tile Surface Defect Dataset)(Huang 等,arXiv:1805.01168,2018)的目标检测清洗与标准化重构版。
原始数据集仅提供连续灰度显著性掩码(Mask PNG),缺少矩形目标检测标注框(BBox);且工业相机连拍导致大量高相似度冗余帧,容易造成评估集数据泄漏;此外还存在纯黑空标脏样本以及目录结构割裂等问题。
本版本利用 KeenForge 质检引擎对原始数据进行去重与清洗,通过自适应分割算法提取紧密 BBox,补充 YOLO TXT 与 Pascal VOC XML 双格式标注,剔除 22 张时序连拍冗余图与 4 张纯黑空标脏图,并提供开箱即用的分层划分与训练配置文件。
✅ 上游许可证:CC BY 4.0。本版沿用同一开源协议。
相对官方版的修正
| # | 修正项 | 说明 |
|---|---|---|
| 1 | 补充检测框(YOLO + Pascal VOC) | 官方仅发布连续灰度掩码(0~255),无任何目标检测框。本版采用自适应分割与连通域提取,在 5 类缺陷中生成 437 个高精度 Bounding Box 矩形框。 |
| 2 | 剔除 22 张连拍重复图 | 工业相机在微秒级间隔抓拍了几乎相同的工件(如 exp2_num_86854 与 exp2_num_85846 平均像素差仅 1.64)。本版将 **22 张时序冗余帧隔离至 _removed_duplicates/**,彻底根除划分集间的数据泄漏。 |
| 3 | 删除 4 张纯黑空标脏图 | 在 MT_Uneven 类中发现 4 张标记为缺陷但掩码全黑(0 缺陷像素)的异常图(exp3_num_45042、exp4_num_124690、exp4_num_352527、exp4_num_45057),已全部剔除,杜绝负向误学习。 |
| 4 | 补充可复现的分层划分 | 采用随机种子按 70% 训练 / 10% 验证 / 20% 测试 进行分层抽样,确保稀缺类别(如 Fray 磨损)在验证与测试集中稳定存在。 |
| 5 | 标准化打包 | 补充 data.yaml、classes.txt 以及标准组织目录,支持主流框架直接训练。 |
数据集概览
| 属性 | 值 |
|---|---|
| 图像总数 | 1,318(941 张无缺陷正常底板,377 张缺陷样本) |
| 缺陷类别 | 5 —— Blowhole(气孔)、Break(断裂)、Crack(裂纹)、Fray(磨损)、Uneven(表面不平) |
| 标注框总数 | 437 |
| 标注格式 | Pascal VOC XML · YOLO TXT |
| 划分集 | train 920(70%) / val 129(10%) / test 269(20%) |
各类框数:
Break 121 · Blowhole 113 · Uneven 105 · Crack 61 · Fray 37
目录结构
MagneticTile-corrected/
├── images/
│ ├── train/ # 920 张图片
│ ├── val/ # 129 张图片
│ └── test/ # 269 张图片
├── labels/
│ ├── train/ # 920 个 YOLO TXT 标注文件
│ ├── val/ # 129 个 YOLO TXT 标注文件
│ └── test/ # 269 个 YOLO TXT 标注文件
├── Annotations/ # Pascal VOC XML 标注 (1,318 个文件)
├── JPEGImages/ # 完整图片集合 (1,318 张图片)
├── classes.txt # 5 个缺陷类别名称
├── data.yaml # Ultralytics YOLO 配置文件
├── _KeenForge_MagneticTile_compare.png # 清洗与框提取效果对比图
└── README.md
快速开始 (Ultralytics YOLO)
yolo detect train data=data.yaml model=yolov8n.pt epochs=100 imgsz=640
引用
1. 原始数据集(请务必引用) —— 见上方英文部分 huang2018saliency。
2. 本修正版(请一并引用) —— 见上方英文部分 magnetictile_corrected。
3. 标注与质检工具(可选) —— 见上方英文部分 keenforge。
许可证
CC BY 4.0 —— 与上游 Magnetic Tile 数据集开源协议一致。请同时注明原作者与本整理版本。
- Downloads last month
- 1