Polish dataset card

#2
by aadarwal - opened
Files changed (3) hide show
  1. README.md +149 -80
  2. metadata/checksums.sha256 +2 -2
  3. scripts/validate_release.py +63 -1
README.md CHANGED
@@ -1,14 +1,23 @@
1
  ---
2
- pretty_name: "PixCell Dataset: Representation-First Image-to-Code Curriculum"
3
  license: mit
4
  language:
5
  - en
 
 
 
 
 
 
6
  task_categories:
7
- - image-to-text
8
  tags:
9
  - image
 
10
  - code
11
  - python
 
 
12
  - photonics
13
  - gds
14
  - gdsfactory
@@ -16,6 +25,7 @@ tags:
16
  - multimodal
17
  - synthetic
18
  - curriculum-learning
 
19
  size_categories:
20
  - 1K<n<10K
21
  configs:
@@ -64,25 +74,66 @@ configs:
64
  path: depth-v1/data/train-*.parquet
65
  - split: validation
66
  path: depth-v1/data/validation-*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  ---
68
 
69
  # PixCell Dataset
70
 
71
- PixCell pairs high-visibility photonic component images and physical footprint
72
- context with verified primitive-only GDSFactory programs. It is published in
73
- two complementary configurations:
74
 
75
- | Configuration | Rows | Representations | Splits |
76
- |---|---:|---:|---|
77
- | `core-v1` | 738 | 547 | `train`: 738 |
78
- | `depth-v1` | 4,560 | 547 | `train`: 3,468 · `validation`: 1,092 |
79
 
80
- [Core gallery](galleries/all.png) · [L0](galleries/l0.png) ·
81
- [L1](galleries/l1.png) · [L2](galleries/l2.png) ·
82
- [L3](galleries/l3.png) · [L4](galleries/l4.png) ·
 
 
 
 
 
 
 
 
 
83
  [Depth overview](depth-v1/galleries/overview.png)
84
 
85
- ## Load from Hugging Face
86
 
87
  ```bash
88
  pip install "datasets[vision]"
@@ -112,35 +163,46 @@ row["target_image"] # canonical physical-aspect raster
112
  row["footprint_um"] # physical width and height
113
  ```
114
 
115
- No custom loader or `trust_remote_code` is required.
116
 
117
  ## Curriculum
118
 
119
- The levels teach the permitted vocabulary before asking for complete photonic
120
- components.
121
 
122
  | Level | Rows | Representations | Contents |
123
  |---|---:|---:|---|
124
- | **L0 primitives** | 177 | 93 | The 22-item PixCell primitive catalog, constructor modes, useful orientations, and scale calibration. |
125
- | **L1 operations** | 215 | 127 | Translation, rotation, reflection, alignment, spacing, connection, path construction, Booleans, repetition, arrays, and routing. |
126
- | **L2 compositions** | 118 | 99 | Small relational assemblies, connected chains, branches, repeated carriers, arrays, and radial banks. |
127
- | **L3 structures** | 120 | 120 | Authored multi-zone systems with routes, branches, defects, repeated media, and cyclic organization. |
128
- | **L4 components** | 108 | 108 | Couplers, MMIs, splitters, interferometers, resonators, crossings, gratings, cavities, converters, and free-propagation structures. |
129
-
130
- `all` is the default configuration and currently contains the same rows as
131
- `core-v1`. The `l0` through `l4` configurations expose individual levels.
132
- Use both the `core-v1` configuration and `revision="core-v1"` to pin this
133
- release.
134
-
135
- `depth-v1` retains all 738 core rows. It adds seven controlled, model-visible
136
- geometry realizations to 546 of the 547 approved representation anchors; one
137
- anchor remains anchor-only because its sole exposed literal changes global
138
- placement rather than visible shape. Its validation split holds out parameter
139
- settings, not representation classes: every representation remains present in
140
- training. Use the `depth-v1`
141
- configuration and `revision="depth-v1"` together to pin it. The repository
142
- revision selects the published release, while the configuration selects its
143
- Parquet files.
 
 
 
 
 
 
 
 
 
 
 
144
 
145
  ## Row contract
146
 
@@ -150,42 +212,45 @@ Parquet files.
150
  | Supervised target | `code` |
151
  | Physical reference | `target_image`, `footprint_um` |
152
  | Curriculum identity | `level`, `family`, `concept_id`, `representation_id`, `grammar_id`, `variation_role` |
