Datasets:
image imagewidth (px) 2.49k 2.5k | fabric_type stringlengths 10 10 | batch_group stringclasses 13
values | L_mean float64 13.4 71.4 | a_mean float64 -0.34 9.38 | b_mean float64 -10.6 5.7 | delta_e_mean float64 0.23 16.8 | delta_e_reference stringclasses 13
values | total_pixels int64 1.14M 5.95M |
|---|---|---|---|---|---|---|---|---|
fabric_022 | batch_0103 | 31.76 | 6.4 | 3.25 | 2.02 | ref_08.jpg | 1,280,987 | |
fabric_022 | batch_0103 | 32.55 | 6.54 | 3.13 | 1.53 | ref_08.jpg | 1,588,164 | |
fabric_028 | batch_0103 | 58.96 | 0.1 | -5.89 | 2.39 | ref_09.jpg | 4,089,592 | |
fabric_028 | batch_0103 | 60.02 | 0.15 | -5.78 | 1.32 | ref_09.jpg | 3,911,234 | |
fabric_031 | batch_0103 | 42.32 | 1.96 | -3.2 | 1.77 | ref_11.jpg | 2,010,737 | |
fabric_031 | batch_0103 | 43.1 | 2.08 | -2.81 | 1.28 | ref_11.jpg | 1,888,589 | |
fabric_022 | batch_0104 | 29.81 | 5.45 | 1.85 | 3.42 | ref_08.jpg | 1,217,186 | |
fabric_028 | batch_0104 | 59.59 | 0.14 | -6.26 | 1.83 | ref_09.jpg | 4,464,751 | |
fabric_031 | batch_0104 | 40.41 | 0.92 | -3.63 | 3.63 | ref_11.jpg | 1,947,490 | |
fabric_014 | batch_0107 | 26.3 | 2.23 | -0.86 | 9.95 | ref_13.jpg | 2,807,331 | |
fabric_014 | batch_0107 | 25.18 | 2.18 | -1.02 | 9.42 | ref_13.jpg | 2,750,633 | |
fabric_024 | batch_0107 | 20.95 | 6.54 | 3.66 | 14.89 | ref_13.jpg | 2,292,342 | |
fabric_024 | batch_0108 | 19.98 | 6.75 | 3.76 | 15.19 | ref_13.jpg | 1,935,064 | |
fabric_024 | batch_0108 | 17.9 | 6.04 | 3.4 | 15.09 | ref_13.jpg | 2,568,376 | |
fabric_014 | batch_0109 | 25.2 | 2.16 | -0.88 | 9.55 | ref_13.jpg | 2,490,198 | |
fabric_002 | batch_1203 | 41.31 | 2.22 | -2.6 | 12.58 | ref_01.jpg | 2,908,462 | |
fabric_002 | batch_1203 | 42.65 | 2.3 | -2.51 | 13.9 | ref_01.jpg | 2,422,648 | |
fabric_002 | batch_1203 | 43.97 | 2.34 | -2.52 | 15.22 | ref_01.jpg | 2,585,133 | |
fabric_003 | batch_1203 | 45.15 | 2.15 | -1.89 | 16.36 | ref_01.jpg | 2,595,736 | |
fabric_003 | batch_1203 | 43.45 | 2.09 | -2.01 | 14.67 | ref_01.jpg | 2,135,335 | |
fabric_003 | batch_1203 | 42.77 | 2.11 | -2.15 | 14 | ref_01.jpg | 2,298,829 | |
fabric_004 | batch_1203 | 39.97 | 2.24 | -2.62 | 11.25 | ref_01.jpg | 3,063,140 | |
fabric_004 | batch_1203 | 40.26 | 2.26 | -2.63 | 11.54 | ref_01.jpg | 2,747,777 | |
fabric_004 | batch_1203 | 40.37 | 2.29 | -2.62 | 11.65 | ref_01.jpg | 2,786,570 | |
fabric_006 | batch_1203 | 17.08 | 5.5 | 2.76 | 14.62 | ref_13.jpg | 3,679,550 | |
fabric_006 | batch_1203 | 17.01 | 5.5 | 2.76 | 14.65 | ref_13.jpg | 3,664,636 | |
fabric_006 | batch_1203 | 17.03 | 5.49 | 2.74 | 14.62 | ref_13.jpg | 3,662,690 | |
fabric_007 | batch_1203 | 15.17 | 5.06 | 2.7 | 15.25 | ref_13.jpg | 4,394,387 | |
fabric_007 | batch_1203 | 15.13 | 5.06 | 2.69 | 15.26 | ref_13.jpg | 4,488,869 | |
fabric_007 | batch_1203 | 15.11 | 5.05 | 2.68 | 15.26 | ref_13.jpg | 4,483,358 | |
fabric_015 | batch_1203 | 26.78 | 2.36 | -0.76 | 10.25 | ref_13.jpg | 2,563,431 | |
fabric_015 | batch_1203 | 25.6 | 2.25 | -0.73 | 9.83 | ref_13.jpg | 2,425,194 | |
fabric_015 | batch_1203 | 24.7 | 2.22 | -0.83 | 9.48 | ref_13.jpg | 2,492,506 | |
fabric_016 | batch_1203 | 24.64 | 2.32 | -0.84 | 9.47 | ref_13.jpg | 3,105,271 | |
fabric_016 | batch_1203 | 25.23 | 2.4 | -0.85 | 9.63 | ref_13.jpg | 2,901,011 | |
fabric_016 | batch_1203 | 26.81 | 2.57 | -0.86 | 10.21 | ref_13.jpg | 2,931,877 | |
fabric_001 | batch_1206 | 45.57 | 2.42 | -2.54 | 16.81 | ref_01.jpg | 2,650,653 | |
fabric_001 | batch_1206 | 43.18 | 2.38 | -2.53 | 14.43 | ref_01.jpg | 2,420,789 | |
fabric_001 | batch_1206 | 41.49 | 2.28 | -2.61 | 12.76 | ref_01.jpg | 2,938,885 | |
fabric_001 | batch_1206 | 45.31 | 2.22 | -2.03 | 16.53 | ref_01.jpg | 2,656,615 | |
fabric_001 | batch_1206 | 43.36 | 2.15 | -2.1 | 14.58 | ref_01.jpg | 2,228,480 | |
fabric_001 | batch_1206 | 41.32 | 2.13 | -2.19 | 12.55 | ref_01.jpg | 3,134,041 | |
fabric_005 | batch_1206 | 17.23 | 5.73 | 2.61 | 14.51 | ref_13.jpg | 3,545,680 | |
fabric_005 | batch_1206 | 15.55 | 5.41 | 2.68 | 15.16 | ref_13.jpg | 3,349,772 | |
fabric_005 | batch_1206 | 13.44 | 4.64 | 2.21 | 15.66 | ref_13.jpg | 4,117,516 | |
fabric_013 | batch_1206 | 27.71 | 2.33 | -0.88 | 10.56 | ref_13.jpg | 2,775,017 | |
fabric_013 | batch_1206 | 25.63 | 2.24 | -0.93 | 9.65 | ref_13.jpg | 2,461,034 | |
fabric_013 | batch_1206 | 24.93 | 2.27 | -0.98 | 9.4 | ref_13.jpg | 2,486,399 | |
fabric_008 | batch_0113 | 58.97 | 2.2 | 2.94 | 1.18 | ref_02.jpg | 3,296,109 | |
fabric_008 | batch_0113 | 58.68 | 2.14 | 2.96 | 0.96 | ref_02.jpg | 3,108,812 | |
fabric_008 | batch_0113 | 56.86 | 2.19 | 2.81 | 1.48 | ref_02.jpg | 3,426,273 | |
fabric_009 | batch_0116 | 58.83 | 2.09 | 3.33 | 0.86 | ref_02.jpg | 2,958,140 | |
fabric_009 | batch_0116 | 57.72 | 2.09 | 3.36 | 0.49 | ref_02.jpg | 2,911,013 | |
fabric_009 | batch_0116 | 57.14 | 2.21 | 3.31 | 0.99 | ref_02.jpg | 3,097,598 | |
fabric_010 | batch_0113 | 34.33 | 3.24 | -0.71 | 0.77 | ref_03.jpg | 3,370,176 | |
fabric_010 | batch_0113 | 33.61 | 3.28 | -0.94 | 1.39 | ref_03.jpg | 3,110,482 | |
fabric_010 | batch_0113 | 34.33 | 3.37 | -1.33 | 0.91 | ref_03.jpg | 2,892,011 | |
fabric_011 | batch_0114 | 15.02 | 0.21 | -10.6 | 3.22 | ref_04.jpg | 3,197,896 | |
fabric_011 | batch_0114 | 14.88 | 0.19 | -10.54 | 3.35 | ref_04.jpg | 3,284,188 | |
fabric_011 | batch_0114 | 14 | 0.37 | -10.19 | 4.25 | ref_04.jpg | 3,260,371 | |
fabric_012 | batch_0113 | 19.88 | 7.73 | 5.05 | 4.4 | ref_05.jpg | 3,094,183 | |
fabric_012 | batch_0113 | 19.66 | 7.56 | 4.84 | 4.63 | ref_05.jpg | 2,823,467 | |
fabric_012 | batch_0113 | 18.75 | 7.37 | 4.43 | 5.57 | ref_05.jpg | 2,889,511 | |
fabric_014 | batch_0107 | 27.45 | 2.29 | -0.87 | 10.44 | ref_13.jpg | 3,011,616 | |
fabric_014 | batch_0109 | 24.6 | 2.12 | -0.86 | 9.41 | ref_13.jpg | 2,393,687 | |
fabric_014 | batch_0109 | 23.04 | 2.04 | -0.97 | 9.07 | ref_13.jpg | 2,480,639 | |
fabric_017 | batch_0114 | 19.04 | 0.94 | -10.31 | 3.5 | ref_13.jpg | 2,012,343 | |
fabric_017 | batch_0114 | 18.49 | 1.01 | -10.21 | 4.04 | ref_13.jpg | 1,890,120 | |
fabric_017 | batch_0114 | 16.14 | 1.02 | -10.07 | 6.38 | ref_13.jpg | 1,995,895 | |
fabric_019 | batch_0109 | 20.31 | -0.22 | -2.67 | 4.61 | ref_06.jpg | 2,899,079 | |
fabric_019 | batch_0109 | 19.8 | -0.21 | -2.73 | 5.1 | ref_06.jpg | 2,782,045 | |
fabric_019 | batch_0109 | 17.99 | -0.34 | -2.65 | 6.91 | ref_06.jpg | 2,896,889 | |
fabric_018 | batch_1218 | 20.66 | 0.25 | -3.45 | 4.21 | ref_06.jpg | 3,228,828 | |
fabric_018 | batch_1218 | 22.37 | 0.31 | -3.46 | 2.53 | ref_06.jpg | 3,272,488 | |
fabric_018 | batch_1218 | 23.06 | 0.43 | -3.42 | 1.84 | ref_06.jpg | 3,578,039 | |
fabric_020 | batch_1218 | 44.58 | 2.98 | 1.91 | 0.73 | ref_07.jpg | 2,523,491 | |
fabric_020 | batch_1218 | 43.46 | 3.1 | 2.09 | 0.48 | ref_07.jpg | 2,827,791 | |
fabric_020 | batch_1218 | 44.74 | 3.1 | 2.13 | 0.82 | ref_07.jpg | 2,888,532 | |
fabric_022 | batch_0103 | 30.2 | 6.41 | 3.09 | 3.27 | ref_08.jpg | 1,642,534 | |
fabric_022 | batch_0104 | 29.66 | 5.46 | 1.87 | 3.57 | ref_08.jpg | 1,143,141 | |
fabric_022 | batch_0104 | 30.15 | 5.64 | 1.98 | 3.07 | ref_08.jpg | 1,237,759 | |
fabric_021 | batch_1209 | 34.55 | 5.66 | 1.85 | 1.35 | ref_08.jpg | 1,912,865 | |
fabric_021 | batch_1209 | 32.2 | 5.69 | 1.82 | 1.04 | ref_08.jpg | 1,722,899 | |
fabric_021 | batch_1209 | 30.51 | 5.5 | 1.82 | 2.72 | ref_08.jpg | 2,302,258 | |
fabric_021 | batch_1209 | 28.47 | 5.47 | 1.92 | 4.75 | ref_08.jpg | 2,960,624 | |
fabric_021 | batch_1209 | 28.94 | 5.55 | 1.86 | 4.28 | ref_08.jpg | 2,224,173 | |
fabric_021 | batch_1209 | 31.26 | 5.68 | 1.87 | 1.96 | ref_08.jpg | 2,017,981 | |
fabric_021 | batch_1209 | 29.99 | 5.51 | 1.86 | 3.24 | ref_08.jpg | 2,356,368 | |
fabric_021 | batch_1209 | 30.87 | 5.7 | 1.82 | 2.35 | ref_08.jpg | 1,727,287 | |
fabric_021 | batch_1209 | 33.36 | 5.75 | 1.85 | 0.23 | ref_08.jpg | 1,793,166 | |
fabric_023 | batch_0108 | 42.9 | 2.25 | -2.45 | 14.15 | ref_01.jpg | 3,250,501 | |
fabric_023 | batch_0108 | 41.64 | 2.27 | -2.61 | 12.91 | ref_01.jpg | 2,627,588 | |
fabric_023 | batch_0108 | 38.94 | 2.04 | -2.6 | 10.23 | ref_01.jpg | 4,045,317 | |
fabric_024 | batch_0108 | 21.52 | 7.13 | 4.08 | 15.46 | ref_13.jpg | 2,187,349 | |
fabric_024 | batch_0107 | 19.93 | 6.2 | 3.61 | 14.85 | ref_13.jpg | 2,108,639 | |
fabric_024 | batch_0107 | 18.24 | 5.83 | 3.08 | 14.63 | ref_13.jpg | 2,893,318 | |
fabric_025 | batch_1213 | 60.05 | 0.19 | -6.22 | 1.38 | ref_09.jpg | 5,546,125 | |
fabric_025 | batch_1213 | 60.31 | 0.27 | -6.24 | 1.15 | ref_09.jpg | 4,416,792 | |
fabric_025 | batch_1213 | 60.47 | 0.35 | -6.29 | 1.03 | ref_09.jpg | 4,590,441 | |
fabric_026 | batch_0103 | 70.7 | 0.91 | 2.19 | 1.19 | ref_10.jpg | 3,644,185 |
Textile Color Difference Dataset
Dataset Description
Personal academic dataset for textile color difference research, containing standardized flatbed scans of fabric samples with CIE L*a*b* color statistics and CIE76 ΔE*ab computed against reference samples.
Data Source: Personal experimental collection.
Anonymization: All fabric style codes, internal directory names, and reference identifiers have been replaced with neutral IDs (fabric_NNN, batch_MMDD, ref_NN). No company, customer, factory, or business references remain in file names, fields, or metadata.
Dataset Structure
textile-color-difference-dataset/
├── annotations/ # 123 JSON annotations (one per sample)
├── images/
│ ├── reference/ # 13 reference standard samples (ref_01–ref_13)
│ └── batch/ # 123 batch scans in 13 groups, 32 fabric types
├── metadata/
│ └── batch_summary.csv # 123-row summary matching annotations
├── scripts/
│ ├── build_hf_dataset.py # Regenerate metadata.jsonl / parquet
│ └── recalculate_delta_e.py # Recalculate ΔE vs reference
├── metadata.jsonl # ImageFolder-compatible metadata
└── textile-color-difference-dataset.parquet # Tabular index (paths only, no embedded bytes)
Data Specifications
| Field | Value |
|---|---|
| Scan Device | Epson V850 Pro |
| Light Source | D65 standard illuminant |
| Annotated Samples | 123 |
| Reference Samples | 13 |
| Batch Groups | 13 scan sessions |
| Fabric Types | 32 |
| Image Format | JPG |
Annotation Format
{
"image_id": "2.jpg",
"image_path": "images/batch/batch_0103/fabric_022/2.jpg",
"metadata": {
"fabric_type": "fabric_022",
"scan_device": "Epson V850 Pro",
"light_source": "D65",
"batch_group": "batch_0103"
},
"color_statistics": {
"L_mean": 31.76,
"a_mean": 6.4,
"b_mean": 3.25,
"delta_e_mean": 2.02,
"total_pixels": 1280987,
"delta_e_reference": "ref_08.jpg",
"delta_e_method": "CIE76_vs_reference"
}
}
Fields
| Field | Description |
|---|---|
image_id |
Image filename |
image_path |
Relative path to image (verified) |
metadata.fabric_type |
Anonymized fabric identifier (fabric_NNN) |
metadata.batch_group |
Scan session (batch_MMDD) |
color_statistics.L_mean |
Mean L* (lightness) |
color_statistics.a_mean |
Mean a* (green-red) |
color_statistics.b_mean |
Mean b* (blue-yellow) |
color_statistics.delta_e_mean |
CIE76 ΔE*ab vs reference sample |
color_statistics.delta_e_reference |
Reference image used for ΔE calculation |
color_statistics.delta_e_method |
Calculation method |
ΔE Distribution
| ΔE Range | Count | Interpretation |
|---|---|---|
| 0-1 | 12 | Imperceptible difference |
| 1-3 | 32 | Slight difference (typical textile pass threshold) |
| 3-5 | 26 | Noticeable difference |
| 5-10 | 16 | Significant difference |
| 10-20 | 37 | Large difference |
Range: 0.23 — 16.81, Mean: 6.60
Label Status
Original pass/fail records were not preserved. Pseudo-labels can be derived from ΔE using a threshold (e.g. ΔE < 3 for textile pass → 44 pass / 79 fail).
Reference Mapping
13 reference images cover 32 fabric types through family matching. The full mapping is defined in scripts/recalculate_delta_e.py (FABRIC_TO_REF).
Quick Start
Load from Hugging Face
from datasets import load_dataset
ds = load_dataset("jiangbingo/textile-color-difference-dataset", split="train")
print(f"Samples: {len(ds)}") # 123
sample = ds[0]
sample["image"] # PIL Image
sample["fabric_type"] # "fabric_001"
sample["delta_e_mean"] # 2.02
Load from local directory
from datasets import load_dataset
ds = load_dataset("imagefolder", data_dir="./textile-color-difference-dataset", split="train")
Load tabular index from Parquet
The parquet file is a metadata index with repo-relative image paths (no embedded bytes):
from datasets import Dataset
ds = Dataset.from_parquet("textile-color-difference-dataset.parquet")
Work with annotations directly
import json
from PIL import Image
ann = json.load(open("annotations/batch_0103_fabric_022_2.json"))
img = Image.open(ann["image_path"])
cs = ann["color_statistics"]
print(f"Fabric: {ann['metadata']['fabric_type']}")
print(f"L*a*b*: ({cs['L_mean']}, {cs['a_mean']}, {cs['b_mean']})")
print(f"ΔE*ab: {cs['delta_e_mean']} (ref: {cs['delta_e_reference']})")
Compliance
- Fully anonymized: style codes, internal directory names, and identifiers replaced with neutral IDs
- No company, customer, factory, or business data
- Personal academic dataset
- MIT License
Limitations
- No human-verified pass/fail labels — pseudo-labels must be derived from ΔE thresholds
- 123 samples from a single scan device
- Some reference mappings are approximate (sub-variants share a parent reference)
- Downloads last month
- 141