mjf-su commited on
Commit
64a4283
·
verified ·
1 Parent(s): f7905bb

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +103 -0
README.md ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PhysicalAI-US-Evaluation
2
+
3
+ A held-out US evaluation set for the navigation planner: **19,744 records**, each pairing a single front-camera frame with the corresponding past trajectory, future ground-truth waypoints, and a natural-language driving objective.
4
+
5
+ ## Provenance
6
+
7
+ Every record here was drawn — uniformly at random — from the pool of US scenes that were **withheld from every training stage** of the planner:
8
+
9
+ - the base VLA pretraining mix,
10
+ - the reasoning supervised fine-tuning (SFT) stage, and
11
+ - the GRPO reinforcement-learning stage.
12
+
13
+ In other words: no record in this directory was ever seen by the models that will be evaluated on it. This is the canonical "honest" US eval set — use it to compare checkpoints without leakage concerns.
14
+
15
+ The set is US-only by construction.
16
+
17
+ ## Directory layout
18
+
19
+ ```
20
+ PhysicalAI-US-Evaluation/
21
+ ├── README.md ← this file
22
+ ├── dataset.jsonl ← 19,744 records, one JSON object per line
23
+ └── camera/
24
+ ├── camera_00.zip ← original packed frames (≤3 GB cap, ZIP_STORED)
25
+ └── camera_01.zip
26
+ ```
27
+
28
+ ## Image format
29
+
30
+ - **Codec:** PNG (`cv2.IMWRITE_PNG_COMPRESSION=3`)
31
+ - **Resolution:** 640 × 360
32
+ - **Camera:** `camera_front_wide_120fov` (front-facing, ~120° HFOV)
33
+ - **Path layout:** `{chunk_name}/{scene_id}/{timestamp_us}.png`, relative to this directory after unzipping the camera files.
34
+ - **Frame selection:** the frame whose timestamp is closest to `clip_start_us + timestamp_us` for the given scene.
35
+
36
+ Resolving a record's frame is therefore:
37
+
38
+ ```python
39
+ frame_path = root / record["chunk_name"] / record["scene_id"] / f'{record["timestamp_us"]}.png'
40
+ ```
41
+
42
+ ## JSONL schema
43
+
44
+ Each line in `dataset.jsonl` is a single JSON object. Fields fall into three groups.
45
+
46
+ ### Identity / indexing (always present)
47
+
48
+ | Field | Type | Meaning |
49
+ |----------------|--------|-------------------------------------------------------------------------|
50
+ | `shard_id` | str | Source shard the row was drawn from (e.g. `"shard_00020"`). |
51
+ | `chunk_name` | str | Chunk directory the frame lives in (e.g. `"chunk_1580"`). |
52
+ | `scene_id` | str | UUID of the scene clip. |
53
+ | `timestamp_us` | int | Offset into the clip, in microseconds. Used to address the frame. |
54
+ | `sample_idx` | int \| null | Original sample index inside the source shard (may be `null`). |
55
+
56
+ ### Trajectory + task (always present)
57
+
58
+ | Field | Type | Meaning |
59
+ |--------------------------|-------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
60
+ | `egomotion` | list[[x, y, θ]] | Past trajectory, ego-frame, 0.25 s spacing, ending at the present anchor `[0, 0, 0]`. Length 9 (= 2 s of history + anchor). |
61
+ | `ground_truth_waypoints` | list[[x, y, θ]] | Future trajectory, ego-frame, 0.25 s spacing. Length 24 (= 6 s of lookahead). |
62
+ | `objective` | str | Natural-language driving intent for the next few seconds (e.g. `"Drive straight along the multi-lane road"`). |
63
+ | `difficulty` | `"easy"` \| `"hard"` | See [Difficulty split](#difficulty-split) below. |
64
+
65
+ Coordinates are right-handed ego-frame, units **meters / radians**, with `+x` forward and `+y` left.
66
+
67
+ ### Annotation fields (hard rows only)
68
+
69
+ The 2,000 "hard" rows carry an additional Gemini-produced reasoning trace. Easy rows omit all of these fields.
70
+
71
+ | Field | Type | Meaning |
72
+ |------------------------------|-----------------|-----------------------------------------------------------------------------------------------|
73
+ | `scene` | str | Free-text description of the visible scene. |
74
+ | `longitudinal_decision` | [label, score] | Categorical longitudinal action label + integer confidence. |
75
+ | `longitudinal_justification` | str | Free-text rationale for the longitudinal choice. |
76
+ | `lateral_decision` | [label, score] | Categorical lateral action label + integer confidence. |
77
+ | `lateral_justification` | str | Free-text rationale for the lateral choice. |
78
+ | `move_justification` | str | Combined natural-language explanation of the planned motion. |
79
+ | `annotation_complete` | bool | Whether the Gemini annotation pass produced all expected fields cleanly. |
80
+ | `gemini_raw` | str | The raw Gemini response as a JSON-encoded string, for forensic / debugging use. |
81
+
82
+ ## Difficulty split
83
+
84
+ | Difficulty | Count | Meaning |
85
+ |------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
86
+ | `hard` | 2,000 | Scenes selected up-front as harder, non-trivial driving situations and annotated with Gemini reasoning traces. Use these when you want a quality bar that exercises reasoning behavior. |
87
+ | `easy` | 17,744 | Uniformly random scenes from the held-out US pool, gated only on "the frame renders and at least one ground-truth waypoint is visible." A broad coverage sample. |
88
+
89
+ The `--hard` flag in the evaluation harness keeps only the 2k hard rows; without it you evaluate on the full 19,744.
90
+
91
+ ## Using this dataset
92
+
93
+ This directory is the default data source for the US run of the ADE evaluation harness:
94
+
95
+ ```bash
96
+ python GRPO-alignment/evaluation/AverageDisplacementError.py \
97
+ --country US \
98
+ --models <model-subdir-on-HF>
99
+ ```
100
+
101
+ The harness reads `dataset.jsonl`, resolves each frame via the path layout above, and reports an Average Displacement Error leaderboard. Add `--hard` to restrict the evaluation to the 2,000 hard rows.
102
+
103
+ For full provenance details (random seed, source paths, render-gating reject reasons) see [build_manifest.json](build_manifest.json) and [build_dataset.py](build_dataset.py).