153
- | Split integrity | `leakage_group_id` |
154
  | Construction metadata | `primitive_calls`, `prerequisite_ids`, `port_signature_json`, `parameters_json`, `topology_json` |
155
- | Integrity and provenance | SHA-256 fields, `view_policy`, source digest, generator version |
156
 
157
  `image` is a maximum-visibility view: thin gaps, rails, teeth, bends, and
158
- defects are enlarged when needed to remain legible. It may not preserve
159
- physical aspect ratio. The class-blind `instruction` supplies the footprint
160
- and per-axis display magnification; `target_image` preserves the canonical
161
- physical aspect.
162
 
163
  The full schema and release inventory are in
164
  [`metadata/catalog.json`](metadata/catalog.json).
165
  The additional `depth-v1` lineage and controlled-variation fields are
166
  documented in [`depth-v1/README.md`](depth-v1/README.md).
167
 
168
- ## Admission
 
 
 
 
169
 
170
- Only admitted rows are published. Rejected proposals, quarantine candidates,
171
- failed builds, private benchmark figures, and RL rollouts are excluded.
 
 
 
172
 
173
- Admission checks compilation and execution, primitive-only source purity,
174
- declared ports and connectivity, structural witnesses, calibrated geometry,
175
- footprint agreement, and artifact hashes. The core policy is in
176
- [`factory/admission_policy.json`](factory/admission_policy.json); the depth
177
- release binds its accepted rows and evidence in
178
- [`depth-v1/factory/accepted_manifest.json`](depth-v1/factory/accepted_manifest.json).
179
 
180
- The frozen `core-v1` release reports five exact duplicate groups and 41
181
- rotation/reflection-equivalent silhouette groups. They are retained as
182
- declared API aliases, pose examples, or calibration cases and are bound by
183
- `leakage_group_id`.
184
 
185
  ## Reproduce
186
 
187
- The accepted-source capsule under `factory/core-v1/` makes the dataset
188
- self-contained. From a clean PixCell checkout:
 
 
 
189
 
190
  ```bash
191
  cd dataset
@@ -204,24 +269,20 @@ python -m unittest discover -s tests -v
204
  python -m pytest depth-v1/tests -q
205
  ```
206
 
207
- The rebuilds must reproduce these frozen logical release digests:
208
 
209
  ```text
210
  core-v1 e1c509dca337ce485efcb2b35101a052e06b12331b63a2f21a36c93b3682ea89
211
  depth-v1 676c49134d4d044c7d84426cf8eeecf09302e74ca4aa548956f14b7631a4d80b
212
  ```
213
 
214
- The capsule contains accepted programs, explicit grammar assignments, image
215
- evidence, and admission sidecars. It excludes historical proposal generators,
216
- rejected candidates, private benchmarks, and RL runs. See
217
- [`factory/README.md`](factory/README.md) for the replay contract.
218
 
219
- The rows contain executable Python. Core replay uses isolated temporary
220
- working directories; depth replay executes verified rows in-process for
221
- speed. Neither is a security sandbox. Inspect code from any untrusted revision
222
- before executing it.
223
 
224
- ## Export
225
 
226
  Convert a level to OpenAI-style multimodal `messages`:
227
 
@@ -233,21 +294,29 @@ python scripts/to_vlm_messages.py \
233
  --image-mode data-uri
