AlvaroSchwiedop commited on
Commit
c8efc46
路
verified 路
1 Parent(s): addddc4

Review: bind variant outputs and enforce clean verified source inventory

Browse files
MANIFEST.json CHANGED
@@ -8,7 +8,7 @@
8
  "examples/real_CCRm_low_row10_expected.json": "da6c69bbd04018116ba76d6677a9a44e8c6a73d19bd6a740465027f3295ae5c9",
9
  "examples/synthetic_expected.json": "d3f3e517379a9aa2b01532cc04b47da798e45c2cb4985a559adf18eea7a04a2f",
10
  "examples/synthetic_looming.npz": "e7e8526598ae27d1653a962a49a1c7dd1498b4b3561bb3b6e6116215f9614648",
11
- "extract_example.py": "c30668ec743a1184262925f0d9d1ab835ee87caadd2f22bf4e0c05b872834349",
12
  "INPUT_FORMAT.md": "a2a72f8bcefa7dcb6164102f17f80d7db4a7183bc90fb1b438d5e26ecf1853e0",
13
  "LICENSE": "c0901c3a9c2a34a46194b27353324fc1c95635a85b6196c4e127b01889ded724",
14
  "model/upstream/BUNDLE.json": "dbb95f68ce861a72bb9b8169677a96442523cb256fb1d45c412acee46a07677d",
@@ -25,11 +25,11 @@
25
  "model/upstream/components/R_C2F.pt": "d5fa8fd9ed80df6141c3df8bd2ed8ac013c87e5e5bde7367a3b588c5b09e5a35",
26
  "model/upstream/components/R_CTX.pt": "a19f8188b859dcac7fb0cd4c68d0cd5c5c9a839ad84c0ac7ee1b3d61181d1852",
27
  "model/upstream/components/rgb_normalizer.json": "d902dba58dc9738ed268e56fe57291fda1cf0dfb2e03be4da1171668e689bd59",
28
- "predict.py": "5cb15daad1988d1432583ed9bdbb9792c53232426e44eeaa084f01fea116cb9d",
29
- "README.md": "f86d47ef97b648ca9840bcd1b944075237e126a4ea4c6373077ab8de1fe389fa",
30
  "RELEASE.json": "39fd477a5bc0df822083db1d0fef9463895168571c4449a09e70368b70cc54c0",
31
- "reproduction/research_source.zip": "a0a51f57ffa1b30d670e3c913a87618a3937e0e7762a48006f7500691440e1af",
32
- "REPRODUCTION.md": "5c45cd83839a33ad10f9fe2aedc0e801ed148c088a7126bbfef8bd7d2db6d351",
33
  "requirements-cpu-tested.txt": "2e59c4fbcd2c4c764944d1571eddd13ed1ec95ee26e6ba140fdf7d2d7a324cbc",
34
  "requirements.txt": "05df1eb17c36ee3ce0543a46bd8fa5ed401e7c9362cb293800f2a1103dbbd098",
35
  "source/configs/campaign/efficient_context_v1.json": "f15346782245e4a67f30074654adaf2891d0c5ad15228c8db6a1da472df16fc8",
@@ -267,6 +267,6 @@
267
  "source/src/e_jepa_ttc/training/supervised.py": "2609f5e7e134a7fff6053c7bbe69bd5798817199ca98314db0540255273dea2c",
268
  "source/src/e_jepa_ttc/utils/__init__.py": "bd3ce9cc0870670869f7177348df7949699fd36aa0c3b02c73450b5c6e1a1289",
269
  "source/src/e_jepa_ttc/utils/io.py": "7270b939248b2b940e8e06b48564fdc05b82c932fbf79337e942ea05c764f02e",
270
- "train_router.py": "17c680b64dc1fceaa619343cffd985fa67a5a706bfe1cbf49725d12e885f2632",
271
- "VALIDATION.json": "831353516a6b7d9f47e39324e1aca9a80f76b015b29c84140da5343ebea81e01"
272
  }
 
8
  "examples/real_CCRm_low_row10_expected.json": "da6c69bbd04018116ba76d6677a9a44e8c6a73d19bd6a740465027f3295ae5c9",
9
  "examples/synthetic_expected.json": "d3f3e517379a9aa2b01532cc04b47da798e45c2cb4985a559adf18eea7a04a2f",
