Commit ·
baba4a7
0
Parent(s):
Super-squash branch 'main' using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +60 -0
- README.md +52 -0
- code/bench_eval.py +86 -0
- code/failure_analysis.py +123 -0
- code/native_campaign.py +344 -0
- code/release_benchmark.py +151 -0
- code/server_benchmark.py +229 -0
- code/server_benchmark_pool.json +0 -0
- code/server_fast_pool.json +0 -0
- code/wasm_eval.py +143 -0
- episodes/fast-102344193-01.zip +3 -0
- episodes/fast-102344457-00.zip +3 -0
- episodes/fast-102344469-01.zip +3 -0
- episodes/fast-103997445_171030492-01.zip +3 -0
- episodes/fast-103997460_171030507-00.zip +3 -0
- episodes/fast-103997460_171030507-01.zip +3 -0
- episodes/fast-103997478_171030525-00.zip +3 -0
- episodes/fast-103997478_171030525-01.zip +3 -0
- episodes/fast-103997586_171030666-00.zip +3 -0
- episodes/fast-103997643_171030747-01.zip +3 -0
- episodes/fast-104348202_171513150-01.zip +3 -0
- episodes/fast-104348361_171513414-01.zip +3 -0
- episodes/fast-104862573_172226682-01.zip +3 -0
- episodes/fast-104862639_172226823-00.zip +3 -0
- episodes/fast-104862639_172226823-01.zip +3 -0
- episodes/fast-105515184_173104128-00.zip +3 -0
- episodes/fast-105515490_173104566-01.zip +3 -0
- episodes/fast-106366104_174226329-00.zip +3 -0
- episodes/fast-106366104_174226329-01.zip +3 -0
- episodes/fast-106366173_174226431-00.zip +3 -0
- episodes/fast-106366371_174226743-00.zip +3 -0
- episodes/fast-106366371_174226743-01.zip +3 -0
- episodes/fast-106366410_174226806-02.zip +3 -0
- episodes/fast-106878858_174886965-00.zip +3 -0
- episodes/fast-106878858_174886965-02.zip +3 -0
- episodes/fast-106879044_174887172-01.zip +3 -0
- episodes/fast-107734146_175999971-00.zip +3 -0
- episodes/fast-107734158_175999998-00.zip +3 -0
- episodes/fast-107734158_175999998-02.zip +3 -0
- episodes/fast-107734176_176000019-01.zip +3 -0
- episodes/fast-107734254_176000121-01.zip +3 -0
- episodes/fast-107734338_176000244-02.zip +3 -0
- episodes/fast-108294417_176709879-00.zip +3 -0
- episodes/fast-108294417_176709879-01.zip +3 -0
- episodes/fast-108294897_176710602-00.zip +3 -0
- episodes/fast-108736884_177263634-00.zip +3 -0
- episodes/fast-108736884_177263634-01.zip +3 -0
- episodes/fast-108736884_177263634-02.zip +3 -0
- episodes/fast-ProcTHOR-Train-106-01.zip +3 -0
- episodes/fast-ProcTHOR-Train-107-00.zip +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: VIOBench server-calibrated benchmark
|
| 3 |
+
license: other
|
| 4 |
+
task_categories: [robotics]
|
| 5 |
+
---
|
| 6 |
+
# VIOBench server-calibrated benchmark (private draft)
|
| 7 |
+
|
| 8 |
+
171 raw VIOBench episodes (171 of them form the calibrated benchmark, weighted by `draws` in `manifest.json`; the rest are the unselected pool, released for further analysis; 60 s, 1200 frames, official archive format) whose flight-extent and flight-length
|
| 9 |
+
distribution is calibrated so that what the course server reveals about its own flights is reproduced. Episodes use the
|
| 10 |
+
upstream generator's defaults (60 s, 48 waypoints, 1 s hover, FOV 120 +/- 15 deg, nominal camera, upstream IMU noise)
|
| 11 |
+
**except for the planner's speed settings**: the server's 12 flights average 59.6 m of path (39-80 m) while the public set
|
| 12 |
+
averages 18 m and the default planner cannot exceed about 48 m, so cruise speed, acceleration, jerk, yaw rate and roadmap
|
| 13 |
+
spacing are raised (see `code/server_fast_pool.json`, field `task_overrides`). No guest, ours or anyone's, chose the flights.
|
| 14 |
+
|
| 15 |
+
Run any guest: `viobench evaluate guest.wasm <dir with the episode zips>` (mean unaligned ATE is the headline), or
|
| 16 |
+
`python code/bench_eval.py --guest name=guest.wasm --episodes episodes --out out` to run every guest on all cores.
|
| 17 |
+
|
| 18 |
+
## How it was calibrated
|
| 19 |
+
The server's `cpp_minimal` baseline outputs an identity pose, so its score (4.694 m) is the mean RMS distance of the truth
|
| 20 |
+
from its start: a pure flight-extent anchor. The selection weights come from two guest-independent numbers only: that extent and the
|
| 21 |
+
server's mean path length (scene-balanced base weights tilted exponentially in each flight's own extent and path length). Everything else below is a held-out check; it is not fitted.
|
| 22 |
+
The course server has 12 episodes, so its own numbers carry sampling noise; the interval column shows how much a 12-episode
|
| 23 |
+
draw from this benchmark varies.
|
| 24 |
+
|
| 25 |
+
| guest | benchmark mean ATE (m) | calibrated pool mean (m) | 90% range of a 12-episode draw | course server (m) |
|
| 26 |
+
| --- | ---: | ---: | --- | ---: |
|
| 27 |
+
| identity pose (`cpp_minimal`) | 4.117 | 4.694 (matched by construction) | - | 4.694 |
|
| 28 |
+
| `n2_kfinputs_s217` | 3.508 | 3.894 | 3.18-4.76 | not on the server |
|
| 29 |
+
| `n2_kfgrid` | 3.633 | 3.960 | 3.23-4.81 | not on the server |
|
| 30 |
+
| `bd0_velfusion` | 3.767 | 4.142 | 3.41-5.01 | not on the server |
|
| 31 |
+
| `bd0_kfgrid` | 3.829 | 4.193 | 3.47-5.04 | not on the server |
|
| 32 |
+
| `b_d0` | 3.844 | 4.196 | 3.46-5.06 | 4.550 |
|
| 33 |
+
| `vins_mono` | 5.506 | 4.716 | 0.56-18.29 | 0.475 |
|
| 34 |
+
| `dead_reckoning` | 6.698 | 7.035 | 6.02-8.22 | 9.065 |
|
| 35 |
+
| `openvins` | 28.529 | 31.155 | 0.66-175.36 | 0.553 |
|
| 36 |
+
|
| 37 |
+
## Contents
|
| 38 |
+
- `episodes/` every generated episode, unchanged generator output. About half start from the usual seated hover; the other half start mid-flight (`start_offset_s` > 0 in the manifest): the flight is generated longer and its first 3-40 s cropped away, so the drone is already moving. `manifest.json`: hashes, scenes, truth statistics.
|
| 39 |
+
- `results.json`: per-episode ATE of every measured guest, the server scores, the calibration.
|
| 40 |
+
- `code/`: generator roster, calibration, evaluation and analysis scripts.
|
| 41 |
+
|
| 42 |
+
## Limitations (read before trusting a number)
|
| 43 |
+
- Calibrated on two scalars (extent, path length) from 12 server episodes; the speed settings are our inference of how the server's faster flights were made, not its actual spec. The server's scenes and any difference in its camera or start
|
| 44 |
+
conditions are unknown; a guest that depends on those can still rank differently there.
|
| 45 |
+
- Scene groups: {'seen': 101, 'dev': 49, 'clean': 21}. `clean` scenes are in none of our models' training data; `dev` and `seen` scenes were used by our
|
| 46 |
+
models, so learned-model results on them are optimistic. Large-extent flights come mostly from big HSSD houses.
|
| 47 |
+
- VIO guests fail in a heavy tail here: OpenVINS and VINS-Mono have medians of 0.58 and 0.62 m (server means 0.553 and 0.475 m) but means of 28.5 and 5.5 m, because of rare divergences. These concentrate in ProcTHOR scenes with textureless views and in runs that initialize late. A 12-episode draw from this benchmark reproduces the server's clean VIO scores only rarely, so the server's own flights are probably friendlier to VIO than this pool. Use the medians, not the means, of VIO guests here.
|
| 48 |
+
- `dead_reckoning` scores about 7.0 m here against 9.07 m on the server, so this benchmark is somewhat easier than the server for that guest. B-D0 (4.20 m calibrated, 90% range 3.46-5.06) is inside the range of the server's 4.55 m.
|
| 49 |
+
- Half of the flights start mid-route (see `start_offset_s`); whether the server's flights do is unknown. Learned guests do slightly worse on mid-flight starts (rank correlation 0.2-0.3 of error with start offset).
|
| 50 |
+
- The speed settings that make the flights as long as the server's are our inference, not the server's spec.
|
| 51 |
+
- The server's hidden episodes were never downloaded or used; only published scores were.
|
| 52 |
+
- Reserved-test scenes of our campaign are not used.
|
code/bench_eval.py
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Evaluate many Wasm guests on many episodes in one parallel pass over all CPU cores.
|
| 2 |
+
|
| 3 |
+
python bench_eval.py --guest vins_mono=/path/vins_mono.wasm --guest openvins=/path/openvins.wasm \\
|
| 4 |
+
--episodes /path/to/episodes --out results/bench/pool [--workers 180] [--limit N]
|
| 5 |
+
|
| 6 |
+
Run with the pinned viobench venv (research/baselines/openvins-9b1b079.md), like wasm_eval.py. Guests are fuel-metered
|
| 7 |
+
Wasmtime modules, so this is CPU work: every (guest, episode) pair is an independent task, scheduled most expensive
|
| 8 |
+
guest first so the slowest episodes start earliest and the pass ends when the last one does. Results are cached by the
|
| 9 |
+
guest's SHA-256 and the episode file name, so a repeated or interrupted pass only runs what is missing.
|
| 10 |
+
|
| 11 |
+
Writes <out>/<guest>-<sha8>/scores.json (per-episode rows, same fields as wasm_eval.py) and <out>/matrix.json
|
| 12 |
+
(episode x guest ATE), and prints per-guest mean/median/p90 and the course-server score where one is known.
|
| 13 |
+
"""
|
| 14 |
+
import argparse
|
| 15 |
+
import json
|
| 16 |
+
import os
|
| 17 |
+
import time
|
| 18 |
+
from concurrent.futures import ThreadPoolExecutor, as_completed
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
import numpy as np
|
| 22 |
+
|
| 23 |
+
import wasm_eval
|
| 24 |
+
|
| 25 |
+
# Relative cost per episode of the provided/our guests (seconds, measured); unknown guests are assumed expensive.
|
| 26 |
+
COST = {"vins_mono": 200, "openvins": 150, "b_d0": 100, "n2_kfgrid": 150, "dead_reckoning": 5, "cpp_minimal": 2}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def main():
|
| 30 |
+
parser = argparse.ArgumentParser()
|
| 31 |
+
parser.add_argument("--guest", action="append", default=[], metavar="NAME=WASM")
|
| 32 |
+
parser.add_argument("--episodes", required=True, help="directory of episode .zip archives (or one archive)")
|
| 33 |
+
parser.add_argument("--out", required=True)
|
| 34 |
+
parser.add_argument("--workers", type=int, default=max(1, (os.cpu_count() or 8) - 12))
|
| 35 |
+
parser.add_argument("--limit", type=int)
|
| 36 |
+
parser.add_argument("--score-only", action="store_true")
|
| 37 |
+
args = parser.parse_args()
|
| 38 |
+
source = Path(args.episodes)
|
| 39 |
+
archives = sorted(source.glob("*.zip")) if source.is_dir() else [source]
|
| 40 |
+
archives = archives[:args.limit]
|
| 41 |
+
out = Path(args.out); out.mkdir(parents=True, exist_ok=True)
|
| 42 |
+
guests = {}
|
| 43 |
+
for spec in args.guest:
|
| 44 |
+
name, path = spec.split("=", 1)
|
| 45 |
+
sha = wasm_eval.sha256(path)
|
| 46 |
+
guests[name] = (Path(path), out/f"{name}-{sha[:8]}", sha)
|
| 47 |
+
guests[name][1].mkdir(parents=True, exist_ok=True)
|
| 48 |
+
tasks = [(name, wasm, folder, a) for name, (wasm, folder, _) in sorted(guests.items(), key=lambda kv: -COST.get(kv[0], 300))
|
| 49 |
+
for a in archives]
|
| 50 |
+
started = time.time()
|
| 51 |
+
if not args.score_only:
|
| 52 |
+
todo = [t for t in tasks if not (t[2]/t[3].stem/"report"/"report.json").exists()]
|
| 53 |
+
print(f"{len(tasks)} tasks, {len(tasks)-len(todo)} cached, {len(todo)} to run on {args.workers} workers", flush=True)
|
| 54 |
+
done = 0
|
| 55 |
+
with ThreadPoolExecutor(args.workers) as pool:
|
| 56 |
+
for future in as_completed([pool.submit(wasm_eval.run_one, w, a, f) for _, w, f, a in todo]):
|
| 57 |
+
future.result(); done += 1
|
| 58 |
+
if done % 25 == 0 or done == len(todo):
|
| 59 |
+
print(f" {done}/{len(todo)} done, {time.time()-started:.0f}s", flush=True)
|
| 60 |
+
matrix = {a.stem: {} for a in archives}
|
| 61 |
+
for name, (wasm, folder, sha) in guests.items():
|
| 62 |
+
with ThreadPoolExecutor(min(args.workers, 64)) as pool:
|
| 63 |
+
rows = list(pool.map(lambda a: wasm_eval.score_one(a, folder/a.stem), archives))
|
| 64 |
+
(folder/"scores.json").write_text(json.dumps({"guest": {"name": name, "wasm": str(wasm), "sha256": sha,
|
| 65 |
+
"archives": [str(a) for a in archives]}, "rows": rows}, indent=1))
|
| 66 |
+
for row in rows:
|
| 67 |
+
matrix[row["episode"]][name] = row.get("ate_full")
|
| 68 |
+
ok = [r for r in rows if r.get("ate_full") is not None]
|
| 69 |
+
if not ok:
|
| 70 |
+
print(f"{name}: no scored episodes"); continue
|
| 71 |
+
ates = np.array([r["ate_full"] for r in ok])
|
| 72 |
+
server = None
|
| 73 |
+
try:
|
| 74 |
+
from server_benchmark import SERVER
|
| 75 |
+
server = SERVER.get(name, {}).get("mean_ate_m")
|
| 76 |
+
except Exception:
|
| 77 |
+
pass
|
| 78 |
+
print(f"{name:16s} n={len(ok):4d}/{len(rows)} mean {ates.mean():7.3f} median {np.median(ates):6.3f} p90 {np.percentile(ates, 90):7.3f} "
|
| 79 |
+
f"max {ates.max():8.2f} peak fuel {max(r['peak_fuel_per_frame'] for r in ok):,}"
|
| 80 |
+
+ (f" [server {server:.3f}]" if server else ""))
|
| 81 |
+
(out/"matrix.json").write_text(json.dumps({"guests": {n: g[2] for n, g in guests.items()}, "ate_full": matrix}, indent=1))
|
| 82 |
+
print(f"total {time.time()-started:.0f}s")
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
if __name__ == "__main__":
|
| 86 |
+
main()
|
code/failure_analysis.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Failure-mode analysis of guests on the server-benchmark pool.
|
| 2 |
+
|
| 3 |
+
python failure_analysis.py --scores <bench-eval out dir> [--raw gen/raw-bench] [--weights calibration.json]
|
| 4 |
+
|
| 5 |
+
Reads the per-guest scores.json written by bench_eval.py and the per-flight audit files written by the generator,
|
| 6 |
+
and reports, for every guest: the score distribution; how often it is worse than outputting nothing (ATE above the
|
| 7 |
+
flight's zero-motion ATE, i.e. the identity pose); the heavy tail (what share of the total error the worst 10% of
|
| 8 |
+
flights carry); which truth-side flight properties predict its error relative to the flight's extent (Spearman rank
|
| 9 |
+
correlation, no model assumption); initialization time for the VIO guests; and which flights fail for several guests.
|
| 10 |
+
Every statistic is mean unaligned ATE or a rank statistic over it.
|
| 11 |
+
"""
|
| 12 |
+
import argparse
|
| 13 |
+
import glob
|
| 14 |
+
import json
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
|
| 17 |
+
import numpy as np
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def ranks(x):
|
| 21 |
+
order = np.argsort(x, kind="mergesort")
|
| 22 |
+
r = np.empty(len(x)); r[order] = np.arange(len(x))
|
| 23 |
+
for value in np.unique(x): # average ranks over ties
|
| 24 |
+
m = x == value
|
| 25 |
+
if m.sum() > 1: r[m] = r[m].mean()
|
| 26 |
+
return r
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def spearman(a, b):
|
| 30 |
+
ok = np.isfinite(a) & np.isfinite(b)
|
| 31 |
+
if ok.sum() < 8 or np.ptp(a[ok]) == 0 or np.ptp(b[ok]) == 0: return np.nan
|
| 32 |
+
return float(np.corrcoef(ranks(a[ok]), ranks(b[ok]))[0, 1])
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def load(scores_dir, raw):
|
| 36 |
+
flights = {}
|
| 37 |
+
for path in glob.glob(f"{raw}/bench/*.json"):
|
| 38 |
+
d = json.loads(Path(path).read_text()); a = d["audit"]
|
| 39 |
+
flights[d["id"]] = {"id": d["id"], "group": d["group"], "catalog": d["catalog"], "scene": d["scene"],
|
| 40 |
+
"zero": a["zero_motion_ate_m"], "travel": a["travel_m"], "speed_p50": a["speed_p10_p50_p90"][1],
|
| 41 |
+
"speed_p90": a["speed_p10_p50_p90"][2], "hover": a["hover_fraction"], "turning": a["turning_fraction"],
|
| 42 |
+
"lateral": a["lateral_fraction"], "vertical": a["vertical_fraction"], "dark": a["dark_fraction"],
|
| 43 |
+
"flat": a["flat_fraction"], "start_offset": float(d.get("crop_start_s", 0) or 0)}
|
| 44 |
+
guests = {}
|
| 45 |
+
for path in sorted(glob.glob(f"{scores_dir}/*/scores.json")):
|
| 46 |
+
d = json.loads(Path(path).read_text()); name = d["guest"]["name"]
|
| 47 |
+
guests[name] = {r["episode"]: r for r in d["rows"] if r.get("ate_full") is not None}
|
| 48 |
+
return flights, guests
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def main():
|
| 52 |
+
parser = argparse.ArgumentParser()
|
| 53 |
+
parser.add_argument("--scores", required=True)
|
| 54 |
+
parser.add_argument("--raw", default="/data/backups/rganapa/Sebastian/gen/raw-bench")
|
| 55 |
+
parser.add_argument("--only", help="JSON file with {'selected': [ids]} (e.g. calibration.json): restrict to these flights")
|
| 56 |
+
parser.add_argument("--output")
|
| 57 |
+
args = parser.parse_args()
|
| 58 |
+
flights, guests = load(args.scores, args.raw)
|
| 59 |
+
names = sorted(flights)
|
| 60 |
+
if args.only:
|
| 61 |
+
keep = set(json.loads(Path(args.only).read_text())["selected"]); names = [n for n in names if n in keep]
|
| 62 |
+
features = ["zero", "travel", "speed_p50", "speed_p90", "hover", "turning", "lateral", "vertical", "dark", "flat", "start_offset"]
|
| 63 |
+
F = {k: np.array([flights[n][k] for n in names], float) for k in features}
|
| 64 |
+
zero = F["zero"]
|
| 65 |
+
report = {"flights": len(names), "guests": {}}
|
| 66 |
+
print(f"{len(names)} flights; zero-motion ATE (the identity pose) mean {zero.mean():.3f}\n")
|
| 67 |
+
worse = {}
|
| 68 |
+
for guest, rows in guests.items():
|
| 69 |
+
ate = np.array([rows[n]["ate_full"] if n in rows else np.nan for n in names])
|
| 70 |
+
ok = np.isfinite(ate)
|
| 71 |
+
if ok.sum() < 8: continue
|
| 72 |
+
a, z = ate[ok], zero[ok]
|
| 73 |
+
order = np.sort(a)[::-1]; tail = order[:max(1, len(a)//10)].sum()/a.sum()
|
| 74 |
+
ratio = a/z
|
| 75 |
+
worse[guest] = np.where(ok, ate > zero, False)
|
| 76 |
+
inits = np.array([rows[n].get("initialized_at_s") if n in rows and rows[n].get("initialized_at_s") is not None else np.nan for n in names])
|
| 77 |
+
entry = {"n": int(ok.sum()), "mean": float(a.mean()), "median": float(np.median(a)), "p90": float(np.percentile(a, 90)), "max": float(a.max()),
|
| 78 |
+
"mean_over_zero": float(a.mean()/z.mean()), "median_flight_ratio": float(np.median(ratio)),
|
| 79 |
+
"worse_than_identity": float(np.mean(a > z)), "ate_over_3m": float(np.mean(a > 3)),
|
| 80 |
+
"top10pct_share_of_total_error": float(tail), "mean_without_worst_5pct": float(np.sort(a)[:int(.95*len(a))].mean())}
|
| 81 |
+
print(f"{guest:16s} n={ok.sum():4d} mean {a.mean():7.3f} median {np.median(a):6.3f} p90 {np.percentile(a, 90):7.3f} max {a.max():8.2f} | "
|
| 82 |
+
f"worse than identity {100*np.mean(a > z):4.1f}% >3 m {100*np.mean(a > 3):4.1f}% worst-10% carry {100*tail:4.1f}% of error "
|
| 83 |
+
f"trimmed(95%) mean {entry['mean_without_worst_5pct']:.3f}")
|
| 84 |
+
if np.isfinite(inits).sum() > 5:
|
| 85 |
+
late = np.isfinite(inits) & (inits > 3)
|
| 86 |
+
entry["init_median_s"] = float(np.nanmedian(inits)); entry["never_initialized"] = float(np.mean(~np.isfinite(inits[ok])))
|
| 87 |
+
print(f"{'':16s} initialized: median {np.nanmedian(inits):.1f}s, p90 {np.nanpercentile(inits, 90):.1f}s, never {100*np.mean(~np.isfinite(inits[ok])):.1f}%; "
|
| 88 |
+
f"mean ATE if init <=3 s {np.nanmean(ate[np.isfinite(inits) & (inits <= 3)]):.3f} vs later {np.nanmean(ate[late]) if late.any() else float('nan'):.3f}")
|
| 89 |
+
entry["spearman_ratio_vs_feature"] = {k: spearman(ratio, F[k][ok]) for k in features if k != "zero"}
|
| 90 |
+
entry["spearman_ate_vs_zero"] = spearman(a, z)
|
| 91 |
+
report["guests"][guest] = entry
|
| 92 |
+
print("\nSpearman(ATE/zero-ATE, flight property): which properties make a guest relatively worse")
|
| 93 |
+
cols = [k for k in features if k != "zero"]
|
| 94 |
+
print(f"{'':16s}" + "".join(f"{c:>10s}" for c in cols) + f"{'ATE~zero':>10s}")
|
| 95 |
+
for guest, e in report["guests"].items():
|
| 96 |
+
print(f"{guest:16s}" + "".join(f"{e['spearman_ratio_vs_feature'][c]:10.2f}" for c in cols) + f"{e['spearman_ate_vs_zero']:10.2f}")
|
| 97 |
+
print("\nBy flight extent (zero-motion ATE terciles): mean ATE per guest")
|
| 98 |
+
cuts = np.percentile(zero, [33, 67]); bins = np.digitize(zero, cuts)
|
| 99 |
+
print(f"{'':16s}" + "".join(f"{'extent ' + lab:>16s}" for lab in ("low", "mid", "high")))
|
| 100 |
+
for guest, rows in guests.items():
|
| 101 |
+
ate = np.array([rows[n]["ate_full"] if n in rows else np.nan for n in names])
|
| 102 |
+
if np.isfinite(ate).sum() < 8: continue
|
| 103 |
+
print(f"{guest:16s}" + "".join(f"{np.nanmean(ate[bins == b]):16.3f}" for b in range(3)))
|
| 104 |
+
print("\nBy catalog / group: mean ATE per guest")
|
| 105 |
+
for key in ("catalog", "group"):
|
| 106 |
+
labels = sorted({flights[n][key] for n in names})
|
| 107 |
+
print(f"{key:16s}" + "".join(f"{l:>14s}" for l in labels))
|
| 108 |
+
for guest, rows in guests.items():
|
| 109 |
+
ate = np.array([rows[n]["ate_full"] if n in rows else np.nan for n in names])
|
| 110 |
+
if np.isfinite(ate).sum() < 8: continue
|
| 111 |
+
print(f"{guest:16s}" + "".join(f"{np.nanmean(ate[np.array([flights[n][key] == l for n in names])]):14.3f}" for l in labels))
|
| 112 |
+
vio = [g for g in ("openvins", "vins_mono") if g in worse]
|
| 113 |
+
learned = [g for g in ("b_d0", "n2_kfgrid", "n2_kfinputs") if g in worse]
|
| 114 |
+
if len(vio) == 2:
|
| 115 |
+
both = np.mean([(guests[vio[0]].get(n, {}).get("ate_full", 0) > 3) and (guests[vio[1]].get(n, {}).get("ate_full", 0) > 3) for n in names])
|
| 116 |
+
print(f"\nflights where both OpenVINS and VINS-Mono exceed 3 m: {100*both:.1f}%")
|
| 117 |
+
report["both_vio_over_3m"] = float(both)
|
| 118 |
+
if args.output:
|
| 119 |
+
Path(args.output).write_text(json.dumps(report, indent=1) + "\n")
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
if __name__ == "__main__":
|
| 123 |
+
main()
|
code/native_campaign.py
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Native flight campaign: a fixed, split-safe roster of simulated flights, kept raw.
|
| 2 |
+
|
| 3 |
+
python native_campaign.py roster # write configs/native_campaign.json (deterministic)
|
| 4 |
+
python native_campaign.py generate --worker 0 --workers 8 [--split train] [--limit N] (simulator env)
|
| 5 |
+
python native_campaign.py upload [--raw] # roster + audits (+ raw archives) -> private Hub repo
|
| 6 |
+
python native_campaign.py prepare --split train --worker 0 --workers 32 # raw -> training shards (training env)
|
| 7 |
+
python native_campaign.py publish --split train # shards -> data repo; records file for compose
|
| 8 |
+
python odometry_store.py compose --name <name> --base teacher-full-labeled --records data/native-campaign/train-records.json
|
| 9 |
+
|
| 10 |
+
Splits never share a scene with each other or with earlier splits:
|
| 11 |
+
train ProcTHOR-Train 0-9, 46-149, 180-199 and HSSD Train125 (training-only scenes; earlier
|
| 12 |
+
generated pools used some of them, which is train-on-train and harmless).
|
| 13 |
+
dev new flights in the existing development scenes ProcTHOR 166-171 (continuity with the
|
| 14 |
+
7-parent roster) plus 15 HSSD Val43 houses no earlier work has used (reported separately:
|
| 15 |
+
the benchmark is ProcTHOR-like, HSSD dev measures transfer to unseen house styles).
|
| 16 |
+
test reserved: new flights in the final-test scenes ProcTHOR 162-165/172-175 plus the other
|
| 17 |
+
28 HSSD Val43 houses. Generated and archived, never prepared or scored until a final
|
| 18 |
+
candidate is frozen.
|
| 19 |
+
ProcTHOR 150-161 (proxy validation, contaminated by gen-pool-v1) and 176-179 (confirmation,
|
| 20 |
+
quarantined) are not used.
|
| 21 |
+
|
| 22 |
+
Each flight varies length (30/60/90 s), autopilot (benchmark, or independent yaw for backward and
|
| 23 |
+
lateral motion), hover before the route (0.2/1/3 s) and route density (turn rate). Raw archives
|
| 24 |
+
keep 640x480 frames and 200 Hz IMU so later visual encoders can use them. Only simulator failures
|
| 25 |
+
are rejected (exceptions, non-finite truth, archive consistency, truth that does not integrate);
|
| 26 |
+
hover, stalls, darkness and low texture are flagged in the audit, never dropped.
|
| 27 |
+
"""
|
| 28 |
+
import argparse
|
| 29 |
+
import json
|
| 30 |
+
import os
|
| 31 |
+
import random
|
| 32 |
+
import shutil
|
| 33 |
+
import time
|
| 34 |
+
import traceback
|
| 35 |
+
from dataclasses import asdict
|
| 36 |
+
from pathlib import Path
|
| 37 |
+
|
| 38 |
+
import numpy as np
|
| 39 |
+
|
| 40 |
+
ROOT = Path(__file__).resolve().parent
|
| 41 |
+
ROSTER = ROOT/"configs"/"native_campaign.json"
|
| 42 |
+
RAW = Path("/data/backups/rganapa/Sebastian/gen/raw")
|
| 43 |
+
RAW_REPO = "SentientNapkin/viobench-native-campaign"
|
| 44 |
+
CAMPAIGN_SEED = 20261118
|
| 45 |
+
|
| 46 |
+
TRAIN_PROCTHOR = [*range(0, 10), *range(46, 150), *range(180, 200)]
|
| 47 |
+
DEV_PROCTHOR = list(range(166, 172))
|
| 48 |
+
TEST_PROCTHOR = [*range(162, 166), *range(172, 176)]
|
| 49 |
+
EXCLUDED_PROCTHOR = set(range(150, 162)) | set(range(176, 180)) | set(range(10, 46))
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def flight_variation(rng, split):
|
| 53 |
+
"""Per-flight simulator settings. Dev/test use the same distribution as train."""
|
| 54 |
+
return {"seconds": rng.choices([30, 60, 90], [.5, .35, .15])[0],
|
| 55 |
+
"regime": "independent-yaw" if rng.random() < .25 else "benchmark",
|
| 56 |
+
"hold_seconds": rng.choices([.2, 1., 3.], [.25, .5, .25])[0],
|
| 57 |
+
"waypoints_per_second": rng.choice([.5, .8, 1.2])}
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def build_roster(hssd_train, hssd_val, train_flights=600):
|
| 61 |
+
rng = random.Random(CAMPAIGN_SEED)
|
| 62 |
+
val = sorted(hssd_val); rng.shuffle(val)
|
| 63 |
+
dev_hssd, test_hssd = val[:15], val[15:]
|
| 64 |
+
train_scenes = [("procthor", f"ProcTHOR-Train-{i}") for i in TRAIN_PROCTHOR] + \
|
| 65 |
+
[("hssd-train", s) for s in sorted(hssd_train)]
|
| 66 |
+
flights = []
|
| 67 |
+
|
| 68 |
+
def add(split, catalog, scene):
|
| 69 |
+
index = sum(f["scene"] == scene for f in flights)
|
| 70 |
+
flights.append({"id": f"{split}-{scene}-{index:02d}", "split": split, "catalog": catalog, "scene": scene,
|
| 71 |
+
"seed": 700000 + len(flights), **flight_variation(rng, split)})
|
| 72 |
+
# Train: two thirds ProcTHOR (benchmark-like), one third HSSD; each list cycles through
|
| 73 |
+
# reshuffled passes so every scene is used before any repeats.
|
| 74 |
+
def cycle(scenes, n):
|
| 75 |
+
out = []
|
| 76 |
+
while len(out) < n: out += rng.sample(scenes, len(scenes))
|
| 77 |
+
return out[:n]
|
| 78 |
+
n_procthor = round(train_flights*2/3)
|
| 79 |
+
for catalog, scene in cycle([s for s in train_scenes if s[0] == "procthor"], n_procthor) + \
|
| 80 |
+
cycle([s for s in train_scenes if s[0] != "procthor"], train_flights-n_procthor):
|
| 81 |
+
add("train", catalog, scene)
|
| 82 |
+
for i in DEV_PROCTHOR:
|
| 83 |
+
for _ in range(5): add("dev", "procthor", f"ProcTHOR-Train-{i}")
|
| 84 |
+
for scene in dev_hssd:
|
| 85 |
+
for _ in range(2): add("dev", "hssd-val", scene)
|
| 86 |
+
for i in TEST_PROCTHOR:
|
| 87 |
+
for _ in range(4): add("test", "procthor", f"ProcTHOR-Train-{i}")
|
| 88 |
+
for scene in test_hssd:
|
| 89 |
+
for _ in range(2): add("test", "hssd-val", scene)
|
| 90 |
+
check_splits(flights)
|
| 91 |
+
return {"seed": CAMPAIGN_SEED, "flights": flights,
|
| 92 |
+
"policy": __doc__.split("Splits never")[1].split("Each flight")[0].strip()}
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def check_splits(flights):
|
| 96 |
+
scenes = {}
|
| 97 |
+
for f in flights:
|
| 98 |
+
scenes.setdefault(f["scene"], set()).add(f["split"])
|
| 99 |
+
shared = {s: v for s, v in scenes.items() if len(v) > 1}
|
| 100 |
+
if shared:
|
| 101 |
+
raise ValueError(f"scenes in more than one split: {list(shared)[:5]}")
|
| 102 |
+
for f in flights:
|
| 103 |
+
if f["catalog"] == "procthor":
|
| 104 |
+
n = int(f["scene"].rsplit("-", 1)[1])
|
| 105 |
+
allowed = {"train": TRAIN_PROCTHOR, "dev": DEV_PROCTHOR, "test": TEST_PROCTHOR}[f["split"]]
|
| 106 |
+
if n not in allowed or n in EXCLUDED_PROCTHOR:
|
| 107 |
+
raise ValueError(f"{f['id']}: ProcTHOR scene {n} not allowed in {f['split']}")
|
| 108 |
+
if f["catalog"] == "hssd-val" and f["split"] == "train":
|
| 109 |
+
raise ValueError("HSSD Val43 houses are evaluation-only")
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def truth_integration_error(flight):
|
| 113 |
+
"""RMS (m) between ground-truth positions and trapezoid-integrated ground-truth world velocity.
|
| 114 |
+
Millimetres when frames and twists agree; metres if a velocity is in the wrong frame."""
|
| 115 |
+
dt = np.diff(flight.ft)[:, None]
|
| 116 |
+
p = np.zeros_like(flight.v)
|
| 117 |
+
p[1:] = np.cumsum(.5*(flight.v[1:]+flight.v[:-1])*dt, axis=0)
|
| 118 |
+
return float(np.sqrt(np.mean(np.sum((p-(flight.p-flight.p[0]))**2, axis=1))))
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def audit(flight):
|
| 122 |
+
v, t = flight.v_body, flight.ft
|
| 123 |
+
speed = np.linalg.norm(v, axis=1)
|
| 124 |
+
travel = float(np.sum(np.linalg.norm(np.diff(flight.cam_gt, axis=0), axis=1)))
|
| 125 |
+
tail = flight.cam_gt[int(.6*len(flight.cam_gt)):]
|
| 126 |
+
sample = np.asarray(flight.frames[::20], dtype=np.float32)
|
| 127 |
+
gray = sample.mean(-1) if sample.ndim == 4 else sample
|
| 128 |
+
out = {"frames": int(len(t)), "seconds": round(float(t[-1]), 2), "travel_m": round(travel, 2),
|
| 129 |
+
"zero_motion_ate_m": round(float(np.sqrt(np.mean(np.sum(flight.cam_gt**2, axis=1)))), 3),
|
| 130 |
+
"speed_p10_p50_p90": [round(float(np.percentile(speed, q)), 3) for q in (10, 50, 90)],
|
| 131 |
+
"hover_fraction": round(float(np.mean(speed < .05)), 3),
|
| 132 |
+
"backward_fraction": round(float(np.mean(v[:, 0] < -.2)), 3),
|
| 133 |
+
"lateral_fraction": round(float(np.mean(np.abs(v[:, 1]) > .2)), 3),
|
| 134 |
+
"vertical_fraction": round(float(np.mean(np.abs(v[:, 2]) > .2)), 3),
|
| 135 |
+
"turning_fraction": round(float(np.mean(np.linalg.norm(flight.w, axis=1) > .5)), 3),
|
| 136 |
+
"dark_fraction": round(float(np.mean(gray.mean((1, 2)) < 15)), 3),
|
| 137 |
+
"flat_fraction": round(float(np.mean(gray.std((1, 2)) < 6)), 3),
|
| 138 |
+
"stalled": bool(np.max(np.linalg.norm(tail-tail[0], axis=1)) < .5),
|
| 139 |
+
"truth_integration_rms_m": round(truth_integration_error(flight), 5)}
|
| 140 |
+
out["flags"] = [name for name, bad in (("travel<2m", travel < 2), ("stalled", out["stalled"]),
|
| 141 |
+
("hover>50%", out["hover_fraction"] > .5), ("dark", out["dark_fraction"] > .2),
|
| 142 |
+
("textureless", out["flat_fraction"] > .2)) if bad]
|
| 143 |
+
return out
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
def apply_task_overrides(overrides):
|
| 147 |
+
"""Point the simulator at the stock world template, or at a copy whose TASK_SPEC shadows constants such as
|
| 148 |
+
CRUISE_SPEED_MIN/MAX, MAX_ACCELERATION, MAX_JERK (the planner's knobs; defaults 0.45-0.8 m/s, 0.7, 2.0)."""
|
| 149 |
+
import hashlib
|
| 150 |
+
import viobench.tools.datasets.generate.simulation as simulation
|
| 151 |
+
stock = Path(simulation.__file__).with_name("hyperdrone_world.h.in")
|
| 152 |
+
if not overrides:
|
| 153 |
+
simulation.TEMPLATE = stock; return
|
| 154 |
+
anchor = " static constexpr TI INITIALIZATION_HOLD_STEPS"
|
| 155 |
+
text = stock.read_text()
|
| 156 |
+
assert anchor in text
|
| 157 |
+
lines = "".join(f" static constexpr T {k} = {float(v)!r};\n" for k, v in sorted(overrides.items()))
|
| 158 |
+
text = text.replace(anchor, lines + anchor, 1)
|
| 159 |
+
path = Path(os.environ.get("TMPDIR", "/tmp"))/f"hyperdrone_world_{hashlib.sha256(text.encode()).hexdigest()[:10]}.h.in"
|
| 160 |
+
if not path.exists():
|
| 161 |
+
tmp = path.with_suffix(f".{os.getpid()}"); tmp.write_text(text); tmp.replace(path)
|
| 162 |
+
simulation.TEMPLATE = path
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
def crop_episode(e, start):
|
| 166 |
+
"""Fresh-recording crop of an in-memory episode: keep frames from the first one at or after `start` s, shift times so
|
| 167 |
+
that frame is the recording's first, keep one frame interval of IMU before it. The drone is already in motion there
|
| 168 |
+
(same construction as wasm_eval.crop)."""
|
| 169 |
+
from viobench.tools.datasets.episode import Episode
|
| 170 |
+
k = int(np.searchsorted(e.frame_times, e.frame_times[0] + start - 1e-9))
|
| 171 |
+
shift = e.frame_times[k] - e.frame_times[0]
|
| 172 |
+
t0 = e.frame_times[k] - e.frame_interval - 1e-6
|
| 173 |
+
imu = e.imu[e.imu[:, 0] > t0].copy(); imu[:, 0] -= shift
|
| 174 |
+
gt = e.ground_truth[e.ground_truth[:, 0] >= t0 - 0.02].copy(); gt[:, 0] -= shift
|
| 175 |
+
config = json.loads(json.dumps(e.config))
|
| 176 |
+
config["episode"]["num_frames"] = int(e.num_frames - k)
|
| 177 |
+
cropped = Episode(name=e.name, config=config, frame_times=e.frame_times[k:] - shift, frames=np.asarray(e.frames)[k:],
|
| 178 |
+
imu=imu, ground_truth=gt, T_body_camera=e.T_body_camera,
|
| 179 |
+
meta={k2: v for k2, v in e.meta.items() if k2 not in ("hash", "path")} | {"crop_start_s": start})
|
| 180 |
+
cropped.check_consistency()
|
| 181 |
+
return cropped
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
def generate(args):
|
| 185 |
+
from viobench.tools.datasets.generate.simulation import SimConfig, scene_references, simulate, hssd_scenes
|
| 186 |
+
from viobench.tools.datasets.storage import write_episode
|
| 187 |
+
from robust_sim import IndependentYaw
|
| 188 |
+
from common import Flight
|
| 189 |
+
from pairs import digest
|
| 190 |
+
RAW = Path(args.gen_raw)
|
| 191 |
+
roster = json.loads(Path(args.gen_roster).read_text())["flights"]
|
| 192 |
+
mine = [f for i, f in enumerate(roster) if i % args.workers == args.worker
|
| 193 |
+
and (not args.split or f["split"] in args.split) and (not args.ids or f["id"] in args.ids)][:args.limit]
|
| 194 |
+
log_path = RAW/"generated.jsonl"
|
| 195 |
+
hssd_val = None
|
| 196 |
+
for f in mine:
|
| 197 |
+
target = RAW/f["split"]/f"{f['id']}.zip"
|
| 198 |
+
if target.exists():
|
| 199 |
+
continue
|
| 200 |
+
if shutil.disk_usage(RAW).free < args.min_free_gb*2**30:
|
| 201 |
+
print("disk below threshold; stopping", flush=True); return
|
| 202 |
+
started, status, record = time.time(), "ok", None
|
| 203 |
+
try:
|
| 204 |
+
klass = IndependentYaw if f["regime"] == "independent-yaw" else SimConfig
|
| 205 |
+
apply_task_overrides(f.get("task_overrides"))
|
| 206 |
+
sim = klass(instances=1, duration_seconds=f["seconds"], hold_seconds=f["hold_seconds"],
|
| 207 |
+
waypoints=max(8, round(f["seconds"]*f["waypoints_per_second"])))
|
| 208 |
+
if f["catalog"] == "hssd-val":
|
| 209 |
+
hssd_val = hssd_val or hssd_scenes("val")
|
| 210 |
+
refs = {f["scene"]: hssd_val[f["scene"]]}
|
| 211 |
+
else:
|
| 212 |
+
refs = scene_references([f["scene"]])
|
| 213 |
+
episode, = simulate(sim, refs, 1, seed=f["seed"], name="native-campaign", log=lambda m: None)
|
| 214 |
+
episode.check_consistency()
|
| 215 |
+
if f.get("crop_start_s"):
|
| 216 |
+
episode = crop_episode(episode, f["crop_start_s"])
|
| 217 |
+
partial = RAW/"partial"; partial.mkdir(parents=True, exist_ok=True)
|
| 218 |
+
write_episode(episode, partial/target.name)
|
| 219 |
+
flight = Flight(partial/target.name)
|
| 220 |
+
report = audit(flight)
|
| 221 |
+
finite = all(np.isfinite(a).all() for a in (flight.v_body, flight.cam_gt, flight.imu))
|
| 222 |
+
if not finite: raise ValueError("non-finite truth or IMU")
|
| 223 |
+
if report["truth_integration_rms_m"] > .05: raise ValueError(f"truth does not integrate: {report['truth_integration_rms_m']} m")
|
| 224 |
+
target.parent.mkdir(parents=True, exist_ok=True)
|
| 225 |
+
record = {**f, "file": target.name, "sha256": digest(partial/target.name), "audit": report,
|
| 226 |
+
"simulator": asdict(sim), "simulator_class": klass.__name__,
|
| 227 |
+
"bytes": (partial/target.name).stat().st_size}
|
| 228 |
+
(RAW/f["split"]/f"{f['id']}.json").write_text(json.dumps(record, indent=1))
|
| 229 |
+
(partial/target.name).rename(target)
|
| 230 |
+
except Exception as error:
|
| 231 |
+
status = f"failed: {error!r}"[:300]
|
| 232 |
+
traceback.print_exc()
|
| 233 |
+
with log_path.open("a") as fh:
|
| 234 |
+
fh.write(json.dumps({"id": f["id"], "status": status, "seconds": round(time.time()-started, 1),
|
| 235 |
+
"worker": args.worker}) + "\n")
|
| 236 |
+
print(time.strftime("%H:%M"), f["id"], status, round(time.time()-started), "s",
|
| 237 |
+
(record or {}).get("audit", {}).get("flags"), flush=True)
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
def upload(args):
|
| 241 |
+
"""Roster and per-flight audits to the private campaign repo; with --raw also the archives
|
| 242 |
+
(about 130 MB per flight; reserved test archives included, archived but not used). Raw data
|
| 243 |
+
is generated on the GPU box itself, so the training path never needs the Hub copy."""
|
| 244 |
+
from huggingface_hub import HfApi
|
| 245 |
+
api = HfApi()
|
| 246 |
+
api.create_repo(RAW_REPO, repo_type="dataset", private=True, exist_ok=True)
|
| 247 |
+
if not api.repo_info(RAW_REPO, repo_type="dataset").private:
|
| 248 |
+
raise RuntimeError(f"{RAW_REPO} is public")
|
| 249 |
+
have = set(api.list_repo_files(RAW_REPO, repo_type="dataset"))
|
| 250 |
+
shutil.copy(ROSTER, RAW/"roster.json")
|
| 251 |
+
suffixes = (".zip", ".json") if args.raw else (".json",)
|
| 252 |
+
files = [p for p in sorted(RAW.glob("*/*")) if p.suffix in suffixes and p.parent.name != "partial"
|
| 253 |
+
and f"{p.parent.name}/{p.name}" not in have]
|
| 254 |
+
for b in range(0, len(files), args.batch):
|
| 255 |
+
batch = files[b:b+args.batch]
|
| 256 |
+
patterns = [f"{p.parent.name}/{p.name}" for p in batch]
|
| 257 |
+
api.upload_folder(repo_id=RAW_REPO, repo_type="dataset", folder_path=str(RAW), allow_patterns=patterns,
|
| 258 |
+
commit_message=f"native campaign: +{len(batch)} files")
|
| 259 |
+
print(time.strftime("%H:%M"), f"uploaded {b+len(batch)}/{len(files)}", flush=True)
|
| 260 |
+
api.upload_file(path_or_fileobj=str(RAW/"roster.json"), path_in_repo="roster.json", repo_id=RAW_REPO,
|
| 261 |
+
repo_type="dataset", commit_message="native campaign roster")
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
def prepare(args):
|
| 265 |
+
"""Training-format shards (the exact preprocessing of every earlier shard) for train or dev
|
| 266 |
+
flights. Workers share one content-addressed staging folder and write their own record files;
|
| 267 |
+
`publish` pushes them. The reserved test split is refused."""
|
| 268 |
+
from odometry_pool import prepare as prepare_flight
|
| 269 |
+
if "test" in (args.split or []):
|
| 270 |
+
raise ValueError("the reserved test split is never prepared before a final candidate is frozen")
|
| 271 |
+
base = json.loads((ROOT/"configs/odometry.json").read_text())
|
| 272 |
+
sensor = json.loads((ROOT/"configs/sensor.json").read_text())
|
| 273 |
+
sensor.update(width=base["model"]["width"], height=base["model"]["height"],
|
| 274 |
+
portable_pixels="remap", ordered_packet=True)
|
| 275 |
+
staging = Path(args.staging); shards = staging/"shards"; shards.mkdir(parents=True, exist_ok=True)
|
| 276 |
+
metas = sorted(p for s in args.split for p in (RAW/s).glob("*.json"))[args.worker::args.workers]
|
| 277 |
+
for meta_path in metas:
|
| 278 |
+
meta = json.loads(meta_path.read_text())
|
| 279 |
+
done = staging/"records"/f"{meta['id']}.json"
|
| 280 |
+
if done.exists() or not (RAW/meta["split"]/meta["file"]).exists(): continue
|
| 281 |
+
records, _ = prepare_flight(RAW/meta["split"]/meta["file"],
|
| 282 |
+
{"scene": meta["scene"], "domain": "native-campaign", "tier": meta["regime"],
|
| 283 |
+
"regime": meta["regime"]},
|
| 284 |
+
sensor, base["data"]["crops_s"], base["seed"], shards, gate_flights=False)
|
| 285 |
+
for r in records:
|
| 286 |
+
r.update(parent_file=meta["file"], parent_sha256=meta["sha256"], split=meta["split"], catalog=meta["catalog"],
|
| 287 |
+
flight_id=meta["id"], seconds=meta["seconds"], flags=meta["audit"]["flags"])
|
| 288 |
+
done.parent.mkdir(exist_ok=True)
|
| 289 |
+
done.write_text(json.dumps(records, indent=1))
|
| 290 |
+
print(time.strftime("%H:%M"), meta["id"], len(records), "shards", flush=True)
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
def publish(args):
|
| 294 |
+
"""Push prepared shards (large batches, to stay clear of the Hub commit rate limit) and write
|
| 295 |
+
data/native-campaign/<split>-records.json plus an immutable copy on the data repo."""
|
| 296 |
+
from huggingface_hub import HfApi
|
| 297 |
+
from odometry_store import push_shards, DATA_REPO
|
| 298 |
+
staging = Path(args.staging)
|
| 299 |
+
split, = args.split
|
| 300 |
+
records = [r for p in sorted((staging/"records").glob(f"{split}-*.json")) for r in json.loads(p.read_text())]
|
| 301 |
+
have = {f[len("shards/"):] for f in HfApi().list_repo_files(DATA_REPO, repo_type="dataset") if f.startswith("shards/")}
|
| 302 |
+
todo = sorted({r["file"] for r in records} - have)
|
| 303 |
+
for b in range(0, len(todo), args.batch):
|
| 304 |
+
push_shards(staging/"shards", todo[b:b+args.batch], DATA_REPO, f"native campaign {split}: +{len(todo[b:b+args.batch])} shards")
|
| 305 |
+
print(time.strftime("%H:%M"), f"pushed {b+len(todo[b:b+args.batch])}/{len(todo)}", flush=True)
|
| 306 |
+
listed = {f[len("shards/"):] for f in HfApi().list_repo_files(DATA_REPO, repo_type="dataset") if f.startswith("shards/")}
|
| 307 |
+
if {r["file"] for r in records} - listed: raise RuntimeError("some shards are not visible on the Hub")
|
| 308 |
+
out = staging/f"{split}-records.json"
|
| 309 |
+
out.write_text(json.dumps({"records": records, "flights": len({r["flight_id"] for r in records})}, indent=1))
|
| 310 |
+
name = f"manifests/native-campaign-{split}-records-{len(records)}.json"
|
| 311 |
+
if name not in listed:
|
| 312 |
+
HfApi().upload_file(path_or_fileobj=str(out), path_in_repo=name, repo_id=DATA_REPO, repo_type="dataset",
|
| 313 |
+
commit_message=f"native campaign {split} records ({len(records)})")
|
| 314 |
+
print("records:", out, "and", name)
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
def main():
|
| 318 |
+
parser = argparse.ArgumentParser()
|
| 319 |
+
parser.add_argument("action", choices=("roster", "generate", "upload", "prepare", "publish"))
|
| 320 |
+
parser.add_argument("--worker", type=int, default=0)
|
| 321 |
+
parser.add_argument("--workers", type=int, default=1)
|
| 322 |
+
parser.add_argument("--split", nargs="*")
|
| 323 |
+
parser.add_argument("--limit", type=int)
|
| 324 |
+
parser.add_argument("--ids", nargs="*", help="generate: only these flights (one process per flight isolates native crashes)")
|
| 325 |
+
parser.add_argument("--min-free-gb", type=float, default=200)
|
| 326 |
+
parser.add_argument("--batch", type=int, default=400)
|
| 327 |
+
parser.add_argument("--raw", action="store_true", help="upload: include the raw archives")
|
| 328 |
+
parser.add_argument("--staging", default=str(ROOT/"data"/"native-campaign"))
|
| 329 |
+
parser.add_argument("--gen-roster", default=str(ROSTER), help="generate: roster file (default: the native campaign)")
|
| 330 |
+
parser.add_argument("--gen-raw", default=str(RAW), help="generate: output directory (default: the native campaign's)")
|
| 331 |
+
args = parser.parse_args()
|
| 332 |
+
if args.action == "roster":
|
| 333 |
+
from viobench.tools.datasets.generate.simulation import hssd_scenes
|
| 334 |
+
roster = build_roster(list(hssd_scenes("train")), list(hssd_scenes("val")))
|
| 335 |
+
ROSTER.write_text(json.dumps(roster, indent=1) + "\n")
|
| 336 |
+
from collections import Counter
|
| 337 |
+
print(Counter(f["split"] for f in roster["flights"]), "flights;",
|
| 338 |
+
Counter((f["split"], f["catalog"]) for f in roster["flights"]))
|
| 339 |
+
else:
|
| 340 |
+
{"generate": generate, "upload": upload, "prepare": prepare, "publish": publish}[args.action](args)
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
if __name__ == "__main__":
|
| 344 |
+
main()
|
code/release_benchmark.py
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Package the calibrated server benchmark and upload it as a PRIVATE Hugging Face dataset.
|
| 2 |
+
|
| 3 |
+
python release_benchmark.py --calibration results/eval/server-benchmark/calibration.json \\
|
| 4 |
+
--scores /data/backups/rganapa/Sebastian/baselines/bench-pool --stage <dir> [--repo SentientNapkin/viobench-server-calibrated] [--no-upload]
|
| 5 |
+
|
| 6 |
+
The dataset contains the selected episodes unchanged (official archive format, so `viobench evaluate x.wasm <dir>` runs
|
| 7 |
+
them), a manifest with each episode's hash and truth statistics, every measured guest's per-episode result, the
|
| 8 |
+
calibration, and the code that produced them. The repository is created private and this script never makes it public.
|
| 9 |
+
"""
|
| 10 |
+
import argparse
|
| 11 |
+
import hashlib
|
| 12 |
+
import json
|
| 13 |
+
import os
|
| 14 |
+
import shutil
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
|
| 17 |
+
import numpy as np
|
| 18 |
+
|
| 19 |
+
HERE = Path(__file__).resolve().parent
|
| 20 |
+
CODE = ["server_benchmark.py", "bench_eval.py", "failure_analysis.py", "wasm_eval.py", "release_benchmark.py", "native_campaign.py"]
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def sha256(path):
|
| 24 |
+
h = hashlib.sha256()
|
| 25 |
+
with open(path, "rb") as f:
|
| 26 |
+
for block in iter(lambda: f.read(1 << 22), b""):
|
| 27 |
+
h.update(block)
|
| 28 |
+
return h.hexdigest()
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def main():
|
| 32 |
+
parser = argparse.ArgumentParser()
|
| 33 |
+
parser.add_argument("--calibration", required=True)
|
| 34 |
+
parser.add_argument("--scores", required=True, help="bench_eval.py output directory")
|
| 35 |
+
parser.add_argument("--raw", default="/data/backups/rganapa/Sebastian/gen/raw-bench")
|
| 36 |
+
parser.add_argument("--stage", required=True)
|
| 37 |
+
parser.add_argument("--repo", default="SentientNapkin/viobench-server-calibrated")
|
| 38 |
+
parser.add_argument("--no-upload", action="store_true")
|
| 39 |
+
parser.add_argument("--all", action="store_true", help="include every generated flight, not only the calibrated selection")
|
| 40 |
+
parser.add_argument("--workers", type=int, default=16)
|
| 41 |
+
args = parser.parse_args()
|
| 42 |
+
from server_benchmark import SERVER
|
| 43 |
+
calibration = json.loads(Path(args.calibration).read_text())
|
| 44 |
+
selected = calibration["selected"]
|
| 45 |
+
stage = Path(args.stage); (stage/"episodes").mkdir(parents=True, exist_ok=True); (stage/"code").mkdir(exist_ok=True)
|
| 46 |
+
manifest = []
|
| 47 |
+
everything = sorted(p.stem for p in (Path(args.raw)/"bench").glob("*.json")) if args.all else selected
|
| 48 |
+
draws = calibration.get("selection_weights", {})
|
| 49 |
+
for name in everything:
|
| 50 |
+
meta = json.loads((Path(args.raw)/"bench"/f"{name}.json").read_text()); a = meta["audit"]
|
| 51 |
+
src, dst = Path(args.raw)/"bench"/f"{name}.zip", stage/"episodes"/f"{name}.zip"
|
| 52 |
+
if not dst.exists():
|
| 53 |
+
try: os.link(src, dst)
|
| 54 |
+
except OSError: shutil.copy2(src, dst)
|
| 55 |
+
manifest.append({"in_benchmark": name in draws or not draws, "draws": draws.get(name, 0 if args.all else 1), "start_offset_s": float(meta.get("crop_start_s", 0) or 0), "planner_setting": meta.get("setting"), "id": name, "file": f"episodes/{name}.zip", "sha256": meta["sha256"], "scene": meta["scene"],
|
| 56 |
+
"catalog": meta["catalog"], "group": meta["group"], "seed": meta["seed"], "seconds": a["seconds"],
|
| 57 |
+
"frames": a["frames"], "zero_motion_ate_m": a["zero_motion_ate_m"], "travel_m": a["travel_m"],
|
| 58 |
+
"speed_p10_p50_p90": a["speed_p10_p50_p90"], "flags": a["flags"]})
|
| 59 |
+
(stage/"manifest.json").write_text(json.dumps({"episodes": manifest}, indent=1))
|
| 60 |
+
# per-guest results on the selected episodes (plus on the whole pool, for reference)
|
| 61 |
+
results = {}
|
| 62 |
+
for path in sorted(Path(args.scores).glob("*/scores.json")):
|
| 63 |
+
d = json.loads(path.read_text()); name = d["guest"]["name"]
|
| 64 |
+
rows = {r["episode"]: r for r in d["rows"] if r.get("ate_full") is not None}
|
| 65 |
+
sel = [rows[n]["ate_full"] for n in selected if n in rows]
|
| 66 |
+
wts = [calibration.get("selection_weights", {}).get(n, 1) for n in selected if n in rows]
|
| 67 |
+
if len(sel) < 5: continue
|
| 68 |
+
pool = [r["ate_full"] for r in rows.values()]
|
| 69 |
+
results[name] = {"wasm_sha256": d["guest"]["sha256"], "selected_n": len(sel), "selected_mean_ate_m": float(np.average(sel, weights=wts)),
|
| 70 |
+
"selected_median_ate_m": float(np.median(sel)), "pool_mean_ate_m": float(np.mean(pool)),
|
| 71 |
+
"peak_fuel_per_frame": max(r["peak_fuel_per_frame"] for r in rows.values()),
|
| 72 |
+
"per_episode_ate_m": {n: rows[n]["ate_full"] for n in selected if n in rows}}
|
| 73 |
+
(stage/"results.json").write_text(json.dumps({"server_scores_supplied_by_course_leaderboard": {k: v for k, v in SERVER.items() if "compact" not in k}, "guests": results,
|
| 74 |
+
"calibration": {k: v for k, v in calibration.items() if k != "selected"}}, indent=1))
|
| 75 |
+
sel_rows = [m for m in manifest if m["in_benchmark"]]
|
| 76 |
+
zero = np.average([m["zero_motion_ate_m"] for m in sel_rows], weights=[max(m["draws"], 1) for m in sel_rows])
|
| 77 |
+
lines = ["| guest | benchmark mean ATE (m) | calibrated pool mean (m) | 90% range of a 12-episode draw | course server (m) |", "| --- | ---: | ---: | --- | ---: |"]
|
| 78 |
+
lines.append(f"| identity pose (`cpp_minimal`) | {zero:.3f} | {SERVER['cpp_minimal']['mean_ate_m']:.3f} (matched by construction) | - | {SERVER['cpp_minimal']['mean_ate_m']:.3f} |")
|
| 79 |
+
for name, info in sorted(calibration["guests"].items(), key=lambda kv: kv[1]["calibrated_mean"]):
|
| 80 |
+
r = results.get(name, {})
|
| 81 |
+
server = info.get("server")
|
| 82 |
+
lines.append(f"| `{name}` | {r.get('selected_mean_ate_m', float('nan')):.3f} | {info['calibrated_mean']:.3f} | "
|
| 83 |
+
f"{info['p5_p95_of_12'][0]:.2f}-{info['p5_p95_of_12'][1]:.2f} | {'%.3f' % server if server else 'not on the server'} |")
|
| 84 |
+
groups = {}
|
| 85 |
+
for m in manifest: groups[m["group"]] = groups.get(m["group"], 0)+1
|
| 86 |
+
card = f"""---
|
| 87 |
+
pretty_name: VIOBench server-calibrated benchmark
|
| 88 |
+
license: other
|
| 89 |
+
task_categories: [robotics]
|
| 90 |
+
---
|
| 91 |
+
# VIOBench server-calibrated benchmark (private draft)
|
| 92 |
+
|
| 93 |
+
{len(manifest)} raw VIOBench episodes ({len(sel_rows)} of them form the calibrated benchmark, weighted by `draws` in `manifest.json`; the rest are the unselected pool, released for further analysis; 60 s, 1200 frames, official archive format) whose flight-extent and flight-length
|
| 94 |
+
distribution is calibrated so that what the course server reveals about its own flights is reproduced. Episodes use the
|
| 95 |
+
upstream generator's defaults (60 s, 48 waypoints, 1 s hover, FOV 120 +/- 15 deg, nominal camera, upstream IMU noise)
|
| 96 |
+
**except for the planner's speed settings**: the server's 12 flights average 59.6 m of path (39-80 m) while the public set
|
| 97 |
+
averages 18 m and the default planner cannot exceed about 48 m, so cruise speed, acceleration, jerk, yaw rate and roadmap
|
| 98 |
+
spacing are raised (see `code/server_fast_pool.json`, field `task_overrides`). No guest, ours or anyone's, chose the flights.
|
| 99 |
+
|
| 100 |
+
Run any guest: `viobench evaluate guest.wasm <dir with the episode zips>` (mean unaligned ATE is the headline), or
|
| 101 |
+
`python code/bench_eval.py --guest name=guest.wasm --episodes episodes --out out` to run every guest on all cores.
|
| 102 |
+
|
| 103 |
+
## How it was calibrated
|
| 104 |
+
The server's `cpp_minimal` baseline outputs an identity pose, so its score (4.694 m) is the mean RMS distance of the truth
|
| 105 |
+
from its start: a pure flight-extent anchor. The selection weights come from two guest-independent numbers only: that extent and the
|
| 106 |
+
server's mean path length (scene-balanced base weights tilted exponentially in each flight's own extent and path length). Everything else below is a held-out check; it is not fitted.
|
| 107 |
+
The course server has 12 episodes, so its own numbers carry sampling noise; the interval column shows how much a 12-episode
|
| 108 |
+
draw from this benchmark varies.
|
| 109 |
+
|
| 110 |
+
{chr(10).join(lines)}
|
| 111 |
+
|
| 112 |
+
## Contents
|
| 113 |
+
- `episodes/` every generated episode, unchanged generator output. About half start from the usual seated hover; the other half start mid-flight (`start_offset_s` > 0 in the manifest): the flight is generated longer and its first 3-40 s cropped away, so the drone is already moving. `manifest.json`: hashes, scenes, truth statistics.
|
| 114 |
+
- `results.json`: per-episode ATE of every measured guest, the server scores, the calibration.
|
| 115 |
+
- `code/`: generator roster, calibration, evaluation and analysis scripts.
|
| 116 |
+
|
| 117 |
+
## Limitations (read before trusting a number)
|
| 118 |
+
- Calibrated on two scalars (extent, path length) from 12 server episodes; the speed settings are our inference of how the server's faster flights were made, not its actual spec. The server's scenes and any difference in its camera or start
|
| 119 |
+
conditions are unknown; a guest that depends on those can still rank differently there.
|
| 120 |
+
- Scene groups: {groups}. `clean` scenes are in none of our models' training data; `dev` and `seen` scenes were used by our
|
| 121 |
+
models, so learned-model results on them are optimistic. Large-extent flights come mostly from big HSSD houses.
|
| 122 |
+
- VIO guests fail in a heavy tail here: OpenVINS and VINS-Mono have medians of 0.58 and 0.62 m (server means 0.553 and 0.475 m) but means of 28.5 and 5.5 m, because of rare divergences. These concentrate in ProcTHOR scenes with textureless views and in runs that initialize late. A 12-episode draw from this benchmark reproduces the server's clean VIO scores only rarely, so the server's own flights are probably friendlier to VIO than this pool. Use the medians, not the means, of VIO guests here.
|
| 123 |
+
- `dead_reckoning` scores about 7.0 m here against 9.07 m on the server, so this benchmark is somewhat easier than the server for that guest. B-D0 (4.20 m calibrated, 90% range 3.46-5.06) is inside the range of the server's 4.55 m.
|
| 124 |
+
- Half of the flights start mid-route (see `start_offset_s`); whether the server's flights do is unknown. Learned guests do slightly worse on mid-flight starts (rank correlation 0.2-0.3 of error with start offset).
|
| 125 |
+
- The speed settings that make the flights as long as the server's are our inference, not the server's spec.
|
| 126 |
+
- The server's hidden episodes were never downloaded or used; only published scores were.
|
| 127 |
+
- Reserved-test scenes of our campaign are not used.
|
| 128 |
+
"""
|
| 129 |
+
(stage/"README.md").write_text(card)
|
| 130 |
+
for name in CODE:
|
| 131 |
+
if (HERE/name).exists(): shutil.copy2(HERE/name, stage/"code"/name)
|
| 132 |
+
for cfg in ("server_fast_pool.json", "server_benchmark_pool.json"):
|
| 133 |
+
if (HERE/"configs"/cfg).exists(): shutil.copy2(HERE/"configs"/cfg, stage/"code"/cfg)
|
| 134 |
+
shipped = stage/"code"/"server_benchmark.py"
|
| 135 |
+
shipped.write_text("".join(l for l in shipped.read_text().splitlines(True) if "compact" not in l))
|
| 136 |
+
(stage/"code"/"server_observed.json").unlink(missing_ok=True)
|
| 137 |
+
print(f"staged {len(manifest)} episodes in {stage}")
|
| 138 |
+
if args.no_upload:
|
| 139 |
+
return
|
| 140 |
+
from huggingface_hub import HfApi
|
| 141 |
+
api = HfApi()
|
| 142 |
+
api.create_repo(args.repo, repo_type="dataset", private=True, exist_ok=True)
|
| 143 |
+
if args.all: # hundreds of GB: resumable, parallel upload (rerun the command to continue after any failure)
|
| 144 |
+
api.upload_large_folder(folder_path=str(stage), repo_id=args.repo, repo_type="dataset", num_workers=args.workers)
|
| 145 |
+
else:
|
| 146 |
+
api.upload_folder(folder_path=str(stage), repo_id=args.repo, repo_type="dataset", commit_message="Update server-calibrated benchmark")
|
| 147 |
+
print("uploaded (private):", args.repo)
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
if __name__ == "__main__":
|
| 151 |
+
main()
|
code/server_benchmark.py
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Server-calibrated benchmark: candidate pool, calibration and release.
|
| 2 |
+
|
| 3 |
+
The benchmark is raw VIOBench episodes (official archive format), generated with the upstream generator's
|
| 4 |
+
*default* spec (60 s, 48 waypoints, 1 s hover, FOV 120 +/- 15 deg, nominal camera, upstream IMU noise): exactly
|
| 5 |
+
what the public set is. No model, ours or anyone's, is used to choose flights. The selection step uses only
|
| 6 |
+
trajectory/IMU statistics that implementation-independent baselines reveal (see CALIBRATION in this file).
|
| 7 |
+
|
| 8 |
+
python server_benchmark.py roster # write configs/server_benchmark_pool.json
|
| 9 |
+
python native_campaign.py generate --gen-roster configs/server_benchmark_pool.json \\
|
| 10 |
+
--gen-raw /data/backups/rganapa/Sebastian/gen/raw-bench --worker W --workers N (simulator env)
|
| 11 |
+
|
| 12 |
+
Scene groups (flag `group`), so learned models can be scored on scenes they never trained on:
|
| 13 |
+
clean ProcTHOR 150-161 and 176-179: in no training, development or reserved-test split of the native campaign
|
| 14 |
+
(150-161 only appeared in the old proxy-validation pool).
|
| 15 |
+
dev ProcTHOR 166-171 and the 15 HSSD Val43 development houses: fresh flights, but models were tuned on
|
| 16 |
+
other flights in these scenes.
|
| 17 |
+
seen a sample of campaign training scenes: fresh flights, scenes seen in training.
|
| 18 |
+
The 84 reserved campaign-test flights and their scenes (ProcTHOR 162-165/172-175, 28 HSSD Val43 houses) are not used.
|
| 19 |
+
"""
|
| 20 |
+
import argparse
|
| 21 |
+
import json
|
| 22 |
+
import random
|
| 23 |
+
from pathlib import Path
|
| 24 |
+
|
| 25 |
+
ROOT = Path(__file__).resolve().parent
|
| 26 |
+
POOL = ROOT/"configs"/"server_benchmark_pool.json"
|
| 27 |
+
CAMPAIGN = ROOT/"configs"/"native_campaign.json"
|
| 28 |
+
SEED = 20261119
|
| 29 |
+
OBSERVED_TRAVEL_MEAN = 59.6 # mean path length of the server's 12 episodes (configs/server_observed.json)
|
| 30 |
+
FIRST_FLIGHT_SEED = 800000 # the native campaign used 700000-700747
|
| 31 |
+
CRASHING_PROCTHOR = {121, 124} # the simulator aborts in these scenes
|
| 32 |
+
CRASHING_HSSD = {"103997940_171031257"}
|
| 33 |
+
|
| 34 |
+
# Anchors from the course server's current set (`private_stage2`, 12 episodes of 1200 frames), mean unaligned ATE.
|
| 35 |
+
# Supplied by the user from the server's leaderboard; the episode archives themselves are hidden and are not used.
|
| 36 |
+
SERVER = {
|
| 37 |
+
"cpp_minimal": {"mean_ate_m": 4.694450928701121, "max_fuel": 113, "note": "identity pose: ATE is the RMS distance of the truth from its start"},
|
| 38 |
+
"dead_reckoning": {"mean_ate_m": 9.065463414163448, "max_fuel": 5148278},
|
| 39 |
+
"tiny_cnn": {"mean_ate_m": 5.824925111846599, "max_fuel": 14684708, "note": "trained by the instructors; weights not available locally"},
|
| 40 |
+
"openvins": {"mean_ate_m": 0.5532605176928356, "max_fuel": 3955863154},
|
| 41 |
+
"vins_mono": {"mean_ate_m": 0.47537535896686567, "max_fuel": 3400397390},
|
| 42 |
+
"submitted_b_d0_seed217": {"mean_ate_m": 4.55, "max_fuel": 1100000000},
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def build_pool(per_scene=None):
|
| 47 |
+
campaign = json.loads(CAMPAIGN.read_text())["flights"]
|
| 48 |
+
hssd_dev = sorted({f["scene"] for f in campaign if f["split"] == "dev" and f["catalog"] == "hssd-val"})
|
| 49 |
+
hssd_train = sorted({f["scene"] for f in campaign if f["split"] == "train" and f["catalog"] == "hssd-train"} - CRASHING_HSSD)
|
| 50 |
+
procthor_train = sorted({int(f["scene"].rsplit("-", 1)[1]) for f in campaign
|
| 51 |
+
if f["split"] == "train" and f["catalog"] == "procthor"} - CRASHING_PROCTHOR)
|
| 52 |
+
rng = random.Random(SEED)
|
| 53 |
+
plan = [("clean", "procthor", [f"ProcTHOR-Train-{i}" for i in [*range(150, 162), *range(176, 180)]], 12),
|
| 54 |
+
("dev", "procthor", [f"ProcTHOR-Train-{i}" for i in range(166, 172)], 6),
|
| 55 |
+
("dev", "hssd-val", hssd_dev, 3),
|
| 56 |
+
("seen", "procthor", [f"ProcTHOR-Train-{i}" for i in rng.sample(procthor_train, 36)], 3),
|
| 57 |
+
("seen", "hssd-train", rng.sample(hssd_train, 30), 2)]
|
| 58 |
+
flights = []
|
| 59 |
+
for group, catalog, scenes, count in plan:
|
| 60 |
+
for scene in scenes:
|
| 61 |
+
for index in range(count):
|
| 62 |
+
flights.append({"id": f"bench-{scene}-{index:02d}", "split": "bench", "group": group, "catalog": catalog,
|
| 63 |
+
"scene": scene, "seed": FIRST_FLIGHT_SEED + len(flights), "seconds": 60,
|
| 64 |
+
"regime": "benchmark", "hold_seconds": 1.0, "waypoints_per_second": 0.8})
|
| 65 |
+
rng.shuffle(flights) # workers take every N-th flight: spread scenes and groups across workers
|
| 66 |
+
return {"seed": SEED, "spec": "upstream default: 60 s, 48 waypoints, 1 s hover, FOV 120+-15, nominal camera",
|
| 67 |
+
"flights": flights}
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def build_round2(raw, threshold=3.5, per_scene=8, first_seed=801000):
|
| 71 |
+
"""Second candidate round: more flights in scenes whose first-round mean extent (zero-motion ATE) is at least
|
| 72 |
+
`threshold`. Uses only truth statistics; no guest result is involved."""
|
| 73 |
+
import collections
|
| 74 |
+
flights = load_pool(raw)
|
| 75 |
+
zero = collections.defaultdict(list)
|
| 76 |
+
meta = {}
|
| 77 |
+
for f in flights:
|
| 78 |
+
zero[f["scene"]].append(f["zero"]); meta[f["scene"]] = f
|
| 79 |
+
out = []
|
| 80 |
+
for scene in sorted(zero):
|
| 81 |
+
if sum(zero[scene])/len(zero[scene]) < threshold:
|
| 82 |
+
continue
|
| 83 |
+
for index in range(len(zero[scene]), len(zero[scene])+per_scene):
|
| 84 |
+
out.append({"id": f"bench-{scene}-{index:02d}", "split": "bench", "group": meta[scene]["group"],
|
| 85 |
+
"catalog": meta[scene]["catalog"], "scene": scene, "seed": first_seed+len(out), "seconds": 60,
|
| 86 |
+
"regime": "benchmark", "hold_seconds": 1.0, "waypoints_per_second": 0.8})
|
| 87 |
+
random.Random(SEED+1).shuffle(out)
|
| 88 |
+
return {"seed": SEED+1, "spec": "round 2: upstream default spec in scenes with round-1 mean extent >= %.1f m" % threshold, "flights": out}
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def load_pool(raw):
|
| 92 |
+
"""Per-flight metadata and truth statistics from the generator's audit files."""
|
| 93 |
+
import glob
|
| 94 |
+
flights = []
|
| 95 |
+
for path in sorted(glob.glob(f"{raw}/bench/*.json")):
|
| 96 |
+
d = json.loads(Path(path).read_text())
|
| 97 |
+
flights.append({"id": d["id"], "group": d["group"], "catalog": d["catalog"], "scene": d["scene"],
|
| 98 |
+
"zero": d["audit"]["zero_motion_ate_m"], "travel": d["audit"]["travel_m"],
|
| 99 |
+
"speed_p50": d["audit"]["speed_p10_p50_p90"][1], "flags": d["audit"]["flags"]})
|
| 100 |
+
return flights
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def tilt(values, base, target):
|
| 104 |
+
"""Weights base*exp(lam*value) whose weighted mean of `values` equals `target` (bisection on lam)."""
|
| 105 |
+
import numpy as np
|
| 106 |
+
values, base = np.asarray(values, float), np.asarray(base, float)
|
| 107 |
+
lo, hi = -6.0, 6.0
|
| 108 |
+
for _ in range(80):
|
| 109 |
+
lam = (lo+hi)/2
|
| 110 |
+
w = base*np.exp(lam*(values-values.mean()))
|
| 111 |
+
mean = float((w*values).sum()/w.sum())
|
| 112 |
+
lo, hi = (lam, hi) if mean < target else (lo, lam)
|
| 113 |
+
return w/w.sum(), lam
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
def tilt2(features, base, targets, iterations=200):
|
| 117 |
+
"""Weights base*exp(features @ lam) whose weighted feature means equal `targets` (Newton on the convex dual).
|
| 118 |
+
Returns (weights, lam, achieved_means); if the targets are outside the pool's reach the means are the nearest found."""
|
| 119 |
+
import numpy as np
|
| 120 |
+
X = np.asarray(features, float); base = np.asarray(base, float); t = np.asarray(targets, float)
|
| 121 |
+
mu, sd = X.mean(0), X.std(0)+1e-9
|
| 122 |
+
Z = (X-mu)/sd; tz = (t-mu)/sd
|
| 123 |
+
lam = np.zeros(Z.shape[1])
|
| 124 |
+
for _ in range(iterations):
|
| 125 |
+
w = base*np.exp(Z@lam); w /= w.sum()
|
| 126 |
+
m = w@Z; cov = (Z*w[:, None]).T@Z-np.outer(m, m)
|
| 127 |
+
step = np.linalg.solve(cov+1e-9*np.eye(len(lam)), m-tz)
|
| 128 |
+
lam = lam-np.clip(step, -1, 1)
|
| 129 |
+
if np.abs(m-tz).max() < 1e-6: break
|
| 130 |
+
w = base*np.exp(Z@lam); w /= w.sum()
|
| 131 |
+
return w, lam, w@X
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
def calibrate(args):
|
| 135 |
+
"""Choose flight weights from the extent anchor alone; every other guest is a held-out check.
|
| 136 |
+
|
| 137 |
+
The anchor: cpp_minimal outputs an identity pose, so its server score is the mean RMS distance of the truth from its
|
| 138 |
+
start over the server's flights. Weights are the pool's scene-balanced base weights tilted exponentially in each
|
| 139 |
+
flight's own zero-motion ATE until the weighted mean equals the server value. No guest result enters the weights.
|
| 140 |
+
"""
|
| 141 |
+
import numpy as np
|
| 142 |
+
flights = load_pool(args.raw)
|
| 143 |
+
matrix = json.loads(Path(args.matrix).read_text())["ate_full"] if args.matrix else {}
|
| 144 |
+
selection_file = json.loads(Path(args.selection).read_text()) if getattr(args, "selection", None) else None
|
| 145 |
+
selection = selection_file["selected"] if selection_file else None
|
| 146 |
+
if selection is not None: # flights drawn with the calibrated weights: each carries its draw count as weight
|
| 147 |
+
keep = set(selection); flights = [f for f in flights if f["id"] in keep]
|
| 148 |
+
draws = selection_file["selection_weights"]
|
| 149 |
+
n = len(flights)
|
| 150 |
+
scene_count = {}
|
| 151 |
+
for f in flights:
|
| 152 |
+
scene_count[f["scene"]] = scene_count.get(f["scene"], 0)+1
|
| 153 |
+
base = np.array([1.0/scene_count[f["scene"]] for f in flights])
|
| 154 |
+
zero = np.array([f["zero"] for f in flights])
|
| 155 |
+
target = SERVER["cpp_minimal"]["mean_ate_m"]
|
| 156 |
+
travel = np.array([f["travel"] for f in flights])
|
| 157 |
+
if getattr(args, "path_anchor", True) and travel.mean() > 30: # second anchor: the server's mean path length (59.6 m)
|
| 158 |
+
weights, lam, got = tilt2(np.column_stack([zero, travel]), base, [target, OBSERVED_TRAVEL_MEAN])
|
| 159 |
+
lam = list(map(float, lam)); anchors = f"extent {got[0]:.3f} (server {target:.3f}), path {got[1]:.1f} m (server {OBSERVED_TRAVEL_MEAN:.1f})"
|
| 160 |
+
else:
|
| 161 |
+
weights, lam = tilt(zero, base, target); anchors = f"extent {np.average(zero, weights=weights):.3f} (server {target:.3f}), path {np.average(travel, weights=weights):.1f} m (server {OBSERVED_TRAVEL_MEAN:.1f}, not matched)"
|
| 162 |
+
if selection is not None:
|
| 163 |
+
SELECT_TOTAL = int(sum(draws.values()))
|
| 164 |
+
weights = np.array([draws[f["id"]] for f in flights], float); weights /= weights.sum(); lam = None
|
| 165 |
+
zero_w, travel_w = float(weights@zero), float(weights@travel)
|
| 166 |
+
anchors = f"{SELECT_TOTAL} draws -> {n} distinct flights; weighted extent {zero_w:.3f} (server {target:.3f}), path {travel_w:.1f} m (server {OBSERVED_TRAVEL_MEAN:.1f})"
|
| 167 |
+
ess = 1.0/float((weights**2).sum())
|
| 168 |
+
print(f"{n} flights; pool zero-ATE mean {zero.mean():.3f} path {travel.mean():.1f} m (scene-balanced {np.average(zero, weights=base):.3f}); "
|
| 169 |
+
f"tilted to {anchors}; effective sample {ess:.0f}")
|
| 170 |
+
rng = np.random.default_rng(SEED)
|
| 171 |
+
report = {"lambda": lam, "effective_sample": ess, "anchors": anchors, "guests": {}}
|
| 172 |
+
guests = sorted({g for row in matrix.values() for g in row})
|
| 173 |
+
names = [f["id"] for f in flights]
|
| 174 |
+
for guest in guests:
|
| 175 |
+
ate = np.array([matrix.get(i, {}).get(guest) if matrix.get(i, {}).get(guest) is not None else np.nan for i in names])
|
| 176 |
+
ok = ~np.isnan(ate)
|
| 177 |
+
if ok.sum() < 5:
|
| 178 |
+
continue
|
| 179 |
+
w = weights[ok]/weights[ok].sum()
|
| 180 |
+
weighted = float((w*ate[ok]).sum())
|
| 181 |
+
draws = [float(np.mean(rng.choice(ate[ok], 12, p=w))) for _ in range(4000)] # what a 12-episode server set would show
|
| 182 |
+
lo, hi = np.percentile(draws, [5, 95])
|
| 183 |
+
server = {"b_d0": SERVER["submitted_b_d0_seed217"]["mean_ate_m"]}.get(guest, SERVER.get(guest, {}).get("mean_ate_m"))
|
| 184 |
+
inside = None if server is None else bool(lo <= server <= hi)
|
| 185 |
+
report["guests"][guest] = {"pool_mean": float(ate[ok].mean()), "calibrated_mean": weighted, "p5_p95_of_12": [float(lo), float(hi)],
|
| 186 |
+
"server": server, "server_inside_12_episode_interval": inside, "n": int(ok.sum())}
|
| 187 |
+
print(f" {guest:16s} pool {ate[ok].mean():7.3f} calibrated {weighted:7.3f} 12-episode 90% [{lo:6.2f}, {hi:6.2f}] "
|
| 188 |
+
f"server {server if server is not None else '-'} {'' if inside is None else ('INSIDE' if inside else 'outside')}")
|
| 189 |
+
if selection is not None:
|
| 190 |
+
report["selected"] = sorted(keep)
|
| 191 |
+
if args.select:
|
| 192 |
+
chosen = rng.choice(n, args.select, replace=True, p=weights) # with replacement: unbiased for the calibrated weights
|
| 193 |
+
ids, counts = np.unique(chosen, return_counts=True)
|
| 194 |
+
report["selected"] = sorted(names[i] for i in ids)
|
| 195 |
+
report["selection_weights"] = {names[i]: int(c) for i, c in zip(ids, counts)}
|
| 196 |
+
print(f"{args.select} draws -> {len(ids)} distinct flights; weighted zero-ATE mean {np.average(zero[ids], weights=counts):.3f}, "
|
| 197 |
+
f"path {np.average(travel[ids], weights=counts):.1f} m")
|
| 198 |
+
for guest in guests:
|
| 199 |
+
ate = np.array([matrix.get(names[i], {}).get(guest, np.nan) or np.nan for i in chosen])
|
| 200 |
+
if np.isfinite(ate).sum() > 5:
|
| 201 |
+
print(f" {guest:16s} selected-set mean {np.nanmean(ate):7.3f}")
|
| 202 |
+
Path(args.output).write_text(json.dumps(report, indent=1) + "\n")
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def main():
|
| 206 |
+
parser = argparse.ArgumentParser()
|
| 207 |
+
parser.add_argument("action", choices=("roster", "roster2", "calibrate"))
|
| 208 |
+
parser.add_argument("--raw", default="/data/backups/rganapa/Sebastian/gen/raw-bench")
|
| 209 |
+
parser.add_argument("--matrix", help="calibrate: matrix.json from bench_eval.py")
|
| 210 |
+
parser.add_argument("--selection", help="calibrate: calibration JSON whose `selected` flights are scored with equal weight (no re-tilting)")
|
| 211 |
+
parser.add_argument("--select", type=int, help="calibrate: also draw this many flights with the calibrated weights")
|
| 212 |
+
parser.add_argument("--output", default=str(ROOT/"results"/"eval"/"server-benchmark"/"calibration.json"))
|
| 213 |
+
args = parser.parse_args()
|
| 214 |
+
if args.action == "calibrate":
|
| 215 |
+
Path(args.output).parent.mkdir(parents=True, exist_ok=True)
|
| 216 |
+
calibrate(args); return
|
| 217 |
+
if args.action == "roster2":
|
| 218 |
+
pool = build_round2(args.raw)
|
| 219 |
+
path = POOL.with_name("server_benchmark_pool_r2.json"); path.write_text(json.dumps(pool, indent=1) + "\n")
|
| 220 |
+
from collections import Counter
|
| 221 |
+
print(len(pool["flights"]), "flights in", len({f["scene"] for f in pool["flights"]}), "scenes;", dict(Counter(f["group"] for f in pool["flights"]))); return
|
| 222 |
+
pool = build_pool()
|
| 223 |
+
POOL.write_text(json.dumps(pool, indent=1) + "\n")
|
| 224 |
+
from collections import Counter
|
| 225 |
+
print(len(pool["flights"]), "flights;", dict(Counter((f["group"], f["catalog"]) for f in pool["flights"])))
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
if __name__ == "__main__":
|
| 229 |
+
main()
|
code/server_benchmark_pool.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
code/server_fast_pool.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
code/wasm_eval.py
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Evaluate any VIOBench Wasm guest with a pinned upstream evaluator on public or campaign-dev archives.
|
| 2 |
+
|
| 3 |
+
python wasm_eval.py crop --archives <zip>... --start 5 --out <dir> # fresh-recording crops
|
| 4 |
+
python wasm_eval.py run --wasm x.wasm --archives <zip>... --out <dir> [--workers 48]
|
| 5 |
+
python wasm_eval.py score --runs <dir> [--catalog-from <records.json>] # tables
|
| 6 |
+
|
| 7 |
+
Every guest is run by `python -m viobench evaluate` from the pinned checkout (VIOBENCH_SRC), one process per episode,
|
| 8 |
+
so all compared guests share the evaluator, scoring and missing-frame rule (unusable estimates count as the origin
|
| 9 |
+
with identity rotation, i.e. the harness's own fill). Scoring re-applies the harness's `evaluate_trajectory` to the
|
| 10 |
+
saved estimate.tum for 30 s / 60 s prefixes; the guests are causal, so a prefix of the full run equals a shorter run.
|
| 11 |
+
Mean unaligned (raw) ATE is the decision metric. Fuel is the per-step maximum over all attempted frames.
|
| 12 |
+
|
| 13 |
+
Run this file with the pinned viobench venv (see research/baselines/openvins-9b1b079.md), not the training venv.
|
| 14 |
+
"""
|
| 15 |
+
import argparse
|
| 16 |
+
import hashlib
|
| 17 |
+
import json
|
| 18 |
+
import os
|
| 19 |
+
import re
|
| 20 |
+
import subprocess
|
| 21 |
+
import sys
|
| 22 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 23 |
+
from pathlib import Path
|
| 24 |
+
|
| 25 |
+
import numpy as np
|
| 26 |
+
|
| 27 |
+
SRC = Path(os.environ.get("VIOBENCH_SRC", "/dev/shm/sebastian-vio/viobench"))
|
| 28 |
+
sys.path.insert(0, str(SRC))
|
| 29 |
+
from viobench.tools.datasets.storage import read_episode, write_episode # noqa: E402
|
| 30 |
+
from viobench.tools.datasets.episode import Episode # noqa: E402
|
| 31 |
+
from viobench.tools.runner.metrics import evaluate_trajectory # noqa: E402
|
| 32 |
+
from viobench.tools.runner.score import load_estimates # noqa: E402
|
| 33 |
+
|
| 34 |
+
INIT = re.compile(r"initialized at t=([0-9.]+)")
|
| 35 |
+
FULL = re.compile(r"full VIO at ([0-9.]+)")
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def sha256(path):
|
| 39 |
+
h = hashlib.sha256()
|
| 40 |
+
with open(path, "rb") as f:
|
| 41 |
+
for block in iter(lambda: f.read(1 << 20), b""):
|
| 42 |
+
h.update(block)
|
| 43 |
+
return h.hexdigest()
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def crop(archive, start, out):
|
| 47 |
+
"""A fresh-recording crop: frames from the first frame at or after `start` s; times shifted so that frame sits
|
| 48 |
+
where a recording's first frame does; IMU keeps one frame interval before it (what the harness delivers to a
|
| 49 |
+
first frame); ground truth keeps a margin for the twist's central difference."""
|
| 50 |
+
e = read_episode(archive, frames="memory")
|
| 51 |
+
k = int(np.searchsorted(e.frame_times, e.frame_times[0] + start - 1e-9))
|
| 52 |
+
shift = e.frame_times[k] - e.frame_times[0]
|
| 53 |
+
t0 = e.frame_times[k] - e.frame_interval - 1e-6
|
| 54 |
+
imu = e.imu[e.imu[:, 0] > t0].copy(); imu[:, 0] -= shift
|
| 55 |
+
gt = e.ground_truth[e.ground_truth[:, 0] >= t0 - 0.02].copy(); gt[:, 0] -= shift
|
| 56 |
+
config = json.loads(json.dumps(e.config))
|
| 57 |
+
config["episode"]["num_frames"] = int(e.num_frames - k)
|
| 58 |
+
config["episode"]["name"] = f"{config['episode']['name']}-crop{start:g}"
|
| 59 |
+
cropped = Episode(name=config["episode"]["name"], config=config, frame_times=e.frame_times[k:] - shift,
|
| 60 |
+
frames=np.asarray(e.frames)[k:], imu=imu, ground_truth=gt, T_body_camera=e.T_body_camera,
|
| 61 |
+
meta={k2: v for k2, v in e.meta.items() if k2 not in ("hash", "path")} | {"crop_start_s": start})
|
| 62 |
+
cropped.check_consistency()
|
| 63 |
+
target = Path(out) / f"{Path(archive).stem}-crop{start:g}.zip"
|
| 64 |
+
write_episode(cropped, target)
|
| 65 |
+
return target
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def run_one(wasm, archive, out):
|
| 69 |
+
work = Path(out) / Path(archive).stem
|
| 70 |
+
report = work / "report" / "report.json"
|
| 71 |
+
if report.exists():
|
| 72 |
+
return report
|
| 73 |
+
work.mkdir(parents=True, exist_ok=True)
|
| 74 |
+
env = {"PATH": os.environ["PATH"], "HOME": os.environ.get("HOME", "/tmp"), "PYTHONPATH": str(SRC),
|
| 75 |
+
"XDG_CACHE_HOME": str(work / "cache"), "TMPDIR": os.environ.get("TMPDIR", "/tmp")}
|
| 76 |
+
with (work / "evaluate.log").open("w") as log:
|
| 77 |
+
subprocess.run([sys.executable, "-B", "-m", "viobench", "evaluate", str(wasm), str(archive), "-o",
|
| 78 |
+
str(work / "report")], cwd=work, env=env, stdout=log, stderr=subprocess.STDOUT, check=False)
|
| 79 |
+
return report
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
def score_one(archive, work):
|
| 83 |
+
report_path = Path(work) / "report" / "report.json"
|
| 84 |
+
if not report_path.exists():
|
| 85 |
+
return {"episode": Path(archive).stem, "error": "no report"}
|
| 86 |
+
report = json.loads(report_path.read_text())
|
| 87 |
+
ep = report["episodes"][0]
|
| 88 |
+
e = read_episode(archive, frames="none")
|
| 89 |
+
row = {"episode": Path(archive).stem, "frames": ep["frames"], "frames_attempted": ep["frames_attempted"],
|
| 90 |
+
"completed": ep["completed"], "failure": ep["failure"], "peak_fuel_per_frame": ep["fuel_per_frame_max"],
|
| 91 |
+
"median_fuel_per_frame": ep["fuel_per_frame_median"], "p95_fuel_per_frame": ep["fuel_per_frame_p95"],
|
| 92 |
+
"scene": e.meta.get("scene"), "duration_s": ep["duration_s"]}
|
| 93 |
+
logs = list((Path(work) / "report" / "logs").glob("*/estimate.tum"))
|
| 94 |
+
if logs and ep["frames_attempted"]:
|
| 95 |
+
estimates = load_estimates(logs[0], e.frame_times)
|
| 96 |
+
truth = e.ground_truth_state()
|
| 97 |
+
for label, seconds in (("30s", 30), ("60s", 60), ("full", None)):
|
| 98 |
+
n = e.num_frames if seconds is None else int(np.sum(e.frame_times - e.frame_times[0] < seconds - 1e-6))
|
| 99 |
+
if seconds is not None and e.duration < seconds - 0.1:
|
| 100 |
+
continue
|
| 101 |
+
m = evaluate_trajectory(truth[:n], estimates[:n], e.frame_times[:n])
|
| 102 |
+
row[f"ate_{label}"] = m.ate_rmse if hasattr(m, "ate_rmse") else m["ate_rmse"]
|
| 103 |
+
row[f"filled_{label}"] = getattr(m, "filled_frames", None) if not isinstance(m, dict) else m.get("filled_frames")
|
| 104 |
+
stdout = logs[0].parent / "stdout.txt"
|
| 105 |
+
text = stdout.read_text() if stdout.exists() else ""
|
| 106 |
+
found, full = INIT.search(text), FULL.search(text)
|
| 107 |
+
row["initialized_at_s"] = float(found.group(1)) if found else None
|
| 108 |
+
row["full_vio_at_s"] = float(full.group(1)) if full else None
|
| 109 |
+
row["ate_reported_full"] = ep["metrics"]["ate_rmse"] if ep.get("metrics") else None
|
| 110 |
+
return row
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
def main():
|
| 114 |
+
parser = argparse.ArgumentParser()
|
| 115 |
+
parser.add_argument("action", choices=("crop", "run", "score"))
|
| 116 |
+
parser.add_argument("--archives", nargs="*", default=[])
|
| 117 |
+
parser.add_argument("--wasm")
|
| 118 |
+
parser.add_argument("--start", type=float, default=5.0)
|
| 119 |
+
parser.add_argument("--out", required=True)
|
| 120 |
+
parser.add_argument("--workers", type=int, default=32)
|
| 121 |
+
args = parser.parse_args()
|
| 122 |
+
out = Path(args.out); out.mkdir(parents=True, exist_ok=True)
|
| 123 |
+
if args.action == "crop":
|
| 124 |
+
with ThreadPoolExecutor(args.workers) as pool:
|
| 125 |
+
for t in pool.map(lambda a: crop(a, args.start, out), args.archives):
|
| 126 |
+
print(t, flush=True)
|
| 127 |
+
elif args.action == "run":
|
| 128 |
+
(out / "guest.json").write_text(json.dumps({"wasm": str(args.wasm), "sha256": sha256(args.wasm),
|
| 129 |
+
"evaluator_src": str(SRC), "archives": args.archives}, indent=1))
|
| 130 |
+
with ThreadPoolExecutor(args.workers) as pool:
|
| 131 |
+
for r in pool.map(lambda a: run_one(args.wasm, a, out), args.archives):
|
| 132 |
+
print(r, "ok" if r.exists() else "MISSING", flush=True)
|
| 133 |
+
else:
|
| 134 |
+
guest = json.loads((out / "guest.json").read_text())
|
| 135 |
+
rows = [score_one(a, out / Path(a).stem) for a in guest["archives"]]
|
| 136 |
+
(out / "scores.json").write_text(json.dumps({"guest": guest, "rows": rows}, indent=1))
|
| 137 |
+
ok = [r for r in rows if "ate_full" in r]
|
| 138 |
+
print(f"{len(ok)}/{len(rows)} scored; mean full ATE {np.mean([r['ate_full'] for r in ok]):.3f} m; "
|
| 139 |
+
f"peak fuel {max(r['peak_fuel_per_frame'] for r in ok):,}")
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
if __name__ == "__main__":
|
| 143 |
+
main()
|
episodes/fast-102344193-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c6bdbd8bd3cee23d3116f6d1233ba849acae143b1df7d9809e246aa25f2cd2c
|
| 3 |
+
size 295972197
|
episodes/fast-102344457-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec5e2470cead68a18c6ce05e0921db09d900aad0aa5414144fab8d13e70b2c8e
|
| 3 |
+
size 326507237
|
episodes/fast-102344469-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebd31108ca2b785e3f40831ecbdcaca7653c599989526ef5425182239cd26f01
|
| 3 |
+
size 334316238
|
episodes/fast-103997445_171030492-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e02662eb57143ef08526e81488141361ce283a050538956e617787510f8bba6e
|
| 3 |
+
size 189944183
|
episodes/fast-103997460_171030507-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:566e61469158301859dad91c5feff1dd3cbaf28136b4285615cd6db8f37edd67
|
| 3 |
+
size 357229928
|
episodes/fast-103997460_171030507-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1223d7f55c0773f059fc272bf64037cf6fdd116b2f6444e4d1d987bd8553a2c1
|
| 3 |
+
size 362309116
|
episodes/fast-103997478_171030525-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b138b0580059ce6743f9ba3b0bb4f64c130f7ea8e0f0fb9fc6707ffc63bd3a43
|
| 3 |
+
size 301600076
|
episodes/fast-103997478_171030525-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b832eb132ab4f226c6ee92fd86077aed7d6607feafb8a930e8f4c06b21b34eab
|
| 3 |
+
size 299277609
|
episodes/fast-103997586_171030666-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:148ac70542713453983575c404c365225d07b85658264cc56b88f6e2983df6d4
|
| 3 |
+
size 279572880
|
episodes/fast-103997643_171030747-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05ad6395770647e043d1fee4959c42dacde937edc594cf78a853b31212e28647
|
| 3 |
+
size 210204496
|
episodes/fast-104348202_171513150-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5a1d42570475c8408830b0f41988ef8541fa36212b643e3f2896a4b3c58b76f
|
| 3 |
+
size 484294304
|
episodes/fast-104348361_171513414-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd787e325fc2c31f938b870bf4955d18e456ebd001dd6391b4f15341ad97fe02
|
| 3 |
+
size 257679908
|
episodes/fast-104862573_172226682-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d3f19b978477fb5a05d06a5fb6b2c1bfffc53dbd12b748443760ffd8f991c97
|
| 3 |
+
size 375549980
|
episodes/fast-104862639_172226823-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f2951bb5275fd8f574cc7f2e9d14b1f2dd44c15b8e9181ecd52fb3c1aaf1ba9
|
| 3 |
+
size 357875584
|
episodes/fast-104862639_172226823-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b73a3c4ba7ecea02b77b856301a755c674d052ea8ff34fd2eaaf20cd22300a3b
|
| 3 |
+
size 382443937
|
episodes/fast-105515184_173104128-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a8de56fa61d994050ece66a2b679c2d1c8f4d9d00a486f6db66614b35f120cf
|
| 3 |
+
size 309827877
|
episodes/fast-105515490_173104566-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:387a1e07522210777cee377ce804c629ec2911dbf400333c893a7e3dc90c949a
|
| 3 |
+
size 181881351
|
episodes/fast-106366104_174226329-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:614ba6eb7b533a36fea7ba75ccfb8ccd187fd84dc6ba059711da681f02e41546
|
| 3 |
+
size 318684464
|
episodes/fast-106366104_174226329-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afa0f7b5579f736e8ea323ced9bb17520dac41bb9952295322b0245e33df241e
|
| 3 |
+
size 337116137
|
episodes/fast-106366173_174226431-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b54c4699d17c19e89ee3257eaf3fe9b784ad9f81933b02712fe7d4240a5c197
|
| 3 |
+
size 568437454
|
episodes/fast-106366371_174226743-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64ddbee3a6491fe4eae92d43041ded2ae85a099074220daed39b808e79ad4da0
|
| 3 |
+
size 339615673
|
episodes/fast-106366371_174226743-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d3b5c3e5dc059a4e61b7e78964b7b9f65ecc13b6bb5227cbd0267c30f6d8771
|
| 3 |
+
size 335444927
|
episodes/fast-106366410_174226806-02.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d3f43c0fbc12289c0380cfae2f9734c0172fd585bb0a5edaf54b9fa155356cc
|
| 3 |
+
size 290493621
|
episodes/fast-106878858_174886965-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b75e28d2a8d945c05ad457ca0ebce7201ba6393d10d5b9dbde87da2080f60d7d
|
| 3 |
+
size 357079071
|
episodes/fast-106878858_174886965-02.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acf4e45c038e161368025590d06cc5b46ba018fdaf53ea75dd3f7a2f60f723bd
|
| 3 |
+
size 327084978
|
episodes/fast-106879044_174887172-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22b3a6278b3390e34363be9e71d8df9836aad313b257368a1d30dd42f7b07968
|
| 3 |
+
size 269499527
|
episodes/fast-107734146_175999971-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb6d3809620e64a7ddf01efb4be7152a5c1d4d696ea9cc09536c32a521addc06
|
| 3 |
+
size 317633241
|
episodes/fast-107734158_175999998-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b02c4cd869c7e48f2b698e82b28362bf9cfb35fffb25785673de750eee3b195d
|
| 3 |
+
size 362574195
|
episodes/fast-107734158_175999998-02.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10aa6b8e3076fb0adb80d1746697e33a69037fbf56b85e52b96f97fc12a04b55
|
| 3 |
+
size 358002985
|
episodes/fast-107734176_176000019-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1da41fc1713e47e7c2060a3599b582522de3437602bce878ae1f01871b754acb
|
| 3 |
+
size 312834907
|
episodes/fast-107734254_176000121-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd36c2461a19afdb280d363bed202b7c6553c5c218e9c6241e312608d1b7a67f
|
| 3 |
+
size 324562652
|
episodes/fast-107734338_176000244-02.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e16ece777eeeab45247bc259095098885a88360a9200bd13b98daf639d173610
|
| 3 |
+
size 359288804
|
episodes/fast-108294417_176709879-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8541cee4201674f2bbd52ecfac8b451a177258ff7927125027fd525f6823b6bb
|
| 3 |
+
size 339568081
|
episodes/fast-108294417_176709879-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d3f880443030cd65e3cf0c0d5f606bf855f267a78f86f20e9c5908fdd5a30e9
|
| 3 |
+
size 344241178
|
episodes/fast-108294897_176710602-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eec32b41b1b27fd5d325aa2105c0f8f26281d6674aa8e9443bf25e5c7a2de953
|
| 3 |
+
size 324999845
|
episodes/fast-108736884_177263634-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:322dec7a626e7c15956f3c2fd517ebc2bbb10604e488dbc73d03ba8cd2dca3bb
|
| 3 |
+
size 377200927
|
episodes/fast-108736884_177263634-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce79b48cfcf7add76a08cae4f2ee9e9718ff64d3b2eb776f5c8a78c5aef37063
|
| 3 |
+
size 382601586
|
episodes/fast-108736884_177263634-02.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a0f5eb6e07dccebc9e78ff77e00733612a00c49bfcb3d76851dbda016aec61e
|
| 3 |
+
size 365363968
|
episodes/fast-ProcTHOR-Train-106-01.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61c0a515e80bb32d5990198f6e82f73cf7b85cd95f7b8eb3e06d72bc28535efb
|
| 3 |
+
size 102004149
|
episodes/fast-ProcTHOR-Train-107-00.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:391ac47a8fc45644e02d88ff695a2ca81e5bd7f9f2e94aba2c0e7e4d752957f3
|
| 3 |
+
size 433690090
|