234
  ```
235
 
236
- ## Scope
237
 
238
- This release is a compact curriculum for image-to-code SFT, task sampling, and
239
- representation studies. It is not a pretraining-scale corpus, a held-out
240
- benchmark, an RL reward implementation, or an optical-performance dataset.
241
-
242
- Images are synthetic, single-layer, black-and-white renders. Passing
243
- admission establishes faithful geometry under the declared raster and
244
- footprint; it does not establish electromagnetic performance or foundry
245
- sign-off.
246
 
247
  ## License and citation
248
 
249
  The dataset and release tools use the [MIT License](LICENSE). Dependency
250
- notices are in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md), and citation
251
- metadata is in [CITATION.cff](CITATION.cff). The citation record will be
252
- updated with the paper's arXiv identifier when available. Project source:
253
- [QPG-MIT/PixCell](https://github.com/QPG-MIT/PixCell).
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: "PixCell Dataset"
3
  license: mit
4
  language:
5
  - en
6
+ - code
7
+ annotations_creators:
8
+ - expert-generated
9
+ - machine-generated
10
+ source_datasets:
11
+ - original
12
  task_categories:
13
+ - image-text-to-text
14
  tags:
15
  - image
16
+ - text
17
  - code
18
  - python
19
+ - code-generation
20
+ - vision-language
21
  - photonics
22
  - gds
23
  - gdsfactory
 
25
  - multimodal
26
  - synthetic
27
  - curriculum-learning
28
+ - datasets
29
  size_categories:
30
  - 1K<n<10K
31
  configs:
 
74
  path: depth-v1/data/train-*.parquet
75
  - split: validation
76
  path: depth-v1/data/validation-*.parquet
77
+ dataset_info:
78
+ - config_name: all
79
+ splits:
80
+ - name: train
81
+ num_examples: 738
82
+ - config_name: core-v1
83
+ splits:
84
+ - name: train
85
+ num_examples: 738
86
+ - config_name: l0
87
+ splits:
88
+ - name: train
89
+ num_examples: 177
90
+ - config_name: l1
91
+ splits:
92
+ - name: train
93
+ num_examples: 215
94
+ - config_name: l2
95
+ splits:
96
+ - name: train
97
+ num_examples: 118
98
+ - config_name: l3
99
+ splits:
100
+ - name: train
101
+ num_examples: 120
102
+ - config_name: l4
103
+ splits:
104
+ - name: train
105
+ num_examples: 108
106
+ - config_name: depth-v1
107
+ splits:
108
+ - name: train
109
+ num_examples: 3468
110
+ - name: validation
111
+ num_examples: 1092
112
  ---
113
 
114
  # PixCell Dataset
115
 
116
+ The PixCell Dataset is a verified image-to-code curriculum for photonic
117
+ geometry. Each row pairs a high-visibility component image and physical
118
+ footprint context with a complete primitive-only GDSFactory program.
119
 
120
+ ## Choose a configuration
 
 
 
121
 
122
+ | Configuration | Best for | Rows | Splits |
123
+ |---|---|---:|---|
124
+ | `core-v1` | Curriculum training and compact task sampling | 738 | `train`: 738 |
125
+ | `depth-v1` | Image-to-code SFT and parameter recovery | 4,560 | `train`: 3,468, `validation`: 1,092 |
126
+ | `l0` through `l4` | Individual stages of the core curriculum | 108 to 215 | `train` |
127
+
128
+ `all` is the default compatibility alias for `core-v1`. Versioned work should
129
+ pass both the configuration and matching revision.
130
+
131
+ [Core gallery](galleries/all.png), [L0](galleries/l0.png),
132
+ [L1](galleries/l1.png), [L2](galleries/l2.png),
133
+ [L3](galleries/l3.png), [L4](galleries/l4.png),
134
  [Depth overview](depth-v1/galleries/overview.png)
135
 
136
+ ## Load
137
 
138
  ```bash
139
  pip install "datasets[vision]"
 
163
  row["footprint_um"] # physical width and height