10
  "examples/synthetic_looming.npz": "e7e8526598ae27d1653a962a49a1c7dd1498b4b3561bb3b6e6116215f9614648",
11
+ "extract_example.py": "920b5829b750e2141684353470f9d882a594aff90ce828e85fc432183ed644de",
12
  "INPUT_FORMAT.md": "a2a72f8bcefa7dcb6164102f17f80d7db4a7183bc90fb1b438d5e26ecf1853e0",
13
  "LICENSE": "c0901c3a9c2a34a46194b27353324fc1c95635a85b6196c4e127b01889ded724",
14
  "model/upstream/BUNDLE.json": "dbb95f68ce861a72bb9b8169677a96442523cb256fb1d45c412acee46a07677d",
 
25
  "model/upstream/components/R_C2F.pt": "d5fa8fd9ed80df6141c3df8bd2ed8ac013c87e5e5bde7367a3b588c5b09e5a35",
26
  "model/upstream/components/R_CTX.pt": "a19f8188b859dcac7fb0cd4c68d0cd5c5c9a839ad84c0ac7ee1b3d61181d1852",
27
  "model/upstream/components/rgb_normalizer.json": "d902dba58dc9738ed268e56fe57291fda1cf0dfb2e03be4da1171668e689bd59",
28
+ "predict.py": "7aeb7fd7640c176e9b4d44e0b8119e0aa8bd5b623f36dc47a06f304827f9eab7",
29
+ "README.md": "4be220d81cbc29d3df755481b18f35591c7c61846ed5f7f5e73250d4c09bc4c9",
30
  "RELEASE.json": "39fd477a5bc0df822083db1d0fef9463895168571c4449a09e70368b70cc54c0",
31
+ "reproduction/research_source.zip": "55015677f7d0e8255b12c8c686e54231436cc8569135332f63a7e8263ef41060",
32
+ "REPRODUCTION.md": "634df76b2bfdd41df81c718bdda80234c9be3b46d08f6f8efa7e77db65df0fca",
33
  "requirements-cpu-tested.txt": "2e59c4fbcd2c4c764944d1571eddd13ed1ec95ee26e6ba140fdf7d2d7a324cbc",
34
  "requirements.txt": "05df1eb17c36ee3ce0543a46bd8fa5ed401e7c9362cb293800f2a1103dbbd098",
35
  "source/configs/campaign/efficient_context_v1.json": "f15346782245e4a67f30074654adaf2891d0c5ad15228c8db6a1da472df16fc8",
 
267
  "source/src/e_jepa_ttc/training/supervised.py": "2609f5e7e134a7fff6053c7bbe69bd5798817199ca98314db0540255273dea2c",
268
  "source/src/e_jepa_ttc/utils/__init__.py": "bd3ce9cc0870670869f7177348df7949699fd36aa0c3b02c73450b5c6e1a1289",
269
  "source/src/e_jepa_ttc/utils/io.py": "7270b939248b2b940e8e06b48564fdc05b82c932fbf79337e942ea05c764f02e",
270
+ "train_router.py": "7c075458963fdb6df758795d433e0ffeaad831265e9a54168fa12ca304485d1d",
271
+ "VALIDATION.json": "934f3413c80898f2f6def5d768c77f382db792265b0cda370547d3c52320502a"
272
  }
README.md CHANGED
@@ -16,7 +16,7 @@ tags:
16
 
17
  PHASE-TTC estimates signed time-to-contact (TTC) from causal event-camera observations and RGB frames. It measures motion independently in each modality, refines those measurements over time, and combines them in a physical phase representation with a correction anchored in RGB.
18
 
