asergiu commited on
Commit
2c148f4
·
verified ·
1 Parent(s): 133a6d6

Added metadata and readme files.

Browse files
Files changed (2) hide show
  1. README.md +156 -0
  2. metadata.json +367 -38
README.md CHANGED
@@ -1,4 +1,160 @@
1
  ---
2
  license: cc-by-nc-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  viewer: false
4
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
+ pretty_name: SynGlass
4
+ task_categories:
5
+ - image-segmentation
6
+ tags:
7
+ - eyeglasses-segmentation
8
+ - synthetic
9
+ - human-faces
10
+ - unreal-engine-5
11
+ - renderpeople
12
+ - webdataset
13
+ - bmvc-2026
14
+ - croissant
15
+ size_categories:
16
+ - 100K<n<1M
17
+ language:
18
+ - en
19
  viewer: false
20
  ---
21
+
22
+ # SynGlass: A Large-Scale Synthetic Dataset for Fine-Grained Eyeglasses Segmentation
23
+
24
+ **BMVC 2026** · Diana-Laura Borza · Alexandru-Ion Marinescu · Robert Bota · Adrian-Sergiu Dărăbant — Babeș-Bolyai University, Cluj-Napoca, Romania
25
+
26
+ SynGlass is a synthetic dataset for **pixel-accurate eyeglasses lens and frame segmentation**: **332,928 renders** of **128 photorealistic RenderPeople avatars** wearing **867 distinct 3D-scanned eyeglass models**, each avatar–eyeglass pair rendered in Unreal Engine 5 under **3 random near-frontal head poses** in an indoor scene. Masks come straight from the 3D geometry, so they are free of the labelling noise that affects manually annotated thin, reflective frame contours. To our knowledge it is the largest and most diverse dataset dedicated to eyeglasses segmentation, both in image count and in number of frames.
27
+
28
+ - 📄 Paper: *SynGlass: A Large-Scale Synthetic Dataset for Fine-Grained Eyeglasses Segmentation*, BMVC 2026 (link to be added)
29
+ - 🥐 Croissant metadata: [`metadata.json`](./metadata.json) (core + Responsible-AI fields; validated with `mlcroissant`)
30
+ - 📜 License: [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)
31
+ - Total size ≈ 1.3 TB (WebDataset TAR shards); start with the `test` shards (22,304 renders) if you only want to evaluate.
32
+
33
+ ## What is in a render ("capture session")
34
+
35
+ Files are named `{subject}_{glasses}_{capture_index}_{file_type}.{ext}` and stored under the subject folder, e.g. `subject_073/subject_073_glasses_658_1_color.png`. Subject and eyeglass identifiers are anonymized (`subject_001…subject_128`, `glasses_001…glasses_867`).
36
+
37
+ | Resource | Format | Content |
38
+ |---|---|---|
39
+ | `*_color.png` | 1024×1024 PNG (lossless) | Colour render from a frontal camera (horizontal FOV 15°, avatar at 125–175 cm) |
40
+ | `*_mask_lens.png` | 1024×1024 RGBA PNG | **Lens mask.** Black (0,0,0,0) = not lens; any non-black pixel = lens, and its RGBA channels encode the normalized camera-view depth (see below) |
41
+ | `*_mask_frame.png` | 1024×1024 RGBA PNG | **Frame mask**, same encoding (rim, bridge, temples) |
42
+ | `*_meta.json` | JSON | Head rotation `head_rotation_{pitch,yaw,roll}` (deg), `head_position_*`, `eye_{left,right}_position_*`, camera positions/rotations (`{left,mid,right}_cam_*`), `camera_fov`, `slider_avatar_distance` (cm) and the rig sliders (the colour render is the frontal camera view) |
43
+
44
+ Decoding a mask (NumPy):
45
+
46
+ ```python
47
+ import numpy as np, imageio.v3 as iio
48
+ rgba = iio.imread("subject_073/subject_073_glasses_658_1_mask_lens.png").astype(np.float64) # (1024, 1024, 4), 0..255
49
+ mask = rgba.any(axis=-1) # bool: pixel belongs to the lens class
50
+ r, g, b, a = np.moveaxis(rgba, -1, 0)
51
+ depth = r / (256**1 - 1) + g / (256**2 - 1) + b / (256**3 - 1) + a / (256**4 - 1) # normalized depth in (0, 1], valid where mask
52
+ ```
53
+
54
+ The two lenses are separate connected components of the lens mask; the paper separates them this way and assigns predicted pixels to the nearest ground-truth lens centroid.
55
+
56
+ ## Eyeglass models (867) — `manifest/eyeglasses.csv`
57
+
58
+ Every eyeglass model is a 3D scan of a real frame with separate frame and lens sub-meshes and is labelled along four axes:
59
+
60
+ | Attribute | Values (number of models) |
61
+ |---|---|
62
+ | `family` (rim structure) | full-rim 839 (96.8 %) · rimless 17 (2.0 %) · semi-rimless 11 (1.3 %) |
63
+ | `material` | plastic 726 (83.7 %) · metal 141 (16.3 %) |
64
+ | `shape` (lens outline) | rectangle 182 · cat-eye 181 · round 153 · oval 146 · square 114 · other 47 · aviator 44 |
65
+ | `lens_type` | clear 669 · sunglasses 198 |
66
+
67
+ *full-rim*: a continuous rigid rim encloses each lens; *semi-rimless*: the rim covers only part of the boundary (usually the upper half); *rimless*: lenses attached directly to bridge and temples. The low share of rimless/semi-rimless frames reflects commercial catalogues; they are also the hardest cases for segmentation (see the paper's per-family breakdown).
68
+
69
+ ## Avatars (128) — `manifest/subjects.csv`
70
+
71
+ Gender: 73 female · 55 male. Age group: <13: 12 · 13–18: 10 · 19–30: 73 · 31–50: 22 · 50+: 11. Ethnicity: White 73 · Black 23 · Asian 18 · Indian 6 · Middle Eastern 5 · Hispanic/Latino 3. (These are the same 128 avatars as in the authors' HumanStereo dataset.)
72
+
73
+ ## Head poses
74
+
75
+ Each avatar–eyeglass pair is rendered three times (`capture_session_index` 1–3): two poses with yaw, pitch and roll drawn from [−2°, 2°] and one with larger deviations in [−7°, 7°] \ [−2°, 2°]. All captures are near-frontal and occlusion-free by design (cooperative subject, as in optometric measurement and frame-retrieval settings).
76
+
77
+ ## Splits — `manifest/sessions.csv` (column `split`)
78
+
79
+ The split is **by eyeglass model**, so no frame appears in both training and test; all 128 avatars appear in both.
80
+
81
+ | Split | Eyeglass models | Renders | Use |
82
+ |---|---|---|---|
83
+ | `train` | 776 | 297,984 | training |
84
+ | `test` | 91 (held out: 84 full-rim, 6 rimless, 1 semi-rimless) | 22,304 | **benchmark test set** — a subsample of the test models' renders whose yaw/pitch/roll distribution matches the training split |
85
+ | `test_pool` | the same 91 | 12,640 | the remaining renders of the test models, not part of the benchmark; **never use for training** |
86
+
87
+ > ⚠️ The TAR shards under `shards/train/` were packed before the `test_pool` split was introduced and therefore physically contain the 12,640 `test_pool` renders. Always select renders through the `split` column of `manifest/sessions.csv` (version 1.1.0 of the manifest); do not train on everything found in the train shards.
88
+
89
+ ## Repository layout
90
+
91
+ ```
92
+ README.md
93
+ metadata.json Croissant 1.1 (core + RAI), record sets: splits, eyeglasses, subjects, synglass_sessions
94
+ manifest/sessions.csv 332,928 rows: session_id, split, human_subject_name, eyeglass_model_name,
95
+ capture_session_index, file_stem, color, mask_frame, mask_lens, metadata
96
+ manifest/eyeglasses.csv 867 rows: eyeglass_model_name, split, family, material, shape, lens_type
97
+ manifest/subjects.csv 128 rows: human_subject_name, gender, age_group, ethnicity
98
+ shards/train/train-000000.tar … train-000142.tar (143 shards, ≈4 GB each)
99
+ shards/test/test-000000.tar … test-000010.tar (11 shards)
100
+ shards/shards_summary.json
101
+ ```
102
+
103
+ ## Loading
104
+
105
+ ```python
106
+ from huggingface_hub import snapshot_download
107
+ root = snapshot_download("asergiu/SynGlass", repo_type="dataset",
108
+ allow_patterns=["metadata.json", "manifest/*", "shards/test/*"],
109
+ local_dir="/data/synglass")
110
+ # extract the shards you downloaded: for f in shards/test/*.tar; do tar -xf "$f" -C /data/synglass; done
111
+
112
+ import pandas as pd
113
+ sessions = pd.read_csv(f"{root}/manifest/sessions.csv")
114
+ eyeglasses = pd.read_csv(f"{root}/manifest/eyeglasses.csv")
115
+ subjects = pd.read_csv(f"{root}/manifest/subjects.csv")
116
+ test = sessions[sessions.split == "test"].merge(eyeglasses, on="eyeglass_model_name", suffixes=("", "_eg"))
117
+ row = test.iloc[0]
118
+ color_path, lens_path = f"{root}/{row.color}", f"{root}/{row.mask_lens}"
119
+ ```
120
+
121
+ The shards are WebDataset-style TARs (one sample = the four files sharing a stem), so they can also be streamed with `webdataset` without extraction.
122
+
123
+ ## Benchmark protocol (from the paper)
124
+
125
+ - **Pre-processing:** faces are detected with MediaPipe, the box is enlarged by 20 % and re-centred on the eyes, a central crop with width = 2 × height is taken and resized to width 448.
126
+ - **Metrics:** IoU; Boundary IoU at 1 and 3 px; and the proposed radial metrics computed per lens from the ground-truth lens centroid over 360 rays — **Radial Threshold Accuracy RTA@δ** (fraction of rays whose radial error ≤ δ px) and **Radial Error RErr** (mean absolute radial error, px). The radial formulation decomposes errors into nasal / temporal / top / bottom quadrants.
127
+ - **Reference results (test split, IoU / BIoU@1 / RTA@1 / RErr):** UNet++ EfficientNet-B4 (CE loss) 96.36 / 65.06 / 73.84 / 1.11; SegFormer MiT-B2 96.34 / 61.68 / 70.70 / 1.09; DeepLabV3+ EfficientNet-B4 96.24 / 54.49 / 64.53 / 1.08; zero-shot SAM-2 (box prompt) 93.57 / 26.80 / 38.02 / 1.46. Full-rim frames reach BIoU@1 71.4 vs. 10.3 for rimless.
128
+ - **Synthetic-to-real:** pre-training on SynGlass and fine-tuning improves boundary accuracy on real data (FFHQ with overlaid 3D glasses: BIoU@1 69.2 → 71.5; Roboflow lenses: IoU 80.7 → 82.5).
129
+
130
+ ## Intended uses and limitations
131
+
132
+ **Intended:** training and benchmarking fine-grained lens/frame segmentation; pre-training for real-world eyeglasses segmentation; boundary-accuracy evaluation; research on optometric measurements (pupillary distance, fitting height, optical centre), frame retrieval and eyewear-aware face analysis.
133
+
134
+ **Limitations:** entirely synthetic (indoor lighting only; real skin texture, natural illumination and reflections under uncontrolled light are not covered); near-frontal cooperative captures only (|yaw|, |pitch|, |roll| ≤ 7°); strong class imbalance across frame families (only 17 rimless and 11 semi-rimless models; the test set has 6 rimless and 1 semi-rimless model); 128 identities with the demographic skew listed above; identities are shared across splits (only eyeglass models are disjoint). A model that performs well on SynGlass may need adaptation for in-the-wild images.
135
+
136
+ **Prohibited:** surveillance, covert biometric identification, or any application that could harm individuals; the license is non-commercial.
137
+
138
+ ## Ethics and licensing
139
+
140
+ The dataset contains **no real personal data**: all faces are renders of commercially licensed RenderPeople scans, only renders are redistributed (never the 3D assets), and all subject and eyeglass identifiers are anonymized. The eyeglass models are 3D scans of commercial frames; product names are not released. No human annotators were involved. Data: **CC BY-NC 4.0**.
141
+
142
+ ## Maintenance
143
+
144
+ Maintained by Prof. Adrian-Sergiu Dărăbant, Department of Computer Science, Babeș-Bolyai University (sergiu.darabant@ubbcluj.ro). Errata are listed here; released versions stay available with version identifiers.
145
+ Version history: **1.0.0** (May 2026) initial release · rimless-frame renders added (Aug 2026) · **1.1.0** (Nov 2026) corrected `split` labels (`test_pool` introduced), `eyeglasses.csv` and `subjects.csv` attribute tables, Croissant RAI fields.
146
+
147
+ ## Citation
148
+
149
+ ```bibtex
150
+ @inproceedings{borza2026synglass,
151
+ title = {SynGlass: A Large-Scale Synthetic Dataset for Fine-Grained Eyeglasses Segmentation},
152
+ author = {Borza, Diana-Laura and Marinescu, Alexandru-Ion and Bota, Robert and D{\u{a}}r{\u{a}}bant, Adrian-Sergiu},
153
+ booktitle = {Proceedings of the British Machine Vision Conference (BMVC)},
154
+ year = {2026}
155
+ }
156
+ ```
157
+
158
+ ## Acknowledgements
159
+
160
+ Supported by the project *Romanian Hub for Artificial Intelligence – HRIA*, 2021–2027, MySMIS no. 351416, and by project PN-IV-P7-7.1-PTE-2024-0105, contract no. 43PTE (05/05/2025). 3D human scans courtesy of [RenderPeople](https://renderpeople.com/) under their commercial license.
metadata.json CHANGED
@@ -4,6 +4,7 @@
4
  "@vocab": "https://schema.org/",
5
  "sc": "https://schema.org/",
6
  "cr": "http://mlcommons.org/croissant/",
 
7
  "dct": "http://purl.org/dc/terms/",
8
  "citeAs": "cr:citeAs",
9
  "column": "cr:column",
@@ -39,58 +40,198 @@
39
  "regex": "cr:regex",
40
  "repeated": "cr:repeated",
41
  "replace": "cr:replace",
 
42
  "separator": "cr:separator",
43
  "source": "cr:source",
44
  "subField": "cr:subField",
45
- "transform": "cr:transform"
 
46
  },
47
  "@type": "sc:Dataset",
48
- "@id": "synglass-dataset",
49
- "name": "SynGlass: Synthetic Eyeglasses Segmentation Dataset",
50
- "description": "Synthetic dataset for fine-grained eyeglasses segmentation. It contains 332,928 mono capture sessions generated from 128 anonymized human subjects, 867 anonymized eyeglass models, and 3 captures per subject-eyeglass combination. The manifest contains 310,624 training sessions and 22,304 test sessions. Subject identifiers use the form subject_001 through subject_128, and eyeglass identifiers use the form glasses_001 through glasses_867. Each session contains a 1024x1024 color image, a frame segmentation mask, a lens segmentation mask, and a per-session metadata JSON file. The masks are lossless RGBA PNG files where black pixels indicate background/non-category pixels and non-black pixels encode normalized camera-view depth across RGBA channels. This dataset includes 6,144 rimless-eyeglasses capture sessions added to the earlier corpus.",
51
- "version": "1.0.0",
 
 
 
 
52
  "license": "https://creativecommons.org/licenses/by-nc/4.0/",
53
  "url": "https://huggingface.co/datasets/asergiu/SynGlass",
 
 
 
54
  "keywords": [
55
- "segmentation",
56
- "synthetic data",
57
- "eyeglasses",
58
- "computer vision",
59
- "depth encoding",
60
- "human avatars",
61
  "RenderPeople",
62
- "rimless eyeglasses",
63
- "frame segmentation"
 
 
 
64
  ],
65
  "creator": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  {
67
  "@type": "Organization",
68
- "name": "TVARITA Research"
 
 
 
 
69
  }
70
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  "distribution": [
72
  {
73
  "@type": "cr:FileObject",
74
  "@id": "sessions-csv",
75
  "name": "sessions.csv",
76
- "description": "One row per mono capture session. All subject and eyeglass identifiers and paths use the anonymized subject_NNN / glasses_NNN naming scheme.",
77
  "contentUrl": "manifest/sessions.csv",
78
  "encodingFormat": "text/csv",
79
- "sha256": "def6b0f11072f4c8099148895804aa3108b9b215119123293f76fac4cf429b32"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  },
81
  {
82
  "@type": "cr:FileSet",
83
  "@id": "png-files",
84
  "name": "PNG images and masks",
85
- "description": "Color images and segmentation masks for frames and lenses.",
 
 
 
86
  "includes": "**/*.png",
87
  "encodingFormat": "image/png"
88
  },
89
  {
90
  "@type": "cr:FileSet",
91
  "@id": "json-files",
92
- "name": "Metadata JSON files",
93
- "description": "Per-session metadata files containing auxiliary capture parameters.",
 
 
 
94
  "includes": "**/*.json",
95
  "encodingFormat": "application/json"
96
  }
@@ -100,7 +241,7 @@
100
  "@type": "cr:RecordSet",
101
  "@id": "splits",
102
  "name": "splits",
103
- "description": "Machine-learning split definitions used by the SynGlass session manifest.",
104
  "dataType": "cr:Split",
105
  "key": {
106
  "@id": "splits/name"
@@ -117,8 +258,11 @@
117
  "@type": "cr:Field",
118
  "@id": "splits/url",
119
  "name": "url",
120
- "description": "Standard Croissant semantic identifier for the split.",
121
- "dataType": "cr:Split"
 
 
 
122
  }
123
  ],
124
  "data": [
@@ -129,6 +273,182 @@
129
  {
130
  "splits/name": "test",
131
  "splits/url": "cr:TestSplit"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
133
  ]
134
  },
@@ -136,7 +456,7 @@
136
  "@type": "cr:RecordSet",
137
  "@id": "synglass_sessions",
138
  "name": "synglass_sessions",
139
- "description": "One record per mono capture session.",
140
  "key": {
141
  "@id": "synglass_sessions/session_id"
142
  },
@@ -145,7 +465,7 @@
145
  "@type": "cr:Field",
146
  "@id": "synglass_sessions/session_id",
147
  "name": "session_id",
148
- "description": "Unique anonymized session identifier derived from the filename stem.",
149
  "dataType": "sc:Text",
150
  "source": {
151
  "fileObject": {
@@ -160,7 +480,7 @@
160
  "@type": "cr:Field",
161
  "@id": "synglass_sessions/split",
162
  "name": "split",
163
- "description": "Dataset split: train or test.",
164
  "dataType": "sc:Text",
165
  "source": {
166
  "fileObject": {
@@ -171,14 +491,16 @@
171
  }
172
  },
173
  "references": {
174
- "@id": "splits/name"
 
 
175
  }
176
  },
177
  {
178
  "@type": "cr:Field",
179
  "@id": "synglass_sessions/human_subject_name",
180
  "name": "human_subject_name",
181
- "description": "Anonymized human subject identifier (subject_001 through subject_128).",
182
  "dataType": "sc:Text",
183
  "source": {
184
  "fileObject": {
@@ -187,13 +509,18 @@
187
  "extract": {
188
  "column": "human_subject_name"
189
  }
 
 
 
 
 
190
  }
191
  },
192
  {
193
  "@type": "cr:Field",
194
  "@id": "synglass_sessions/eyeglass_model_name",
195
  "name": "eyeglass_model_name",
196
- "description": "Anonymized eyeglass model identifier (glasses_001 through glasses_867).",
197
  "dataType": "sc:Text",
198
  "source": {
199
  "fileObject": {
@@ -202,13 +529,18 @@
202
  "extract": {
203
  "column": "eyeglass_model_name"
204
  }
 
 
 
 
 
205
  }
206
  },
207
  {
208
  "@type": "cr:Field",
209
  "@id": "synglass_sessions/capture_session_index",
210
  "name": "capture_session_index",
211
- "description": "Capture index from 1 to 3.",
212
  "dataType": "sc:Integer",
213
  "source": {
214
  "fileObject": {
@@ -223,7 +555,7 @@
223
  "@type": "cr:Field",
224
  "@id": "synglass_sessions/file_stem",
225
  "name": "file_stem",
226
- "description": "Common anonymized filename stem shared by all resources in the session.",
227
  "dataType": "sc:Text",
228
  "source": {
229
  "fileObject": {
@@ -238,7 +570,7 @@
238
  "@type": "cr:Field",
239
  "@id": "synglass_sessions/color",
240
  "name": "color",
241
- "description": "Color image, PNG, 1024x1024.",
242
  "dataType": "sc:Text",
243
  "source": {
244
  "fileObject": {
@@ -253,7 +585,7 @@
253
  "@type": "cr:Field",
254
  "@id": "synglass_sessions/mask_frame",
255
  "name": "mask_frame",
256
- "description": "Eyeglasses frame segmentation mask with depth encoding, RGBA PNG, 1024x1024.",
257
  "dataType": "sc:Text",
258
  "source": {
259
  "fileObject": {
@@ -268,7 +600,7 @@
268
  "@type": "cr:Field",
269
  "@id": "synglass_sessions/mask_lens",
270
  "name": "mask_lens",
271
- "description": "Eyeglasses lens segmentation mask with depth encoding, RGBA PNG, 1024x1024.",
272
  "dataType": "sc:Text",
273
  "source": {
274
  "fileObject": {
@@ -283,7 +615,7 @@
283
  "@type": "cr:Field",
284
  "@id": "synglass_sessions/metadata",
285
  "name": "metadata",
286
- "description": "Per-session JSON metadata file. Auxiliary fields such as avatar distance and head orientation are intentionally left inside this JSON file and are not indexed as Croissant fields.",
287
  "dataType": "sc:Text",
288
  "source": {
289
  "fileObject": {
@@ -296,8 +628,5 @@
296
  }
297
  ]
298
  }
299
- ],
300
- "datePublished": "2026-05-01",
301
- "citeAs": "SynGlass: Synthetic Eyeglasses Segmentation Dataset. TVARITA Research, 2026.",
302
- "conformsTo": "http://mlcommons.org/croissant/1.1"
303
  }
 
4
  "@vocab": "https://schema.org/",
5
  "sc": "https://schema.org/",
6
  "cr": "http://mlcommons.org/croissant/",
7
+ "rai": "http://mlcommons.org/croissant/RAI/",
8
  "dct": "http://purl.org/dc/terms/",
9
  "citeAs": "cr:citeAs",
10
  "column": "cr:column",
 
40
  "regex": "cr:regex",
41
  "repeated": "cr:repeated",
42
  "replace": "cr:replace",
43
+ "samplingRate": "cr:samplingRate",
44
  "separator": "cr:separator",
45
  "source": "cr:source",
46
  "subField": "cr:subField",
47
+ "transform": "cr:transform",
48
+ "equivalentProperty": "cr:equivalentProperty"
49
  },
50
  "@type": "sc:Dataset",
51
+ "@id": "synglass",
52
+ "name": "SynGlass",
53
+ "alternateName": [
54
+ "SynGlass: A Large-Scale Synthetic Dataset for Fine-Grained Eyeglasses Segmentation",
55
+ "Synthetic Humans with Glasses dataset"
56
+ ],
57
+ "description": "SynGlass is a large-scale synthetic dataset for fine-grained eyeglasses segmentation, introduced at BMVC 2026. It contains 332,928 renders (1024x1024 PNG) of 128 photorealistic RenderPeople avatars wearing 867 distinct 3D-scanned eyeglass models, each combination rendered in Unreal Engine 5 under 3 random near-frontal head poses in an indoor living-room scene. Every render comes with pixel-accurate lens and frame segmentation masks generated directly from the 3D geometry (the masks additionally encode normalized camera-view depth in their RGBA channels) and a per-render JSON file with head pose, head/eye positions and camera parameters. Each eyeglass model is labelled with frame family (full-rim / semi-rimless / rimless), material (plastic / metal), lens shape (rectangle, square, round, oval, aviator, cat-eye, other) and lens type (clear / sunglasses); each avatar with gender, age group and ethnicity. The split is by eyeglass model: 776 models (297,984 renders) for training and 91 held-out models whose 22,304 pose-matched renders form the test set; the remaining 12,640 renders of the test models are kept in a separate test_pool split and must not be used for training. Subject and eyeglass identifiers are anonymized (subject_NNN, glasses_NNN). Each row of manifest/sessions.csv is one render; resource paths are relative to the dataset root and start with the subject folder.",
58
+ "version": "1.1.0",
59
  "license": "https://creativecommons.org/licenses/by-nc/4.0/",
60
  "url": "https://huggingface.co/datasets/asergiu/SynGlass",
61
+ "datePublished": "2026-05-01",
62
+ "dateModified": "2026-11-04",
63
+ "citeAs": "@inproceedings{borza2026synglass, title={SynGlass: A Large-Scale Synthetic Dataset for Fine-Grained Eyeglasses Segmentation}, author={Borza, Diana-Laura and Marinescu, Alexandru-Ion and Bota, Robert and D\\u0103r\\u0103bant, Adrian-Sergiu}, booktitle={Proceedings of the British Machine Vision Conference (BMVC)}, year={2026}}",
64
  "keywords": [
65
+ "eyeglasses segmentation",
66
+ "lens segmentation",
67
+ "semantic segmentation",
68
+ "synthetic dataset",
69
+ "Unreal Engine 5",
 
70
  "RenderPeople",
71
+ "human avatars",
72
+ "eyewear",
73
+ "boundary accuracy",
74
+ "computer vision",
75
+ "BMVC 2026"
76
  ],
77
  "creator": [
78
+ {
79
+ "@type": "Person",
80
+ "name": "Diana-Laura Borza",
81
+ "email": "diana.borza@ubbcluj.ro",
82
+ "affiliation": {
83
+ "@type": "Organization",
84
+ "name": "Babeș-Bolyai University, Department of Computer Science",
85
+ "url": "https://www.cs.ubbcluj.ro/"
86
+ }
87
+ },
88
+ {
89
+ "@type": "Person",
90
+ "name": "Alexandru-Ion Marinescu",
91
+ "email": "alexandru.marinescu@ubbcluj.ro",
92
+ "affiliation": {
93
+ "@type": "Organization",
94
+ "name": "Babeș-Bolyai University, Department of Computer Science",
95
+ "url": "https://www.cs.ubbcluj.ro/"
96
+ }
97
+ },
98
+ {
99
+ "@type": "Person",
100
+ "name": "Robert Bota",
101
+ "email": "robertbota2201@gmail.com",
102
+ "affiliation": {
103
+ "@type": "Organization",
104
+ "name": "Babeș-Bolyai University, Department of Computer Science",
105
+ "url": "https://www.cs.ubbcluj.ro/"
106
+ }
107
+ },
108
+ {
109
+ "@type": "Person",
110
+ "name": "Adrian-Sergiu Dărăbant",
111
+ "email": "sergiu.darabant@ubbcluj.ro",
112
+ "affiliation": {
113
+ "@type": "Organization",
114
+ "name": "Babeș-Bolyai University, Department of Computer Science",
115
+ "url": "https://www.cs.ubbcluj.ro/"
116
+ }
117
+ }
118
+ ],
119
+ "publisher": {
120
+ "@type": "Organization",
121
+ "name": "Babeș-Bolyai University, Department of Computer Science",
122
+ "url": "https://www.cs.ubbcluj.ro/"
123
+ },
124
+ "funder": [
125
  {
126
  "@type": "Organization",
127
+ "name": "Romanian Hub for Artificial Intelligence - HRIA (2021-2027, MySMIS no. 351416)"
128
+ },
129
+ {
130
+ "@type": "Organization",
131
+ "name": "Project PN-IV-P7-7.1-PTE-2024-0105, contract no. 43PTE (05/05/2025)"
132
  }
133
  ],
134
+ "conformsTo": "http://mlcommons.org/croissant/1.1",
135
+ "inLanguage": "en",
136
+ "isLiveDataset": false,
137
+ "rai:dataCollection": "Fully synthetic generation with an automated Unreal Engine 5 pipeline. Each of the 128 RenderPeople avatars wears each of the 867 eyeglass models (3D scans of real frames with separate frame and lens sub-meshes) and is rendered from a frontal camera (horizontal FOV 15 deg) at 125-175 cm in an indoor living-room scene, under three random head poses: two with yaw/pitch/roll in [-2, 2] deg and one in [-7, 7] deg excluding [-2, 2] deg. No real person was photographed.",
138
+ "rai:dataCollectionType": [
139
+ "Synthetic data generation (Unreal Engine 5 rendering of licensed 3D scans)"
140
+ ],
141
+ "rai:dataCollectionTimeframe": "2025 - 2026 (rimless-frame renders added in 2026)",
142
+ "rai:dataCollectionRawData": "Raw 1024x1024 lossless PNG renders are distributed as-is, together with the lens and frame masks rendered from the same viewpoint and the per-render JSON metadata.",
143
+ "rai:dataCollectionMissingData": "None: every render has a color image, a frame mask, a lens mask and a metadata file. Frames whose lenses are not visible do not occur because all captures are near-frontal and occlusion-free by construction.",
144
+ "rai:dataPreprocessingProtocol": [
145
+ "No filtering or cleaning was applied to the renders. The benchmark in the paper crops faces with MediaPipe (20 % enlarged box re-centred on the eyes, central crop with width = 2 x height, resized to width 448); the released images are the uncropped 1024x1024 renders.",
146
+ "The test split is a pose-matched subsample (22,304 of 34,944 renders) of the 91 held-out eyeglass models; the unselected renders are kept in the test_pool split."
147
+ ],
148
+ "rai:dataAnnotationProtocol": "Segmentation masks are rendered directly from the frame and lens sub-meshes of the 3D eyeglass models, so they are pixel-accurate and free of human labelling noise. In the RGBA mask PNGs, black means background; any non-black pixel belongs to the class and its four channels encode the normalized camera-view depth. Per-eyeglass taxonomy labels (family, material, shape, lens type) were assigned manually by the authors per eyeglass model; avatar demographics come from the RenderPeople catalogue.",
149
+ "rai:dataAnnotationPlatform": [
150
+ "None (masks from the rendering engine; taxonomy labels assigned by the authors)"
151
+ ],
152
+ "rai:dataAnnotationAnalysis": "Mask annotations are deterministic renders, so inter-annotator agreement does not apply. Taxonomy labels are a single expert assignment per eyeglass model (867 models).",
153
+ "rai:machineAnnotationTools": [
154
+ "Unreal Engine 5 (masks, depth encoding, metadata)"
155
+ ],
156
+ "rai:annotationsPerItem": "One frame mask, one lens mask and one metadata file per render.",
157
+ "rai:annotatorDemographics": "Not applicable (no crowd annotators; taxonomy labels assigned by the authors).",
158
+ "rai:personalSensitiveInformation": [
159
+ "The dataset contains no real personal data: all faces are renders of commercially licensed RenderPeople scans and all identifiers are anonymized (subject_NNN, glasses_NNN). Avatars carry coarse gender, age-group and ethnicity labels to enable fairness analyses. Eyeglass models are 3D scans of commercial frames; product names are not released."
160
+ ],
161
+ "rai:dataUseCases": [
162
+ "Training and benchmarking fine-grained eyeglasses lens/frame segmentation",
163
+ "Pre-training for real-world eyeglasses segmentation (synthetic-to-real transfer)",
164
+ "Boundary-accuracy evaluation with region-based and radial metrics (RTA, RErr)",
165
+ "Optometric measurement research (pupillary distance, fitting height, lens optical centre), frame retrieval, eyewear-aware face analysis"
166
+ ],
167
+ "rai:dataLimitations": [
168
+ "Entirely synthetic: indoor lighting only; real skin textures, natural illumination and reflections under uncontrolled light are not covered.",
169
+ "Near-frontal, cooperative captures only (|yaw|, |pitch|, |roll| <= 7 deg); not suited for in-the-wild or profile views.",
170
+ "Frame families are imbalanced as in commercial catalogues: 839 full-rim, 17 rimless, 11 semi-rimless models; the test set contains 6 rimless and 1 semi-rimless model.",
171
+ "128 avatars with the demographic skew listed under dataBiases.",
172
+ "Subject identities are shared between train and test; only eyeglass models are disjoint."
173
+ ],
174
+ "rai:dataBiases": [
175
+ "Avatar demographics (128): gender 73 female / 55 male; age <13: 12, 13-18: 10, 19-30: 73, 31-50: 22, 50+: 11; ethnicity White 73, Black 23, Asian 18, Indian 6, Middle Eastern 5, Hispanic/Latino 3.",
176
+ "Eyeglass models (867): full-rim 839 / rimless 17 / semi-rimless 11; plastic 726 / metal 141; rectangle 182, cat-eye 181, round 153, oval 146, square 114, other 47, aviator 44; clear lenses 669 / sunglasses 198."
177
+ ],
178
+ "rai:dataSocialImpact": "Intended to improve eyewear segmentation for optometric measurement, frame retrieval and eyewear-aware face analysis. Segmentation models trained on it could be used as a component of face-recognition or surveillance pipelines; the dataset is released under CC BY-NC 4.0 and must not be used for surveillance or any application that could harm individuals.",
179
+ "rai:dataReleaseMaintenancePlan": "Hosted on Hugging Face (asergiu/SynGlass) and maintained by Prof. Adrian-Sergiu Darabant, Babes-Bolyai University (sergiu.darabant@ubbcluj.ro). Errata are documented on the dataset page; released versions stay available with version identifiers (1.0.0: initial release; 1.1.0: corrected split labels, eyeglass taxonomy and avatar demographics tables).",
180
  "distribution": [
181
  {
182
  "@type": "cr:FileObject",
183
  "@id": "sessions-csv",
184
  "name": "sessions.csv",
185
+ "description": "Manifest with one row per render: split (train / test / test_pool), anonymized subject and eyeglass ids, capture index and the relative paths of the four resources.",
186
  "contentUrl": "manifest/sessions.csv",
187
  "encodingFormat": "text/csv",
188
+ "sha256": "c0f74d8fbc8d4bfefddc785a657cdacdd8dbd6353fe789bcb10c4de4de6ce660"
189
+ },
190
+ {
191
+ "@type": "cr:FileObject",
192
+ "@id": "eyeglasses-csv",
193
+ "name": "eyeglasses.csv",
194
+ "description": "One row per eyeglass model (867): split, frame family, material, lens shape and lens type.",
195
+ "contentUrl": "manifest/eyeglasses.csv",
196
+ "encodingFormat": "text/csv",
197
+ "sha256": "497f0aa4aba0bb47f0182de790603ab39aa6d2031bad5a1c034ce3dbae8a6bd0"
198
+ },
199
+ {
200
+ "@type": "cr:FileObject",
201
+ "@id": "subjects-csv",
202
+ "name": "subjects.csv",
203
+ "description": "One row per avatar (128): gender, age group and ethnicity.",
204
+ "contentUrl": "manifest/subjects.csv",
205
+ "encodingFormat": "text/csv",
206
+ "sha256": "a11d131df40ae833d99d41ec9da9aaeb1b2e1972563561aa8bb9a51c72c2e545"
207
+ },
208
+ {
209
+ "@type": "cr:FileSet",
210
+ "@id": "shards",
211
+ "name": "WebDataset TAR shards",
212
+ "description": "Renders packed as WebDataset-style TAR shards, ~4 GB each: shards/train/train-NNNNNN.tar (143 files) and shards/test/test-NNNNNN.tar (11 files). Note: the train shards physically also contain the 12,640 test_pool renders; use the split column of sessions.csv to select renders.",
213
+ "includes": "shards/*/*.tar",
214
+ "encodingFormat": "application/x-tar"
215
  },
216
  {
217
  "@type": "cr:FileSet",
218
  "@id": "png-files",
219
  "name": "PNG images and masks",
220
+ "description": "1024x1024 colour renders (*_color.png) and RGBA frame/lens masks with depth encoding (*_mask_frame.png, *_mask_lens.png), inside the shards.",
221
+ "containedIn": {
222
+ "@id": "shards"
223
+ },
224
  "includes": "**/*.png",
225
  "encodingFormat": "image/png"
226
  },
227
  {
228
  "@type": "cr:FileSet",
229
  "@id": "json-files",
230
+ "name": "Per-render metadata JSON",
231
+ "description": "*_meta.json: head rotation (pitch/yaw/roll, deg), head and eye positions, camera positions/rotations, camera_fov, slider_avatar_distance (cm).",
232
+ "containedIn": {
233
+ "@id": "shards"
234
+ },
235
  "includes": "**/*.json",
236
  "encodingFormat": "application/json"
237
  }
 
241
  "@type": "cr:RecordSet",
242
  "@id": "splits",
243
  "name": "splits",
244
+ "description": "Split definitions used in sessions.csv. train: 776 eyeglass models, 297,984 renders; test: 91 held-out models, 22,304 pose-matched renders; test_pool: the remaining 12,640 renders of the 91 test models (not part of the benchmark, never to be used for training).",
245
  "dataType": "cr:Split",
246
  "key": {
247
  "@id": "splits/name"
 
258
  "@type": "cr:Field",
259
  "@id": "splits/url",
260
  "name": "url",
261
+ "description": "Croissant semantic identifier of the split.",
262
+ "dataType": [
263
+ "sc:Text",
264
+ "cr:Split"
265
+ ]
266
  }
267
  ],
268
  "data": [
 
273
  {
274
  "splits/name": "test",
275
  "splits/url": "cr:TestSplit"
276
+ },
277
+ {
278
+ "splits/name": "test_pool",
279
+ "splits/url": "cr:TestSplit"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "@type": "cr:RecordSet",
285
+ "@id": "eyeglasses",
286
+ "name": "eyeglasses",
287
+ "description": "Taxonomy of the 867 eyeglass models (anonymized ids).",
288
+ "key": {
289
+ "@id": "eyeglasses/eyeglass_model_name"
290
+ },
291
+ "field": [
292
+ {
293
+ "@type": "cr:Field",
294
+ "@id": "eyeglasses/eyeglass_model_name",
295
+ "name": "eyeglass_model_name",
296
+ "description": "Anonymized eyeglass model identifier (glasses_001 ... glasses_867).",
297
+ "dataType": "sc:Text",
298
+ "source": {
299
+ "fileObject": {
300
+ "@id": "eyeglasses-csv"
301
+ },
302
+ "extract": {
303
+ "column": "eyeglass_model_name"
304
+ }
305
+ }
306
+ },
307
+ {
308
+ "@type": "cr:Field",
309
+ "@id": "eyeglasses/split",
310
+ "name": "split",
311
+ "description": "train (776 models) or test (91 models; their renders are in the test and test_pool splits).",
312
+ "dataType": "sc:Text",
313
+ "source": {
314
+ "fileObject": {
315
+ "@id": "eyeglasses-csv"
316
+ },
317
+ "extract": {
318
+ "column": "split"
319
+ }
320
+ }
321
+ },
322
+ {
323
+ "@type": "cr:Field",
324
+ "@id": "eyeglasses/family",
325
+ "name": "family",
326
+ "description": "Frame family: full-rim, semi-rimless or rimless.",
327
+ "dataType": "sc:Text",
328
+ "source": {
329
+ "fileObject": {
330
+ "@id": "eyeglasses-csv"
331
+ },
332
+ "extract": {
333
+ "column": "family"
334
+ }
335
+ }
336
+ },
337
+ {
338
+ "@type": "cr:Field",
339
+ "@id": "eyeglasses/material",
340
+ "name": "material",
341
+ "description": "Frame material: plastic or metal.",
342
+ "dataType": "sc:Text",
343
+ "source": {
344
+ "fileObject": {
345
+ "@id": "eyeglasses-csv"
346
+ },
347
+ "extract": {
348
+ "column": "material"
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "@type": "cr:Field",
354
+ "@id": "eyeglasses/shape",
355
+ "name": "shape",
356
+ "description": "Lens shape: rectangle, square, round, oval, aviator, cat-eye or other.",
357
+ "dataType": "sc:Text",
358
+ "source": {
359
+ "fileObject": {
360
+ "@id": "eyeglasses-csv"
361
+ },
362
+ "extract": {
363
+ "column": "shape"
364
+ }
365
+ }
366
+ },
367
+ {
368
+ "@type": "cr:Field",
369
+ "@id": "eyeglasses/lens_type",
370
+ "name": "lens_type",
371
+ "description": "clear or sunglasses (tinted lenses).",
372
+ "dataType": "sc:Text",
373
+ "source": {
374
+ "fileObject": {
375
+ "@id": "eyeglasses-csv"
376
+ },
377
+ "extract": {
378
+ "column": "lens_type"
379
+ }
380
+ }
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "@type": "cr:RecordSet",
386
+ "@id": "subjects",
387
+ "name": "subjects",
388
+ "description": "Demographic attributes of the 128 RenderPeople avatars (anonymized ids).",
389
+ "key": {
390
+ "@id": "subjects/human_subject_name"
391
+ },
392
+ "field": [
393
+ {
394
+ "@type": "cr:Field",
395
+ "@id": "subjects/human_subject_name",
396
+ "name": "human_subject_name",
397
+ "description": "Anonymized avatar identifier (subject_001 ... subject_128).",
398
+ "dataType": "sc:Text",
399
+ "source": {
400
+ "fileObject": {
401
+ "@id": "subjects-csv"
402
+ },
403
+ "extract": {
404
+ "column": "human_subject_name"
405
+ }
406
+ }
407
+ },
408
+ {
409
+ "@type": "cr:Field",
410
+ "@id": "subjects/gender",
411
+ "name": "gender",
412
+ "description": "female or male (as listed by RenderPeople).",
413
+ "dataType": "sc:Text",
414
+ "source": {
415
+ "fileObject": {
416
+ "@id": "subjects-csv"
417
+ },
418
+ "extract": {
419
+ "column": "gender"
420
+ }
421
+ }
422
+ },
423
+ {
424
+ "@type": "cr:Field",
425
+ "@id": "subjects/age_group",
426
+ "name": "age_group",
427
+ "description": "Age group: <13, 13-18, 19-30, 31-50 or 50+.",
428
+ "dataType": "sc:Text",
429
+ "source": {
430
+ "fileObject": {
431
+ "@id": "subjects-csv"
432
+ },
433
+ "extract": {
434
+ "column": "age_group"
435
+ }
436
+ }
437
+ },
438
+ {
439
+ "@type": "cr:Field",
440
+ "@id": "subjects/ethnicity",
441
+ "name": "ethnicity",
442
+ "description": "White, Black, Asian, Indian, Middle Eastern or Hispanic/Latino (as listed by RenderPeople).",
443
+ "dataType": "sc:Text",
444
+ "source": {
445
+ "fileObject": {
446
+ "@id": "subjects-csv"
447
+ },
448
+ "extract": {
449
+ "column": "ethnicity"
450
+ }
451
+ }
452
  }
453
  ]
454
  },
 
456
  "@type": "cr:RecordSet",
457
  "@id": "synglass_sessions",
458
  "name": "synglass_sessions",
459
+ "description": "One record per render (mono capture session): a colour image, a frame mask, a lens mask and a metadata file.",
460
  "key": {
461
  "@id": "synglass_sessions/session_id"
462
  },
 
465
  "@type": "cr:Field",
466
  "@id": "synglass_sessions/session_id",
467
  "name": "session_id",
468
+ "description": "Unique anonymized session identifier (= file stem).",
469
  "dataType": "sc:Text",
470
  "source": {
471
  "fileObject": {
 
480
  "@type": "cr:Field",
481
  "@id": "synglass_sessions/split",
482
  "name": "split",
483
+ "description": "train, test or test_pool.",
484
  "dataType": "sc:Text",
485
  "source": {
486
  "fileObject": {
 
491
  }
492
  },
493
  "references": {
494
+ "field": {
495
+ "@id": "splits/name"
496
+ }
497
  }
498
  },
499
  {
500
  "@type": "cr:Field",
501
  "@id": "synglass_sessions/human_subject_name",
502
  "name": "human_subject_name",
503
+ "description": "Anonymized avatar identifier; joins subjects.",
504
  "dataType": "sc:Text",
505
  "source": {
506
  "fileObject": {
 
509
  "extract": {
510
  "column": "human_subject_name"
511
  }
512
+ },
513
+ "references": {
514
+ "field": {
515
+ "@id": "subjects/human_subject_name"
516
+ }
517
  }
518
  },
519
  {
520
  "@type": "cr:Field",
521
  "@id": "synglass_sessions/eyeglass_model_name",
522
  "name": "eyeglass_model_name",
523
+ "description": "Anonymized eyeglass model identifier; joins eyeglasses.",
524
  "dataType": "sc:Text",
525
  "source": {
526
  "fileObject": {
 
529
  "extract": {
530
  "column": "eyeglass_model_name"
531
  }
532
+ },
533
+ "references": {
534
+ "field": {
535
+ "@id": "eyeglasses/eyeglass_model_name"
536
+ }
537
  }
538
  },
539
  {
540
  "@type": "cr:Field",
541
  "@id": "synglass_sessions/capture_session_index",
542
  "name": "capture_session_index",
543
+ "description": "Capture index 1-3 (three random head poses per avatar-eyeglass pair).",
544
  "dataType": "sc:Integer",
545
  "source": {
546
  "fileObject": {
 
555
  "@type": "cr:Field",
556
  "@id": "synglass_sessions/file_stem",
557
  "name": "file_stem",
558
+ "description": "Common filename stem of the four resources.",
559
  "dataType": "sc:Text",
560
  "source": {
561
  "fileObject": {
 
570
  "@type": "cr:Field",
571
  "@id": "synglass_sessions/color",
572
  "name": "color",
573
+ "description": "Relative path of the 1024x1024 colour render (PNG).",
574
  "dataType": "sc:Text",
575
  "source": {
576
  "fileObject": {
 
585
  "@type": "cr:Field",
586
  "@id": "synglass_sessions/mask_frame",
587
  "name": "mask_frame",
588
+ "description": "Relative path of the frame mask (RGBA PNG; black = not frame; non-black channels encode normalized depth).",
589
  "dataType": "sc:Text",
590
  "source": {
591
  "fileObject": {
 
600
  "@type": "cr:Field",
601
  "@id": "synglass_sessions/mask_lens",
602
  "name": "mask_lens",
603
+ "description": "Relative path of the lens mask (RGBA PNG; black = not lens; non-black channels encode normalized depth).",
604
  "dataType": "sc:Text",
605
  "source": {
606
  "fileObject": {
 
615
  "@type": "cr:Field",
616
  "@id": "synglass_sessions/metadata",
617
  "name": "metadata",
618
+ "description": "Relative path of the per-render JSON metadata (head pose, head/eye positions, camera parameters, avatar distance).",
619
  "dataType": "sc:Text",
620
  "source": {
621
  "fileObject": {
 
628
  }
629
  ]
630
  }
631
+ ]
 
 
 
632
  }