164
  ```
165
 
166
+ The Parquet files load directly through `datasets`.
167
 
168
  ## Curriculum
169
 
170
+ The five levels progress from the permitted primitive catalog to complete
171
+ photonic components.
172
 
173
  | Level | Rows | Representations | Contents |
174
  |---|---:|---:|---|
175
+ | **L0: primitives** | 177 | 93 | The 22-item primitive catalog, constructor modes, useful orientations, and scale calibration. |
176
+ | **L1: operations** | 215 | 127 | Translation, rotation, reflection, alignment, spacing, connection, path construction, Booleans, repetition, arrays, and routing. |
177
+ | **L2: compositions** | 118 | 99 | Small relational assemblies, connected chains, branches, repeated carriers, arrays, and radial banks. |
178
+ | **L3: structures** | 120 | 120 | Authored multi-zone systems with routes, branches, defects, repeated media, and cyclic organization. |
179
+ | **L4: components** | 108 | 108 | Couplers, MMIs, splitters, interferometers, resonators, crossings, gratings, cavities, converters, and free-propagation structures. |
180
+
181
+ `depth-v1` retains the complete core and adds seven controlled geometry
182
+ settings to 546 representation anchors.
183
+
184
+ ## Split design
185
+
186
+ The split holds out parameter settings within known representations.
187
+
188
+ | Split | Contents | Rows |
189
+ |---|---|---:|
190
+ | `train` | All 738 core rows plus five new settings for each of 546 expanded representations | 3,468 |
191
+ | `validation` | Two further settings for each expanded representation | 1,092 |
192
+
193
+ ```text
194
+ train 738 + (5 * 546) = 3,468
195
+ validation 2 * 546 = 1,092
196
+ ```
197
+
198
+ Training receives the anchors and most controlled settings. Validation receives
199
+ a fixed parameter holdout for every expanded representation. This gives a
200
+ 76/24 training-to-validation ratio and keeps all 547 representations available
201
+ during training.
202
+
203
+ Exact image-plus-instruction pairs and code hashes stay unique across the two
204
+ splits. `leakage_group_id` records related aliases and dependencies. Use that
205
+ field to construct a group-disjoint split for unseen-representation studies.
206
 
207
  ## Row contract
208
 
 
212
  | Supervised target | `code` |
213
  | Physical reference | `target_image`, `footprint_um` |
214
  | Curriculum identity | `level`, `family`, `concept_id`, `representation_id`, `grammar_id`, `variation_role` |
215
+ | Alias and dependency grouping | `leakage_group_id` |
216
  | Construction metadata | `primitive_calls`, `prerequisite_ids`, `port_signature_json`, `parameters_json`, `topology_json` |
217
+ | Integrity and provenance | SHA-256 fields, `view_policy`, source digest, and generator version |
218
 
219
  `image` is a maximum-visibility view: thin gaps, rails, teeth, bends, and
220
+ defects remain legible through declared per-axis display magnification. The
221
+ class-blind `instruction` supplies that display scale and the physical
222
+ footprint. `target_image` preserves the physical aspect ratio.
 
223
 
224
  The full schema and release inventory are in
225
  [`metadata/catalog.json`](metadata/catalog.json).
226
  The additional `depth-v1` lineage and controlled-variation fields are
227
  documented in [`depth-v1/README.md`](depth-v1/README.md).
228
 
229
+ ## Construction and quality
230
+
231
+ Core examples enumerate primitives, operations, compositions, structures, and
232
+ photonic components. The depth builder identifies live geometry parameters and
233
+ emits a fixed schedule of controlled, visible settings.
234
 
235
+ Every row passes compilation and execution, primitive-only source checks,
236
+ declared port and connectivity checks, structural witnesses, calibrated
237
+ geometry comparison, footprint agreement, and artifact hashing. Release
238
+ manifests and verification evidence are stored under [`factory/`](factory/)
239
+ and [`depth-v1/factory/`](depth-v1/factory/).
240
 
241
+ The dataset targets executable geometric reconstruction at a declared raster
242
+ and physical footprint. Electromagnetic performance and foundry qualification
243
+ are evaluated in downstream device workflows.
 
 
 
244
 
245
+ All images, instructions, and programs are synthetic.
 
 
 
246
 
247
  ## Reproduce
248
 
249
+ The source capsule under `factory/core-v1/` and the depth release scripts
250
+ rebuild the published rows from a clean PixCell checkout.
251
+
252
+ <details>
253
+ <summary>Rebuild and verify both releases</summary>
254
 
255
  ```bash
256
  cd dataset
 
269
  python -m pytest depth-v1/tests -q
270
  ```
271
 
272
+ The rebuilds reproduce these frozen logical release digests:
273
 
274
  ```text
275
  core-v1 e1c509dca337ce485efcb2b35101a052e06b12331b63a2f21a36c93b3682ea89
276
  depth-v1 676c49134d4d044c7d84426cf8eeecf09302e74ca4aa548956f14b7631a4d80b
277
  ```
278
 
279
+ </details>
 
 
 
280
 
281
+ See [`factory/README.md`](factory/README.md) for the replay contract. Dataset
282
+ rows contain executable Python. Inspect code from untrusted revisions before
283
+ execution.
 
284
 
285
+ ## Training export
286
 
287
  Convert a level to OpenAI-style multimodal `messages`:
288
 
 
294
  --image-mode data-uri
295
  ```
296
 
297
+ ## Recommended use
298
 
299
+ Use `depth-v1` for image-to-code SFT and within-representation parameter
300
+ recovery. Use `core-v1` or the individual levels for staged training, task
301
+ sampling, and component-focused training. Use a representation-disjoint
302
+ benchmark for unseen-component evaluation.
 
 
 
 
303
 
304
  ## License and citation
305
 
306
  The dataset and release tools use the [MIT License](LICENSE). Dependency