19
- [Paper and interactive reader](https://schwiedop.com/papers/phase-ttc/) 路 [Project](https://schwiedop.com/PHASE-TTC/) 路 [Code](https://github.com/Kripta-Studios/phase-ttc) 路 [Try the Space](https://huggingface.co/spaces/AlvaroSchwiedop/PHASE-TTC)
20
 
21
  ## Original nine-component model
22
 
 
16
 
17
  PHASE-TTC estimates signed time-to-contact (TTC) from causal event-camera observations and RGB frames. It measures motion independently in each modality, refines those measurements over time, and combines them in a physical phase representation with a correction anchored in RGB.
18
 
19
+ [Paper and interactive reader](https://schwiedop.com/papers/phase-ttc/) 路 [Project](https://schwiedop.com/PHASE-TTC/) 路 [Code](https://github.com/Kripta-Studios/phase-ttc) 路 [Explore recorded examples](https://huggingface.co/spaces/AlvaroSchwiedop/PHASE-TTC)
20
 
21
  ## Original nine-component model
22
 
REPRODUCTION.md CHANGED
@@ -10,7 +10,7 @@ Follow the model card. The synthetic execution test and a separately extracted r
10
  python evaluate_saved.py
11
  ```
12
 
13
- This recomputes the original model's corrected 460-query transfer summaries from the 508-row projection in `evaluation/`, checks them against the archived statistics, and reports the archived official score separately. It does not rerun sensor inference or reconstruct the organizer's private targets. The 434-query adaptation evaluation is a different study; see the paper for its signed/offline protocol.
14
 
15
  ## Research training source
16
 
 
10
  python evaluate_saved.py
11
  ```
12
 
13
+ This recomputes the original model's corrected 460-query transfer summaries from the 508-row projection in `evaluation/` and checks them against the archived statistics. The archived official score is stored separately in `evaluation/official_benchmark.json`. The command does not rerun sensor inference or reconstruct the organizer's private targets. The 434-query adaptation evaluation is a different study; see the paper for its signed/offline protocol.
14
 
15
  ## Research training source
16
 
extract_example.py CHANGED
@@ -10,6 +10,8 @@ from pathlib import Path
10
 
11
  import numpy as np
12
 
 
 
13
 
14
  def main() -> None:
15
  """Keep raw data local and serialize the exact causal preprocessing output."""
 
10
 
11
  import numpy as np
12
 
13
+ sys.dont_write_bytecode = True
14
+
15
 
16
  def main() -> None:
17
  """Keep raw data local and serialize the exact causal preprocessing output."""
predict.py CHANGED
@@ -12,6 +12,9 @@ from typing import Any
12
 
13
  import numpy as np
14
 
 
 
 
15
 
16
  def verify_files(root: Path) -> None:
17
  """Reject missing, changed or escaping files before loading model code."""
@@ -19,6 +22,18 @@ def verify_files(root: Path) -> None:
19
  manifest = json.loads((root / "MANIFEST.json").read_text(encoding="utf-8"))
20
  if not isinstance(manifest, dict) or not manifest:
21
  raise ValueError("Empty or invalid release manifest")
 
 
 
 
 
 
 
 
 
 
 
 
22
  for name, expected in manifest.items():
23
  path = (root / name).resolve()
24
  if not path.is_relative_to(root) or Path(name).is_absolute():
 
12
 
13
  import numpy as np
14
 
15
+ # The release is immutable: do not create unmanifested executable bytecode inside it.
16
+ sys.dont_write_bytecode = True
17
+
18
 
19
  def verify_files(root: Path) -> None:
20
  """Reject missing, changed or escaping files before loading model code."""
 
22
  manifest = json.loads((root / "MANIFEST.json").read_text(encoding="utf-8"))
23
  if not isinstance(manifest, dict) or not manifest:
24
  raise ValueError("Empty or invalid release manifest")
25
+ executable_suffixes = {".py", ".pyc", ".pyo", ".pth", ".pyd", ".so", ".dll", ".pt", ".ts"}
26
+ for path in root.rglob("*"):
27
+ if not path.is_file():
28
+ continue
29
+ relative = path.relative_to(root)
30
+ if ".cache" in relative.parts:
31
+ continue # Hugging Face download bookkeeping is outside all import/model paths.
32
+ protected = relative.parts[0] in {"source", "model"}
33
+ if (
34
+ protected or path.suffix.lower() in executable_suffixes
35
+ ) and relative.as_posix() not in manifest:
36
+ raise ValueError(f"Unexpected release file: {relative.as_posix()}")
37
  for name, expected in manifest.items():
38
  path = (root / name).resolve()
39
  if not path.is_relative_to(root) or Path(name).is_absolute():
reproduction/research_source.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a0a51f57ffa1b30d670e3c913a87618a3937e0e7762a48006f7500691440e1af
3
- size 9699932
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55015677f7d0e8255b12c8c686e54231436cc8569135332f63a7e8263ef41060
3
+ size 9701274