valentinospariza commited on
Commit
e746a9e
·
verified ·
1 Parent(s): 3273635

Add files using upload-large-folder tool

Browse files
Files changed (32) hide show
  1. eval_domain_surface_normals_training_v2_fixed/FINALIZATION_COMPLETE.json +16 -0
  2. eval_domain_surface_normals_training_v2_fixed/MULTIPART_MANIFEST.json +52 -0
  3. eval_domain_surface_normals_training_v2_fixed/README.md +9 -0
  4. eval_domain_surface_normals_training_v2_fixed/SHA256SUMS +4 -0
  5. eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.ovb-index.sqlite +3 -0
  6. eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.parts/diode_normals_train_v1.tar.part-0000 +3 -0
  7. eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.parts/diode_normals_train_v1.tar.part-0001 +3 -0
  8. eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.parts/diode_normals_train_v1.tar.part-0002 +3 -0
  9. eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.sha256 +3 -0
  10. eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.validation.json +3 -0
  11. eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar +3 -0
  12. eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.ovb-index.sqlite +3 -0
  13. eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.semantic-validation.json +3 -0
  14. eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.sha256 +3 -0
  15. eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.source-oracle.json +3 -0
  16. eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.validation.json +3 -0
  17. eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar +3 -0
  18. eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar.ovb-index.sqlite +3 -0
  19. eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar.sha256 +3 -0
  20. eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar.validation.json +3 -0
  21. eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.ovb-index.sqlite +3 -0
  22. eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.parts/vkitti2_nonclone_normals_train_v2_fixed.tar.part-0000 +3 -0
  23. eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.parts/vkitti2_nonclone_normals_train_v2_fixed.tar.part-0001 +3 -0
  24. eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.parts/vkitti2_nonclone_normals_train_v2_fixed.tar.part-0002 +3 -0
  25. eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.semantic-validation.json +3 -0
  26. eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.sha256 +3 -0
  27. eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.validation.json +3 -0
  28. eval_domain_surface_normals_training_v2_fixed/configs/download_release.py +133 -0
  29. eval_domain_surface_normals_training_v2_fixed/configs/surface_normals_equal_source_fixed.json +35 -0
  30. eval_domain_surface_normals_training_v2_fixed/configs/training_contract.json +15 -0
  31. eval_domain_surface_normals_training_v2_fixed/manifests/archive_inventory.json +49 -0
  32. eval_domain_surface_normals_training_v2_fixed/manifests/excluded_normal_sources.json +4 -0