307
+ notices are in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). Citation
308
+ metadata is available in [CITATION.cff](CITATION.cff).
309
+
310
+ ```bibtex
311
+ @misc{agarwal2026pixcelldataset,
312
+ title = {PixCell Dataset: Representation-First Image-to-Code Curriculum},
313
+ author = {Aadarsh Agarwal and Kenaish Al Qubaisi and Dirk Englund},
314
+ year = {2026},
315
+ howpublished = {Hugging Face dataset},
316
+ note = {Version depth-v1},
317
+ url = {https://huggingface.co/datasets/qpaig-mit/pixcell}
318
+ }
319
+ ```
320
+
321
+ The citation record will include the paper's arXiv identifier when available.
322
+ Project source: [QPG-MIT/PixCell](https://github.com/QPG-MIT/PixCell).
metadata/checksums.sha256 CHANGED
@@ -1,7 +1,7 @@
1
  f8faecf2505680716c6279bf2cdec3d5a5ba2ba852f0d7df45d51ac1ce8d9ade .python-version
2
  a22619bb6911918745af82f87a8f9c95b3ba58cf316c94cbc8d14cb08aab68df CITATION.cff
3
  682ac5b33eb6dd10f8c22aaa9c5c3edf355c1e9e4183c8c1702b2ca5ea354552 LICENSE
4
- 21a079120d3eebe531321efed017ebc1e10cc9f415cd34f6fe76eb819351ba60 README.md
5
  807185365904ef40c89e6b1d5414b692abc941c25b6384cb4651d1e9fd5cc820 THIRD_PARTY_NOTICES.md
6
  e0c5bda1b192a901349aeda2cf9287e22d62b5b791c421955e2ffba9ca2785da data/l0/train-00000-of-00001.parquet
7
  fc37aea17af1a127e46f89604c95e490b8c361d5105a4cd77581f1d93dfcfc44 data/l1/train-00000-of-00001.parquet
@@ -117,5 +117,5 @@ ae119930dc770ab831bc0ed4f236ff69ff167b0566faf15ff6ee96a79f54af11 requirements-l
117
  f880ec72b2e32dcfa4f0a2ae4da3584132c83c7e2d68af5e2bf2c84d69a7ba45 scripts/pack_core_v1_source.py
118
  cd8b2ba0bb915bf3149473b0d84f9f762702be088f17a12c13ea48e678864fc9 scripts/render_galleries.py
119
  3177f1eba97b459f1502051dca7a28b0b66087314f1739b3eabb4e38946a4bd0 scripts/to_vlm_messages.py
120
- 480c5ec9c4ebc1ef04fbbb043c1137f15b2b5dc86a73ac24dd84ccfcdb59d186 scripts/validate_release.py
121
  e5a7bd70268d7e8635382234ea85fa4583456203a45bc38f749cead99aac8b6e tests/test_release.py
 
1
  f8faecf2505680716c6279bf2cdec3d5a5ba2ba852f0d7df45d51ac1ce8d9ade .python-version
2
  a22619bb6911918745af82f87a8f9c95b3ba58cf316c94cbc8d14cb08aab68df CITATION.cff
3
  682ac5b33eb6dd10f8c22aaa9c5c3edf355c1e9e4183c8c1702b2ca5ea354552 LICENSE
4
+ 9b0774b43025ef082d01d1a8fdfaf16d2db0cf2d88b3994af3f2c21c3f0719ae README.md
5
  807185365904ef40c89e6b1d5414b692abc941c25b6384cb4651d1e9fd5cc820 THIRD_PARTY_NOTICES.md
6
  e0c5bda1b192a901349aeda2cf9287e22d62b5b791c421955e2ffba9ca2785da data/l0/train-00000-of-00001.parquet
7
  fc37aea17af1a127e46f89604c95e490b8c361d5105a4cd77581f1d93dfcfc44 data/l1/train-00000-of-00001.parquet
 
117
  f880ec72b2e32dcfa4f0a2ae4da3584132c83c7e2d68af5e2bf2c84d69a7ba45 scripts/pack_core_v1_source.py
118
  cd8b2ba0bb915bf3149473b0d84f9f762702be088f17a12c13ea48e678864fc9 scripts/render_galleries.py
119
  3177f1eba97b459f1502051dca7a28b0b66087314f1739b3eabb4e38946a4bd0 scripts/to_vlm_messages.py
120
+ c56497600ce804f0f9744ec2562e054028c6cee9dab395163f2275c9446c21f8 scripts/validate_release.py
121
  e5a7bd70268d7e8635382234ea85fa4583456203a45bc38f749cead99aac8b6e tests/test_release.py
scripts/validate_release.py CHANGED
@@ -644,10 +644,41 @@ def validate_release(
644
  raise ReleaseError(
645
  f"{path.relative_to(root)}: forbidden package imports {forbidden}"
646
  )
647
- card = DatasetCard.load(str(root / "README.md"))
 
 
 
 
648
  card_data = card.data.to_dict()
649
  if card_data.get("license") != "mit":
650
  raise ReleaseError("dataset card must declare the MIT license")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
651
  configs = card_data.get("configs")
652
  if not isinstance(configs, list):
653
  raise ReleaseError("dataset card has no configurations")
@@ -681,6 +712,37 @@ def validate_release(
681
  name = str(record["config_name"])
682
  if record.get("data_files") != expected_data_files[name]:
683
  raise ReleaseError(f"dataset card data_files drift for {name}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
684
  catalog = read_json(root / "metadata" / "catalog.json")
685
  if catalog.get("schema_version") != SCHEMA_VERSION:
686
  raise ReleaseError("catalog schema version drift")
 
644
  raise ReleaseError(
645
  f"{path.relative_to(root)}: forbidden package imports {forbidden}"
646
  )
647
+ card_path = root / "README.md"
648
+ card_text = card_path.read_text(encoding="utf-8")
649
+ if any(mark in card_text for mark in ("—", "–", "·")):
650
+ raise ReleaseError("dataset card contains decorative dash or separator marks")
651
+ card = DatasetCard.load(str(card_path))
652
  card_data = card.data.to_dict()
653
  if card_data.get("license") != "mit":
654
  raise ReleaseError("dataset card must declare the MIT license")
655
+ expected_card_metadata = {
656
+ "pretty_name": "PixCell Dataset",
657
+ "language": ["en", "code"],
658
+ "annotations_creators": ["expert-generated", "machine-generated"],
659
+ "source_datasets": ["original"],
660
+ "task_categories": ["image-text-to-text"],
661
+ "size_categories": ["1K<n<10K"],
662
+ "tags": [
663
+ "image",
664
+ "text",
665
+ "code",
666
+ "python",
667
+ "code-generation",
668
+ "vision-language",
669
+ "photonics",
670
+ "gds",
671
+ "gdsfactory",
672
+ "image-to-code",
673
+ "multimodal",
674
+ "synthetic",
675
+ "curriculum-learning",
676
+ "datasets",
677
+ ],
678
+ }
679
+ for field, expected in expected_card_metadata.items():
680
+ if card_data.get(field) != expected:
681
+ raise ReleaseError(f"dataset card metadata drift for {field}")
682
  configs = card_data.get("configs")
683
  if not isinstance(configs, list):
684
  raise ReleaseError("dataset card has no configurations")
 
712
  name = str(record["config_name"])
713
  if record.get("data_files") != expected_data_files[name]:
714
  raise ReleaseError(f"dataset card data_files drift for {name}")
715
+ expected_dataset_info = [
716
+ {
717
+ "config_name": "all",
718
+ "splits": [{"name": "train", "num_examples": 738}],
719
+ },
720
+ {
721
+ "config_name": "core-v1",
722
+ "splits": [{"name": "train", "num_examples": 738}],
723
+ },
724
+ *[
725
+ {
726
+ "config_name": level,
727
+ "splits": [
728
+ {
729
+ "name": "train",
730
+ "num_examples": count,
731
+ }
732
+ ],
733
+ }
734
+ for level, count in zip(LEVELS, (177, 215, 118, 120, 108), strict=True)
735
+ ],
736
+ {
737
+ "config_name": "depth-v1",
738
+ "splits": [
739
+ {"name": "train", "num_examples": 3468},
740
+ {"name": "validation", "num_examples": 1092},
741
+ ],
742
+ },
743
+ ]
744
+ if card_data.get("dataset_info") != expected_dataset_info:
745
+ raise ReleaseError("dataset card split metadata drift")
746
  catalog = read_json(root / "metadata" / "catalog.json")
747
  if catalog.get("schema_version") != SCHEMA_VERSION:
748
  raise ReleaseError("catalog schema version drift")