Yanqing0327 commited on
Commit
787d9b7
·
verified ·
1 Parent(s): 2f92e95

Tools and the ImageNet-21k card for the released repository; datasets.json under the new name

Browse files

build.py and install_training.py as released (no login needed once public; Dress-ED ships its shards, read by the new copy_shards.py); datasets.json regenerated for UCSC-VLAA/OpenEmbed-Data.

classification/imagenet-21k/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ImageNet-21k records of the OpenEmbed training data (pilot)
2
 
3
  This folder holds the ImageNet-21k part of the OpenEmbed training mixture: 13,016,419
4
  classification records (an image, a question, the WordNet label as answer, and names of
 
1
+ # ImageNet-21k records of the OpenEmbed training data
2
 
3
  This folder holds the ImageNet-21k part of the OpenEmbed training mixture: 13,016,419
4
  classification records (an image, a question, the WordNet label as answer, and names of
tools/openembed_data/build.py CHANGED
@@ -13,7 +13,10 @@ then prints one line per dataset and writes a summary.
13
  --sets takes dataset ids (mmeb/GQA), folders (vqa/mmeb-gqa), a folder's last part (mmeb-gqa), categories (vqa), or
14
  "all", separated by commas. Run it from the folder that holds tools/ and the dataset folders: the repository root,
15
  or the folder hf download filled (see "Getting the files" in the repository README). `fetch` downloads the folders
16
- of the datasets asked for, and tools/ (needs huggingface_hub; a login while the repository is private).
 
 
 
17
 
18
  Under --out, each dataset's shards go to <folder>/. Logs and problem lists go to _build/: <folder, / as __>.log,
19
  .problems.jsonl and .report.json (when the loader writes one). _build/summary.json sums up the run. Each dataset ends
@@ -45,6 +48,7 @@ LOADER = {
45
  "rebuild_edit": ("tools", "openembed_data", "rebuild_edit.py"),
46
  "mmeb_train": ("tools", "mmeb_train", "rebuild_shards.py"),
47
  "imagenet21k": ("classification", "imagenet-21k", "tools", "loader.py"),
 
48
  }
49
  IMPORT_NAME = {"pyarrow": "pyarrow", "huggingface_hub": "huggingface_hub", "crc32c": "crc32c", "Pillow": "PIL",
50
  "av": "av", "numpy": "numpy"}
@@ -166,6 +170,9 @@ def command(e, a, root, out_dir, rep, prob):
166
  c += ["--timm-dir", os.path.abspath(a.timm_dir)] if a.timm_dir else ["--hf"]
167
  c += ([] if a.no_write else ["--out", out_dir]) + ["--problems", prob]
168
  return c + (["--shards", a.shards] if a.shards else [])
 
 
 
169
  raise ValueError(e["loader"])
170
 
171
 
 
13
  --sets takes dataset ids (mmeb/GQA), folders (vqa/mmeb-gqa), a folder's last part (mmeb-gqa), categories (vqa), or
14
  "all", separated by commas. Run it from the folder that holds tools/ and the dataset folders: the repository root,
15
  or the folder hf download filled (see "Getting the files" in the repository README). `fetch` downloads the folders
16
+ of the datasets asked for, and tools/ (needs huggingface_hub).
17
+
18
+ Dress-ED (editing/dressed/) carries the shards the training read: for it, rebuild checks each shard against its
19
+ MANIFEST.json and links or copies it into --out.
20
 
21
  Under --out, each dataset's shards go to <folder>/. Logs and problem lists go to _build/: <folder, / as __>.log,
22
  .problems.jsonl and .report.json (when the loader writes one). _build/summary.json sums up the run. Each dataset ends
 
48
  "rebuild_edit": ("tools", "openembed_data", "rebuild_edit.py"),
49
  "mmeb_train": ("tools", "mmeb_train", "rebuild_shards.py"),
50
  "imagenet21k": ("classification", "imagenet-21k", "tools", "loader.py"),
51
+ "shipped_shards": ("tools", "openembed_data", "copy_shards.py"), # 2026-11-19: Dress-ED carries its shards
52
  }
53
  IMPORT_NAME = {"pyarrow": "pyarrow", "huggingface_hub": "huggingface_hub", "crc32c": "crc32c", "Pillow": "PIL",
54
  "av": "av", "numpy": "numpy"}
 
170
  c += ["--timm-dir", os.path.abspath(a.timm_dir)] if a.timm_dir else ["--hf"]
171
  c += ([] if a.no_write else ["--out", out_dir]) + ["--problems", prob]
172
  return c + (["--shards", a.shards] if a.shards else [])
173
+ if e["loader"] == "shipped_shards":
174
+ c = [py, loader, "--set-dir", os.path.join(root, e["folder"]), "--problems", prob]
175
+ return c + ([] if a.no_write else ["--out", out_dir]) + (["--shards", a.shards] if a.shards else [])
176
  raise ValueError(e["loader"])
177
 
178
 
tools/openembed_data/copy_shards.py ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Put the training shards that a dataset folder carries as they are into the build output (2026-11-19).
3
+
4
+ A folder whose set.json names this loader (Dress-ED, editing/dressed/) carries the shards the training read, in
5
+ shards/, and lists the size, md5 and CRC-32C of each in MANIFEST.json. This script checks every shard asked for
6
+ against MANIFEST.json (size and md5) and puts it into --out: a hard link where the file system allows one, otherwise a
7
+ copy. Without --out it only checks. tools/openembed_data/install_training.py checks the bytes and CRC-32C again when
8
+ it installs them.
9
+
10
+ python tools/openembed_data/copy_shards.py --set-dir editing/dressed [--out shards/editing/dressed]
11
+ [--shards NAME,...] [--problems FILE]
12
+
13
+ It writes one JSON line to --problems for each shard that is missing or differs, and exits with status 1 if there is
14
+ any.
15
+ """
16
+ from __future__ import annotations
17
+
18
+ import argparse
19
+ import base64
20
+ import hashlib
21
+ import json
22
+ import os
23
+ import shutil
24
+ import sys
25
+
26
+
27
+ def md5_b64(path):
28
+ h = hashlib.md5()
29
+ with open(path, "rb") as fh:
30
+ for block in iter(lambda: fh.read(1 << 22), b""):
31
+ h.update(block)
32
+ return base64.b64encode(h.digest()).decode()
33
+
34
+
35
+ def main(argv=None):
36
+ ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
37
+ ap.add_argument("--set-dir", required=True, help="the dataset folder (holds shards/ and MANIFEST.json)")
38
+ ap.add_argument("--out", default=None, help="where the shards go; without it the shards are only checked")
39
+ ap.add_argument("--shards", default="", help="only these shards, comma separated (with or without .tfrecord)")
40
+ ap.add_argument("--problems", default=None, help="JSON lines, one per shard that is missing or differs")
41
+ a = ap.parse_args(argv)
42
+
43
+ listed = json.load(open(os.path.join(a.set_dir, "MANIFEST.json"), encoding="utf-8"))["shards"]
44
+ names = sorted(listed)
45
+ if a.shards:
46
+ want = [s.strip() for s in a.shards.split(",") if s.strip()]
47
+ want = [s if s.endswith(".tfrecord") else s + ".tfrecord" for s in want]
48
+ unknown = [s for s in want if s not in listed]
49
+ if unknown:
50
+ raise SystemExit(f"not in MANIFEST.json: {unknown}")
51
+ names = want
52
+ if a.out:
53
+ os.makedirs(a.out, exist_ok=True)
54
+
55
+ problems = []
56
+ for i, name in enumerate(names, 1):
57
+ src, want = os.path.join(a.set_dir, "shards", name), listed[name]
58
+ if not os.path.exists(src):
59
+ problems.append({"shard": name, "reason": "missing", "expected_size": want["size"]})
60
+ elif os.path.getsize(src) != want["size"]:
61
+ problems.append({"shard": name, "reason": "size", "size": os.path.getsize(src),
62
+ "expected_size": want["size"]})
63
+ else:
64
+ got = md5_b64(src)
65
+ if got != want["md5"]:
66
+ problems.append({"shard": name, "reason": "md5", "md5": got, "expected_md5": want["md5"]})
67
+ elif a.out:
68
+ dst = os.path.join(a.out, name)
69
+ if os.path.lexists(dst):
70
+ os.remove(dst)
71
+ try:
72
+ os.link(src, dst)
73
+ except OSError:
74
+ shutil.copyfile(src, dst)
75
+ if i % 25 == 0 or i == len(names):
76
+ print(f"{i}/{len(names)} shards checked", flush=True)
77
+
78
+ if a.problems:
79
+ with open(a.problems, "w", encoding="utf-8") as fh:
80
+ for p in problems:
81
+ fh.write(json.dumps(p) + "\n")
82
+ print(f"{len(names) - len(problems)} of {len(names)} shards as listed in MANIFEST.json"
83
+ + (f", in {a.out}" if a.out else " (checked only)"), flush=True)
84
+ return 1 if problems else 0
85
+
86
+
87
+ if __name__ == "__main__":
88
+ sys.exit(main())
tools/openembed_data/datasets.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "repository": "UCSC-VLAA/OpenEmbed-Data-pilot",
3
  "datasets": [
4
  {
5
  "dataset_id": "ext/country211_valid",
@@ -11,8 +11,9 @@
11
  "license_class": "TP",
12
  "loader": "rebuild_shards",
13
  "case": "exact",
14
- "shards_option": false,
15
  "ships_images": false,
 
16
  "pip": "pyarrow huggingface_hub crc32c",
17
  "needs": {},
18
  "download": {
@@ -30,8 +31,9 @@
30
  "license_class": "P",
31
  "loader": "rebuild_shards",
32
  "case": "exact",
33
- "shards_option": false,
34
  "ships_images": false,
 
35
  "pip": "pyarrow huggingface_hub crc32c",
36
  "needs": {},
37
  "download": {
@@ -49,8 +51,9 @@
49
  "license_class": "P",
50
  "loader": "rebuild_shards",
51
  "case": "exact",
52
- "shards_option": false,
53
  "ships_images": false,
 
54
  "pip": "pyarrow huggingface_hub crc32c",
55
  "needs": {},
56
  "download": {
@@ -89,8 +92,9 @@
89
  "license_class": "TP",
90
  "loader": "rebuild_shards",
91
  "case": "exact",
92
- "shards_option": false,
93
  "ships_images": false,
 
94
  "pip": "pyarrow huggingface_hub crc32c",
95
  "needs": {},
96
  "download": {
@@ -110,6 +114,7 @@
110
  "case": "exact",
111
  "shards_option": false,
112
  "ships_images": false,
 
113
  "pip": "pyarrow huggingface_hub crc32c",
114
  "needs": {},
115
  "download": {
@@ -129,6 +134,7 @@
129
  "case": "exact",
130
  "shards_option": false,
131
  "ships_images": false,
 
132
  "pip": "pyarrow huggingface_hub crc32c",
133
  "needs": {},
134
  "download": {
@@ -148,6 +154,7 @@
148
  "case": "exact",
149
  "shards_option": false,
150
  "ships_images": false,
 
151
  "pip": "pyarrow huggingface_hub crc32c",
152
  "needs": {},
153
  "download": {
@@ -167,6 +174,7 @@
167
  "case": "exact",
168
  "shards_option": false,
169
  "ships_images": false,
 
170
  "pip": "pyarrow huggingface_hub crc32c",
171
  "needs": {},
172
  "download": {
@@ -186,6 +194,7 @@
186
  "case": "exact",
187
  "shards_option": false,
188
  "ships_images": false,
 
189
  "pip": "pyarrow huggingface_hub crc32c",
190
  "needs": {},
191
  "download": {
@@ -203,8 +212,9 @@
203
  "license_class": "P",
204
  "loader": "rebuild_shards",
205
  "case": "exact",
206
- "shards_option": false,
207
  "ships_images": false,
 
208
  "pip": "pyarrow huggingface_hub crc32c",
209
  "needs": {},
210
  "download": {
@@ -222,8 +232,9 @@
222
  "license_class": "NC",
223
  "loader": "rebuild_shards",
224
  "case": "exact",
225
- "shards_option": false,
226
  "ships_images": false,
 
227
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
228
  "needs": {
229
  "archive": {
@@ -249,8 +260,9 @@
249
  "license_class": "P",
250
  "loader": "rebuild_shards",
251
  "case": "exact",
252
- "shards_option": false,
253
  "ships_images": true,
 
254
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\" av==13.1.0",
255
  "needs": {},
256
  "download": {
@@ -268,8 +280,9 @@
268
  "license_class": "NS",
269
  "loader": "rebuild_shards",
270
  "case": "exact",
271
- "shards_option": false,
272
  "ships_images": false,
 
273
  "pip": "pyarrow huggingface_hub crc32c",
274
  "needs": {},
275
  "download": {
@@ -287,8 +300,9 @@
287
  "license_class": "NS",
288
  "loader": "rebuild_shards",
289
  "case": "exact",
290
- "shards_option": false,
291
  "ships_images": false,
 
292
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
293
  "needs": {},
294
  "download": {
@@ -306,8 +320,9 @@
306
  "license_class": "NS",
307
  "loader": "rebuild_shards",
308
  "case": "exact",
309
- "shards_option": false,
310
  "ships_images": false,
 
311
  "pip": "pyarrow huggingface_hub crc32c",
312
  "needs": {},
313
  "download": {
@@ -325,8 +340,9 @@
325
  "license_class": "NS",
326
  "loader": "rebuild_shards",
327
  "case": "exact",
328
- "shards_option": false,
329
  "ships_images": false,
 
330
  "pip": "pyarrow huggingface_hub crc32c",
331
  "needs": {},
332
  "download": {
@@ -344,8 +360,9 @@
344
  "license_class": "NS",
345
  "loader": "rebuild_shards",
346
  "case": "exact",
347
- "shards_option": false,
348
  "ships_images": false,
 
349
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
350
  "needs": {},
351
  "download": {
@@ -363,8 +380,9 @@
363
  "license_class": "NS",
364
  "loader": "rebuild_shards",
365
  "case": "exact",
366
- "shards_option": false,
367
  "ships_images": false,
 
368
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
369
  "needs": {},
370
  "download": {
@@ -384,6 +402,7 @@
384
  "case": "identifiers only",
385
  "shards_option": false,
386
  "ships_images": false,
 
387
  "pip": null,
388
  "needs": {
389
  "builder": "identifiers only: obtain the dataset from its publisher and run our builder (released with the training code); the record ids here let you check the result (see the README)"
@@ -405,6 +424,7 @@
405
  "case": "identifiers only",
406
  "shards_option": false,
407
  "ships_images": false,
 
408
  "pip": null,
409
  "needs": {
410
  "builder": "identifiers only: obtain the dataset from its publisher and run our builder (released with the training code); the record ids here let you check the result (see the README)"
@@ -424,8 +444,9 @@
424
  "license_class": "P",
425
  "loader": "rebuild_shards",
426
  "case": "exact",
427
- "shards_option": false,
428
  "ships_images": false,
 
429
  "pip": "pyarrow huggingface_hub crc32c",
430
  "needs": {},
431
  "download": {
@@ -443,8 +464,9 @@
443
  "license_class": "NS",
444
  "loader": "rebuild_shards",
445
  "case": "exact",
446
- "shards_option": false,
447
  "ships_images": false,
 
448
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
449
  "needs": {},
450
  "download": {
@@ -462,8 +484,9 @@
462
  "license_class": "P",
463
  "loader": "rebuild_shards",
464
  "case": "exact",
465
- "shards_option": false,
466
  "ships_images": false,
 
467
  "pip": "pyarrow huggingface_hub crc32c",
468
  "needs": {},
469
  "download": {
@@ -481,8 +504,9 @@
481
  "license_class": "P",
482
  "loader": "rebuild_shards",
483
  "case": "exact",
484
- "shards_option": false,
485
  "ships_images": false,
 
486
  "pip": "pyarrow huggingface_hub crc32c",
487
  "needs": {},
488
  "download": {
@@ -500,8 +524,9 @@
500
  "license_class": "NC",
501
  "loader": "rebuild_shards",
502
  "case": "exact",
503
- "shards_option": false,
504
  "ships_images": false,
 
505
  "pip": "pyarrow huggingface_hub crc32c",
506
  "needs": {},
507
  "download": {
@@ -519,8 +544,9 @@
519
  "license_class": "P",
520
  "loader": "rebuild_shards",
521
  "case": "exact",
522
- "shards_option": false,
523
  "ships_images": false,
 
524
  "pip": "pyarrow huggingface_hub crc32c",
525
  "needs": {},
526
  "download": {
@@ -538,8 +564,9 @@
538
  "license_class": "TP",
539
  "loader": "rebuild_shards",
540
  "case": "exact",
541
- "shards_option": false,
542
  "ships_images": false,
 
543
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
544
  "needs": {},
545
  "download": {
@@ -557,8 +584,9 @@
557
  "license_class": "P",
558
  "loader": "rebuild_shards",
559
  "case": "exact",
560
- "shards_option": false,
561
  "ships_images": true,
 
562
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
563
  "needs": {},
564
  "download": {
@@ -576,8 +604,9 @@
576
  "license_class": "P",
577
  "loader": "rebuild_shards",
578
  "case": "exact",
579
- "shards_option": false,
580
  "ships_images": false,
 
581
  "pip": "pyarrow huggingface_hub crc32c",
582
  "needs": {},
583
  "download": {
@@ -595,8 +624,9 @@
595
  "license_class": "P",
596
  "loader": "rebuild_shards",
597
  "case": "exact",
598
- "shards_option": false,
599
  "ships_images": false,
 
600
  "pip": "pyarrow huggingface_hub crc32c",
601
  "needs": {},
602
  "download": {
@@ -614,8 +644,9 @@
614
  "license_class": "P",
615
  "loader": "rebuild_shards",
616
  "case": "exact",
617
- "shards_option": false,
618
  "ships_images": false,
 
619
  "pip": "pyarrow huggingface_hub crc32c",
620
  "needs": {},
621
  "download": {
@@ -633,8 +664,9 @@
633
  "license_class": "P",
634
  "loader": "rebuild_shards",
635
  "case": "exact",
636
- "shards_option": false,
637
  "ships_images": false,
 
638
  "pip": "pyarrow huggingface_hub crc32c",
639
  "needs": {},
640
  "download": {
@@ -652,8 +684,9 @@
652
  "license_class": "P",
653
  "loader": "rebuild_shards",
654
  "case": "exact",
655
- "shards_option": false,
656
  "ships_images": false,
 
657
  "pip": "pyarrow huggingface_hub crc32c",
658
  "needs": {},
659
  "download": {
@@ -671,8 +704,9 @@
671
  "license_class": "P",
672
  "loader": "rebuild_shards",
673
  "case": "exact",
674
- "shards_option": false,
675
  "ships_images": false,
 
676
  "pip": "pyarrow huggingface_hub crc32c",
677
  "needs": {},
678
  "download": {
@@ -690,8 +724,9 @@
690
  "license_class": "NS",
691
  "loader": "rebuild_shards",
692
  "case": "exact",
693
- "shards_option": false,
694
  "ships_images": false,
 
695
  "pip": "pyarrow huggingface_hub crc32c",
696
  "needs": {},
697
  "download": {
@@ -709,8 +744,9 @@
709
  "license_class": "NS",
710
  "loader": "rebuild_shards",
711
  "case": "exact",
712
- "shards_option": false,
713
  "ships_images": false,
 
714
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
715
  "needs": {},
716
  "download": {
@@ -728,8 +764,9 @@
728
  "license_class": "NS",
729
  "loader": "rebuild_shards",
730
  "case": "exact",
731
- "shards_option": false,
732
  "ships_images": false,
 
733
  "pip": "pyarrow huggingface_hub crc32c",
734
  "needs": {},
735
  "download": {
@@ -747,8 +784,9 @@
747
  "license_class": "NS",
748
  "loader": "rebuild_shards",
749
  "case": "exact",
750
- "shards_option": false,
751
  "ships_images": false,
 
752
  "pip": "pyarrow huggingface_hub crc32c",
753
  "needs": {},
754
  "download": {
@@ -766,8 +804,9 @@
766
  "license_class": "NS",
767
  "loader": "rebuild_shards",
768
  "case": "exact",
769
- "shards_option": false,
770
  "ships_images": false,
 
771
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
772
  "needs": {},
773
  "download": {
@@ -785,8 +824,9 @@
785
  "license_class": "NS",
786
  "loader": "rebuild_shards",
787
  "case": "exact",
788
- "shards_option": false,
789
  "ships_images": false,
 
790
  "pip": "pyarrow huggingface_hub crc32c",
791
  "needs": {},
792
  "download": {
@@ -806,6 +846,7 @@
806
  "case": "approximate",
807
  "shards_option": true,
808
  "ships_images": true,
 
809
  "pip": "pyarrow huggingface_hub Pillow crc32c",
810
  "needs": {},
811
  "download": {
@@ -825,6 +866,7 @@
825
  "case": "approximate",
826
  "shards_option": true,
827
  "ships_images": true,
 
828
  "pip": "pyarrow huggingface_hub Pillow crc32c",
829
  "needs": {},
830
  "download": {
@@ -844,6 +886,7 @@
844
  "case": "approximate",
845
  "shards_option": true,
846
  "ships_images": true,
 
847
  "pip": "pyarrow huggingface_hub Pillow crc32c",
848
  "needs": {},
849
  "download": {
@@ -863,6 +906,7 @@
863
  "case": "approximate",
864
  "shards_option": true,
865
  "ships_images": true,
 
866
  "pip": "pyarrow huggingface_hub Pillow crc32c",
867
  "needs": {},
868
  "download": {
@@ -882,6 +926,7 @@
882
  "case": "approximate",
883
  "shards_option": true,
884
  "ships_images": true,
 
885
  "pip": "pyarrow huggingface_hub Pillow crc32c",
886
  "needs": {},
887
  "download": {
@@ -901,6 +946,7 @@
901
  "case": "approximate",
902
  "shards_option": true,
903
  "ships_images": true,
 
904
  "pip": "pyarrow huggingface_hub Pillow crc32c",
905
  "needs": {},
906
  "download": {
@@ -920,6 +966,7 @@
920
  "case": "approximate",
921
  "shards_option": true,
922
  "ships_images": true,
 
923
  "pip": "pyarrow huggingface_hub Pillow crc32c",
924
  "needs": {},
925
  "download": {
@@ -939,6 +986,7 @@
939
  "case": "approximate",
940
  "shards_option": true,
941
  "ships_images": true,
 
942
  "pip": "pyarrow huggingface_hub Pillow crc32c",
943
  "needs": {},
944
  "download": {
@@ -958,6 +1006,7 @@
958
  "case": "approximate",
959
  "shards_option": true,
960
  "ships_images": true,
 
961
  "pip": "pyarrow huggingface_hub Pillow crc32c",
962
  "needs": {},
963
  "download": {
@@ -977,6 +1026,7 @@
977
  "case": "approximate",
978
  "shards_option": true,
979
  "ships_images": true,
 
980
  "pip": "pyarrow huggingface_hub Pillow crc32c",
981
  "needs": {},
982
  "download": {
@@ -996,6 +1046,7 @@
996
  "case": "approximate",
997
  "shards_option": true,
998
  "ships_images": true,
 
999
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1000
  "needs": {},
1001
  "download": {
@@ -1015,6 +1066,7 @@
1015
  "case": "exact",
1016
  "shards_option": false,
1017
  "ships_images": false,
 
1018
  "pip": "pyarrow huggingface_hub crc32c",
1019
  "needs": {},
1020
  "download": {
@@ -1032,8 +1084,9 @@
1032
  "license_class": "TP",
1033
  "loader": "rebuild_shards",
1034
  "case": "exact",
1035
- "shards_option": false,
1036
  "ships_images": false,
 
1037
  "pip": "pyarrow huggingface_hub crc32c",
1038
  "needs": {},
1039
  "download": {
@@ -1053,6 +1106,7 @@
1053
  "case": "exact",
1054
  "shards_option": false,
1055
  "ships_images": false,
 
1056
  "pip": "pyarrow huggingface_hub crc32c",
1057
  "needs": {},
1058
  "download": {
@@ -1072,6 +1126,7 @@
1072
  "case": "approximate",
1073
  "shards_option": true,
1074
  "ships_images": true,
 
1075
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1076
  "needs": {},
1077
  "download": {
@@ -1091,6 +1146,7 @@
1091
  "case": "approximate",
1092
  "shards_option": true,
1093
  "ships_images": true,
 
1094
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1095
  "needs": {},
1096
  "download": {
@@ -1110,6 +1166,7 @@
1110
  "case": "approximate",
1111
  "shards_option": true,
1112
  "ships_images": true,
 
1113
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1114
  "needs": {},
1115
  "download": {
@@ -1129,6 +1186,7 @@
1129
  "case": "approximate",
1130
  "shards_option": true,
1131
  "ships_images": true,
 
1132
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1133
  "needs": {},
1134
  "download": {
@@ -1148,6 +1206,7 @@
1148
  "case": "approximate",
1149
  "shards_option": true,
1150
  "ships_images": true,
 
1151
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1152
  "needs": {},
1153
  "download": {
@@ -1167,6 +1226,7 @@
1167
  "case": "approximate",
1168
  "shards_option": true,
1169
  "ships_images": false,
 
1170
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1171
  "needs": {},
1172
  "download": {
@@ -1186,6 +1246,7 @@
1186
  "case": "approximate",
1187
  "shards_option": true,
1188
  "ships_images": true,
 
1189
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1190
  "needs": {},
1191
  "download": {
@@ -1205,6 +1266,7 @@
1205
  "case": "approximate",
1206
  "shards_option": true,
1207
  "ships_images": false,
 
1208
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1209
  "needs": {},
1210
  "download": {
@@ -1224,6 +1286,7 @@
1224
  "case": "approximate",
1225
  "shards_option": true,
1226
  "ships_images": true,
 
1227
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1228
  "needs": {},
1229
  "download": {
@@ -1243,6 +1306,7 @@
1243
  "case": "approximate",
1244
  "shards_option": true,
1245
  "ships_images": true,
 
1246
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1247
  "needs": {},
1248
  "download": {
@@ -1262,6 +1326,7 @@
1262
  "case": "approximate",
1263
  "shards_option": true,
1264
  "ships_images": true,
 
1265
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1266
  "needs": {},
1267
  "download": {
@@ -1281,6 +1346,7 @@
1281
  "case": "approximate",
1282
  "shards_option": true,
1283
  "ships_images": true,
 
1284
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1285
  "needs": {},
1286
  "download": {
@@ -1300,6 +1366,7 @@
1300
  "case": "approximate",
1301
  "shards_option": true,
1302
  "ships_images": true,
 
1303
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1304
  "needs": {},
1305
  "download": {
@@ -1319,6 +1386,7 @@
1319
  "case": "exact",
1320
  "shards_option": false,
1321
  "ships_images": false,
 
1322
  "pip": "pyarrow huggingface_hub crc32c",
1323
  "needs": {},
1324
  "download": {
@@ -1336,8 +1404,9 @@
1336
  "license_class": "NS",
1337
  "loader": "rebuild_shards",
1338
  "case": "exact",
1339
- "shards_option": false,
1340
  "ships_images": true,
 
1341
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
1342
  "needs": {},
1343
  "download": {
@@ -1357,6 +1426,7 @@
1357
  "case": "exact",
1358
  "shards_option": false,
1359
  "ships_images": false,
 
1360
  "pip": "pyarrow huggingface_hub crc32c",
1361
  "needs": {},
1362
  "download": {
@@ -1376,6 +1446,7 @@
1376
  "case": "exact",
1377
  "shards_option": false,
1378
  "ships_images": false,
 
1379
  "pip": "pyarrow huggingface_hub crc32c",
1380
  "needs": {},
1381
  "download": {
@@ -1395,6 +1466,7 @@
1395
  "case": "exact",
1396
  "shards_option": false,
1397
  "ships_images": false,
 
1398
  "pip": "pyarrow huggingface_hub crc32c",
1399
  "needs": {},
1400
  "download": {
@@ -1414,6 +1486,7 @@
1414
  "case": "exact",
1415
  "shards_option": false,
1416
  "ships_images": false,
 
1417
  "pip": "pyarrow huggingface_hub crc32c",
1418
  "needs": {},
1419
  "download": {
@@ -1433,6 +1506,7 @@
1433
  "case": "exact",
1434
  "shards_option": false,
1435
  "ships_images": false,
 
1436
  "pip": "pyarrow huggingface_hub crc32c",
1437
  "needs": {},
1438
  "download": {
@@ -1450,8 +1524,9 @@
1450
  "license_class": "NS",
1451
  "loader": "rebuild_shards",
1452
  "case": "exact",
1453
- "shards_option": false,
1454
  "ships_images": false,
 
1455
  "pip": "pyarrow huggingface_hub crc32c",
1456
  "needs": {},
1457
  "download": {
@@ -1469,8 +1544,9 @@
1469
  "license_class": "NS",
1470
  "loader": "rebuild_shards",
1471
  "case": "exact",
1472
- "shards_option": false,
1473
  "ships_images": false,
 
1474
  "pip": "pyarrow huggingface_hub crc32c",
1475
  "needs": {},
1476
  "download": {
@@ -1488,8 +1564,9 @@
1488
  "license_class": "P",
1489
  "loader": "rebuild_shards",
1490
  "case": "exact",
1491
- "shards_option": false,
1492
  "ships_images": false,
 
1493
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1494
  "needs": {},
1495
  "download": {
@@ -1507,8 +1584,9 @@
1507
  "license_class": "P",
1508
  "loader": "rebuild_shards",
1509
  "case": "exact",
1510
- "shards_option": false,
1511
  "ships_images": false,
 
1512
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1513
  "needs": {},
1514
  "download": {
@@ -1526,8 +1604,9 @@
1526
  "license_class": "NC",
1527
  "loader": "rebuild_shards",
1528
  "case": "exact",
1529
- "shards_option": false,
1530
  "ships_images": false,
 
1531
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1532
  "needs": {},
1533
  "download": {
@@ -1545,8 +1624,9 @@
1545
  "license_class": "P",
1546
  "loader": "rebuild_shards",
1547
  "case": "exact",
1548
- "shards_option": false,
1549
  "ships_images": false,
 
1550
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1551
  "needs": {},
1552
  "download": {
@@ -1564,8 +1644,9 @@
1564
  "license_class": "NC",
1565
  "loader": "rebuild_shards",
1566
  "case": "exact",
1567
- "shards_option": false,
1568
  "ships_images": false,
 
1569
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1570
  "needs": {},
1571
  "download": {
@@ -1583,8 +1664,9 @@
1583
  "license_class": "NC",
1584
  "loader": "rebuild_shards",
1585
  "case": "exact",
1586
- "shards_option": false,
1587
  "ships_images": false,
 
1588
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1589
  "needs": {},
1590
  "download": {
@@ -1602,8 +1684,9 @@
1602
  "license_class": "P",
1603
  "loader": "rebuild_shards",
1604
  "case": "exact",
1605
- "shards_option": false,
1606
  "ships_images": false,
 
1607
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1608
  "needs": {},
1609
  "download": {
@@ -1621,8 +1704,9 @@
1621
  "license_class": "P",
1622
  "loader": "rebuild_shards",
1623
  "case": "exact",
1624
- "shards_option": false,
1625
  "ships_images": false,
 
1626
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1627
  "needs": {},
1628
  "download": {
@@ -1640,8 +1724,9 @@
1640
  "license_class": "NC",
1641
  "loader": "rebuild_shards",
1642
  "case": "exact",
1643
- "shards_option": false,
1644
  "ships_images": false,
 
1645
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1646
  "needs": {},
1647
  "download": {
@@ -1659,8 +1744,9 @@
1659
  "license_class": "P",
1660
  "loader": "rebuild_shards",
1661
  "case": "exact",
1662
- "shards_option": false,
1663
  "ships_images": false,
 
1664
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1665
  "needs": {},
1666
  "download": {
@@ -1678,8 +1764,9 @@
1678
  "license_class": "NC",
1679
  "loader": "rebuild_shards",
1680
  "case": "exact",
1681
- "shards_option": false,
1682
  "ships_images": false,
 
1683
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1684
  "needs": {},
1685
  "download": {
@@ -1697,8 +1784,9 @@
1697
  "license_class": "NS",
1698
  "loader": "rebuild_shards",
1699
  "case": "exact",
1700
- "shards_option": false,
1701
  "ships_images": false,
 
1702
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1703
  "needs": {},
1704
  "download": {
@@ -1716,8 +1804,9 @@
1716
  "license_class": "TP",
1717
  "loader": "rebuild_shards",
1718
  "case": "exact",
1719
- "shards_option": false,
1720
  "ships_images": false,
 
1721
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1722
  "needs": {},
1723
  "download": {
@@ -1735,8 +1824,9 @@
1735
  "license_class": "P",
1736
  "loader": "rebuild_shards",
1737
  "case": "exact",
1738
- "shards_option": false,
1739
  "ships_images": false,
 
1740
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1741
  "needs": {},
1742
  "download": {
@@ -1754,8 +1844,9 @@
1754
  "license_class": "P",
1755
  "loader": "rebuild_shards",
1756
  "case": "exact",
1757
- "shards_option": false,
1758
  "ships_images": false,
 
1759
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1760
  "needs": {},
1761
  "download": {
@@ -1773,8 +1864,9 @@
1773
  "license_class": "NC",
1774
  "loader": "rebuild_shards",
1775
  "case": "exact",
1776
- "shards_option": false,
1777
  "ships_images": false,
 
1778
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1779
  "needs": {},
1780
  "download": {
@@ -1792,8 +1884,9 @@
1792
  "license_class": "P",
1793
  "loader": "rebuild_shards",
1794
  "case": "exact",
1795
- "shards_option": false,
1796
  "ships_images": false,
 
1797
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
1798
  "needs": {},
1799
  "download": {
@@ -1813,6 +1906,7 @@
1813
  "case": "exact",
1814
  "shards_option": false,
1815
  "ships_images": false,
 
1816
  "pip": "pyarrow huggingface_hub crc32c",
1817
  "needs": {},
1818
  "download": {
@@ -1832,6 +1926,7 @@
1832
  "case": "exact",
1833
  "shards_option": false,
1834
  "ships_images": false,
 
1835
  "pip": "pyarrow huggingface_hub crc32c",
1836
  "needs": {},
1837
  "download": {
@@ -1851,6 +1946,7 @@
1851
  "case": "exact",
1852
  "shards_option": false,
1853
  "ships_images": false,
 
1854
  "pip": "pyarrow huggingface_hub crc32c",
1855
  "needs": {},
1856
  "download": {
@@ -1868,8 +1964,9 @@
1868
  "license_class": "NS",
1869
  "loader": "rebuild_shards",
1870
  "case": "exact",
1871
- "shards_option": false,
1872
  "ships_images": false,
 
1873
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1874
  "needs": {},
1875
  "download": {
@@ -1889,6 +1986,7 @@
1889
  "case": "exact",
1890
  "shards_option": false,
1891
  "ships_images": false,
 
1892
  "pip": "pyarrow huggingface_hub crc32c",
1893
  "needs": {},
1894
  "download": {
@@ -1908,6 +2006,7 @@
1908
  "case": "exact",
1909
  "shards_option": false,
1910
  "ships_images": false,
 
1911
  "pip": "pyarrow huggingface_hub crc32c",
1912
  "needs": {},
1913
  "download": {
@@ -1925,8 +2024,9 @@
1925
  "license_class": "NC",
1926
  "loader": "rebuild_shards",
1927
  "case": "exact",
1928
- "shards_option": false,
1929
  "ships_images": false,
 
1930
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1931
  "needs": {},
1932
  "download": {
@@ -1944,8 +2044,9 @@
1944
  "license_class": "P",
1945
  "loader": "rebuild_shards",
1946
  "case": "exact",
1947
- "shards_option": false,
1948
  "ships_images": false,
 
1949
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1950
  "needs": {},
1951
  "download": {
@@ -1965,6 +2066,7 @@
1965
  "case": "exact",
1966
  "shards_option": false,
1967
  "ships_images": false,
 
1968
  "pip": "pyarrow huggingface_hub crc32c",
1969
  "needs": {},
1970
  "download": {
@@ -1982,8 +2084,9 @@
1982
  "license_class": "P",
1983
  "loader": "rebuild_shards",
1984
  "case": "exact",
1985
- "shards_option": false,
1986
  "ships_images": false,
 
1987
  "pip": "pyarrow huggingface_hub crc32c",
1988
  "needs": {},
1989
  "download": {
@@ -1993,7 +2096,6 @@
1993
  }
1994
  ],
1995
  "not_here": {
1996
- "Dress-ED": "its own repository, behind the Dress Code licence page",
1997
  "web pool (13 datasets, 9B only)": "its own repository"
1998
  }
1999
  }
 
1
  {
2
+ "repository": "UCSC-VLAA/OpenEmbed-Data",
3
  "datasets": [
4
  {
5
  "dataset_id": "ext/country211_valid",
 
11
  "license_class": "TP",
12
  "loader": "rebuild_shards",
13
  "case": "exact",
14
+ "shards_option": true,
15
  "ships_images": false,
16
+ "ships_shards": false,
17
  "pip": "pyarrow huggingface_hub crc32c",
18
  "needs": {},
19
  "download": {
 
31
  "license_class": "P",
32
  "loader": "rebuild_shards",
33
  "case": "exact",
34
+ "shards_option": true,
35
  "ships_images": false,
36
+ "ships_shards": false,
37
  "pip": "pyarrow huggingface_hub crc32c",
38
  "needs": {},
39
  "download": {
 
51
  "license_class": "P",
52
  "loader": "rebuild_shards",
53
  "case": "exact",
54
+ "shards_option": true,
55
  "ships_images": false,
56
+ "ships_shards": false,
57
  "pip": "pyarrow huggingface_hub crc32c",
58
  "needs": {},
59
  "download": {
 
92
  "license_class": "TP",
93
  "loader": "rebuild_shards",
94
  "case": "exact",
95
+ "shards_option": true,
96
  "ships_images": false,
97
+ "ships_shards": false,
98
  "pip": "pyarrow huggingface_hub crc32c",
99
  "needs": {},
100
  "download": {
 
114
  "case": "exact",
115
  "shards_option": false,
116
  "ships_images": false,
117
+ "ships_shards": false,
118
  "pip": "pyarrow huggingface_hub crc32c",
119
  "needs": {},
120
  "download": {
 
134
  "case": "exact",
135
  "shards_option": false,
136
  "ships_images": false,
137
+ "ships_shards": false,
138
  "pip": "pyarrow huggingface_hub crc32c",
139
  "needs": {},
140
  "download": {
 
154
  "case": "exact",
155
  "shards_option": false,
156
  "ships_images": false,
157
+ "ships_shards": false,
158
  "pip": "pyarrow huggingface_hub crc32c",
159
  "needs": {},
160
  "download": {
 
174
  "case": "exact",
175
  "shards_option": false,
176
  "ships_images": false,
177
+ "ships_shards": false,
178
  "pip": "pyarrow huggingface_hub crc32c",
179
  "needs": {},
180
  "download": {
 
194
  "case": "exact",
195
  "shards_option": false,
196
  "ships_images": false,
197
+ "ships_shards": false,
198
  "pip": "pyarrow huggingface_hub crc32c",
199
  "needs": {},
200
  "download": {
 
212
  "license_class": "P",
213
  "loader": "rebuild_shards",
214
  "case": "exact",
215
+ "shards_option": true,
216
  "ships_images": false,
217
+ "ships_shards": false,
218
  "pip": "pyarrow huggingface_hub crc32c",
219
  "needs": {},
220
  "download": {
 
232
  "license_class": "NC",
233
  "loader": "rebuild_shards",
234
  "case": "exact",
235
+ "shards_option": true,
236
  "ships_images": false,
237
+ "ships_shards": false,
238
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
239
  "needs": {
240
  "archive": {
 
260
  "license_class": "P",
261
  "loader": "rebuild_shards",
262
  "case": "exact",
263
+ "shards_option": true,
264
  "ships_images": true,
265
+ "ships_shards": false,
266
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\" av==13.1.0",
267
  "needs": {},
268
  "download": {
 
280
  "license_class": "NS",
281
  "loader": "rebuild_shards",
282
  "case": "exact",
283
+ "shards_option": true,
284
  "ships_images": false,
285
+ "ships_shards": false,
286
  "pip": "pyarrow huggingface_hub crc32c",
287
  "needs": {},
288
  "download": {
 
300
  "license_class": "NS",
301
  "loader": "rebuild_shards",
302
  "case": "exact",
303
+ "shards_option": true,
304
  "ships_images": false,
305
+ "ships_shards": false,
306
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
307
  "needs": {},
308
  "download": {
 
320
  "license_class": "NS",
321
  "loader": "rebuild_shards",
322
  "case": "exact",
323
+ "shards_option": true,
324
  "ships_images": false,
325
+ "ships_shards": false,
326
  "pip": "pyarrow huggingface_hub crc32c",
327
  "needs": {},
328
  "download": {
 
340
  "license_class": "NS",
341
  "loader": "rebuild_shards",
342
  "case": "exact",
343
+ "shards_option": true,
344
  "ships_images": false,
345
+ "ships_shards": false,
346
  "pip": "pyarrow huggingface_hub crc32c",
347
  "needs": {},
348
  "download": {
 
360
  "license_class": "NS",
361
  "loader": "rebuild_shards",
362
  "case": "exact",
363
+ "shards_option": true,
364
  "ships_images": false,
365
+ "ships_shards": false,
366
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
367
  "needs": {},
368
  "download": {
 
380
  "license_class": "NS",
381
  "loader": "rebuild_shards",
382
  "case": "exact",
383
+ "shards_option": true,
384
  "ships_images": false,
385
+ "ships_shards": false,
386
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
387
  "needs": {},
388
  "download": {
 
402
  "case": "identifiers only",
403
  "shards_option": false,
404
  "ships_images": false,
405
+ "ships_shards": false,
406
  "pip": null,
407
  "needs": {
408
  "builder": "identifiers only: obtain the dataset from its publisher and run our builder (released with the training code); the record ids here let you check the result (see the README)"
 
424
  "case": "identifiers only",
425
  "shards_option": false,
426
  "ships_images": false,
427
+ "ships_shards": false,
428
  "pip": null,
429
  "needs": {
430
  "builder": "identifiers only: obtain the dataset from its publisher and run our builder (released with the training code); the record ids here let you check the result (see the README)"
 
444
  "license_class": "P",
445
  "loader": "rebuild_shards",
446
  "case": "exact",
447
+ "shards_option": true,
448
  "ships_images": false,
449
+ "ships_shards": false,
450
  "pip": "pyarrow huggingface_hub crc32c",
451
  "needs": {},
452
  "download": {
 
464
  "license_class": "NS",
465
  "loader": "rebuild_shards",
466
  "case": "exact",
467
+ "shards_option": true,
468
  "ships_images": false,
469
+ "ships_shards": false,
470
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
471
  "needs": {},
472
  "download": {
 
484
  "license_class": "P",
485
  "loader": "rebuild_shards",
486
  "case": "exact",
487
+ "shards_option": true,
488
  "ships_images": false,
489
+ "ships_shards": false,
490
  "pip": "pyarrow huggingface_hub crc32c",
491
  "needs": {},
492
  "download": {
 
504
  "license_class": "P",
505
  "loader": "rebuild_shards",
506
  "case": "exact",
507
+ "shards_option": true,
508
  "ships_images": false,
509
+ "ships_shards": false,
510
  "pip": "pyarrow huggingface_hub crc32c",
511
  "needs": {},
512
  "download": {
 
524
  "license_class": "NC",
525
  "loader": "rebuild_shards",
526
  "case": "exact",
527
+ "shards_option": true,
528
  "ships_images": false,
529
+ "ships_shards": false,
530
  "pip": "pyarrow huggingface_hub crc32c",
531
  "needs": {},
532
  "download": {
 
544
  "license_class": "P",
545
  "loader": "rebuild_shards",
546
  "case": "exact",
547
+ "shards_option": true,
548
  "ships_images": false,
549
+ "ships_shards": false,
550
  "pip": "pyarrow huggingface_hub crc32c",
551
  "needs": {},
552
  "download": {
 
564
  "license_class": "TP",
565
  "loader": "rebuild_shards",
566
  "case": "exact",
567
+ "shards_option": true,
568
  "ships_images": false,
569
+ "ships_shards": false,
570
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
571
  "needs": {},
572
  "download": {
 
584
  "license_class": "P",
585
  "loader": "rebuild_shards",
586
  "case": "exact",
587
+ "shards_option": true,
588
  "ships_images": true,
589
+ "ships_shards": false,
590
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
591
  "needs": {},
592
  "download": {
 
604
  "license_class": "P",
605
  "loader": "rebuild_shards",
606
  "case": "exact",
607
+ "shards_option": true,
608
  "ships_images": false,
609
+ "ships_shards": false,
610
  "pip": "pyarrow huggingface_hub crc32c",
611
  "needs": {},
612
  "download": {
 
624
  "license_class": "P",
625
  "loader": "rebuild_shards",
626
  "case": "exact",
627
+ "shards_option": true,
628
  "ships_images": false,
629
+ "ships_shards": false,
630
  "pip": "pyarrow huggingface_hub crc32c",
631
  "needs": {},
632
  "download": {
 
644
  "license_class": "P",
645
  "loader": "rebuild_shards",
646
  "case": "exact",
647
+ "shards_option": true,
648
  "ships_images": false,
649
+ "ships_shards": false,
650
  "pip": "pyarrow huggingface_hub crc32c",
651
  "needs": {},
652
  "download": {
 
664
  "license_class": "P",
665
  "loader": "rebuild_shards",
666
  "case": "exact",
667
+ "shards_option": true,
668
  "ships_images": false,
669
+ "ships_shards": false,
670
  "pip": "pyarrow huggingface_hub crc32c",
671
  "needs": {},
672
  "download": {
 
684
  "license_class": "P",
685
  "loader": "rebuild_shards",
686
  "case": "exact",
687
+ "shards_option": true,
688
  "ships_images": false,
689
+ "ships_shards": false,
690
  "pip": "pyarrow huggingface_hub crc32c",
691
  "needs": {},
692
  "download": {
 
704
  "license_class": "P",
705
  "loader": "rebuild_shards",
706
  "case": "exact",
707
+ "shards_option": true,
708
  "ships_images": false,
709
+ "ships_shards": false,
710
  "pip": "pyarrow huggingface_hub crc32c",
711
  "needs": {},
712
  "download": {
 
724
  "license_class": "NS",
725
  "loader": "rebuild_shards",
726
  "case": "exact",
727
+ "shards_option": true,
728
  "ships_images": false,
729
+ "ships_shards": false,
730
  "pip": "pyarrow huggingface_hub crc32c",
731
  "needs": {},
732
  "download": {
 
744
  "license_class": "NS",
745
  "loader": "rebuild_shards",
746
  "case": "exact",
747
+ "shards_option": true,
748
  "ships_images": false,
749
+ "ships_shards": false,
750
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
751
  "needs": {},
752
  "download": {
 
764
  "license_class": "NS",
765
  "loader": "rebuild_shards",
766
  "case": "exact",
767
+ "shards_option": true,
768
  "ships_images": false,
769
+ "ships_shards": false,
770
  "pip": "pyarrow huggingface_hub crc32c",
771
  "needs": {},
772
  "download": {
 
784
  "license_class": "NS",
785
  "loader": "rebuild_shards",
786
  "case": "exact",
787
+ "shards_option": true,
788
  "ships_images": false,
789
+ "ships_shards": false,
790
  "pip": "pyarrow huggingface_hub crc32c",
791
  "needs": {},
792
  "download": {
 
804
  "license_class": "NS",
805
  "loader": "rebuild_shards",
806
  "case": "exact",
807
+ "shards_option": true,
808
  "ships_images": false,
809
+ "ships_shards": false,
810
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
811
  "needs": {},
812
  "download": {
 
824
  "license_class": "NS",
825
  "loader": "rebuild_shards",
826
  "case": "exact",
827
+ "shards_option": true,
828
  "ships_images": false,
829
+ "ships_shards": false,
830
  "pip": "pyarrow huggingface_hub crc32c",
831
  "needs": {},
832
  "download": {
 
846
  "case": "approximate",
847
  "shards_option": true,
848
  "ships_images": true,
849
+ "ships_shards": false,
850
  "pip": "pyarrow huggingface_hub Pillow crc32c",
851
  "needs": {},
852
  "download": {
 
866
  "case": "approximate",
867
  "shards_option": true,
868
  "ships_images": true,
869
+ "ships_shards": false,
870
  "pip": "pyarrow huggingface_hub Pillow crc32c",
871
  "needs": {},
872
  "download": {
 
886
  "case": "approximate",
887
  "shards_option": true,
888
  "ships_images": true,
889
+ "ships_shards": false,
890
  "pip": "pyarrow huggingface_hub Pillow crc32c",
891
  "needs": {},
892
  "download": {
 
906
  "case": "approximate",
907
  "shards_option": true,
908
  "ships_images": true,
909
+ "ships_shards": false,
910
  "pip": "pyarrow huggingface_hub Pillow crc32c",
911
  "needs": {},
912
  "download": {
 
926
  "case": "approximate",
927
  "shards_option": true,
928
  "ships_images": true,
929
+ "ships_shards": false,
930
  "pip": "pyarrow huggingface_hub Pillow crc32c",
931
  "needs": {},
932
  "download": {
 
946
  "case": "approximate",
947
  "shards_option": true,
948
  "ships_images": true,
949
+ "ships_shards": false,
950
  "pip": "pyarrow huggingface_hub Pillow crc32c",
951
  "needs": {},
952
  "download": {
 
966
  "case": "approximate",
967
  "shards_option": true,
968
  "ships_images": true,
969
+ "ships_shards": false,
970
  "pip": "pyarrow huggingface_hub Pillow crc32c",
971
  "needs": {},
972
  "download": {
 
986
  "case": "approximate",
987
  "shards_option": true,
988
  "ships_images": true,
989
+ "ships_shards": false,
990
  "pip": "pyarrow huggingface_hub Pillow crc32c",
991
  "needs": {},
992
  "download": {
 
1006
  "case": "approximate",
1007
  "shards_option": true,
1008
  "ships_images": true,
1009
+ "ships_shards": false,
1010
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1011
  "needs": {},
1012
  "download": {
 
1026
  "case": "approximate",
1027
  "shards_option": true,
1028
  "ships_images": true,
1029
+ "ships_shards": false,
1030
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1031
  "needs": {},
1032
  "download": {
 
1046
  "case": "approximate",
1047
  "shards_option": true,
1048
  "ships_images": true,
1049
+ "ships_shards": false,
1050
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1051
  "needs": {},
1052
  "download": {
 
1066
  "case": "exact",
1067
  "shards_option": false,
1068
  "ships_images": false,
1069
+ "ships_shards": false,
1070
  "pip": "pyarrow huggingface_hub crc32c",
1071
  "needs": {},
1072
  "download": {
 
1084
  "license_class": "TP",
1085
  "loader": "rebuild_shards",
1086
  "case": "exact",
1087
+ "shards_option": true,
1088
  "ships_images": false,
1089
+ "ships_shards": false,
1090
  "pip": "pyarrow huggingface_hub crc32c",
1091
  "needs": {},
1092
  "download": {
 
1106
  "case": "exact",
1107
  "shards_option": false,
1108
  "ships_images": false,
1109
+ "ships_shards": false,
1110
  "pip": "pyarrow huggingface_hub crc32c",
1111
  "needs": {},
1112
  "download": {
 
1126
  "case": "approximate",
1127
  "shards_option": true,
1128
  "ships_images": true,
1129
+ "ships_shards": false,
1130
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1131
  "needs": {},
1132
  "download": {
 
1146
  "case": "approximate",
1147
  "shards_option": true,
1148
  "ships_images": true,
1149
+ "ships_shards": false,
1150
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1151
  "needs": {},
1152
  "download": {
 
1166
  "case": "approximate",
1167
  "shards_option": true,
1168
  "ships_images": true,
1169
+ "ships_shards": false,
1170
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1171
  "needs": {},
1172
  "download": {
 
1186
  "case": "approximate",
1187
  "shards_option": true,
1188
  "ships_images": true,
1189
+ "ships_shards": false,
1190
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1191
  "needs": {},
1192
  "download": {
 
1206
  "case": "approximate",
1207
  "shards_option": true,
1208
  "ships_images": true,
1209
+ "ships_shards": false,
1210
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1211
  "needs": {},
1212
  "download": {
 
1226
  "case": "approximate",
1227
  "shards_option": true,
1228
  "ships_images": false,
1229
+ "ships_shards": false,
1230
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1231
  "needs": {},
1232
  "download": {
 
1246
  "case": "approximate",
1247
  "shards_option": true,
1248
  "ships_images": true,
1249
+ "ships_shards": false,
1250
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1251
  "needs": {},
1252
  "download": {
 
1266
  "case": "approximate",
1267
  "shards_option": true,
1268
  "ships_images": false,
1269
+ "ships_shards": false,
1270
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1271
  "needs": {},
1272
  "download": {
 
1286
  "case": "approximate",
1287
  "shards_option": true,
1288
  "ships_images": true,
1289
+ "ships_shards": false,
1290
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1291
  "needs": {},
1292
  "download": {
 
1306
  "case": "approximate",
1307
  "shards_option": true,
1308
  "ships_images": true,
1309
+ "ships_shards": false,
1310
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1311
  "needs": {},
1312
  "download": {
 
1326
  "case": "approximate",
1327
  "shards_option": true,
1328
  "ships_images": true,
1329
+ "ships_shards": false,
1330
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1331
  "needs": {},
1332
  "download": {
 
1346
  "case": "approximate",
1347
  "shards_option": true,
1348
  "ships_images": true,
1349
+ "ships_shards": false,
1350
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1351
  "needs": {},
1352
  "download": {
 
1366
  "case": "approximate",
1367
  "shards_option": true,
1368
  "ships_images": true,
1369
+ "ships_shards": false,
1370
  "pip": "pyarrow huggingface_hub Pillow crc32c",
1371
  "needs": {},
1372
  "download": {
 
1386
  "case": "exact",
1387
  "shards_option": false,
1388
  "ships_images": false,
1389
+ "ships_shards": false,
1390
  "pip": "pyarrow huggingface_hub crc32c",
1391
  "needs": {},
1392
  "download": {
 
1404
  "license_class": "NS",
1405
  "loader": "rebuild_shards",
1406
  "case": "exact",
1407
+ "shards_option": true,
1408
  "ships_images": true,
1409
+ "ships_shards": false,
1410
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
1411
  "needs": {},
1412
  "download": {
 
1426
  "case": "exact",
1427
  "shards_option": false,
1428
  "ships_images": false,
1429
+ "ships_shards": false,
1430
  "pip": "pyarrow huggingface_hub crc32c",
1431
  "needs": {},
1432
  "download": {
 
1446
  "case": "exact",
1447
  "shards_option": false,
1448
  "ships_images": false,
1449
+ "ships_shards": false,
1450
  "pip": "pyarrow huggingface_hub crc32c",
1451
  "needs": {},
1452
  "download": {
 
1466
  "case": "exact",
1467
  "shards_option": false,
1468
  "ships_images": false,
1469
+ "ships_shards": false,
1470
  "pip": "pyarrow huggingface_hub crc32c",
1471
  "needs": {},
1472
  "download": {
 
1486
  "case": "exact",
1487
  "shards_option": false,
1488
  "ships_images": false,
1489
+ "ships_shards": false,
1490
  "pip": "pyarrow huggingface_hub crc32c",
1491
  "needs": {},
1492
  "download": {
 
1506
  "case": "exact",
1507
  "shards_option": false,
1508
  "ships_images": false,
1509
+ "ships_shards": false,
1510
  "pip": "pyarrow huggingface_hub crc32c",
1511
  "needs": {},
1512
  "download": {
 
1524
  "license_class": "NS",
1525
  "loader": "rebuild_shards",
1526
  "case": "exact",
1527
+ "shards_option": true,
1528
  "ships_images": false,
1529
+ "ships_shards": false,
1530
  "pip": "pyarrow huggingface_hub crc32c",
1531
  "needs": {},
1532
  "download": {
 
1544
  "license_class": "NS",
1545
  "loader": "rebuild_shards",
1546
  "case": "exact",
1547
+ "shards_option": true,
1548
  "ships_images": false,
1549
+ "ships_shards": false,
1550
  "pip": "pyarrow huggingface_hub crc32c",
1551
  "needs": {},
1552
  "download": {
 
1564
  "license_class": "P",
1565
  "loader": "rebuild_shards",
1566
  "case": "exact",
1567
+ "shards_option": true,
1568
  "ships_images": false,
1569
+ "ships_shards": false,
1570
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1571
  "needs": {},
1572
  "download": {
 
1584
  "license_class": "P",
1585
  "loader": "rebuild_shards",
1586
  "case": "exact",
1587
+ "shards_option": true,
1588
  "ships_images": false,
1589
+ "ships_shards": false,
1590
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1591
  "needs": {},
1592
  "download": {
 
1604
  "license_class": "NC",
1605
  "loader": "rebuild_shards",
1606
  "case": "exact",
1607
+ "shards_option": true,
1608
  "ships_images": false,
1609
+ "ships_shards": false,
1610
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1611
  "needs": {},
1612
  "download": {
 
1624
  "license_class": "P",
1625
  "loader": "rebuild_shards",
1626
  "case": "exact",
1627
+ "shards_option": true,
1628
  "ships_images": false,
1629
+ "ships_shards": false,
1630
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1631
  "needs": {},
1632
  "download": {
 
1644
  "license_class": "NC",
1645
  "loader": "rebuild_shards",
1646
  "case": "exact",
1647
+ "shards_option": true,
1648
  "ships_images": false,
1649
+ "ships_shards": false,
1650
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1651
  "needs": {},
1652
  "download": {
 
1664
  "license_class": "NC",
1665
  "loader": "rebuild_shards",
1666
  "case": "exact",
1667
+ "shards_option": true,
1668
  "ships_images": false,
1669
+ "ships_shards": false,
1670
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1671
  "needs": {},
1672
  "download": {
 
1684
  "license_class": "P",
1685
  "loader": "rebuild_shards",
1686
  "case": "exact",
1687
+ "shards_option": true,
1688
  "ships_images": false,
1689
+ "ships_shards": false,
1690
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1691
  "needs": {},
1692
  "download": {
 
1704
  "license_class": "P",
1705
  "loader": "rebuild_shards",
1706
  "case": "exact",
1707
+ "shards_option": true,
1708
  "ships_images": false,
1709
+ "ships_shards": false,
1710
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1711
  "needs": {},
1712
  "download": {
 
1724
  "license_class": "NC",
1725
  "loader": "rebuild_shards",
1726
  "case": "exact",
1727
+ "shards_option": true,
1728
  "ships_images": false,
1729
+ "ships_shards": false,
1730
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1731
  "needs": {},
1732
  "download": {
 
1744
  "license_class": "P",
1745
  "loader": "rebuild_shards",
1746
  "case": "exact",
1747
+ "shards_option": true,
1748
  "ships_images": false,
1749
+ "ships_shards": false,
1750
  "pip": "pyarrow huggingface_hub crc32c Pillow",
1751
  "needs": {},
1752
  "download": {
 
1764
  "license_class": "NC",
1765
  "loader": "rebuild_shards",
1766
  "case": "exact",
1767
+ "shards_option": true,
1768
  "ships_images": false,
1769
+ "ships_shards": false,
1770
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1771
  "needs": {},
1772
  "download": {
 
1784
  "license_class": "NS",
1785
  "loader": "rebuild_shards",
1786
  "case": "exact",
1787
+ "shards_option": true,
1788
  "ships_images": false,
1789
+ "ships_shards": false,
1790
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1791
  "needs": {},
1792
  "download": {
 
1804
  "license_class": "TP",
1805
  "loader": "rebuild_shards",
1806
  "case": "exact",
1807
+ "shards_option": true,
1808
  "ships_images": false,
1809
+ "ships_shards": false,
1810
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1811
  "needs": {},
1812
  "download": {
 
1824
  "license_class": "P",
1825
  "loader": "rebuild_shards",
1826
  "case": "exact",
1827
+ "shards_option": true,
1828
  "ships_images": false,
1829
+ "ships_shards": false,
1830
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1831
  "needs": {},
1832
  "download": {
 
1844
  "license_class": "P",
1845
  "loader": "rebuild_shards",
1846
  "case": "exact",
1847
+ "shards_option": true,
1848
  "ships_images": false,
1849
+ "ships_shards": false,
1850
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1851
  "needs": {},
1852
  "download": {
 
1864
  "license_class": "NC",
1865
  "loader": "rebuild_shards",
1866
  "case": "exact",
1867
+ "shards_option": true,
1868
  "ships_images": false,
1869
+ "ships_shards": false,
1870
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1871
  "needs": {},
1872
  "download": {
 
1884
  "license_class": "P",
1885
  "loader": "rebuild_shards",
1886
  "case": "exact",
1887
+ "shards_option": true,
1888
  "ships_images": false,
1889
+ "ships_shards": false,
1890
  "pip": "pyarrow huggingface_hub crc32c \"Pillow>=10.0\"",
1891
  "needs": {},
1892
  "download": {
 
1906
  "case": "exact",
1907
  "shards_option": false,
1908
  "ships_images": false,
1909
+ "ships_shards": false,
1910
  "pip": "pyarrow huggingface_hub crc32c",
1911
  "needs": {},
1912
  "download": {
 
1926
  "case": "exact",
1927
  "shards_option": false,
1928
  "ships_images": false,
1929
+ "ships_shards": false,
1930
  "pip": "pyarrow huggingface_hub crc32c",
1931
  "needs": {},
1932
  "download": {
 
1946
  "case": "exact",
1947
  "shards_option": false,
1948
  "ships_images": false,
1949
+ "ships_shards": false,
1950
  "pip": "pyarrow huggingface_hub crc32c",
1951
  "needs": {},
1952
  "download": {
 
1964
  "license_class": "NS",
1965
  "loader": "rebuild_shards",
1966
  "case": "exact",
1967
+ "shards_option": true,
1968
  "ships_images": false,
1969
+ "ships_shards": false,
1970
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
1971
  "needs": {},
1972
  "download": {
 
1986
  "case": "exact",
1987
  "shards_option": false,
1988
  "ships_images": false,
1989
+ "ships_shards": false,
1990
  "pip": "pyarrow huggingface_hub crc32c",
1991
  "needs": {},
1992
  "download": {
 
2006
  "case": "exact",
2007
  "shards_option": false,
2008
  "ships_images": false,
2009
+ "ships_shards": false,
2010
  "pip": "pyarrow huggingface_hub crc32c",
2011
  "needs": {},
2012
  "download": {
 
2024
  "license_class": "NC",
2025
  "loader": "rebuild_shards",
2026
  "case": "exact",
2027
+ "shards_option": true,
2028
  "ships_images": false,
2029
+ "ships_shards": false,
2030
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
2031
  "needs": {},
2032
  "download": {
 
2044
  "license_class": "P",
2045
  "loader": "rebuild_shards",
2046
  "case": "exact",
2047
+ "shards_option": true,
2048
  "ships_images": false,
2049
+ "ships_shards": false,
2050
  "pip": "pyarrow huggingface_hub crc32c Pillow==12.3.0",
2051
  "needs": {},
2052
  "download": {
 
2066
  "case": "exact",
2067
  "shards_option": false,
2068
  "ships_images": false,
2069
+ "ships_shards": false,
2070
  "pip": "pyarrow huggingface_hub crc32c",
2071
  "needs": {},
2072
  "download": {
 
2084
  "license_class": "P",
2085
  "loader": "rebuild_shards",
2086
  "case": "exact",
2087
+ "shards_option": true,
2088
  "ships_images": false,
2089
+ "ships_shards": false,
2090
  "pip": "pyarrow huggingface_hub crc32c",
2091
  "needs": {},
2092
  "download": {
 
2096
  }
2097
  ],
2098
  "not_here": {
 
2099
  "web pool (13 datasets, 9B only)": "its own repository"
2100
  }
2101
  }
tools/openembed_data/install_training.py CHANGED
@@ -7,8 +7,7 @@ the contamination blocklist, the read-time dedup skip list, the mined-negative s
7
  _COMPLETE.json (training/tree/), and where each shard goes (training/shards.jsonl). This script
8
 
9
  1. checks every rebuilt shard of the datasets asked for: bytes and CRC-32C for the datasets rebuilt exactly, the
10
- record count for those whose images are re-encoded from their source (and for the identifier-only DocBank sets
11
- you build yourself);
12
  2. lays out a tree: the metadata at its place, each shard at the place its logical URI names, and the released
13
  teacher vectors (checked by sha256) inside the teacher store;
14
  3. writes the tree to --to: a local folder directly, or a gs:// folder through one `gcloud storage rsync` of a local
@@ -22,8 +21,8 @@ teacher vectors are listed apart: stage 2 needs their vectors.
22
  python tools/openembed_data/install_training.py --shards shards/ --to gs://my-bucket/openembed-data \\
23
  [--sets all|ids,folders,categories] [--teacher teacher/] [--staging DIR] [--dry-run]
24
 
25
- --shards is the --out folder of build.py (each dataset under <folder>/). Dress-ED is a separate download: put its
26
- shard files under <shards>/editing/dressed/. Run from the folder that holds tools/ and training/.
27
  """
28
  from __future__ import annotations
29
 
 
7
  _COMPLETE.json (training/tree/), and where each shard goes (training/shards.jsonl). This script
8
 
9
  1. checks every rebuilt shard of the datasets asked for: bytes and CRC-32C for the datasets rebuilt exactly, the
10
+ record count for those whose images are re-encoded from their source;
 
11
  2. lays out a tree: the metadata at its place, each shard at the place its logical URI names, and the released
12
  teacher vectors (checked by sha256) inside the teacher store;
13
  3. writes the tree to --to: a local folder directly, or a gs:// folder through one `gcloud storage rsync` of a local
 
21
  python tools/openembed_data/install_training.py --shards shards/ --to gs://my-bucket/openembed-data \\
22
  [--sets all|ids,folders,categories] [--teacher teacher/] [--staging DIR] [--dry-run]
23
 
24
+ --shards is the --out folder of build.py (each dataset under <folder>/). Run from the folder that holds tools/ and
25
+ training/.
26
  """
27
  from __future__ import annotations
28