eval_domain_surface_normals_training_v2_fixed/FINALIZATION_COMPLETE.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archive_count": 4,
3
+ "excluded_sources": [
4
+ "kitti_eigen_normals",
5
+ "nuscenes_normals"
6
+ ],
7
+ "release": "eval_domain_surface_normals_training_v2_fixed",
8
+ "row_count": 83225,
9
+ "source_groups": [
10
+ "diode",
11
+ "nyuv2",
12
+ "scannetv2",
13
+ "vkitti2_nonclone"
14
+ ],
15
+ "status": "PASS"
16
+ }
eval_domain_surface_normals_training_v2_fixed/MULTIPART_MANIFEST.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archives": [
3
+ {
4
+ "assembly": "cat archives/diode_normals_train_v1.tar.parts/diode_normals_train_v1.tar.part-* > archives/diode_normals_train_v1.tar",
5
+ "logical_bytes": 47938160640,
6
+ "logical_path": "archives/diode_normals_train_v1.tar",
7
+ "logical_sha256": "eff7baa490d448b4a4a83f29e55d763398b34d78e56e0c80dbe0fbb5cd7d0d15",
8
+ "parts": [
9
+ {
10
+ "bytes": 17179869184,
11
+ "path": "diode_normals_train_v1.tar.part-0000",
12
+ "sha256": "7a9d77bb1bfa77640876e6bd10129d3ed7e795915ba360c1b777b5e4de9ffaa7"
13
+ },
14
+ {
15
+ "bytes": 17179869184,
16
+ "path": "diode_normals_train_v1.tar.part-0001",
17
+ "sha256": "1800b1f4e8dcd747364de4106cdf0d19dfe5d9a12fa0fd911af042025c388da7"
18
+ },
19
+ {
20
+ "bytes": 13578422272,
21
+ "path": "diode_normals_train_v1.tar.part-0002",
22
+ "sha256": "92718cde417da8cb02474036785163e547b45494170839fcd3f788991c60801f"
23
+ }
24
+ ]
25
+ },
26
+ {
27
+ "assembly": "cat archives/vkitti2_nonclone_normals_train_v2_fixed.tar.parts/vkitti2_nonclone_normals_train_v2_fixed.tar.part-* > archives/vkitti2_nonclone_normals_train_v2_fixed.tar",
28
+ "logical_bytes": 40490516480,
29
+ "logical_path": "archives/vkitti2_nonclone_normals_train_v2_fixed.tar",
30
+ "logical_sha256": "d7826a7423759e5401b45f17099cf976efffb5ae2bc8d351ff7a7b23d3073429",
31
+ "parts": [
32
+ {
33
+ "bytes": 17179869184,
34
+ "path": "vkitti2_nonclone_normals_train_v2_fixed.tar.part-0000",
35
+ "sha256": "d5d615f01473b5ac971aa5e001cbdcf75aa4ace6a8ab4f6819e13c4fda0dbdd4"
36
+ },
37
+ {
38
+ "bytes": 17179869184,
39
+ "path": "vkitti2_nonclone_normals_train_v2_fixed.tar.part-0001",
40
+ "sha256": "6b442b87e395f3fed595fbee2ffab35df694e8f8de91522b32512223ddcf4b34"
41
+ },
42
+ {
43
+ "bytes": 6130778112,
44
+ "path": "vkitti2_nonclone_normals_train_v2_fixed.tar.part-0002",
45
+ "sha256": "b9556052dc4768b335358f4ba2fd73c7bee17ab78ea0c663a6b2d292522f76c7"
46
+ }
47
+ ]
48
+ }
49
+ ],
50
+ "chunk_bytes": 17179869184,
51
+ "schema_version": 1
52
+ }
eval_domain_surface_normals_training_v2_fixed/README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Eval-domain surface-normal training splits v2 (fixed)
2
+
3
+ This release supersedes only the **surface-normal** portion of `eval_domain_geometry_training_v1`; the v1 depth archives are unchanged. It uses one physical convention throughout: camera-space +x image-right, +y image-up, +z toward the camera, stored as `vision_banana_x_left_red` (`R=(1-x)/2`, `G=(1+y)/2`, `B=(1+z)/2`).
4
+
5
+ Corrections: NYUv2 now uses the official GeoNet normal labels distributed with DSINE for both train-domain supervision and evaluation; Virtual KITTI 2 applies its source-to-canonical transform exactly once. DIODE and ScanNet v2 retain their audited v1 normal archives. KITTI and nuScenes normal archives are deliberately excluded because their sparse masks do not survive the released hard majority-valid latent-mask policy. Their depth archives remain valid in v1.
6
+
7
+ Use `configs/surface_normals_equal_source_fixed.json` with the indexed prepared-TAR backend and all flags in `configs/training_contract.json`. To download, run `python configs/download_release.py --prefix eval_domain_surface_normals_training_v2_fixed --output DATA_ROOT`. The script prints the directly usable `READY_DATA_ROOT`.
8
+
9
+ The DSINE bundle and each underlying dataset retain their original licenses and terms; this release does not replace them.
eval_domain_surface_normals_training_v2_fixed/SHA256SUMS ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ eff7baa490d448b4a4a83f29e55d763398b34d78e56e0c80dbe0fbb5cd7d0d15 archives/diode_normals_train_v1.tar
2
+ 52cf593ac220db4762e428f05eb81228a790d16ebfe871d2314b01cc31ee6fef archives/nyuv2_normals_train_v2_fixed.tar
3
+ bf195d4f4374641b9e24000415ea49bc629948aae724556a59709e10f61d78d0 archives/scannetv2_normals_train_v1.tar
4
+ d7826a7423759e5401b45f17099cf976efffb5ae2bc8d351ff7a7b23d3073429 archives/vkitti2_nonclone_normals_train_v2_fixed.tar
eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.ovb-index.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c8b7c1e58ee1daa64f0a4dedf2aef8a735245a09403500adff4db1822eb542d
3
+ size 67198976
eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.parts/diode_normals_train_v1.tar.part-0000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a9d77bb1bfa77640876e6bd10129d3ed7e795915ba360c1b777b5e4de9ffaa7
3
+ size 17179869184
eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.parts/diode_normals_train_v1.tar.part-0001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1800b1f4e8dcd747364de4106cdf0d19dfe5d9a12fa0fd911af042025c388da7
3
+ size 17179869184
eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.parts/diode_normals_train_v1.tar.part-0002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92718cde417da8cb02474036785163e547b45494170839fcd3f788991c60801f
3
+ size 13578422272
eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.sha256 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d5c02c7a6c46caea00a05ba27162300f95ac2a2e398b499f8003bc4bc991279
3
+ size 93
eval_domain_surface_normals_training_v2_fixed/archives/diode_normals_train_v1.tar.validation.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cc3db47dc238bba1440564028a83d433b665fcf690b1d30a5cbe675a182bc32
3
+ size 1893
eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52cf593ac220db4762e428f05eb81228a790d16ebfe871d2314b01cc31ee6fef
3
+ size 486256640
eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.ovb-index.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96b6ae015d0892e537eb1be202291334c0a4de93dbe738ffddb9b17c92db91f7
3
+ size 3432448
eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.semantic-validation.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a89566a8d6f61c1bc6f8cbe6f6c9ecc7b9343caf84bfffca971eeba0cc6b4f81
3
+ size 507
eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.sha256 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9ec164cda0eff18ebf59a1cbdd0a4982d213719758f1b250e192476c26ebc86
3
+ size 99
eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.source-oracle.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8607a3c6984f9c9c4aa0a6e63ac8a9f153876de2cd56083300fd5df52993db09
3
+ size 624
eval_domain_surface_normals_training_v2_fixed/archives/nyuv2_normals_train_v2_fixed.tar.validation.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2960fbcf5468d107d39fea81fd721a1a50523c3659bcd70d22f877d212f1efc
3
+ size 1973
eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf195d4f4374641b9e24000415ea49bc629948aae724556a59709e10f61d78d0
3
+ size 17182883840
eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar.ovb-index.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb096fb2abd067144b7f851bb46ae6ea76b81ed4cd0ae152e218ac6dd53adec5
3
+ size 51834880
eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar.sha256 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a08dc1f8820cd1d46e3ef7671b4eb55a582d4db3a45fa7de9061ced1fe0c8d2e
3
+ size 97
eval_domain_surface_normals_training_v2_fixed/archives/scannetv2_normals_train_v1.tar.validation.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4b3b8ca0894a048c9225706cdc75c0ac79b882fa3a872d6aab1ed361397dc9e
3
+ size 1858
eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.ovb-index.sqlite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f034b6c99b38e4e487e05473f27e53835060a72eb723c4a8f86f68eb01f8584
3
+ size 185876480
eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.parts/vkitti2_nonclone_normals_train_v2_fixed.tar.part-0000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5d615f01473b5ac971aa5e001cbdcf75aa4ace6a8ab4f6819e13c4fda0dbdd4
3
+ size 17179869184
eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.parts/vkitti2_nonclone_normals_train_v2_fixed.tar.part-0001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b442b87e395f3fed595fbee2ffab35df694e8f8de91522b32512223ddcf4b34
3
+ size 17179869184
eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.parts/vkitti2_nonclone_normals_train_v2_fixed.tar.part-0002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9556052dc4768b335358f4ba2fd73c7bee17ab78ea0c663a6b2d292522f76c7
3
+ size 6130778112
eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.semantic-validation.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90162986c781e2c2fe3e8284dd4f859f4223e04303df1dde8e547d6bf530d85b
3
+ size 410
eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.sha256 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4265dece57650c575c202538579898a82b4304a848a708b96a1ddd661139e591
3
+ size 110
eval_domain_surface_normals_training_v2_fixed/archives/vkitti2_nonclone_normals_train_v2_fixed.tar.validation.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37d0cb49f9898de63a27f8006389183e1595ccb797d27e1c79df4f433cd9f991
3
+ size 1922
eval_domain_surface_normals_training_v2_fixed/configs/download_release.py ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Download, verify, reconstruct, and make the Hub release directly usable."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import hashlib
8
+ import json
9
+ import os
10
+ import shutil
11
+ import sqlite3
12
+ import urllib.parse
13
+ import urllib.request
14
+ from pathlib import Path
15
+
16
+
17
+ PREFIX = "eval_domain_geometry_training_v1"
18
+ CHUNK = 16 * 1024**2
19
+
20
+
21
+ def sha256(path: Path) -> str:
22
+ digest = hashlib.sha256()
23
+ with path.open("rb") as handle:
24
+ for block in iter(lambda: handle.read(CHUNK), b""):
25
+ digest.update(block)
26
+ return digest.hexdigest()
27
+
28
+
29
+ def inventory(repo: str, revision: str, prefix: str) -> list[dict]:
30
+ url = (
31
+ f"https://huggingface.co/api/datasets/{repo}/tree/"
32
+ f"{urllib.parse.quote(revision, safe='')}/{urllib.parse.quote(prefix, safe='')}?recursive=true&expand=false&limit=1000"
33
+ )
34
+ with urllib.request.urlopen(url, timeout=60) as response:
35
+ rows = json.load(response)
36
+ return [row for row in rows if row.get("type") == "file"]
37
+
38
+
39
+ def download(repo: str, revision: str, row: dict, root: Path) -> Path:
40
+ relative = row["path"]
41
+ destination = root / relative
42
+ partial = destination.with_suffix(destination.suffix + ".partial")
43
+ expected = int(row["size"])
44
+ destination.parent.mkdir(parents=True, exist_ok=True)
45
+ if destination.is_file() and destination.stat().st_size == expected:
46
+ return destination
47
+ current = partial.stat().st_size if partial.exists() else 0
48
+ request = urllib.request.Request(
49
+ f"https://huggingface.co/datasets/{repo}/resolve/{urllib.parse.quote(revision, safe='')}/"
50
+ f"{urllib.parse.quote(relative, safe='/')}?download=true",
51
+ headers={"Range": f"bytes={current}-"} if current else {},
52
+ )
53
+ with urllib.request.urlopen(request, timeout=120) as response:
54
+ mode = "ab" if current and getattr(response, "status", None) == 206 else "wb"
55
+ with partial.open(mode) as output:
56
+ while block := response.read(CHUNK):
57
+ output.write(block)
58
+ if partial.stat().st_size != expected:
59
+ raise IOError(f"size mismatch for {relative}")
60
+ partial.replace(destination)
61
+ return destination
62
+
63
+
64
+ def copy_tree_files(source: Path, destination: Path) -> None:
65
+ for path in source.rglob("*"):
66
+ if not path.is_file() or ".parts" in path.parts:
67
+ continue
68
+ target = destination / path.relative_to(source)
69
+ target.parent.mkdir(parents=True, exist_ok=True)
70
+ if not target.exists():
71
+ try:
72
+ os.link(path, target)
73
+ except OSError:
74
+ shutil.copy2(path, target)
75
+
76
+
77
+ def retarget_index(archive: Path, index: Path, digest: str) -> None:
78
+ with sqlite3.connect(index) as db:
79
+ row = db.execute("SELECT value FROM metadata WHERE key='archive_fingerprint'").fetchone()
80
+ if row is None:
81
+ raise ValueError(f"missing archive fingerprint: {index}")
82
+ fingerprint = json.loads(row[0])
83
+ fingerprint.update(size=archive.stat().st_size, mtime_ns=archive.stat().st_mtime_ns, sha256=digest)
84
+ db.execute(
85
+ "UPDATE metadata SET value=? WHERE key='archive_fingerprint'",
86
+ (json.dumps(fingerprint, sort_keys=True),),
87
+ )
88
+ db.commit()
89
+
90
+
91
+ def main() -> None:
92
+ parser = argparse.ArgumentParser()
93
+ parser.add_argument("--repo-id", default="arpitjadon/OVB_Data")
94
+ parser.add_argument("--revision", default="main")
95
+ parser.add_argument("--prefix", default=PREFIX)
96
+ parser.add_argument("--output", type=Path, required=True)
97
+ args = parser.parse_args()
98
+ output = args.output.resolve()
99
+ downloaded = output / "download"
100
+ ready = output / "ready" / args.prefix
101
+ for row in inventory(args.repo_id, args.revision, args.prefix):
102
+ download(args.repo_id, args.revision, row, downloaded)
103
+ release = downloaded / args.prefix
104
+ manifest = json.loads((release / "MULTIPART_MANIFEST.json").read_text(encoding="utf-8"))
105
+ ready.mkdir(parents=True, exist_ok=True)
106
+ copy_tree_files(release, ready)
107
+ for entry in manifest["archives"]:
108
+ logical = ready / entry["logical_path"]
109
+ logical.parent.mkdir(parents=True, exist_ok=True)
110
+ partial = logical.with_suffix(logical.suffix + ".partial")
111
+ with partial.open("wb") as output_stream:
112
+ part_root = release / f"{entry['logical_path']}.parts"
113
+ for part in entry["parts"]:
114
+ with (part_root / part["path"]).open("rb") as source:
115
+ shutil.copyfileobj(source, output_stream, length=CHUNK)
116
+ if sha256(partial) != entry["logical_sha256"]:
117
+ raise ValueError(f"multipart SHA-256 mismatch: {logical}")
118
+ partial.replace(logical)
119
+ sums = {}
120
+ for line in (ready / "SHA256SUMS").read_text(encoding="utf-8").splitlines():
121
+ digest, name = line.split(None, 1)
122
+ sums[name.strip()] = digest
123
+ for relative, digest in sums.items():
124
+ archive = ready / relative
125
+ if sha256(archive) != digest:
126
+ raise ValueError(f"archive SHA-256 mismatch: {archive}")
127
+ retarget_index(archive, archive.with_name(archive.name + ".ovb-index.sqlite"), digest)
128
+ print(f"READY_DATA_ROOT={ready}")
129
+ print("Use the JSON dataset specification under READY_DATA_ROOT/configs for training.")
130
+
131
+
132
+ if __name__ == "__main__":
133
+ main()
eval_domain_surface_normals_training_v2_fixed/configs/surface_normals_equal_source_fixed.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "datasets": [
3
+ {
4
+ "index_path": "archives/diode_normals_train_v1.tar.ovb-index.sqlite",
5
+ "name": "diode_normals_train_v1",
6
+ "path": "archives/diode_normals_train_v1.tar",
7
+ "type": "indexed_prepared_tar",
8
+ "weight": 0.25
9
+ },
10
+ {
11
+ "index_path": "archives/nyuv2_normals_train_v2_fixed.tar.ovb-index.sqlite",
12
+ "name": "nyuv2_normals_train_v2_fixed",
13
+ "path": "archives/nyuv2_normals_train_v2_fixed.tar",
14
+ "type": "indexed_prepared_tar",
15
+ "weight": 0.25
16
+ },
17
+ {
18
+ "index_path": "archives/scannetv2_normals_train_v1.tar.ovb-index.sqlite",
19
+ "name": "scannetv2_normals_train_v1",
20
+ "path": "archives/scannetv2_normals_train_v1.tar",
21
+ "type": "indexed_prepared_tar",
22
+ "weight": 0.25
23
+ },
24
+ {
25
+ "index_path": "archives/vkitti2_nonclone_normals_train_v2_fixed.tar.ovb-index.sqlite",
26
+ "name": "vkitti2_nonclone_normals_train_v2_fixed",
27
+ "path": "archives/vkitti2_nonclone_normals_train_v2_fixed.tar",
28
+ "type": "indexed_prepared_tar",
29
+ "weight": 0.25
30
+ }
31
+ ],
32
+ "samples_per_epoch": 1000000,
33
+ "sampling": "equal mass over four dense, semantically audited source datasets",
34
+ "task": "surface_normal_estimation"
35
+ }
eval_domain_surface_normals_training_v2_fixed/configs/training_contract.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mask_policy": "hard majority-valid latent cells; no erosion",
3
+ "normal_preprocessing": "decode vectors, resize vectors, renormalize, then encode",
4
+ "normal_prompt_contract": "campaign_short",
5
+ "normal_target_encoding": "vision_banana_x_left_red",
6
+ "trainer_cli_required": [
7
+ "--normal_target_encoding vision_banana_x_left_red",
8
+ "--normal_target_resize_policy vector_field_renormalize_then_encode",
9
+ "--loss_mask_policy enabled",
10
+ "--loss_mask_mode hard",
11
+ "--loss_mask_min_valid_fraction 0.5",
12
+ "--loss_mask_min_sample_valid_fraction 0",
13
+ "--loss_mask_erosion_radius 0"
14
+ ]
15
+ }
eval_domain_surface_normals_training_v2_fixed/manifests/archive_inventory.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "archives": [
3
+ {
4
+ "archive": "diode_normals_train_v1.tar",
5
+ "authoritative_source_validation": null,
6
+ "bytes": 47938160640,
7
+ "rows": 24884,
8
+ "semantic_validation": "audited-v1-source",
9
+ "sha256": "eff7baa490d448b4a4a83f29e55d763398b34d78e56e0c80dbe0fbb5cd7d0d15",
10
+ "source_group": "diode",
11
+ "task": "surface_normal_estimation",
12
+ "validation": "diode_normals_train_v1.tar.validation.json"
13
+ },
14
+ {
15
+ "archive": "nyuv2_normals_train_v2_fixed.tar",
16
+ "authoritative_source_validation": "nyuv2_normals_train_v2_fixed.tar.source-oracle.json",
17
+ "bytes": 486256640,
18
+ "rows": 795,
19
+ "semantic_validation": "nyuv2_normals_train_v2_fixed.tar.semantic-validation.json",
20
+ "sha256": "52cf593ac220db4762e428f05eb81228a790d16ebfe871d2314b01cc31ee6fef",
21
+ "source_group": "nyuv2",
22
+ "task": "surface_normal_estimation",
23
+ "validation": "nyuv2_normals_train_v2_fixed.tar.validation.json"
24
+ },
25
+ {
26
+ "archive": "scannetv2_normals_train_v1.tar",
27
+ "authoritative_source_validation": null,
28
+ "bytes": 17182883840,
29
+ "rows": 19278,
30
+ "semantic_validation": "audited-v1-source",
31
+ "sha256": "bf195d4f4374641b9e24000415ea49bc629948aae724556a59709e10f61d78d0",
32
+ "source_group": "scannetv2",
33
+ "task": "surface_normal_estimation",
34
+ "validation": "scannetv2_normals_train_v1.tar.validation.json"
35
+ },
36
+ {
37
+ "archive": "vkitti2_nonclone_normals_train_v2_fixed.tar",
38
+ "authoritative_source_validation": null,
39
+ "bytes": 40490516480,
40
+ "rows": 38268,
41
+ "semantic_validation": "vkitti2_nonclone_normals_train_v2_fixed.tar.semantic-validation.json",
42
+ "sha256": "d7826a7423759e5401b45f17099cf976efffb5ae2bc8d351ff7a7b23d3073429",
43
+ "source_group": "vkitti2_nonclone",
44
+ "task": "surface_normal_estimation",
45
+ "validation": "vkitti2_nonclone_normals_train_v2_fixed.tar.validation.json"
46
+ }
47
+ ],
48
+ "status": "PASS"
49
+ }
eval_domain_surface_normals_training_v2_fixed/manifests/excluded_normal_sources.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "kitti_eigen_normals": "Excluded: sparse image-space supervision is almost entirely removed by the released hard majority-valid latent-mask policy.",
3
+ "nuscenes_normals": "Excluded: sparse image-space supervision is entirely removed in the audited 512-resolution hard majority-valid latent-mask sample."
4
+ }