Dataset Viewer
Auto-converted to Parquet Duplicate
sample_id
stringlengths
14
14
image
imagewidth (px)
256
256
mask
imagewidth (px)
256
256
category
stringclasses
4 values
defect_classes
listlengths
0
1
is_multiclass
bool
1 class
prl-msd-000001
background
[]
false
prl-msd-000002
background
[]
false
prl-msd-000003
background
[]
false
prl-msd-000004
background
[]
false
prl-msd-000005
background
[]
false
prl-msd-000006
background
[]
false
prl-msd-000007
background
[]
false
prl-msd-000008
background
[]
false
prl-msd-000009
background
[]
false
prl-msd-000010
background
[]
false
prl-msd-000011
background
[]
false
prl-msd-000012
background
[]
false
prl-msd-000013
background
[]
false
prl-msd-000014
background
[]
false
prl-msd-000015
background
[]
false
prl-msd-000016
background
[]
false
prl-msd-000017
background
[]
false
prl-msd-000018
background
[]
false
prl-msd-000019
background
[]
false
prl-msd-000020
background
[]
false
prl-msd-000021
background
[]
false
prl-msd-000022
background
[]
false
prl-msd-000023
background
[]
false
prl-msd-000024
background
[]
false
prl-msd-000025
background
[]
false
prl-msd-000026
background
[]
false
prl-msd-000027
background
[]
false
prl-msd-000028
background
[]
false
prl-msd-000029
background
[]
false
prl-msd-000030
background
[]
false
prl-msd-000031
background
[]
false
prl-msd-000032
background
[]
false
prl-msd-000033
background
[]
false
prl-msd-000034
background
[]
false
prl-msd-000035
background
[]
false
prl-msd-000036
background
[]
false
prl-msd-000037
background
[]
false
prl-msd-000038
background
[]
false
prl-msd-000039
background
[]
false
prl-msd-000040
background
[]
false
prl-msd-000041
background
[]
false
prl-msd-000042
background
[]
false
prl-msd-000043
background
[]
false
prl-msd-000044
background
[]
false
prl-msd-000045
background
[]
false
prl-msd-000046
background
[]
false
prl-msd-000047
background
[]
false
prl-msd-000048
background
[]
false
prl-msd-000049
background
[]
false
prl-msd-000050
background
[]
false
prl-msd-000051
background
[]
false
prl-msd-000052
background
[]
false
prl-msd-000053
background
[]
false
prl-msd-000054
background
[]
false
prl-msd-000055
background
[]
false
prl-msd-000056
background
[]
false
prl-msd-000057
background
[]
false
prl-msd-000058
background
[]
false
prl-msd-000059
background
[]
false
prl-msd-000060
background
[]
false
prl-msd-000061
background
[]
false
prl-msd-000062
background
[]
false
prl-msd-000063
background
[]
false
prl-msd-000064
background
[]
false
prl-msd-000065
background
[]
false
prl-msd-000066
background
[]
false
prl-msd-000067
background
[]
false
prl-msd-000068
background
[]
false
prl-msd-000069
background
[]
false
prl-msd-000070
background
[]
false
prl-msd-000071
background
[]
false
prl-msd-000072
background
[]
false
prl-msd-000073
background
[]
false
prl-msd-000074
background
[]
false
prl-msd-000075
background
[]
false
prl-msd-000076
background
[]
false
prl-msd-000077
background
[]
false
prl-msd-000078
background
[]
false
prl-msd-000079
background
[]
false
prl-msd-000080
background
[]
false
prl-msd-000081
background
[]
false
prl-msd-000082
background
[]
false
prl-msd-000083
background
[]
false
prl-msd-000084
background
[]
false
prl-msd-000085
background
[]
false
prl-msd-000086
background
[]
false
prl-msd-000087
background
[]
false
prl-msd-000088
background
[]
false
prl-msd-000089
background
[]
false
prl-msd-000090
background
[]
false
prl-msd-000091
background
[]
false
prl-msd-000092
background
[]
false
prl-msd-000093
background
[]
false
prl-msd-000094
background
[]
false
prl-msd-000095
background
[]
false
prl-msd-000096
background
[]
false
prl-msd-000097
background
[]
false
prl-msd-000098
background
[]
false
prl-msd-000099
background
[]
false
prl-msd-000100
background
[]
false
End of preview. Expand in Data Studio

PRL-MSD: Industrial Surface Defect Segmentation Dataset

The Product Realization Laboratory at National Tsing Hua University, Taiwan, developed PRL-MSD for research on automated visual inspection. This release contains 1,599 industrial surface images with manually annotated pixel-level masks. Each image and mask is a 256 × 256 RGB PNG. Images stored as grayscale before release were converted to RGB by copying their intensity values into all three channels.

Sample distribution

Sample category Count
Background 300
Indentation 496
Scar 374
Scratch 429
Total 1,599

Each retained mask contains at most one defect class. This release excludes 14 samples from the previous revision whose masks contained two defect classes. Thirteen combined indentation and scratch, and one combined indentation and scar. The 300 background samples have all-black masks. Sample IDs remain stable across revisions, so the sequence has gaps.

Mask encoding

Pixel class RGB Suggested class ID
Background (0, 0, 0) 0
Indentation (249, 192, 12) 1
Scar (249, 50, 12) 2
Scratch (0, 185, 241) 3

Use exact RGB matches to convert masks to integer class IDs. Use nearest-neighbor interpolation if you resize the masks for training.

Load the dataset

from datasets import load_dataset

dataset = load_dataset("YenweiChen/PRL-MSD", split="train")
sample = dataset[0]
image, mask = sample["image"], sample["mask"]

The train split contains the full collection. This release supplies a single split for loading. Benchmark users should create and document their evaluation partition.

Field Description
sample_id Stable ID shared by the image and its mask.
image Surface image.
mask RGB mask with the pixel classes shown above.
category Sample-level category derived from the original filename.
defect_classes Defect classes present in the mask, excluding background.
is_multiclass Whether the mask contains more than one defect class. This field is false for all samples in this release.

The Parquet file used by the Dataset Viewer embeds both PNGs in each row. For direct access to the PNG files, download data/train.zip. It contains paired files in image_256_gray/ and mask_256/, with sample mappings in metadata.jsonl.

Collection and limitations

The images depict industrial workpieces photographed under varying perspectives and lighting conditions. A single expert manually annotated the defect regions. Inter-annotator agreement has yet to be measured. Performance may vary on other materials, surface finishes, or imaging setups.

License

PRL-MSD is licensed under Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). Contact the dataset maintainer for commercial permissions.

Citation

Reference the PRL-MSD dataset repository and the revision used.

Downloads last month
41