ACT b6-pedal-bin/b512-v6-pure: B6 v6 all 542 episodes, batch 512, steps 2000 and 4000 (hb_baselines, Humanoid_benchmark 8c3b88d2, in-training MSE 0.067)
Browse files- README.md +23 -0
- b6-pedal-bin/b512-v6-pure/step-002000/SHA256SUMS +3 -0
- b6-pedal-bin/b512-v6-pure/step-002000/config.json +1768 -0
- b6-pedal-bin/b512-v6-pure/step-002000/model.pt +3 -0
- b6-pedal-bin/b512-v6-pure/step-002000/protocol.json +98 -0
- b6-pedal-bin/b512-v6-pure/step-004000/SHA256SUMS +26 -0
- b6-pedal-bin/b512-v6-pure/step-004000/config.json +1768 -0
- b6-pedal-bin/b512-v6-pure/step-004000/model.pt +3 -0
- b6-pedal-bin/b512-v6-pure/step-004000/protocol.json +190 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/augmentation/hb_aug_v2.py +163 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/__init__.py +9 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/act_nets.py +615 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/adapters.py +57 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/check_flash_adapter.py +114 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/check_flash_parity.py +141 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/data.py +363 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/flash.py +412 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/inloop.py +102 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/nets.py +207 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/policies.py +285 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/requirements.txt +12 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/runtime.py +151 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/train.py +500 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/policy/ACT/model.py +12 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_commit.txt +1 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/inloop-mse.jsonl +16 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/pip_freeze_hb-baselines.txt +58 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/preflight_run.json +187 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/run.json +1792 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/train.log +103 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/train_act_b6v6p_dsw.sh +25 -0
- b6-pedal-bin/b512-v6-pure/step-004000/training_records/train_log.jsonl +82 -0
README.md
CHANGED
|
@@ -116,3 +116,26 @@ Files: `model.pt`, `config.json`, `protocol.json` (weight size and SHA-256), `SH
|
|
| 116 |
loader snapshot and the training records) and `training_records/` (run configuration `run.json`, `train_log.jsonl`,
|
| 117 |
`train.log`, the pre-training batch check). Optimizer/resume state is excluded. Load it as the A20 example above with
|
| 118 |
`'b6-pedal-bin/b512/step-004000'`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
loader snapshot and the training records) and `training_records/` (run configuration `run.json`, `train_log.jsonl`,
|
| 117 |
`train.log`, the pre-training batch check). Optimizer/resume state is excluded. Load it as the A20 example above with
|
| 118 |
`'b6-pedal-bin/b512/step-004000'`.
|
| 119 |
+
|
| 120 |
+
## B6 v6 all 542 episodes, batch 512, steps 2000 and 4000 (2026-11-24)
|
| 121 |
+
|
| 122 |
+
Checkpoints: [`b6-pedal-bin/b512-v6-pure/step-004000/`](b6-pedal-bin/b512-v6-pure/step-004000) and
|
| 123 |
+
[`step-002000/`](b6-pedal-bin/b512-v6-pure/step-002000). A new training run; the B6 folders above are kept unchanged.
|
| 124 |
+
|
| 125 |
+
Same recipe as `b6-pedal-bin/b512/` above (`evaluation/baselines/train.py --policy act --contract g1_sonic_dfx6`,
|
| 126 |
+
batch size 512 on one GPU, 4,000 optimizer steps, AdamW lr 1e-4, 200-step warm-up then cosine, seed 0, EMA 0.9999,
|
| 127 |
+
ImageNet-initialized ResNet18 at 0.1x lr with frozen BatchNorm, augmentation v2), with Humanoid_benchmark commit
|
| 128 |
+
8c3b88d2, on all 542 episodes (331,577 frames) of the B6 v6 expert data (`humanoid-benchmark/b6-pedal-bin` @ad2f5bf0,
|
| 129 |
+
the data of the GR00T and Psi0 `b6-pedal-bin/b512-v6-pure` checkpoints). The pre-training check passed (state 44-D
|
| 130 |
+
without velocity, all sampled images changed by the augmentation, action labels and non-body state bit-identical).
|
| 131 |
+
|
| 132 |
+
In-training normalized action MSE (every 250 steps on 10 training episodes, EMA weights, seed 1234): 0.257 at step
|
| 133 |
+
250, 0.077 at step 2000, 0.067 at step 4000 (`training_records/inloop-mse.jsonl`). Final loss: L1 0.055, KL 0.006.
|
| 134 |
+
`protocol.json` records the data, recipe, layout, in-training MSE curve and the reproducibility fields; the per-sample
|
| 135 |
+
augmentation draws of this code are not seeded (as for every hb_baselines ACT release), so curves reproduce
|
| 136 |
+
statistically, not bit for bit. Closed-loop evaluation: pending.
|
| 137 |
+
|
| 138 |
+
Files: `model.pt`, `config.json`, `protocol.json`, `SHA256SUMS`; `step-004000/training_records/` holds `run.json`,
|
| 139 |
+
`train_log.jsonl`, `train.log`, `inloop-mse.jsonl`, the launch script, the pre-training check, `pip freeze` of the
|
| 140 |
+
environment and `code_8c3b88d2/` (the exact `evaluation/baselines`, augmentation and ACT adapter code). Optimizer/resume
|
| 141 |
+
state is excluded. Load it as the A20 example above with `'b6-pedal-bin/b512-v6-pure/step-004000'`.
|
b6-pedal-bin/b512-v6-pure/step-002000/SHA256SUMS
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
792106ad6b2d60d9af43647c7ac7f3d8e497f69228bb246c78035d43c5998a92 config.json
|
| 2 |
+
80f159243d6b693ed46e7b40fcc55540fecb9ca64164bdda0b11ef32e3f6c772 model.pt
|
| 3 |
+
5cad80235c1ec6c4ac46b8330f7cb291d050436b4c4bfa4609642e8f04ea1019 protocol.json
|
b6-pedal-bin/b512-v6-pure/step-002000/config.json
ADDED
|
@@ -0,0 +1,1768 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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one_weights": "IMAGENET1K_V1",
|
| 10 |
+
"backbone_norm": "frozen_bn",
|
| 11 |
+
"hidden_dim": 384,
|
| 12 |
+
"num_layers": 4,
|
| 13 |
+
"num_heads": 8,
|
| 14 |
+
"mlp_ratio": 4.0,
|
| 15 |
+
"dropout": 0.1,
|
| 16 |
+
"time_embed_dim": 128,
|
| 17 |
+
"num_inference_steps": null,
|
| 18 |
+
"num_train_timesteps": 100,
|
| 19 |
+
"beta_schedule": "squaredcos_cap_v2",
|
| 20 |
+
"prediction_type": "epsilon",
|
| 21 |
+
"clip_sample": true,
|
| 22 |
+
"act_hidden_dim": 512,
|
| 23 |
+
"dim_feedforward": 3200,
|
| 24 |
+
"enc_layers": 4,
|
| 25 |
+
"dec_layers": 7,
|
| 26 |
+
"nheads": 8,
|
| 27 |
+
"latent_dim": 32,
|
| 28 |
+
"kl_weight": 10.0,
|
| 29 |
+
"extra": {}
|
| 30 |
+
},
|
| 31 |
+
"contract": {
|
| 32 |
+
"name": "g1_sonic_dfx6",
|
| 33 |
+
"robot": "g1",
|
| 34 |
+
"cameras": [
|
| 35 |
+
"ego_view",
|
| 36 |
+
"chest"
|
| 37 |
+
],
|
| 38 |
+
"state": [
|
| 39 |
+
[
|
| 40 |
+
"observation.state",
|
| 41 |
+
0,
|
| 42 |
+
29
|
| 43 |
+
],
|
| 44 |
+
[
|
| 45 |
+
"observation.inspire_left_hand_state",
|
| 46 |
+
0,
|
| 47 |
+
6
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
"observation.inspire_right_hand_state",
|
| 51 |
+
0,
|
| 52 |
+
6
|
| 53 |
+
],
|
| 54 |
+
[
|
| 55 |
+
"observation.projected_gravity",
|
| 56 |
+
0,
|
| 57 |
+
3
|
| 58 |
+
]
|
| 59 |
+
],
|
| 60 |
+
"action": [
|
| 61 |
+
[
|
| 62 |
+
"action.motion_token",
|
| 63 |
+
0,
|
| 64 |
+
64
|
| 65 |
+
],
|
| 66 |
+
[
|
| 67 |
+
"observation.inspire_left_hand_state",
|
| 68 |
+
0,
|
| 69 |
+
6
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
"observation.inspire_right_hand_state",
|
| 73 |
+
0,
|
| 74 |
+
6
|
| 75 |
+
]
|
| 76 |
+
],
|
| 77 |
+
"state_dim": 44,
|
| 78 |
+
"action_dim": 76,
|
| 79 |
+
"action_space": "sonic_dfx6",
|
| 80 |
+
"body_dims": 29
|
| 81 |
+
},
|
| 82 |
+
"image_hw": [
|
| 83 |
+
168,
|
| 84 |
+
224
|
| 85 |
+
],
|
| 86 |
+
"task_text": "Pick up the chip barrel from the cart, walk to the pedal bin, step on its pedal and drop it in.",
|
| 87 |
+
"dataset": {
|
| 88 |
+
"name": "data",
|
| 89 |
+
"root": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/b6-pedal-bin-v6-ad2f5bf/data",
|
| 90 |
+
"robot_type": null,
|
| 91 |
+
"fps": 30.0,
|
| 92 |
+
"episodes": [
|
| 93 |
+
0,
|
| 94 |
+
1,
|
| 95 |
+
2,
|
| 96 |
+
3,
|
| 97 |
+
4,
|
| 98 |
+
5,
|
| 99 |
+
6,
|
| 100 |
+
7,
|
| 101 |
+
8,
|
| 102 |
+
9,
|
| 103 |
+
10,
|
| 104 |
+
11,
|
| 105 |
+
12,
|
| 106 |
+
13,
|
| 107 |
+
14,
|
| 108 |
+
15,
|
| 109 |
+
16,
|
| 110 |
+
17,
|
| 111 |
+
18,
|
| 112 |
+
19,
|
| 113 |
+
20,
|
| 114 |
+
21,
|
| 115 |
+
22,
|
| 116 |
+
23,
|
| 117 |
+
24,
|
| 118 |
+
25,
|
| 119 |
+
26,
|
| 120 |
+
27,
|
| 121 |
+
28,
|
| 122 |
+
29,
|
| 123 |
+
30,
|
| 124 |
+
31,
|
| 125 |
+
32,
|
| 126 |
+
33,
|
| 127 |
+
34,
|
| 128 |
+
35,
|
| 129 |
+
36,
|
| 130 |
+
37,
|
| 131 |
+
38,
|
| 132 |
+
39,
|
| 133 |
+
40,
|
| 134 |
+
41,
|
| 135 |
+
42,
|
| 136 |
+
43,
|
| 137 |
+
44,
|
| 138 |
+
45,
|
| 139 |
+
46,
|
| 140 |
+
47,
|
| 141 |
+
48,
|
| 142 |
+
49,
|
| 143 |
+
50,
|
| 144 |
+
51,
|
| 145 |
+
52,
|
| 146 |
+
53,
|
| 147 |
+
54,
|
| 148 |
+
55,
|
| 149 |
+
56,
|
| 150 |
+
57,
|
| 151 |
+
58,
|
| 152 |
+
59,
|
| 153 |
+
60,
|
| 154 |
+
61,
|
| 155 |
+
62,
|
| 156 |
+
63,
|
| 157 |
+
64,
|
| 158 |
+
65,
|
| 159 |
+
66,
|
| 160 |
+
67,
|
| 161 |
+
68,
|
| 162 |
+
69,
|
| 163 |
+
70,
|
| 164 |
+
71,
|
| 165 |
+
72,
|
| 166 |
+
73,
|
| 167 |
+
74,
|
| 168 |
+
75,
|
| 169 |
+
76,
|
| 170 |
+
77,
|
| 171 |
+
78,
|
| 172 |
+
79,
|
| 173 |
+
80,
|
| 174 |
+
81,
|
| 175 |
+
82,
|
| 176 |
+
83,
|
| 177 |
+
84,
|
| 178 |
+
85,
|
| 179 |
+
86,
|
| 180 |
+
87,
|
| 181 |
+
88,
|
| 182 |
+
89,
|
| 183 |
+
90,
|
| 184 |
+
91,
|
| 185 |
+
92,
|
| 186 |
+
93,
|
| 187 |
+
94,
|
| 188 |
+
95,
|
| 189 |
+
96,
|
| 190 |
+
97,
|
| 191 |
+
98,
|
| 192 |
+
99,
|
| 193 |
+
100,
|
| 194 |
+
101,
|
| 195 |
+
102,
|
| 196 |
+
103,
|
| 197 |
+
104,
|
| 198 |
+
105,
|
| 199 |
+
106,
|
| 200 |
+
107,
|
| 201 |
+
108,
|
| 202 |
+
109,
|
| 203 |
+
110,
|
| 204 |
+
111,
|
| 205 |
+
112,
|
| 206 |
+
113,
|
| 207 |
+
114,
|
| 208 |
+
115,
|
| 209 |
+
116,
|
| 210 |
+
117,
|
| 211 |
+
118,
|
| 212 |
+
119,
|
| 213 |
+
120,
|
| 214 |
+
121,
|
| 215 |
+
122,
|
| 216 |
+
123,
|
| 217 |
+
124,
|
| 218 |
+
125,
|
| 219 |
+
126,
|
| 220 |
+
127,
|
| 221 |
+
128,
|
| 222 |
+
129,
|
| 223 |
+
130,
|
| 224 |
+
131,
|
| 225 |
+
132,
|
| 226 |
+
133,
|
| 227 |
+
134,
|
| 228 |
+
135,
|
| 229 |
+
136,
|
| 230 |
+
137,
|
| 231 |
+
138,
|
| 232 |
+
139,
|
| 233 |
+
140,
|
| 234 |
+
141,
|
| 235 |
+
142,
|
| 236 |
+
143,
|
| 237 |
+
144,
|
| 238 |
+
145,
|
| 239 |
+
146,
|
| 240 |
+
147,
|
| 241 |
+
148,
|
| 242 |
+
149,
|
| 243 |
+
150,
|
| 244 |
+
151,
|
| 245 |
+
152,
|
| 246 |
+
153,
|
| 247 |
+
154,
|
| 248 |
+
155,
|
| 249 |
+
156,
|
| 250 |
+
157,
|
| 251 |
+
158,
|
| 252 |
+
159,
|
| 253 |
+
160,
|
| 254 |
+
161,
|
| 255 |
+
162,
|
| 256 |
+
163,
|
| 257 |
+
164,
|
| 258 |
+
165,
|
| 259 |
+
166,
|
| 260 |
+
167,
|
| 261 |
+
168,
|
| 262 |
+
169,
|
| 263 |
+
170,
|
| 264 |
+
171,
|
| 265 |
+
172,
|
| 266 |
+
173,
|
| 267 |
+
174,
|
| 268 |
+
175,
|
| 269 |
+
176,
|
| 270 |
+
177,
|
| 271 |
+
178,
|
| 272 |
+
179,
|
| 273 |
+
180,
|
| 274 |
+
181,
|
| 275 |
+
182,
|
| 276 |
+
183,
|
| 277 |
+
184,
|
| 278 |
+
185,
|
| 279 |
+
186,
|
| 280 |
+
187,
|
| 281 |
+
188,
|
| 282 |
+
189,
|
| 283 |
+
190,
|
| 284 |
+
191,
|
| 285 |
+
192,
|
| 286 |
+
193,
|
| 287 |
+
194,
|
| 288 |
+
195,
|
| 289 |
+
196,
|
| 290 |
+
197,
|
| 291 |
+
198,
|
| 292 |
+
199,
|
| 293 |
+
200,
|
| 294 |
+
201,
|
| 295 |
+
202,
|
| 296 |
+
203,
|
| 297 |
+
204,
|
| 298 |
+
205,
|
| 299 |
+
206,
|
| 300 |
+
207,
|
| 301 |
+
208,
|
| 302 |
+
209,
|
| 303 |
+
210,
|
| 304 |
+
211,
|
| 305 |
+
212,
|
| 306 |
+
213,
|
| 307 |
+
214,
|
| 308 |
+
215,
|
| 309 |
+
216,
|
| 310 |
+
217,
|
| 311 |
+
218,
|
| 312 |
+
219,
|
| 313 |
+
220,
|
| 314 |
+
221,
|
| 315 |
+
222,
|
| 316 |
+
223,
|
| 317 |
+
224,
|
| 318 |
+
225,
|
| 319 |
+
226,
|
| 320 |
+
227,
|
| 321 |
+
228,
|
| 322 |
+
229,
|
| 323 |
+
230,
|
| 324 |
+
231,
|
| 325 |
+
232,
|
| 326 |
+
233,
|
| 327 |
+
234,
|
| 328 |
+
235,
|
| 329 |
+
236,
|
| 330 |
+
237,
|
| 331 |
+
238,
|
| 332 |
+
239,
|
| 333 |
+
240,
|
| 334 |
+
241,
|
| 335 |
+
242,
|
| 336 |
+
243,
|
| 337 |
+
244,
|
| 338 |
+
245,
|
| 339 |
+
246,
|
| 340 |
+
247,
|
| 341 |
+
248,
|
| 342 |
+
249,
|
| 343 |
+
250,
|
| 344 |
+
251,
|
| 345 |
+
252,
|
| 346 |
+
253,
|
| 347 |
+
254,
|
| 348 |
+
255,
|
| 349 |
+
256,
|
| 350 |
+
257,
|
| 351 |
+
258,
|
| 352 |
+
259,
|
| 353 |
+
260,
|
| 354 |
+
261,
|
| 355 |
+
262,
|
| 356 |
+
263,
|
| 357 |
+
264,
|
| 358 |
+
265,
|
| 359 |
+
266,
|
| 360 |
+
267,
|
| 361 |
+
268,
|
| 362 |
+
269,
|
| 363 |
+
270,
|
| 364 |
+
271,
|
| 365 |
+
272,
|
| 366 |
+
273,
|
| 367 |
+
274,
|
| 368 |
+
275,
|
| 369 |
+
276,
|
| 370 |
+
277,
|
| 371 |
+
278,
|
| 372 |
+
279,
|
| 373 |
+
280,
|
| 374 |
+
281,
|
| 375 |
+
282,
|
| 376 |
+
283,
|
| 377 |
+
284,
|
| 378 |
+
285,
|
| 379 |
+
286,
|
| 380 |
+
287,
|
| 381 |
+
288,
|
| 382 |
+
289,
|
| 383 |
+
290,
|
| 384 |
+
291,
|
| 385 |
+
292,
|
| 386 |
+
293,
|
| 387 |
+
294,
|
| 388 |
+
295,
|
| 389 |
+
296,
|
| 390 |
+
297,
|
| 391 |
+
298,
|
| 392 |
+
299,
|
| 393 |
+
300,
|
| 394 |
+
301,
|
| 395 |
+
302,
|
| 396 |
+
303,
|
| 397 |
+
304,
|
| 398 |
+
305,
|
| 399 |
+
306,
|
| 400 |
+
307,
|
| 401 |
+
308,
|
| 402 |
+
309,
|
| 403 |
+
310,
|
| 404 |
+
311,
|
| 405 |
+
312,
|
| 406 |
+
313,
|
| 407 |
+
314,
|
| 408 |
+
315,
|
| 409 |
+
316,
|
| 410 |
+
317,
|
| 411 |
+
318,
|
| 412 |
+
319,
|
| 413 |
+
320,
|
| 414 |
+
321,
|
| 415 |
+
322,
|
| 416 |
+
323,
|
| 417 |
+
324,
|
| 418 |
+
325,
|
| 419 |
+
326,
|
| 420 |
+
327,
|
| 421 |
+
328,
|
| 422 |
+
329,
|
| 423 |
+
330,
|
| 424 |
+
331,
|
| 425 |
+
332,
|
| 426 |
+
333,
|
| 427 |
+
334,
|
| 428 |
+
335,
|
| 429 |
+
336,
|
| 430 |
+
337,
|
| 431 |
+
338,
|
| 432 |
+
339,
|
| 433 |
+
340,
|
| 434 |
+
341,
|
| 435 |
+
342,
|
| 436 |
+
343,
|
| 437 |
+
344,
|
| 438 |
+
345,
|
| 439 |
+
346,
|
| 440 |
+
347,
|
| 441 |
+
348,
|
| 442 |
+
349,
|
| 443 |
+
350,
|
| 444 |
+
351,
|
| 445 |
+
352,
|
| 446 |
+
353,
|
| 447 |
+
354,
|
| 448 |
+
355,
|
| 449 |
+
356,
|
| 450 |
+
357,
|
| 451 |
+
358,
|
| 452 |
+
359,
|
| 453 |
+
360,
|
| 454 |
+
361,
|
| 455 |
+
362,
|
| 456 |
+
363,
|
| 457 |
+
364,
|
| 458 |
+
365,
|
| 459 |
+
366,
|
| 460 |
+
367,
|
| 461 |
+
368,
|
| 462 |
+
369,
|
| 463 |
+
370,
|
| 464 |
+
371,
|
| 465 |
+
372,
|
| 466 |
+
373,
|
| 467 |
+
374,
|
| 468 |
+
375,
|
| 469 |
+
376,
|
| 470 |
+
377,
|
| 471 |
+
378,
|
| 472 |
+
379,
|
| 473 |
+
380,
|
| 474 |
+
381,
|
| 475 |
+
382,
|
| 476 |
+
383,
|
| 477 |
+
384,
|
| 478 |
+
385,
|
| 479 |
+
386,
|
| 480 |
+
387,
|
| 481 |
+
388,
|
| 482 |
+
389,
|
| 483 |
+
390,
|
| 484 |
+
391,
|
| 485 |
+
392,
|
| 486 |
+
393,
|
| 487 |
+
394,
|
| 488 |
+
395,
|
| 489 |
+
396,
|
| 490 |
+
397,
|
| 491 |
+
398,
|
| 492 |
+
399,
|
| 493 |
+
400,
|
| 494 |
+
401,
|
| 495 |
+
402,
|
| 496 |
+
403,
|
| 497 |
+
404,
|
| 498 |
+
405,
|
| 499 |
+
406,
|
| 500 |
+
407,
|
| 501 |
+
408,
|
| 502 |
+
409,
|
| 503 |
+
410,
|
| 504 |
+
411,
|
| 505 |
+
412,
|
| 506 |
+
413,
|
| 507 |
+
414,
|
| 508 |
+
415,
|
| 509 |
+
416,
|
| 510 |
+
417,
|
| 511 |
+
418,
|
| 512 |
+
419,
|
| 513 |
+
420,
|
| 514 |
+
421,
|
| 515 |
+
422,
|
| 516 |
+
423,
|
| 517 |
+
424,
|
| 518 |
+
425,
|
| 519 |
+
426,
|
| 520 |
+
427,
|
| 521 |
+
428,
|
| 522 |
+
429,
|
| 523 |
+
430,
|
| 524 |
+
431,
|
| 525 |
+
432,
|
| 526 |
+
433,
|
| 527 |
+
434,
|
| 528 |
+
435,
|
| 529 |
+
436,
|
| 530 |
+
437,
|
| 531 |
+
438,
|
| 532 |
+
439,
|
| 533 |
+
440,
|
| 534 |
+
441,
|
| 535 |
+
442,
|
| 536 |
+
443,
|
| 537 |
+
444,
|
| 538 |
+
445,
|
| 539 |
+
446,
|
| 540 |
+
447,
|
| 541 |
+
448,
|
| 542 |
+
449,
|
| 543 |
+
450,
|
| 544 |
+
451,
|
| 545 |
+
452,
|
| 546 |
+
453,
|
| 547 |
+
454,
|
| 548 |
+
455,
|
| 549 |
+
456,
|
| 550 |
+
457,
|
| 551 |
+
458,
|
| 552 |
+
459,
|
| 553 |
+
460,
|
| 554 |
+
461,
|
| 555 |
+
462,
|
| 556 |
+
463,
|
| 557 |
+
464,
|
| 558 |
+
465,
|
| 559 |
+
466,
|
| 560 |
+
467,
|
| 561 |
+
468,
|
| 562 |
+
469,
|
| 563 |
+
470,
|
| 564 |
+
471,
|
| 565 |
+
472,
|
| 566 |
+
473,
|
| 567 |
+
474,
|
| 568 |
+
475,
|
| 569 |
+
476,
|
| 570 |
+
477,
|
| 571 |
+
478,
|
| 572 |
+
479,
|
| 573 |
+
480,
|
| 574 |
+
481,
|
| 575 |
+
482,
|
| 576 |
+
483,
|
| 577 |
+
484,
|
| 578 |
+
485,
|
| 579 |
+
486,
|
| 580 |
+
487,
|
| 581 |
+
488,
|
| 582 |
+
489,
|
| 583 |
+
490,
|
| 584 |
+
491,
|
| 585 |
+
492,
|
| 586 |
+
493,
|
| 587 |
+
494,
|
| 588 |
+
495,
|
| 589 |
+
496,
|
| 590 |
+
497,
|
| 591 |
+
498,
|
| 592 |
+
499,
|
| 593 |
+
500,
|
| 594 |
+
501,
|
| 595 |
+
502,
|
| 596 |
+
503,
|
| 597 |
+
504,
|
| 598 |
+
505,
|
| 599 |
+
506,
|
| 600 |
+
507,
|
| 601 |
+
508,
|
| 602 |
+
509,
|
| 603 |
+
510,
|
| 604 |
+
511,
|
| 605 |
+
512,
|
| 606 |
+
513,
|
| 607 |
+
514,
|
| 608 |
+
515,
|
| 609 |
+
516,
|
| 610 |
+
517,
|
| 611 |
+
518,
|
| 612 |
+
519,
|
| 613 |
+
520,
|
| 614 |
+
521,
|
| 615 |
+
522,
|
| 616 |
+
523,
|
| 617 |
+
524,
|
| 618 |
+
525,
|
| 619 |
+
526,
|
| 620 |
+
527,
|
| 621 |
+
528,
|
| 622 |
+
529,
|
| 623 |
+
530,
|
| 624 |
+
531,
|
| 625 |
+
532,
|
| 626 |
+
533,
|
| 627 |
+
534,
|
| 628 |
+
535,
|
| 629 |
+
536,
|
| 630 |
+
537,
|
| 631 |
+
538,
|
| 632 |
+
539,
|
| 633 |
+
540,
|
| 634 |
+
541
|
| 635 |
+
],
|
| 636 |
+
"train_episodes": [
|
| 637 |
+
0,
|
| 638 |
+
1,
|
| 639 |
+
2,
|
| 640 |
+
3,
|
| 641 |
+
4,
|
| 642 |
+
5,
|
| 643 |
+
6,
|
| 644 |
+
7,
|
| 645 |
+
8,
|
| 646 |
+
9,
|
| 647 |
+
10,
|
| 648 |
+
11,
|
| 649 |
+
12,
|
| 650 |
+
13,
|
| 651 |
+
14,
|
| 652 |
+
15,
|
| 653 |
+
16,
|
| 654 |
+
17,
|
| 655 |
+
18,
|
| 656 |
+
19,
|
| 657 |
+
20,
|
| 658 |
+
21,
|
| 659 |
+
22,
|
| 660 |
+
23,
|
| 661 |
+
24,
|
| 662 |
+
25,
|
| 663 |
+
26,
|
| 664 |
+
27,
|
| 665 |
+
28,
|
| 666 |
+
29,
|
| 667 |
+
30,
|
| 668 |
+
31,
|
| 669 |
+
32,
|
| 670 |
+
33,
|
| 671 |
+
34,
|
| 672 |
+
35,
|
| 673 |
+
36,
|
| 674 |
+
37,
|
| 675 |
+
38,
|
| 676 |
+
39,
|
| 677 |
+
40,
|
| 678 |
+
41,
|
| 679 |
+
42,
|
| 680 |
+
43,
|
| 681 |
+
44,
|
| 682 |
+
45,
|
| 683 |
+
46,
|
| 684 |
+
47,
|
| 685 |
+
48,
|
| 686 |
+
49,
|
| 687 |
+
50,
|
| 688 |
+
51,
|
| 689 |
+
52,
|
| 690 |
+
53,
|
| 691 |
+
54,
|
| 692 |
+
55,
|
| 693 |
+
56,
|
| 694 |
+
57,
|
| 695 |
+
58,
|
| 696 |
+
59,
|
| 697 |
+
60,
|
| 698 |
+
61,
|
| 699 |
+
62,
|
| 700 |
+
63,
|
| 701 |
+
64,
|
| 702 |
+
65,
|
| 703 |
+
66,
|
| 704 |
+
67,
|
| 705 |
+
68,
|
| 706 |
+
69,
|
| 707 |
+
70,
|
| 708 |
+
71,
|
| 709 |
+
72,
|
| 710 |
+
73,
|
| 711 |
+
74,
|
| 712 |
+
75,
|
| 713 |
+
76,
|
| 714 |
+
77,
|
| 715 |
+
78,
|
| 716 |
+
79,
|
| 717 |
+
80,
|
| 718 |
+
81,
|
| 719 |
+
82,
|
| 720 |
+
83,
|
| 721 |
+
84,
|
| 722 |
+
85,
|
| 723 |
+
86,
|
| 724 |
+
87,
|
| 725 |
+
88,
|
| 726 |
+
89,
|
| 727 |
+
90,
|
| 728 |
+
91,
|
| 729 |
+
92,
|
| 730 |
+
93,
|
| 731 |
+
94,
|
| 732 |
+
95,
|
| 733 |
+
96,
|
| 734 |
+
97,
|
| 735 |
+
98,
|
| 736 |
+
99,
|
| 737 |
+
100,
|
| 738 |
+
101,
|
| 739 |
+
102,
|
| 740 |
+
103,
|
| 741 |
+
104,
|
| 742 |
+
105,
|
| 743 |
+
106,
|
| 744 |
+
107,
|
| 745 |
+
108,
|
| 746 |
+
109,
|
| 747 |
+
110,
|
| 748 |
+
111,
|
| 749 |
+
112,
|
| 750 |
+
113,
|
| 751 |
+
114,
|
| 752 |
+
115,
|
| 753 |
+
116,
|
| 754 |
+
117,
|
| 755 |
+
118,
|
| 756 |
+
119,
|
| 757 |
+
120,
|
| 758 |
+
121,
|
| 759 |
+
122,
|
| 760 |
+
123,
|
| 761 |
+
124,
|
| 762 |
+
125,
|
| 763 |
+
126,
|
| 764 |
+
127,
|
| 765 |
+
128,
|
| 766 |
+
129,
|
| 767 |
+
130,
|
| 768 |
+
131,
|
| 769 |
+
132,
|
| 770 |
+
133,
|
| 771 |
+
134,
|
| 772 |
+
135,
|
| 773 |
+
136,
|
| 774 |
+
137,
|
| 775 |
+
138,
|
| 776 |
+
139,
|
| 777 |
+
140,
|
| 778 |
+
141,
|
| 779 |
+
142,
|
| 780 |
+
143,
|
| 781 |
+
144,
|
| 782 |
+
145,
|
| 783 |
+
146,
|
| 784 |
+
147,
|
| 785 |
+
148,
|
| 786 |
+
149,
|
| 787 |
+
150,
|
| 788 |
+
151,
|
| 789 |
+
152,
|
| 790 |
+
153,
|
| 791 |
+
154,
|
| 792 |
+
155,
|
| 793 |
+
156,
|
| 794 |
+
157,
|
| 795 |
+
158,
|
| 796 |
+
159,
|
| 797 |
+
160,
|
| 798 |
+
161,
|
| 799 |
+
162,
|
| 800 |
+
163,
|
| 801 |
+
164,
|
| 802 |
+
165,
|
| 803 |
+
166,
|
| 804 |
+
167,
|
| 805 |
+
168,
|
| 806 |
+
169,
|
| 807 |
+
170,
|
| 808 |
+
171,
|
| 809 |
+
172,
|
| 810 |
+
173,
|
| 811 |
+
174,
|
| 812 |
+
175,
|
| 813 |
+
176,
|
| 814 |
+
177,
|
| 815 |
+
178,
|
| 816 |
+
179,
|
| 817 |
+
180,
|
| 818 |
+
181,
|
| 819 |
+
182,
|
| 820 |
+
183,
|
| 821 |
+
184,
|
| 822 |
+
185,
|
| 823 |
+
186,
|
| 824 |
+
187,
|
| 825 |
+
188,
|
| 826 |
+
189,
|
| 827 |
+
190,
|
| 828 |
+
191,
|
| 829 |
+
192,
|
| 830 |
+
193,
|
| 831 |
+
194,
|
| 832 |
+
195,
|
| 833 |
+
196,
|
| 834 |
+
197,
|
| 835 |
+
198,
|
| 836 |
+
199,
|
| 837 |
+
200,
|
| 838 |
+
201,
|
| 839 |
+
202,
|
| 840 |
+
203,
|
| 841 |
+
204,
|
| 842 |
+
205,
|
| 843 |
+
206,
|
| 844 |
+
207,
|
| 845 |
+
208,
|
| 846 |
+
209,
|
| 847 |
+
210,
|
| 848 |
+
211,
|
| 849 |
+
212,
|
| 850 |
+
213,
|
| 851 |
+
214,
|
| 852 |
+
215,
|
| 853 |
+
216,
|
| 854 |
+
217,
|
| 855 |
+
218,
|
| 856 |
+
219,
|
| 857 |
+
220,
|
| 858 |
+
221,
|
| 859 |
+
222,
|
| 860 |
+
223,
|
| 861 |
+
224,
|
| 862 |
+
225,
|
| 863 |
+
226,
|
| 864 |
+
227,
|
| 865 |
+
228,
|
| 866 |
+
229,
|
| 867 |
+
230,
|
| 868 |
+
231,
|
| 869 |
+
232,
|
| 870 |
+
233,
|
| 871 |
+
234,
|
| 872 |
+
235,
|
| 873 |
+
236,
|
| 874 |
+
237,
|
| 875 |
+
238,
|
| 876 |
+
239,
|
| 877 |
+
240,
|
| 878 |
+
241,
|
| 879 |
+
242,
|
| 880 |
+
243,
|
| 881 |
+
244,
|
| 882 |
+
245,
|
| 883 |
+
246,
|
| 884 |
+
247,
|
| 885 |
+
248,
|
| 886 |
+
249,
|
| 887 |
+
250,
|
| 888 |
+
251,
|
| 889 |
+
252,
|
| 890 |
+
253,
|
| 891 |
+
254,
|
| 892 |
+
255,
|
| 893 |
+
256,
|
| 894 |
+
257,
|
| 895 |
+
258,
|
| 896 |
+
259,
|
| 897 |
+
260,
|
| 898 |
+
261,
|
| 899 |
+
262,
|
| 900 |
+
263,
|
| 901 |
+
264,
|
| 902 |
+
265,
|
| 903 |
+
266,
|
| 904 |
+
267,
|
| 905 |
+
268,
|
| 906 |
+
269,
|
| 907 |
+
270,
|
| 908 |
+
271,
|
| 909 |
+
272,
|
| 910 |
+
273,
|
| 911 |
+
274,
|
| 912 |
+
275,
|
| 913 |
+
276,
|
| 914 |
+
277,
|
| 915 |
+
278,
|
| 916 |
+
279,
|
| 917 |
+
280,
|
| 918 |
+
281,
|
| 919 |
+
282,
|
| 920 |
+
283,
|
| 921 |
+
284,
|
| 922 |
+
285,
|
| 923 |
+
286,
|
| 924 |
+
287,
|
| 925 |
+
288,
|
| 926 |
+
289,
|
| 927 |
+
290,
|
| 928 |
+
291,
|
| 929 |
+
292,
|
| 930 |
+
293,
|
| 931 |
+
294,
|
| 932 |
+
295,
|
| 933 |
+
296,
|
| 934 |
+
297,
|
| 935 |
+
298,
|
| 936 |
+
299,
|
| 937 |
+
300,
|
| 938 |
+
301,
|
| 939 |
+
302,
|
| 940 |
+
303,
|
| 941 |
+
304,
|
| 942 |
+
305,
|
| 943 |
+
306,
|
| 944 |
+
307,
|
| 945 |
+
308,
|
| 946 |
+
309,
|
| 947 |
+
310,
|
| 948 |
+
311,
|
| 949 |
+
312,
|
| 950 |
+
313,
|
| 951 |
+
314,
|
| 952 |
+
315,
|
| 953 |
+
316,
|
| 954 |
+
317,
|
| 955 |
+
318,
|
| 956 |
+
319,
|
| 957 |
+
320,
|
| 958 |
+
321,
|
| 959 |
+
322,
|
| 960 |
+
323,
|
| 961 |
+
324,
|
| 962 |
+
325,
|
| 963 |
+
326,
|
| 964 |
+
327,
|
| 965 |
+
328,
|
| 966 |
+
329,
|
| 967 |
+
330,
|
| 968 |
+
331,
|
| 969 |
+
332,
|
| 970 |
+
333,
|
| 971 |
+
334,
|
| 972 |
+
335,
|
| 973 |
+
336,
|
| 974 |
+
337,
|
| 975 |
+
338,
|
| 976 |
+
339,
|
| 977 |
+
340,
|
| 978 |
+
341,
|
| 979 |
+
342,
|
| 980 |
+
343,
|
| 981 |
+
344,
|
| 982 |
+
345,
|
| 983 |
+
346,
|
| 984 |
+
347,
|
| 985 |
+
348,
|
| 986 |
+
349,
|
| 987 |
+
350,
|
| 988 |
+
351,
|
| 989 |
+
352,
|
| 990 |
+
353,
|
| 991 |
+
354,
|
| 992 |
+
355,
|
| 993 |
+
356,
|
| 994 |
+
357,
|
| 995 |
+
358,
|
| 996 |
+
359,
|
| 997 |
+
360,
|
| 998 |
+
361,
|
| 999 |
+
362,
|
| 1000 |
+
363,
|
| 1001 |
+
364,
|
| 1002 |
+
365,
|
| 1003 |
+
366,
|
| 1004 |
+
367,
|
| 1005 |
+
368,
|
| 1006 |
+
369,
|
| 1007 |
+
370,
|
| 1008 |
+
371,
|
| 1009 |
+
372,
|
| 1010 |
+
373,
|
| 1011 |
+
374,
|
| 1012 |
+
375,
|
| 1013 |
+
376,
|
| 1014 |
+
377,
|
| 1015 |
+
378,
|
| 1016 |
+
379,
|
| 1017 |
+
380,
|
| 1018 |
+
381,
|
| 1019 |
+
382,
|
| 1020 |
+
383,
|
| 1021 |
+
384,
|
| 1022 |
+
385,
|
| 1023 |
+
386,
|
| 1024 |
+
387,
|
| 1025 |
+
388,
|
| 1026 |
+
389,
|
| 1027 |
+
390,
|
| 1028 |
+
391,
|
| 1029 |
+
392,
|
| 1030 |
+
393,
|
| 1031 |
+
394,
|
| 1032 |
+
395,
|
| 1033 |
+
396,
|
| 1034 |
+
397,
|
| 1035 |
+
398,
|
| 1036 |
+
399,
|
| 1037 |
+
400,
|
| 1038 |
+
401,
|
| 1039 |
+
402,
|
| 1040 |
+
403,
|
| 1041 |
+
404,
|
| 1042 |
+
405,
|
| 1043 |
+
406,
|
| 1044 |
+
407,
|
| 1045 |
+
408,
|
| 1046 |
+
409,
|
| 1047 |
+
410,
|
| 1048 |
+
411,
|
| 1049 |
+
412,
|
| 1050 |
+
413,
|
| 1051 |
+
414,
|
| 1052 |
+
415,
|
| 1053 |
+
416,
|
| 1054 |
+
417,
|
| 1055 |
+
418,
|
| 1056 |
+
419,
|
| 1057 |
+
420,
|
| 1058 |
+
421,
|
| 1059 |
+
422,
|
| 1060 |
+
423,
|
| 1061 |
+
424,
|
| 1062 |
+
425,
|
| 1063 |
+
426,
|
| 1064 |
+
427,
|
| 1065 |
+
428,
|
| 1066 |
+
429,
|
| 1067 |
+
430,
|
| 1068 |
+
431,
|
| 1069 |
+
432,
|
| 1070 |
+
433,
|
| 1071 |
+
434,
|
| 1072 |
+
435,
|
| 1073 |
+
436,
|
| 1074 |
+
437,
|
| 1075 |
+
438,
|
| 1076 |
+
439,
|
| 1077 |
+
440,
|
| 1078 |
+
441,
|
| 1079 |
+
442,
|
| 1080 |
+
443,
|
| 1081 |
+
444,
|
| 1082 |
+
445,
|
| 1083 |
+
446,
|
| 1084 |
+
447,
|
| 1085 |
+
448,
|
| 1086 |
+
449,
|
| 1087 |
+
450,
|
| 1088 |
+
451,
|
| 1089 |
+
452,
|
| 1090 |
+
453,
|
| 1091 |
+
454,
|
| 1092 |
+
455,
|
| 1093 |
+
456,
|
| 1094 |
+
457,
|
| 1095 |
+
458,
|
| 1096 |
+
459,
|
| 1097 |
+
460,
|
| 1098 |
+
461,
|
| 1099 |
+
462,
|
| 1100 |
+
463,
|
| 1101 |
+
464,
|
| 1102 |
+
465,
|
| 1103 |
+
466,
|
| 1104 |
+
467,
|
| 1105 |
+
468,
|
| 1106 |
+
469,
|
| 1107 |
+
470,
|
| 1108 |
+
471,
|
| 1109 |
+
472,
|
| 1110 |
+
473,
|
| 1111 |
+
474,
|
| 1112 |
+
475,
|
| 1113 |
+
476,
|
| 1114 |
+
477,
|
| 1115 |
+
478,
|
| 1116 |
+
479,
|
| 1117 |
+
480,
|
| 1118 |
+
481,
|
| 1119 |
+
482,
|
| 1120 |
+
483,
|
| 1121 |
+
484,
|
| 1122 |
+
485,
|
| 1123 |
+
486,
|
| 1124 |
+
487,
|
| 1125 |
+
488,
|
| 1126 |
+
489,
|
| 1127 |
+
490,
|
| 1128 |
+
491,
|
| 1129 |
+
492,
|
| 1130 |
+
493,
|
| 1131 |
+
494,
|
| 1132 |
+
495,
|
| 1133 |
+
496,
|
| 1134 |
+
497,
|
| 1135 |
+
498,
|
| 1136 |
+
499,
|
| 1137 |
+
500,
|
| 1138 |
+
501,
|
| 1139 |
+
502,
|
| 1140 |
+
503,
|
| 1141 |
+
504,
|
| 1142 |
+
505,
|
| 1143 |
+
506,
|
| 1144 |
+
507,
|
| 1145 |
+
508,
|
| 1146 |
+
509,
|
| 1147 |
+
510,
|
| 1148 |
+
511,
|
| 1149 |
+
512,
|
| 1150 |
+
513,
|
| 1151 |
+
514,
|
| 1152 |
+
515,
|
| 1153 |
+
516,
|
| 1154 |
+
517,
|
| 1155 |
+
518,
|
| 1156 |
+
519,
|
| 1157 |
+
520,
|
| 1158 |
+
521,
|
| 1159 |
+
522,
|
| 1160 |
+
523,
|
| 1161 |
+
524,
|
| 1162 |
+
525,
|
| 1163 |
+
526,
|
| 1164 |
+
527,
|
| 1165 |
+
528,
|
| 1166 |
+
529,
|
| 1167 |
+
530,
|
| 1168 |
+
531,
|
| 1169 |
+
532,
|
| 1170 |
+
533,
|
| 1171 |
+
534,
|
| 1172 |
+
535,
|
| 1173 |
+
536,
|
| 1174 |
+
537,
|
| 1175 |
+
538,
|
| 1176 |
+
539,
|
| 1177 |
+
540,
|
| 1178 |
+
541
|
| 1179 |
+
],
|
| 1180 |
+
"val_episodes": [],
|
| 1181 |
+
"train_frames": 331577,
|
| 1182 |
+
"git_commit": "9bfeb4aec689c080b964f0dec10feec47d5b1741"
|
| 1183 |
+
},
|
| 1184 |
+
"training": {
|
| 1185 |
+
"steps": 4000,
|
| 1186 |
+
"batch_size": 512,
|
| 1187 |
+
"lr": 0.0001,
|
| 1188 |
+
"betas": [
|
| 1189 |
+
0.95,
|
| 1190 |
+
0.999
|
| 1191 |
+
],
|
| 1192 |
+
"weight_decay": 1e-06,
|
| 1193 |
+
"warmup": 200,
|
| 1194 |
+
"schedule": "linear warm-up + cosine",
|
| 1195 |
+
"backbone_lr_scale": 0.1,
|
| 1196 |
+
"ema": 0.9999,
|
| 1197 |
+
"shift_px": 0,
|
| 1198 |
+
"amp": true,
|
| 1199 |
+
"seed": 0,
|
| 1200 |
+
"augmentation": {
|
| 1201 |
+
"spec": "docs/augmentation_v2.md",
|
| 1202 |
+
"version": "hb-aug-v2-20261109",
|
| 1203 |
+
"implementation": "evaluation/augmentation/hb_aug_v2.py",
|
| 1204 |
+
"visual": {
|
| 1205 |
+
"effects": [
|
| 1206 |
+
"exposure",
|
| 1207 |
+
"contrast",
|
| 1208 |
+
"saturation",
|
| 1209 |
+
"hue",
|
| 1210 |
+
"gamma",
|
| 1211 |
+
"temperature",
|
| 1212 |
+
"rotation_crop",
|
| 1213 |
+
"noise",
|
| 1214 |
+
"gaussian_blur",
|
| 1215 |
+
"jpeg",
|
| 1216 |
+
"motion_blur",
|
| 1217 |
+
"sharpen",
|
| 1218 |
+
"defocus",
|
| 1219 |
+
"light_shadow",
|
| 1220 |
+
"wb_channel"
|
| 1221 |
+
],
|
| 1222 |
+
"boosted_per_sample": 1,
|
| 1223 |
+
"boost": 1.5,
|
| 1224 |
+
"pixel_scale": "H / 224",
|
| 1225 |
+
"future_targets": "none (one observation frame)"
|
| 1226 |
+
},
|
| 1227 |
+
"proprio": {
|
| 1228 |
+
"robot": "g1",
|
| 1229 |
+
"body_dims": 29,
|
| 1230 |
+
"bias_deg": 2.0,
|
| 1231 |
+
"bias_scope": "per_sample",
|
| 1232 |
+
"noise_deg": 0.25,
|
| 1233 |
+
"noise_clip_sigma": 3,
|
| 1234 |
+
"delay_probability": 0.0,
|
| 1235 |
+
"history_drop_probability": 0.0,
|
| 1236 |
+
"velocity": false
|
| 1237 |
+
},
|
| 1238 |
+
"native_image_augmentation": "off",
|
| 1239 |
+
"evaluation": "off"
|
| 1240 |
+
},
|
| 1241 |
+
"preflight": {
|
| 1242 |
+
"samples": 64,
|
| 1243 |
+
"state_dim": 44,
|
| 1244 |
+
"body_dims": 29,
|
| 1245 |
+
"images_changed": 64,
|
| 1246 |
+
"body_values_moved": 1.0,
|
| 1247 |
+
"max_body_offset_deg": 2.6335,
|
| 1248 |
+
"actions_bit_identical": true,
|
| 1249 |
+
"non_body_state_bit_identical": true,
|
| 1250 |
+
"eval_items_deterministic": 8
|
| 1251 |
+
}
|
| 1252 |
+
},
|
| 1253 |
+
"stats": {
|
| 1254 |
+
"state": {
|
| 1255 |
+
"min": [
|
| 1256 |
+
-1.037501573562622,
|
| 1257 |
+
-0.264034628868103,
|
| 1258 |
+
-0.4427748918533325,
|
| 1259 |
+
0.0667380765080452,
|
| 1260 |
+
-0.5215858817100525,
|
| 1261 |
+
-0.2416602224111557,
|
| 1262 |
+
-0.6867885589599609,
|
| 1263 |
+
-0.47648993134498596,
|
| 1264 |
+
-0.9344953298568726,
|
| 1265 |
+
0.10217262804508209,
|
| 1266 |
+
-0.6552681922912598,
|
| 1267 |
+
-0.21590328216552734,
|
| 1268 |
+
-0.15592412650585175,
|
| 1269 |
+
-0.1158304288983345,
|
| 1270 |
+
0.07265116274356842,
|
| 1271 |
+
0.022757036611437798,
|
| 1272 |
+
-0.02251558005809784,
|
| 1273 |
+
-0.44369247555732727,
|
| 1274 |
+
-0.5461236238479614,
|
| 1275 |
+
-0.5896561145782471,
|
| 1276 |
+
-0.26370522379875183,
|
| 1277 |
+
0.0013440968468785286,
|
| 1278 |
+
-0.9844546318054199,
|
| 1279 |
+
-1.5772571563720703,
|
| 1280 |
+
-1.0258455276489258,
|
| 1281 |
+
-0.8631634712219238,
|
| 1282 |
+
-0.5786121487617493,
|
| 1283 |
+
-1.024689793586731,
|
| 1284 |
+
-0.9216610789299011,
|
| 1285 |
+
0.9997360110282898,
|
| 1286 |
+
0.9988104701042175,
|
| 1287 |
+
0.9986811280250549,
|
| 1288 |
+
0.9989097118377686,
|
| 1289 |
+
0.9351540803909302,
|
| 1290 |
+
0.0,
|
| 1291 |
+
0.5493931770324707,
|
| 1292 |
+
0.5609477758407593,
|
| 1293 |
+
0.6044747233390808,
|
| 1294 |
+
0.6079143285751343,
|
| 1295 |
+
0.8139541745185852,
|
| 1296 |
+
0.0,
|
| 1297 |
+
-0.29203763604164124,
|
| 1298 |
+
-0.12108057737350464,
|
| 1299 |
+
-1.0
|
| 1300 |
+
],
|
| 1301 |
+
"max": [
|
| 1302 |
+
0.31642699241638184,
|
| 1303 |
+
0.32778802514076233,
|
| 1304 |
+
0.5025486946105957,
|
| 1305 |
+
1.8408095836639404,
|
| 1306 |
+
0.5323996543884277,
|
| 1307 |
+
0.23189055919647217,
|
| 1308 |
+
0.39967241883277893,
|
| 1309 |
+
0.18936435878276825,
|
| 1310 |
+
0.1610136777162552,
|
| 1311 |
+
1.3123230934143066,
|
| 1312 |
+
0.25517070293426514,
|
| 1313 |
+
0.21713340282440186,
|
| 1314 |
+
0.19809074699878693,
|
| 1315 |
+
0.11862942576408386,
|
| 1316 |
+
0.30983150005340576,
|
| 1317 |
+
0.4407850205898285,
|
| 1318 |
+
0.4915717840194702,
|
| 1319 |
+
0.1512441635131836,
|
| 1320 |
+
-0.14922617375850677,
|
| 1321 |
+
-0.20036308467388153,
|
| 1322 |
+
0.13975681364536285,
|
| 1323 |
+
0.4291156232357025,
|
| 1324 |
+
0.8944763541221619,
|
| 1325 |
+
0.1526746302843094,
|
| 1326 |
+
0.7923631072044373,
|
| 1327 |
+
1.1935943365097046,
|
| 1328 |
+
1.549551248550415,
|
| 1329 |
+
1.3240046501159668,
|
| 1330 |
+
1.1530930995941162,
|
| 1331 |
+
1.0,
|
| 1332 |
+
1.0,
|
| 1333 |
+
1.0,
|
| 1334 |
+
1.0,
|
| 1335 |
+
1.0,
|
| 1336 |
+
0.0036626288201659918,
|
| 1337 |
+
1.0,
|
| 1338 |
+
1.0,
|
| 1339 |
+
1.0,
|
| 1340 |
+
1.0,
|
| 1341 |
+
1.0,
|
| 1342 |
+
0.011179528199136257,
|
| 1343 |
+
0.08667038381099701,
|
| 1344 |
+
0.1206020638346672,
|
| 1345 |
+
-0.9563509225845337
|
| 1346 |
+
],
|
| 1347 |
+
"mean": [
|
| 1348 |
+
-0.11453739324440969,
|
| 1349 |
+
0.04011084241805277,
|
| 1350 |
+
0.042604342544257975,
|
| 1351 |
+
0.3101375482929991,
|
| 1352 |
+
-0.09883363973761503,
|
| 1353 |
+
-0.03264575295857167,
|
| 1354 |
+
-0.05904688190983114,
|
| 1355 |
+
-0.06457161075417515,
|
| 1356 |
+
-0.2835409265675875,
|
| 1357 |
+
0.3173361870458159,
|
| 1358 |
+
-0.17238908965674926,
|
| 1359 |
+
-0.022206056895898326,
|
| 1360 |
+
0.01720015949095758,
|
| 1361 |
+
0.010739354338715243,
|
| 1362 |
+
0.14542730844781557,
|
| 1363 |
+
0.23942305438226613,
|
| 1364 |
+
0.19775352569474616,
|
| 1365 |
+
-0.06352798202838195,
|
| 1366 |
+
-0.3432223755631105,
|
| 1367 |
+
-0.37103841771520646,
|
| 1368 |
+
-0.04449127923501375,
|
| 1369 |
+
0.18419998718936037,
|
| 1370 |
+
0.06295970191975703,
|
| 1371 |
+
-0.3409248401139509,
|
| 1372 |
+
-0.005028062842690194,
|
| 1373 |
+
-0.07113524459719395,
|
| 1374 |
+
0.35502965168391576,
|
| 1375 |
+
0.041413371540891426,
|
| 1376 |
+
-0.008045864253059339,
|
| 1377 |
+
0.9999993913050222,
|
| 1378 |
+
0.9999989068213664,
|
| 1379 |
+
0.9999985447814413,
|
| 1380 |
+
0.9999986399345618,
|
| 1381 |
+
0.9997595920880835,
|
| 1382 |
+
4.1432946030695356e-08,
|
| 1383 |
+
0.848720485038278,
|
| 1384 |
+
0.8478708518704877,
|
| 1385 |
+
0.8541396666476672,
|
| 1386 |
+
0.8627360528043341,
|
| 1387 |
+
0.9322875091376083,
|
| 1388 |
+
0.0013038922559370368,
|
| 1389 |
+
-0.07185684814001166,
|
| 1390 |
+
0.003796186879417613,
|
| 1391 |
+
-0.9959426704259458
|
| 1392 |
+
],
|
| 1393 |
+
"std": [
|
| 1394 |
+
0.22314642932157291,
|
| 1395 |
+
0.07865177014736555,
|
| 1396 |
+
0.13175734378126513,
|
| 1397 |
+
0.26774492089834084,
|
| 1398 |
+
0.138597724289319,
|
| 1399 |
+
0.05425034662016361,
|
| 1400 |
+
0.14586651661033237,
|
| 1401 |
+
0.06093383638045563,
|
| 1402 |
+
0.14535052480778932,
|
| 1403 |
+
0.16501149156409287,
|
| 1404 |
+
0.11795297516115227,
|
| 1405 |
+
0.05220902917773687,
|
| 1406 |
+
0.04589606128733729,
|
| 1407 |
+
0.02124229308479261,
|
| 1408 |
+
0.023465064820185715,
|
| 1409 |
+
0.06147598163079173,
|
| 1410 |
+
0.08019322209832842,
|
| 1411 |
+
0.10835271570424901,
|
| 1412 |
+
0.049692413539137906,
|
| 1413 |
+
0.04662608297189601,
|
| 1414 |
+
0.06414416688004776,
|
| 1415 |
+
0.06755100433487839,
|
| 1416 |
+
0.3112339885690449,
|
| 1417 |
+
0.24397518045868727,
|
| 1418 |
+
0.24187918334876668,
|
| 1419 |
+
0.5876198067006639,
|
| 1420 |
+
0.2545545751519334,
|
| 1421 |
+
0.2513222402223307,
|
| 1422 |
+
0.2206716966214715,
|
| 1423 |
+
3.0745450764358815e-06,
|
| 1424 |
+
1.0280418129053001e-05,
|
| 1425 |
+
1.3003933935428358e-05,
|
| 1426 |
+
1.0326645711325357e-05,
|
| 1427 |
+
0.0002625973205270167,
|
| 1428 |
+
1.1079706153857785e-05,
|
| 1429 |
+
0.1666589578526184,
|
| 1430 |
+
0.16783685131463846,
|
| 1431 |
+
0.16091359576221068,
|
| 1432 |
+
0.15173440996739748,
|
| 1433 |
+
0.07479574625351736,
|
| 1434 |
+
0.0016642108162531056,
|
| 1435 |
+
0.04762500188416354,
|
| 1436 |
+
0.025104825839366962,
|
| 1437 |
+
0.004688973726931697
|
| 1438 |
+
]
|
| 1439 |
+
},
|
| 1440 |
+
"action": {
|
| 1441 |
+
"min": [
|
| 1442 |
+
-0.5625,
|
| 1443 |
+
-0.4375,
|
| 1444 |
+
-0.4375,
|
| 1445 |
+
-0.4375,
|
| 1446 |
+
-0.5,
|
| 1447 |
+
-0.3125,
|
| 1448 |
+
-0.4375,
|
| 1449 |
+
-0.375,
|
| 1450 |
+
-0.5,
|
| 1451 |
+
-0.5,
|
| 1452 |
+
-0.5625,
|
| 1453 |
+
-0.5,
|
| 1454 |
+
-0.375,
|
| 1455 |
+
-0.375,
|
| 1456 |
+
-0.3125,
|
| 1457 |
+
-0.5625,
|
| 1458 |
+
-0.375,
|
| 1459 |
+
-0.4375,
|
| 1460 |
+
-0.5,
|
| 1461 |
+
-0.5,
|
| 1462 |
+
-0.375,
|
| 1463 |
+
-0.5625,
|
| 1464 |
+
-0.4375,
|
| 1465 |
+
-0.4375,
|
| 1466 |
+
-0.3125,
|
| 1467 |
+
-0.3125,
|
| 1468 |
+
-0.375,
|
| 1469 |
+
-0.5625,
|
| 1470 |
+
-0.4375,
|
| 1471 |
+
-0.375,
|
| 1472 |
+
-0.4375,
|
| 1473 |
+
-0.5625,
|
| 1474 |
+
-0.4375,
|
| 1475 |
+
-0.25,
|
| 1476 |
+
-0.1875,
|
| 1477 |
+
-0.3125,
|
| 1478 |
+
-0.5625,
|
| 1479 |
+
-0.5,
|
| 1480 |
+
-0.125,
|
| 1481 |
+
-0.375,
|
| 1482 |
+
-0.4375,
|
| 1483 |
+
-0.5,
|
| 1484 |
+
-0.3125,
|
| 1485 |
+
-0.375,
|
| 1486 |
+
-0.375,
|
| 1487 |
+
-0.3125,
|
| 1488 |
+
-0.375,
|
| 1489 |
+
-0.5,
|
| 1490 |
+
-0.625,
|
| 1491 |
+
-0.5625,
|
| 1492 |
+
-0.75,
|
| 1493 |
+
-0.375,
|
| 1494 |
+
-0.5625,
|
| 1495 |
+
-0.4375,
|
| 1496 |
+
-0.25,
|
| 1497 |
+
-0.5,
|
| 1498 |
+
-0.4375,
|
| 1499 |
+
-0.1875,
|
| 1500 |
+
-0.3125,
|
| 1501 |
+
-0.4375,
|
| 1502 |
+
-0.5625,
|
| 1503 |
+
-0.4375,
|
| 1504 |
+
-0.25,
|
| 1505 |
+
-0.5625,
|
| 1506 |
+
0.9997360110282898,
|
| 1507 |
+
0.9988104701042175,
|
| 1508 |
+
0.9986811280250549,
|
| 1509 |
+
0.9989097118377686,
|
| 1510 |
+
0.9351540803909302,
|
| 1511 |
+
0.0,
|
| 1512 |
+
0.5493931770324707,
|
| 1513 |
+
0.5609477758407593,
|
| 1514 |
+
0.6044747233390808,
|
| 1515 |
+
0.6079143285751343,
|
| 1516 |
+
0.8139541745185852,
|
| 1517 |
+
0.0
|
| 1518 |
+
],
|
| 1519 |
+
"max": [
|
| 1520 |
+
0.3125,
|
| 1521 |
+
0.375,
|
| 1522 |
+
0.5,
|
| 1523 |
+
0.3125,
|
| 1524 |
+
0.6875,
|
| 1525 |
+
0.5,
|
| 1526 |
+
0.5625,
|
| 1527 |
+
0.3125,
|
| 1528 |
+
0.3125,
|
| 1529 |
+
0.125,
|
| 1530 |
+
0.375,
|
| 1531 |
+
0.1875,
|
| 1532 |
+
0.375,
|
| 1533 |
+
0.4375,
|
| 1534 |
+
0.5,
|
| 1535 |
+
0.4375,
|
| 1536 |
+
0.25,
|
| 1537 |
+
0.3125,
|
| 1538 |
+
0.4375,
|
| 1539 |
+
0.1875,
|
| 1540 |
+
0.3125,
|
| 1541 |
+
0.25,
|
| 1542 |
+
0.3125,
|
| 1543 |
+
0.375,
|
| 1544 |
+
0.3125,
|
| 1545 |
+
0.375,
|
| 1546 |
+
0.0625,
|
| 1547 |
+
0.3125,
|
| 1548 |
+
0.3125,
|
| 1549 |
+
0.375,
|
| 1550 |
+
0.375,
|
| 1551 |
+
0.3125,
|
| 1552 |
+
0.375,
|
| 1553 |
+
0.5,
|
| 1554 |
+
0.1875,
|
| 1555 |
+
0.375,
|
| 1556 |
+
0.5,
|
| 1557 |
+
0.5,
|
| 1558 |
+
0.4375,
|
| 1559 |
+
0.3125,
|
| 1560 |
+
0.5,
|
| 1561 |
+
0.4375,
|
| 1562 |
+
0.5,
|
| 1563 |
+
0.25,
|
| 1564 |
+
0.4375,
|
| 1565 |
+
0.4375,
|
| 1566 |
+
0.3125,
|
| 1567 |
+
0.5625,
|
| 1568 |
+
0.1875,
|
| 1569 |
+
0.375,
|
| 1570 |
+
0.4375,
|
| 1571 |
+
0.3125,
|
| 1572 |
+
0.5625,
|
| 1573 |
+
0.5,
|
| 1574 |
+
0.3125,
|
| 1575 |
+
0.625,
|
| 1576 |
+
0.375,
|
| 1577 |
+
0.3125,
|
| 1578 |
+
0.4375,
|
| 1579 |
+
0.125,
|
| 1580 |
+
0.375,
|
| 1581 |
+
0.4375,
|
| 1582 |
+
0.5,
|
| 1583 |
+
0.375,
|
| 1584 |
+
1.0,
|
| 1585 |
+
1.0,
|
| 1586 |
+
1.0,
|
| 1587 |
+
1.0,
|
| 1588 |
+
1.0,
|
| 1589 |
+
0.0036626288201659918,
|
| 1590 |
+
1.0,
|
| 1591 |
+
1.0,
|
| 1592 |
+
1.0,
|
| 1593 |
+
1.0,
|
| 1594 |
+
1.0,
|
| 1595 |
+
0.011179528199136257
|
| 1596 |
+
],
|
| 1597 |
+
"mean": [
|
| 1598 |
+
0.035801073355510186,
|
| 1599 |
+
0.008993197658462439,
|
| 1600 |
+
-0.040684742910394874,
|
| 1601 |
+
-0.015219504066928647,
|
| 1602 |
+
0.06590757953657823,
|
| 1603 |
+
0.10679928794819907,
|
| 1604 |
+
0.07591468195924325,
|
| 1605 |
+
0.005018630664973747,
|
| 1606 |
+
0.02696074365833577,
|
| 1607 |
+
-0.21216018451219476,
|
| 1608 |
+
-0.1270698435054301,
|
| 1609 |
+
-0.20399956118789905,
|
| 1610 |
+
-0.038899524092443086,
|
| 1611 |
+
0.06899321273791607,
|
| 1612 |
+
0.17266030967166,
|
| 1613 |
+
-0.0748498840390015,
|
| 1614 |
+
0.0503489762558923,
|
| 1615 |
+
-0.06576507869966855,
|
| 1616 |
+
0.0027595400163461276,
|
| 1617 |
+
-0.08168671982676724,
|
| 1618 |
+
-0.0738222192733513,
|
| 1619 |
+
-0.1700281910385823,
|
| 1620 |
+
-0.09772541521275602,
|
| 1621 |
+
-0.10753158391565157,
|
| 1622 |
+
0.019795175781191096,
|
| 1623 |
+
-0.025940241633165148,
|
| 1624 |
+
-0.17703749807736965,
|
| 1625 |
+
-0.05779030964150107,
|
| 1626 |
+
0.025859755049355053,
|
| 1627 |
+
-0.010009175847540693,
|
| 1628 |
+
0.0017912505994082822,
|
| 1629 |
+
-0.15789281222762735,
|
| 1630 |
+
0.03512852972311107,
|
| 1631 |
+
0.12875553792934974,
|
| 1632 |
+
0.02877913727429828,
|
| 1633 |
+
0.08183280203391671,
|
| 1634 |
+
-0.08610895810023012,
|
| 1635 |
+
-0.05243861154422653,
|
| 1636 |
+
0.12698634103089176,
|
| 1637 |
+
-0.07630052747928837,
|
| 1638 |
+
-0.06368411409717803,
|
| 1639 |
+
-0.07644208585034547,
|
| 1640 |
+
0.10793175491665585,
|
| 1641 |
+
-0.11472240987764531,
|
| 1642 |
+
0.0446866414136083,
|
| 1643 |
+
-0.04013735874321801,
|
| 1644 |
+
-0.021028863582214688,
|
| 1645 |
+
-0.039761126374869185,
|
| 1646 |
+
-0.2875461431281422,
|
| 1647 |
+
-0.07881219897640669,
|
| 1648 |
+
0.023944852930088637,
|
| 1649 |
+
0.07625246172080694,
|
| 1650 |
+
0.028764434806998074,
|
| 1651 |
+
-0.06805847510532999,
|
| 1652 |
+
-0.0025467312268341894,
|
| 1653 |
+
0.10802901739264183,
|
| 1654 |
+
-0.05356523522439735,
|
| 1655 |
+
0.0780337221821779,
|
| 1656 |
+
0.13257554052301576,
|
| 1657 |
+
-0.16686659508952673,
|
| 1658 |
+
-0.044055377785552075,
|
| 1659 |
+
0.07334570853828824,
|
| 1660 |
+
0.17842857767577366,
|
| 1661 |
+
-0.05643768264988223,
|
| 1662 |
+
0.9999993913050222,
|
| 1663 |
+
0.9999989068213664,
|
| 1664 |
+
0.9999985447814413,
|
| 1665 |
+
0.9999986399345618,
|
| 1666 |
+
0.9997595920880835,
|
| 1667 |
+
4.1432946030695356e-08,
|
| 1668 |
+
0.848720485038278,
|
| 1669 |
+
0.8478708518704877,
|
| 1670 |
+
0.8541396666476672,
|
| 1671 |
+
0.8627360528043341,
|
| 1672 |
+
0.9322875091376083,
|
| 1673 |
+
0.0013038922559370368
|
| 1674 |
+
],
|
| 1675 |
+
"std": [
|
| 1676 |
+
0.11173244677940765,
|
| 1677 |
+
0.15194660980294933,
|
| 1678 |
+
0.1351430711515662,
|
| 1679 |
+
0.10484135405721283,
|
| 1680 |
+
0.1929176685503166,
|
| 1681 |
+
0.13755941559466697,
|
| 1682 |
+
0.17051900489315974,
|
| 1683 |
+
0.09179112225976728,
|
| 1684 |
+
0.09192408768656414,
|
| 1685 |
+
0.07671847366968917,
|
| 1686 |
+
0.13186630647447378,
|
| 1687 |
+
0.10839263606678452,
|
| 1688 |
+
0.12993358124861237,
|
| 1689 |
+
0.14329446957419215,
|
| 1690 |
+
0.10953734185200527,
|
| 1691 |
+
0.14750468461845972,
|
| 1692 |
+
0.08484062397807172,
|
| 1693 |
+
0.15093021798116624,
|
| 1694 |
+
0.15118011919576488,
|
| 1695 |
+
0.10079911766908481,
|
| 1696 |
+
0.10664686862803845,
|
| 1697 |
+
0.13285217338230945,
|
| 1698 |
+
0.09754221857903407,
|
| 1699 |
+
0.10789405672773242,
|
| 1700 |
+
0.08581448960575783,
|
| 1701 |
+
0.12451903338694055,
|
| 1702 |
+
0.06710254750165537,
|
| 1703 |
+
0.12620998029099512,
|
| 1704 |
+
0.1070435007690436,
|
| 1705 |
+
0.13340008187123648,
|
| 1706 |
+
0.13824680236385728,
|
| 1707 |
+
0.13209141989319176,
|
| 1708 |
+
0.09043010314064626,
|
| 1709 |
+
0.10448598825889968,
|
| 1710 |
+
0.05152826575928413,
|
| 1711 |
+
0.101548845386541,
|
| 1712 |
+
0.12231309853193433,
|
| 1713 |
+
0.15164600068096626,
|
| 1714 |
+
0.09056976406094214,
|
| 1715 |
+
0.10507904679337436,
|
| 1716 |
+
0.12492820977689113,
|
| 1717 |
+
0.14563987562071293,
|
| 1718 |
+
0.1485299613415581,
|
| 1719 |
+
0.07991123184450995,
|
| 1720 |
+
0.11136094888438179,
|
| 1721 |
+
0.14478875216432144,
|
| 1722 |
+
0.11837466954458266,
|
| 1723 |
+
0.15013454795740372,
|
| 1724 |
+
0.11021753863508399,
|
| 1725 |
+
0.13943847366018014,
|
| 1726 |
+
0.11837348053983793,
|
| 1727 |
+
0.08625441769459002,
|
| 1728 |
+
0.20280470849201804,
|
| 1729 |
+
0.14262414065572115,
|
| 1730 |
+
0.06812308254176133,
|
| 1731 |
+
0.16804197774588864,
|
| 1732 |
+
0.15184038871544758,
|
| 1733 |
+
0.06009853362212434,
|
| 1734 |
+
0.13033233324270047,
|
| 1735 |
+
0.08743776901836958,
|
| 1736 |
+
0.11568911736106861,
|
| 1737 |
+
0.10386805895710192,
|
| 1738 |
+
0.10887203688609184,
|
| 1739 |
+
0.14395784989811514,
|
| 1740 |
+
3.0745450764358815e-06,
|
| 1741 |
+
1.0280418129053001e-05,
|
| 1742 |
+
1.3003933935428358e-05,
|
| 1743 |
+
1.0326645711325357e-05,
|
| 1744 |
+
0.0002625973205270167,
|
| 1745 |
+
1.1079706153857785e-05,
|
| 1746 |
+
0.1666589578526184,
|
| 1747 |
+
0.16783685131463846,
|
| 1748 |
+
0.16091359576221068,
|
| 1749 |
+
0.15173440996739748,
|
| 1750 |
+
0.07479574625351736,
|
| 1751 |
+
0.0016642108162531056
|
| 1752 |
+
]
|
| 1753 |
+
}
|
| 1754 |
+
},
|
| 1755 |
+
"code_commit": "8c3b88d2a04b515650d446c391a067cde31407f6",
|
| 1756 |
+
"step": 2000,
|
| 1757 |
+
"weights": "ema",
|
| 1758 |
+
"offline_eval": {
|
| 1759 |
+
"mse": 0.0065690805204212666,
|
| 1760 |
+
"mse_row0": 0.005624693352729082,
|
| 1761 |
+
"mse_motion_token": 0.00684046745300293,
|
| 1762 |
+
"mse_inspire_left_hand_state": 0.00010157385986531153,
|
| 1763 |
+
"mse_inspire_right_hand_state": 0.010141807608306408,
|
| 1764 |
+
"samples": 256,
|
| 1765 |
+
"frames": "train"
|
| 1766 |
+
},
|
| 1767 |
+
"format": "hb_baselines/1"
|
| 1768 |
+
}
|
b6-pedal-bin/b512-v6-pure/step-002000/model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80f159243d6b693ed46e7b40fcc55540fecb9ca64164bdda0b11ef32e3f6c772
|
| 3 |
+
size 336144555
|
b6-pedal-bin/b512-v6-pure/step-002000/protocol.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "hb_baselines/1",
|
| 3 |
+
"step": 2000,
|
| 4 |
+
"policy": "act",
|
| 5 |
+
"files": {
|
| 6 |
+
"config.json": {
|
| 7 |
+
"bytes": 22293,
|
| 8 |
+
"sha256": "792106ad6b2d60d9af43647c7ac7f3d8e497f69228bb246c78035d43c5998a92"
|
| 9 |
+
},
|
| 10 |
+
"model.pt": {
|
| 11 |
+
"bytes": 336144555,
|
| 12 |
+
"sha256": "80f159243d6b693ed46e7b40fcc55540fecb9ca64164bdda0b11ef32e3f6c772"
|
| 13 |
+
}
|
| 14 |
+
},
|
| 15 |
+
"task": "B6 pedal-bin trash disposal (G1)",
|
| 16 |
+
"task_dir": "b6-pedal-bin",
|
| 17 |
+
"training_data": "humanoid-benchmark/b6-pedal-bin @ad2f5bf0 (v6 at the repo root), all 542 episodes, 331577 frames; user exception to the B6 v6 first-500 rule (as GR00T/Psi-Zero b512-v6-pure)",
|
| 18 |
+
"episodes": 542,
|
| 19 |
+
"steps": 4000,
|
| 20 |
+
"global_batch": 512,
|
| 21 |
+
"per_gpu_batch": 512,
|
| 22 |
+
"num_gpus": 1,
|
| 23 |
+
"gradient_accumulation_steps": 1,
|
| 24 |
+
"save_steps": [
|
| 25 |
+
2000,
|
| 26 |
+
4000
|
| 27 |
+
],
|
| 28 |
+
"lr": 0.0001,
|
| 29 |
+
"lr_schedule": "linear warm-up 200 + cosine",
|
| 30 |
+
"backbone_lr_scale": 0.1,
|
| 31 |
+
"ema": 0.9999,
|
| 32 |
+
"augmentation": "Humanoid Benchmark online augmentation spec v2 (hb-aug-v2-20261109): 15 visual effects, one per sample at 1.5x; proprio per-joint bias U(+-2 deg) + N(0, 0.25 deg); no delay, no history drop; model-native image augmentation off",
|
| 33 |
+
"state_dim": 44,
|
| 34 |
+
"action_dim": 76,
|
| 35 |
+
"cameras": [
|
| 36 |
+
"ego_view",
|
| 37 |
+
"chest"
|
| 38 |
+
],
|
| 39 |
+
"image_hw": [
|
| 40 |
+
168,
|
| 41 |
+
224
|
| 42 |
+
],
|
| 43 |
+
"inloop_mse": {
|
| 44 |
+
"task": "b6v6",
|
| 45 |
+
"split": "train10",
|
| 46 |
+
"every": 250,
|
| 47 |
+
"seed": 1234,
|
| 48 |
+
"weights": "ema",
|
| 49 |
+
"nmse_at_this_step": 0.0771,
|
| 50 |
+
"curve": {
|
| 51 |
+
"250": 0.2572,
|
| 52 |
+
"500": 0.1786,
|
| 53 |
+
"750": 0.1366,
|
| 54 |
+
"1000": 0.102,
|
| 55 |
+
"1250": 0.0902,
|
| 56 |
+
"1500": 0.0847,
|
| 57 |
+
"1750": 0.0808,
|
| 58 |
+
"2000": 0.0771,
|
| 59 |
+
"2250": 0.0739,
|
| 60 |
+
"2500": 0.0719,
|
| 61 |
+
"2750": 0.0704,
|
| 62 |
+
"3000": 0.0694,
|
| 63 |
+
"3250": 0.0685,
|
| 64 |
+
"3500": 0.068,
|
| 65 |
+
"3750": 0.0675,
|
| 66 |
+
"4000": 0.0673
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"seed": 0,
|
| 70 |
+
"reproducibility": {
|
| 71 |
+
"protocol": "https://github.com/zuo-kuangji/HumanWAM/blob/bai/hb_training/REPRODUCIBILITY.md",
|
| 72 |
+
"protocol_commit": "ea6e6f6",
|
| 73 |
+
"training_seed": 0,
|
| 74 |
+
"training_seed_source": "hb_baselines DEFAULTS seed 0 (= the published act b512* folders)",
|
| 75 |
+
"training_seed_verified_from_run_files": true,
|
| 76 |
+
"augmentation_random_stream": "not seeded: hb_baselines draws the per-sample augmentation from pid/urandom (only FLASH uses HB_AUG_SEED); the distribution is exactly spec v2, the individual draws are not bit-reproducible (registered exception)",
|
| 77 |
+
"inloop_mse_seed": 1234,
|
| 78 |
+
"layout": {
|
| 79 |
+
"nodes": 1,
|
| 80 |
+
"gpus_per_node": 1,
|
| 81 |
+
"per_gpu_batch": 512,
|
| 82 |
+
"global_batch": 512,
|
| 83 |
+
"gradient_accumulation": 1,
|
| 84 |
+
"num_workers": 32,
|
| 85 |
+
"prefetch": 2
|
| 86 |
+
},
|
| 87 |
+
"environment": "hb-baselines (evaluation/baselines/requirements.txt: Python 3.12.1, torch 2.9.0+cu128, torchvision 0.24.0); training_records/pip_freeze_hb-baselines.txt",
|
| 88 |
+
"hardware": "Aliyun PAI DSW, 1 x RTX 4090 46 GB (process at nice 19 next to closed-loop evaluations)",
|
| 89 |
+
"upstream_code": "github.com/zuo-kuangji/Humanoid_benchmark bai @ 8c3b88d2a04b515650d446c391a067cde31407f6 (evaluation/baselines/train.py --policy act --contract g1_sonic_dfx6, evaluation/augmentation/hb_aug_v2.py)",
|
| 90 |
+
"determinism": "statistical reproducibility: same data commit, config, seed and layout give the same curves within run-to-run noise; GPU kernels (AMP, cuDNN) are not bitwise deterministic",
|
| 91 |
+
"exceptions": [
|
| 92 |
+
"all 542 episodes of b6 v6 (user 2026-11-24)",
|
| 93 |
+
"augmentation random stream not seeded (hb_baselines)"
|
| 94 |
+
]
|
| 95 |
+
},
|
| 96 |
+
"inference": "Humanoid_benchmark evaluation/policy/ACT (evaluation/baselines/adapters.py, runtime.BaselinePolicy) loads this folder (config.json + model.pt); step-004000/training_records/code_* is the exact code",
|
| 97 |
+
"resume_state_included": false
|
| 98 |
+
}
|
b6-pedal-bin/b512-v6-pure/step-004000/SHA256SUMS
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
6893dcfe9b12cccaa0b6135f80ed117b54948134b72f7521ed52f2350594185c config.json
|
| 2 |
+
7a5142ade874c13e81ee536dcf54f229ba72cf3314d1ea79ccf02a09e09a8971 model.pt
|
| 3 |
+
597b7255248b8b14ee470777eeb3f5b14c26de2f0723c263b6afd8289e3b6ef5 protocol.json
|
| 4 |
+
26b2c9863f5f18725e562f2842c0d4d727f1490aa76e43fa23c454bcf8fb65a0 training_records/code_commit.txt
|
| 5 |
+
2d40d928a8d3214ea632cd9a39c60bc8bd9938ade5e97dd4b3e0b8e948c79029 training_records/inloop-mse.jsonl
|
| 6 |
+
72942d6f1c95ab99ba51fcf641bfd0e4cb34943c5b19a2a39d8da72ef5daa6b2 training_records/pip_freeze_hb-baselines.txt
|
| 7 |
+
1a759ff5335992028c0b5f85700c98b37ec3730e7a5b4fb6b400744ed4884e21 training_records/preflight_run.json
|
| 8 |
+
ec320bd513cf17d6940fd0c3389b92ec381d1bd93e0bcd38eb2f0d0c2734a0eb training_records/run.json
|
| 9 |
+
9e8fec047e8a7ebe01cefce37064ddf13888a81d6fca445ce1103624053774e6 training_records/train.log
|
| 10 |
+
ca52d204c81a7cb06eb35a649ec9554b8a1037c3d1a425b1360350e5cbc9852b training_records/train_act_b6v6p_dsw.sh
|
| 11 |
+
a6229ac899a7fe62f63af4c771811bc8a541b412ba1af5b8f97a94fd918ea337 training_records/train_log.jsonl
|
| 12 |
+
9f7713cea4f846efcfc924234267ced48210357f419d67915c10b504316bedde training_records/code_8c3b88d2/evaluation/augmentation/hb_aug_v2.py
|
| 13 |
+
69e97429f08c1a249e48c519026c3534245f22543c5a6876f0a13b09ff3f79b1 training_records/code_8c3b88d2/evaluation/baselines/__init__.py
|
| 14 |
+
3db95cd8e4e436875e11f1054a99d250ca7d94e0127909090b58730402340f19 training_records/code_8c3b88d2/evaluation/baselines/act_nets.py
|
| 15 |
+
71e26fbbe13a8df02c82cf98555c4e45dd42af053e45a371e5356f2e23596061 training_records/code_8c3b88d2/evaluation/baselines/adapters.py
|
| 16 |
+
aa7fc175f50de83b130427cc30533a45220e70d0ed8c807f33ca44d39cb9fb81 training_records/code_8c3b88d2/evaluation/baselines/check_flash_adapter.py
|
| 17 |
+
91f714aa3b7ec6b5c28764496163671cadabe4a833c0b06b6bc4c155cec7f66f training_records/code_8c3b88d2/evaluation/baselines/check_flash_parity.py
|
| 18 |
+
d27091c71268657c9341d95fb7f85466c540be6dd76047bebd888c6e00379e7b training_records/code_8c3b88d2/evaluation/baselines/data.py
|
| 19 |
+
35c01a4e2edd80f85878b37928069c09ed3238127bbb51a5443e7f1c92703e53 training_records/code_8c3b88d2/evaluation/baselines/flash.py
|
| 20 |
+
dc9cdf83969ef09a4ccd76d764f44dc9cf69250d3f1814c9930c4883bf4ee547 training_records/code_8c3b88d2/evaluation/baselines/inloop.py
|
| 21 |
+
38a66937bb92393a3f1ce0644b249da28d582a4fd03d134b7743e6037abd88b9 training_records/code_8c3b88d2/evaluation/baselines/nets.py
|
| 22 |
+
68d4bad86d82007ed77ab0dcc8f7345da810d57c298323fccadc1efcf99dac4a training_records/code_8c3b88d2/evaluation/baselines/policies.py
|
| 23 |
+
bb211f66038e53efd08ee3ec03e133d8bb206ec36cc608d349b4fad3a61e874b training_records/code_8c3b88d2/evaluation/baselines/requirements.txt
|
| 24 |
+
379a2b2c5221e337df62e2097616438ae83a65d8cbb89a0e433e15ecd7aec881 training_records/code_8c3b88d2/evaluation/baselines/runtime.py
|
| 25 |
+
ee8582c1ba93b9b9a45bbb02570ed9bd938b6f8ccdf52343f68d4ceb763159a2 training_records/code_8c3b88d2/evaluation/baselines/train.py
|
| 26 |
+
593889e0403303d97820d46a6808aed24a3f2cc950dc11310fa305136fbd27c1 training_records/code_8c3b88d2/evaluation/policy/ACT/model.py
|
b6-pedal-bin/b512-v6-pure/step-004000/config.json
ADDED
|
@@ -0,0 +1,1768 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 3 |
+
"policy": "act",
|
| 4 |
+
"n_cameras": 2,
|
| 5 |
+
"state_dim": 44,
|
| 6 |
+
"action_dim": 76,
|
| 7 |
+
"horizon": 16,
|
| 8 |
+
"backbone": "resnet18",
|
| 9 |
+
"backbone_weights": "IMAGENET1K_V1",
|
| 10 |
+
"backbone_norm": "frozen_bn",
|
| 11 |
+
"hidden_dim": 384,
|
| 12 |
+
"num_layers": 4,
|
| 13 |
+
"num_heads": 8,
|
| 14 |
+
"mlp_ratio": 4.0,
|
| 15 |
+
"dropout": 0.1,
|
| 16 |
+
"time_embed_dim": 128,
|
| 17 |
+
"num_inference_steps": null,
|
| 18 |
+
"num_train_timesteps": 100,
|
| 19 |
+
"beta_schedule": "squaredcos_cap_v2",
|
| 20 |
+
"prediction_type": "epsilon",
|
| 21 |
+
"clip_sample": true,
|
| 22 |
+
"act_hidden_dim": 512,
|
| 23 |
+
"dim_feedforward": 3200,
|
| 24 |
+
"enc_layers": 4,
|
| 25 |
+
"dec_layers": 7,
|
| 26 |
+
"nheads": 8,
|
| 27 |
+
"latent_dim": 32,
|
| 28 |
+
"kl_weight": 10.0,
|
| 29 |
+
"extra": {}
|
| 30 |
+
},
|
| 31 |
+
"contract": {
|
| 32 |
+
"name": "g1_sonic_dfx6",
|
| 33 |
+
"robot": "g1",
|
| 34 |
+
"cameras": [
|
| 35 |
+
"ego_view",
|
| 36 |
+
"chest"
|
| 37 |
+
],
|
| 38 |
+
"state": [
|
| 39 |
+
[
|
| 40 |
+
"observation.state",
|
| 41 |
+
0,
|
| 42 |
+
29
|
| 43 |
+
],
|
| 44 |
+
[
|
| 45 |
+
"observation.inspire_left_hand_state",
|
| 46 |
+
0,
|
| 47 |
+
6
|
| 48 |
+
],
|
| 49 |
+
[
|
| 50 |
+
"observation.inspire_right_hand_state",
|
| 51 |
+
0,
|
| 52 |
+
6
|
| 53 |
+
],
|
| 54 |
+
[
|
| 55 |
+
"observation.projected_gravity",
|
| 56 |
+
0,
|
| 57 |
+
3
|
| 58 |
+
]
|
| 59 |
+
],
|
| 60 |
+
"action": [
|
| 61 |
+
[
|
| 62 |
+
"action.motion_token",
|
| 63 |
+
0,
|
| 64 |
+
64
|
| 65 |
+
],
|
| 66 |
+
[
|
| 67 |
+
"observation.inspire_left_hand_state",
|
| 68 |
+
0,
|
| 69 |
+
6
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
"observation.inspire_right_hand_state",
|
| 73 |
+
0,
|
| 74 |
+
6
|
| 75 |
+
]
|
| 76 |
+
],
|
| 77 |
+
"state_dim": 44,
|
| 78 |
+
"action_dim": 76,
|
| 79 |
+
"action_space": "sonic_dfx6",
|
| 80 |
+
"body_dims": 29
|
| 81 |
+
},
|
| 82 |
+
"image_hw": [
|
| 83 |
+
168,
|
| 84 |
+
224
|
| 85 |
+
],
|
| 86 |
+
"task_text": "Pick up the chip barrel from the cart, walk to the pedal bin, step on its pedal and drop it in.",
|
| 87 |
+
"dataset": {
|
| 88 |
+
"name": "data",
|
| 89 |
+
"root": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/b6-pedal-bin-v6-ad2f5bf/data",
|
| 90 |
+
"robot_type": null,
|
| 91 |
+
"fps": 30.0,
|
| 92 |
+
"episodes": [
|
| 93 |
+
0,
|
| 94 |
+
1,
|
| 95 |
+
2,
|
| 96 |
+
3,
|
| 97 |
+
4,
|
| 98 |
+
5,
|
| 99 |
+
6,
|
| 100 |
+
7,
|
| 101 |
+
8,
|
| 102 |
+
9,
|
| 103 |
+
10,
|
| 104 |
+
11,
|
| 105 |
+
12,
|
| 106 |
+
13,
|
| 107 |
+
14,
|
| 108 |
+
15,
|
| 109 |
+
16,
|
| 110 |
+
17,
|
| 111 |
+
18,
|
| 112 |
+
19,
|
| 113 |
+
20,
|
| 114 |
+
21,
|
| 115 |
+
22,
|
| 116 |
+
23,
|
| 117 |
+
24,
|
| 118 |
+
25,
|
| 119 |
+
26,
|
| 120 |
+
27,
|
| 121 |
+
28,
|
| 122 |
+
29,
|
| 123 |
+
30,
|
| 124 |
+
31,
|
| 125 |
+
32,
|
| 126 |
+
33,
|
| 127 |
+
34,
|
| 128 |
+
35,
|
| 129 |
+
36,
|
| 130 |
+
37,
|
| 131 |
+
38,
|
| 132 |
+
39,
|
| 133 |
+
40,
|
| 134 |
+
41,
|
| 135 |
+
42,
|
| 136 |
+
43,
|
| 137 |
+
44,
|
| 138 |
+
45,
|
| 139 |
+
46,
|
| 140 |
+
47,
|
| 141 |
+
48,
|
| 142 |
+
49,
|
| 143 |
+
50,
|
| 144 |
+
51,
|
| 145 |
+
52,
|
| 146 |
+
53,
|
| 147 |
+
54,
|
| 148 |
+
55,
|
| 149 |
+
56,
|
| 150 |
+
57,
|
| 151 |
+
58,
|
| 152 |
+
59,
|
| 153 |
+
60,
|
| 154 |
+
61,
|
| 155 |
+
62,
|
| 156 |
+
63,
|
| 157 |
+
64,
|
| 158 |
+
65,
|
| 159 |
+
66,
|
| 160 |
+
67,
|
| 161 |
+
68,
|
| 162 |
+
69,
|
| 163 |
+
70,
|
| 164 |
+
71,
|
| 165 |
+
72,
|
| 166 |
+
73,
|
| 167 |
+
74,
|
| 168 |
+
75,
|
| 169 |
+
76,
|
| 170 |
+
77,
|
| 171 |
+
78,
|
| 172 |
+
79,
|
| 173 |
+
80,
|
| 174 |
+
81,
|
| 175 |
+
82,
|
| 176 |
+
83,
|
| 177 |
+
84,
|
| 178 |
+
85,
|
| 179 |
+
86,
|
| 180 |
+
87,
|
| 181 |
+
88,
|
| 182 |
+
89,
|
| 183 |
+
90,
|
| 184 |
+
91,
|
| 185 |
+
92,
|
| 186 |
+
93,
|
| 187 |
+
94,
|
| 188 |
+
95,
|
| 189 |
+
96,
|
| 190 |
+
97,
|
| 191 |
+
98,
|
| 192 |
+
99,
|
| 193 |
+
100,
|
| 194 |
+
101,
|
| 195 |
+
102,
|
| 196 |
+
103,
|
| 197 |
+
104,
|
| 198 |
+
105,
|
| 199 |
+
106,
|
| 200 |
+
107,
|
| 201 |
+
108,
|
| 202 |
+
109,
|
| 203 |
+
110,
|
| 204 |
+
111,
|
| 205 |
+
112,
|
| 206 |
+
113,
|
| 207 |
+
114,
|
| 208 |
+
115,
|
| 209 |
+
116,
|
| 210 |
+
117,
|
| 211 |
+
118,
|
| 212 |
+
119,
|
| 213 |
+
120,
|
| 214 |
+
121,
|
| 215 |
+
122,
|
| 216 |
+
123,
|
| 217 |
+
124,
|
| 218 |
+
125,
|
| 219 |
+
126,
|
| 220 |
+
127,
|
| 221 |
+
128,
|
| 222 |
+
129,
|
| 223 |
+
130,
|
| 224 |
+
131,
|
| 225 |
+
132,
|
| 226 |
+
133,
|
| 227 |
+
134,
|
| 228 |
+
135,
|
| 229 |
+
136,
|
| 230 |
+
137,
|
| 231 |
+
138,
|
| 232 |
+
139,
|
| 233 |
+
140,
|
| 234 |
+
141,
|
| 235 |
+
142,
|
| 236 |
+
143,
|
| 237 |
+
144,
|
| 238 |
+
145,
|
| 239 |
+
146,
|
| 240 |
+
147,
|
| 241 |
+
148,
|
| 242 |
+
149,
|
| 243 |
+
150,
|
| 244 |
+
151,
|
| 245 |
+
152,
|
| 246 |
+
153,
|
| 247 |
+
154,
|
| 248 |
+
155,
|
| 249 |
+
156,
|
| 250 |
+
157,
|
| 251 |
+
158,
|
| 252 |
+
159,
|
| 253 |
+
160,
|
| 254 |
+
161,
|
| 255 |
+
162,
|
| 256 |
+
163,
|
| 257 |
+
164,
|
| 258 |
+
165,
|
| 259 |
+
166,
|
| 260 |
+
167,
|
| 261 |
+
168,
|
| 262 |
+
169,
|
| 263 |
+
170,
|
| 264 |
+
171,
|
| 265 |
+
172,
|
| 266 |
+
173,
|
| 267 |
+
174,
|
| 268 |
+
175,
|
| 269 |
+
176,
|
| 270 |
+
177,
|
| 271 |
+
178,
|
| 272 |
+
179,
|
| 273 |
+
180,
|
| 274 |
+
181,
|
| 275 |
+
182,
|
| 276 |
+
183,
|
| 277 |
+
184,
|
| 278 |
+
185,
|
| 279 |
+
186,
|
| 280 |
+
187,
|
| 281 |
+
188,
|
| 282 |
+
189,
|
| 283 |
+
190,
|
| 284 |
+
191,
|
| 285 |
+
192,
|
| 286 |
+
193,
|
| 287 |
+
194,
|
| 288 |
+
195,
|
| 289 |
+
196,
|
| 290 |
+
197,
|
| 291 |
+
198,
|
| 292 |
+
199,
|
| 293 |
+
200,
|
| 294 |
+
201,
|
| 295 |
+
202,
|
| 296 |
+
203,
|
| 297 |
+
204,
|
| 298 |
+
205,
|
| 299 |
+
206,
|
| 300 |
+
207,
|
| 301 |
+
208,
|
| 302 |
+
209,
|
| 303 |
+
210,
|
| 304 |
+
211,
|
| 305 |
+
212,
|
| 306 |
+
213,
|
| 307 |
+
214,
|
| 308 |
+
215,
|
| 309 |
+
216,
|
| 310 |
+
217,
|
| 311 |
+
218,
|
| 312 |
+
219,
|
| 313 |
+
220,
|
| 314 |
+
221,
|
| 315 |
+
222,
|
| 316 |
+
223,
|
| 317 |
+
224,
|
| 318 |
+
225,
|
| 319 |
+
226,
|
| 320 |
+
227,
|
| 321 |
+
228,
|
| 322 |
+
229,
|
| 323 |
+
230,
|
| 324 |
+
231,
|
| 325 |
+
232,
|
| 326 |
+
233,
|
| 327 |
+
234,
|
| 328 |
+
235,
|
| 329 |
+
236,
|
| 330 |
+
237,
|
| 331 |
+
238,
|
| 332 |
+
239,
|
| 333 |
+
240,
|
| 334 |
+
241,
|
| 335 |
+
242,
|
| 336 |
+
243,
|
| 337 |
+
244,
|
| 338 |
+
245,
|
| 339 |
+
246,
|
| 340 |
+
247,
|
| 341 |
+
248,
|
| 342 |
+
249,
|
| 343 |
+
250,
|
| 344 |
+
251,
|
| 345 |
+
252,
|
| 346 |
+
253,
|
| 347 |
+
254,
|
| 348 |
+
255,
|
| 349 |
+
256,
|
| 350 |
+
257,
|
| 351 |
+
258,
|
| 352 |
+
259,
|
| 353 |
+
260,
|
| 354 |
+
261,
|
| 355 |
+
262,
|
| 356 |
+
263,
|
| 357 |
+
264,
|
| 358 |
+
265,
|
| 359 |
+
266,
|
| 360 |
+
267,
|
| 361 |
+
268,
|
| 362 |
+
269,
|
| 363 |
+
270,
|
| 364 |
+
271,
|
| 365 |
+
272,
|
| 366 |
+
273,
|
| 367 |
+
274,
|
| 368 |
+
275,
|
| 369 |
+
276,
|
| 370 |
+
277,
|
| 371 |
+
278,
|
| 372 |
+
279,
|
| 373 |
+
280,
|
| 374 |
+
281,
|
| 375 |
+
282,
|
| 376 |
+
283,
|
| 377 |
+
284,
|
| 378 |
+
285,
|
| 379 |
+
286,
|
| 380 |
+
287,
|
| 381 |
+
288,
|
| 382 |
+
289,
|
| 383 |
+
290,
|
| 384 |
+
291,
|
| 385 |
+
292,
|
| 386 |
+
293,
|
| 387 |
+
294,
|
| 388 |
+
295,
|
| 389 |
+
296,
|
| 390 |
+
297,
|
| 391 |
+
298,
|
| 392 |
+
299,
|
| 393 |
+
300,
|
| 394 |
+
301,
|
| 395 |
+
302,
|
| 396 |
+
303,
|
| 397 |
+
304,
|
| 398 |
+
305,
|
| 399 |
+
306,
|
| 400 |
+
307,
|
| 401 |
+
308,
|
| 402 |
+
309,
|
| 403 |
+
310,
|
| 404 |
+
311,
|
| 405 |
+
312,
|
| 406 |
+
313,
|
| 407 |
+
314,
|
| 408 |
+
315,
|
| 409 |
+
316,
|
| 410 |
+
317,
|
| 411 |
+
318,
|
| 412 |
+
319,
|
| 413 |
+
320,
|
| 414 |
+
321,
|
| 415 |
+
322,
|
| 416 |
+
323,
|
| 417 |
+
324,
|
| 418 |
+
325,
|
| 419 |
+
326,
|
| 420 |
+
327,
|
| 421 |
+
328,
|
| 422 |
+
329,
|
| 423 |
+
330,
|
| 424 |
+
331,
|
| 425 |
+
332,
|
| 426 |
+
333,
|
| 427 |
+
334,
|
| 428 |
+
335,
|
| 429 |
+
336,
|
| 430 |
+
337,
|
| 431 |
+
338,
|
| 432 |
+
339,
|
| 433 |
+
340,
|
| 434 |
+
341,
|
| 435 |
+
342,
|
| 436 |
+
343,
|
| 437 |
+
344,
|
| 438 |
+
345,
|
| 439 |
+
346,
|
| 440 |
+
347,
|
| 441 |
+
348,
|
| 442 |
+
349,
|
| 443 |
+
350,
|
| 444 |
+
351,
|
| 445 |
+
352,
|
| 446 |
+
353,
|
| 447 |
+
354,
|
| 448 |
+
355,
|
| 449 |
+
356,
|
| 450 |
+
357,
|
| 451 |
+
358,
|
| 452 |
+
359,
|
| 453 |
+
360,
|
| 454 |
+
361,
|
| 455 |
+
362,
|
| 456 |
+
363,
|
| 457 |
+
364,
|
| 458 |
+
365,
|
| 459 |
+
366,
|
| 460 |
+
367,
|
| 461 |
+
368,
|
| 462 |
+
369,
|
| 463 |
+
370,
|
| 464 |
+
371,
|
| 465 |
+
372,
|
| 466 |
+
373,
|
| 467 |
+
374,
|
| 468 |
+
375,
|
| 469 |
+
376,
|
| 470 |
+
377,
|
| 471 |
+
378,
|
| 472 |
+
379,
|
| 473 |
+
380,
|
| 474 |
+
381,
|
| 475 |
+
382,
|
| 476 |
+
383,
|
| 477 |
+
384,
|
| 478 |
+
385,
|
| 479 |
+
386,
|
| 480 |
+
387,
|
| 481 |
+
388,
|
| 482 |
+
389,
|
| 483 |
+
390,
|
| 484 |
+
391,
|
| 485 |
+
392,
|
| 486 |
+
393,
|
| 487 |
+
394,
|
| 488 |
+
395,
|
| 489 |
+
396,
|
| 490 |
+
397,
|
| 491 |
+
398,
|
| 492 |
+
399,
|
| 493 |
+
400,
|
| 494 |
+
401,
|
| 495 |
+
402,
|
| 496 |
+
403,
|
| 497 |
+
404,
|
| 498 |
+
405,
|
| 499 |
+
406,
|
| 500 |
+
407,
|
| 501 |
+
408,
|
| 502 |
+
409,
|
| 503 |
+
410,
|
| 504 |
+
411,
|
| 505 |
+
412,
|
| 506 |
+
413,
|
| 507 |
+
414,
|
| 508 |
+
415,
|
| 509 |
+
416,
|
| 510 |
+
417,
|
| 511 |
+
418,
|
| 512 |
+
419,
|
| 513 |
+
420,
|
| 514 |
+
421,
|
| 515 |
+
422,
|
| 516 |
+
423,
|
| 517 |
+
424,
|
| 518 |
+
425,
|
| 519 |
+
426,
|
| 520 |
+
427,
|
| 521 |
+
428,
|
| 522 |
+
429,
|
| 523 |
+
430,
|
| 524 |
+
431,
|
| 525 |
+
432,
|
| 526 |
+
433,
|
| 527 |
+
434,
|
| 528 |
+
435,
|
| 529 |
+
436,
|
| 530 |
+
437,
|
| 531 |
+
438,
|
| 532 |
+
439,
|
| 533 |
+
440,
|
| 534 |
+
441,
|
| 535 |
+
442,
|
| 536 |
+
443,
|
| 537 |
+
444,
|
| 538 |
+
445,
|
| 539 |
+
446,
|
| 540 |
+
447,
|
| 541 |
+
448,
|
| 542 |
+
449,
|
| 543 |
+
450,
|
| 544 |
+
451,
|
| 545 |
+
452,
|
| 546 |
+
453,
|
| 547 |
+
454,
|
| 548 |
+
455,
|
| 549 |
+
456,
|
| 550 |
+
457,
|
| 551 |
+
458,
|
| 552 |
+
459,
|
| 553 |
+
460,
|
| 554 |
+
461,
|
| 555 |
+
462,
|
| 556 |
+
463,
|
| 557 |
+
464,
|
| 558 |
+
465,
|
| 559 |
+
466,
|
| 560 |
+
467,
|
| 561 |
+
468,
|
| 562 |
+
469,
|
| 563 |
+
470,
|
| 564 |
+
471,
|
| 565 |
+
472,
|
| 566 |
+
473,
|
| 567 |
+
474,
|
| 568 |
+
475,
|
| 569 |
+
476,
|
| 570 |
+
477,
|
| 571 |
+
478,
|
| 572 |
+
479,
|
| 573 |
+
480,
|
| 574 |
+
481,
|
| 575 |
+
482,
|
| 576 |
+
483,
|
| 577 |
+
484,
|
| 578 |
+
485,
|
| 579 |
+
486,
|
| 580 |
+
487,
|
| 581 |
+
488,
|
| 582 |
+
489,
|
| 583 |
+
490,
|
| 584 |
+
491,
|
| 585 |
+
492,
|
| 586 |
+
493,
|
| 587 |
+
494,
|
| 588 |
+
495,
|
| 589 |
+
496,
|
| 590 |
+
497,
|
| 591 |
+
498,
|
| 592 |
+
499,
|
| 593 |
+
500,
|
| 594 |
+
501,
|
| 595 |
+
502,
|
| 596 |
+
503,
|
| 597 |
+
504,
|
| 598 |
+
505,
|
| 599 |
+
506,
|
| 600 |
+
507,
|
| 601 |
+
508,
|
| 602 |
+
509,
|
| 603 |
+
510,
|
| 604 |
+
511,
|
| 605 |
+
512,
|
| 606 |
+
513,
|
| 607 |
+
514,
|
| 608 |
+
515,
|
| 609 |
+
516,
|
| 610 |
+
517,
|
| 611 |
+
518,
|
| 612 |
+
519,
|
| 613 |
+
520,
|
| 614 |
+
521,
|
| 615 |
+
522,
|
| 616 |
+
523,
|
| 617 |
+
524,
|
| 618 |
+
525,
|
| 619 |
+
526,
|
| 620 |
+
527,
|
| 621 |
+
528,
|
| 622 |
+
529,
|
| 623 |
+
530,
|
| 624 |
+
531,
|
| 625 |
+
532,
|
| 626 |
+
533,
|
| 627 |
+
534,
|
| 628 |
+
535,
|
| 629 |
+
536,
|
| 630 |
+
537,
|
| 631 |
+
538,
|
| 632 |
+
539,
|
| 633 |
+
540,
|
| 634 |
+
541
|
| 635 |
+
],
|
| 636 |
+
"train_episodes": [
|
| 637 |
+
0,
|
| 638 |
+
1,
|
| 639 |
+
2,
|
| 640 |
+
3,
|
| 641 |
+
4,
|
| 642 |
+
5,
|
| 643 |
+
6,
|
| 644 |
+
7,
|
| 645 |
+
8,
|
| 646 |
+
9,
|
| 647 |
+
10,
|
| 648 |
+
11,
|
| 649 |
+
12,
|
| 650 |
+
13,
|
| 651 |
+
14,
|
| 652 |
+
15,
|
| 653 |
+
16,
|
| 654 |
+
17,
|
| 655 |
+
18,
|
| 656 |
+
19,
|
| 657 |
+
20,
|
| 658 |
+
21,
|
| 659 |
+
22,
|
| 660 |
+
23,
|
| 661 |
+
24,
|
| 662 |
+
25,
|
| 663 |
+
26,
|
| 664 |
+
27,
|
| 665 |
+
28,
|
| 666 |
+
29,
|
| 667 |
+
30,
|
| 668 |
+
31,
|
| 669 |
+
32,
|
| 670 |
+
33,
|
| 671 |
+
34,
|
| 672 |
+
35,
|
| 673 |
+
36,
|
| 674 |
+
37,
|
| 675 |
+
38,
|
| 676 |
+
39,
|
| 677 |
+
40,
|
| 678 |
+
41,
|
| 679 |
+
42,
|
| 680 |
+
43,
|
| 681 |
+
44,
|
| 682 |
+
45,
|
| 683 |
+
46,
|
| 684 |
+
47,
|
| 685 |
+
48,
|
| 686 |
+
49,
|
| 687 |
+
50,
|
| 688 |
+
51,
|
| 689 |
+
52,
|
| 690 |
+
53,
|
| 691 |
+
54,
|
| 692 |
+
55,
|
| 693 |
+
56,
|
| 694 |
+
57,
|
| 695 |
+
58,
|
| 696 |
+
59,
|
| 697 |
+
60,
|
| 698 |
+
61,
|
| 699 |
+
62,
|
| 700 |
+
63,
|
| 701 |
+
64,
|
| 702 |
+
65,
|
| 703 |
+
66,
|
| 704 |
+
67,
|
| 705 |
+
68,
|
| 706 |
+
69,
|
| 707 |
+
70,
|
| 708 |
+
71,
|
| 709 |
+
72,
|
| 710 |
+
73,
|
| 711 |
+
74,
|
| 712 |
+
75,
|
| 713 |
+
76,
|
| 714 |
+
77,
|
| 715 |
+
78,
|
| 716 |
+
79,
|
| 717 |
+
80,
|
| 718 |
+
81,
|
| 719 |
+
82,
|
| 720 |
+
83,
|
| 721 |
+
84,
|
| 722 |
+
85,
|
| 723 |
+
86,
|
| 724 |
+
87,
|
| 725 |
+
88,
|
| 726 |
+
89,
|
| 727 |
+
90,
|
| 728 |
+
91,
|
| 729 |
+
92,
|
| 730 |
+
93,
|
| 731 |
+
94,
|
| 732 |
+
95,
|
| 733 |
+
96,
|
| 734 |
+
97,
|
| 735 |
+
98,
|
| 736 |
+
99,
|
| 737 |
+
100,
|
| 738 |
+
101,
|
| 739 |
+
102,
|
| 740 |
+
103,
|
| 741 |
+
104,
|
| 742 |
+
105,
|
| 743 |
+
106,
|
| 744 |
+
107,
|
| 745 |
+
108,
|
| 746 |
+
109,
|
| 747 |
+
110,
|
| 748 |
+
111,
|
| 749 |
+
112,
|
| 750 |
+
113,
|
| 751 |
+
114,
|
| 752 |
+
115,
|
| 753 |
+
116,
|
| 754 |
+
117,
|
| 755 |
+
118,
|
| 756 |
+
119,
|
| 757 |
+
120,
|
| 758 |
+
121,
|
| 759 |
+
122,
|
| 760 |
+
123,
|
| 761 |
+
124,
|
| 762 |
+
125,
|
| 763 |
+
126,
|
| 764 |
+
127,
|
| 765 |
+
128,
|
| 766 |
+
129,
|
| 767 |
+
130,
|
| 768 |
+
131,
|
| 769 |
+
132,
|
| 770 |
+
133,
|
| 771 |
+
134,
|
| 772 |
+
135,
|
| 773 |
+
136,
|
| 774 |
+
137,
|
| 775 |
+
138,
|
| 776 |
+
139,
|
| 777 |
+
140,
|
| 778 |
+
141,
|
| 779 |
+
142,
|
| 780 |
+
143,
|
| 781 |
+
144,
|
| 782 |
+
145,
|
| 783 |
+
146,
|
| 784 |
+
147,
|
| 785 |
+
148,
|
| 786 |
+
149,
|
| 787 |
+
150,
|
| 788 |
+
151,
|
| 789 |
+
152,
|
| 790 |
+
153,
|
| 791 |
+
154,
|
| 792 |
+
155,
|
| 793 |
+
156,
|
| 794 |
+
157,
|
| 795 |
+
158,
|
| 796 |
+
159,
|
| 797 |
+
160,
|
| 798 |
+
161,
|
| 799 |
+
162,
|
| 800 |
+
163,
|
| 801 |
+
164,
|
| 802 |
+
165,
|
| 803 |
+
166,
|
| 804 |
+
167,
|
| 805 |
+
168,
|
| 806 |
+
169,
|
| 807 |
+
170,
|
| 808 |
+
171,
|
| 809 |
+
172,
|
| 810 |
+
173,
|
| 811 |
+
174,
|
| 812 |
+
175,
|
| 813 |
+
176,
|
| 814 |
+
177,
|
| 815 |
+
178,
|
| 816 |
+
179,
|
| 817 |
+
180,
|
| 818 |
+
181,
|
| 819 |
+
182,
|
| 820 |
+
183,
|
| 821 |
+
184,
|
| 822 |
+
185,
|
| 823 |
+
186,
|
| 824 |
+
187,
|
| 825 |
+
188,
|
| 826 |
+
189,
|
| 827 |
+
190,
|
| 828 |
+
191,
|
| 829 |
+
192,
|
| 830 |
+
193,
|
| 831 |
+
194,
|
| 832 |
+
195,
|
| 833 |
+
196,
|
| 834 |
+
197,
|
| 835 |
+
198,
|
| 836 |
+
199,
|
| 837 |
+
200,
|
| 838 |
+
201,
|
| 839 |
+
202,
|
| 840 |
+
203,
|
| 841 |
+
204,
|
| 842 |
+
205,
|
| 843 |
+
206,
|
| 844 |
+
207,
|
| 845 |
+
208,
|
| 846 |
+
209,
|
| 847 |
+
210,
|
| 848 |
+
211,
|
| 849 |
+
212,
|
| 850 |
+
213,
|
| 851 |
+
214,
|
| 852 |
+
215,
|
| 853 |
+
216,
|
| 854 |
+
217,
|
| 855 |
+
218,
|
| 856 |
+
219,
|
| 857 |
+
220,
|
| 858 |
+
221,
|
| 859 |
+
222,
|
| 860 |
+
223,
|
| 861 |
+
224,
|
| 862 |
+
225,
|
| 863 |
+
226,
|
| 864 |
+
227,
|
| 865 |
+
228,
|
| 866 |
+
229,
|
| 867 |
+
230,
|
| 868 |
+
231,
|
| 869 |
+
232,
|
| 870 |
+
233,
|
| 871 |
+
234,
|
| 872 |
+
235,
|
| 873 |
+
236,
|
| 874 |
+
237,
|
| 875 |
+
238,
|
| 876 |
+
239,
|
| 877 |
+
240,
|
| 878 |
+
241,
|
| 879 |
+
242,
|
| 880 |
+
243,
|
| 881 |
+
244,
|
| 882 |
+
245,
|
| 883 |
+
246,
|
| 884 |
+
247,
|
| 885 |
+
248,
|
| 886 |
+
249,
|
| 887 |
+
250,
|
| 888 |
+
251,
|
| 889 |
+
252,
|
| 890 |
+
253,
|
| 891 |
+
254,
|
| 892 |
+
255,
|
| 893 |
+
256,
|
| 894 |
+
257,
|
| 895 |
+
258,
|
| 896 |
+
259,
|
| 897 |
+
260,
|
| 898 |
+
261,
|
| 899 |
+
262,
|
| 900 |
+
263,
|
| 901 |
+
264,
|
| 902 |
+
265,
|
| 903 |
+
266,
|
| 904 |
+
267,
|
| 905 |
+
268,
|
| 906 |
+
269,
|
| 907 |
+
270,
|
| 908 |
+
271,
|
| 909 |
+
272,
|
| 910 |
+
273,
|
| 911 |
+
274,
|
| 912 |
+
275,
|
| 913 |
+
276,
|
| 914 |
+
277,
|
| 915 |
+
278,
|
| 916 |
+
279,
|
| 917 |
+
280,
|
| 918 |
+
281,
|
| 919 |
+
282,
|
| 920 |
+
283,
|
| 921 |
+
284,
|
| 922 |
+
285,
|
| 923 |
+
286,
|
| 924 |
+
287,
|
| 925 |
+
288,
|
| 926 |
+
289,
|
| 927 |
+
290,
|
| 928 |
+
291,
|
| 929 |
+
292,
|
| 930 |
+
293,
|
| 931 |
+
294,
|
| 932 |
+
295,
|
| 933 |
+
296,
|
| 934 |
+
297,
|
| 935 |
+
298,
|
| 936 |
+
299,
|
| 937 |
+
300,
|
| 938 |
+
301,
|
| 939 |
+
302,
|
| 940 |
+
303,
|
| 941 |
+
304,
|
| 942 |
+
305,
|
| 943 |
+
306,
|
| 944 |
+
307,
|
| 945 |
+
308,
|
| 946 |
+
309,
|
| 947 |
+
310,
|
| 948 |
+
311,
|
| 949 |
+
312,
|
| 950 |
+
313,
|
| 951 |
+
314,
|
| 952 |
+
315,
|
| 953 |
+
316,
|
| 954 |
+
317,
|
| 955 |
+
318,
|
| 956 |
+
319,
|
| 957 |
+
320,
|
| 958 |
+
321,
|
| 959 |
+
322,
|
| 960 |
+
323,
|
| 961 |
+
324,
|
| 962 |
+
325,
|
| 963 |
+
326,
|
| 964 |
+
327,
|
| 965 |
+
328,
|
| 966 |
+
329,
|
| 967 |
+
330,
|
| 968 |
+
331,
|
| 969 |
+
332,
|
| 970 |
+
333,
|
| 971 |
+
334,
|
| 972 |
+
335,
|
| 973 |
+
336,
|
| 974 |
+
337,
|
| 975 |
+
338,
|
| 976 |
+
339,
|
| 977 |
+
340,
|
| 978 |
+
341,
|
| 979 |
+
342,
|
| 980 |
+
343,
|
| 981 |
+
344,
|
| 982 |
+
345,
|
| 983 |
+
346,
|
| 984 |
+
347,
|
| 985 |
+
348,
|
| 986 |
+
349,
|
| 987 |
+
350,
|
| 988 |
+
351,
|
| 989 |
+
352,
|
| 990 |
+
353,
|
| 991 |
+
354,
|
| 992 |
+
355,
|
| 993 |
+
356,
|
| 994 |
+
357,
|
| 995 |
+
358,
|
| 996 |
+
359,
|
| 997 |
+
360,
|
| 998 |
+
361,
|
| 999 |
+
362,
|
| 1000 |
+
363,
|
| 1001 |
+
364,
|
| 1002 |
+
365,
|
| 1003 |
+
366,
|
| 1004 |
+
367,
|
| 1005 |
+
368,
|
| 1006 |
+
369,
|
| 1007 |
+
370,
|
| 1008 |
+
371,
|
| 1009 |
+
372,
|
| 1010 |
+
373,
|
| 1011 |
+
374,
|
| 1012 |
+
375,
|
| 1013 |
+
376,
|
| 1014 |
+
377,
|
| 1015 |
+
378,
|
| 1016 |
+
379,
|
| 1017 |
+
380,
|
| 1018 |
+
381,
|
| 1019 |
+
382,
|
| 1020 |
+
383,
|
| 1021 |
+
384,
|
| 1022 |
+
385,
|
| 1023 |
+
386,
|
| 1024 |
+
387,
|
| 1025 |
+
388,
|
| 1026 |
+
389,
|
| 1027 |
+
390,
|
| 1028 |
+
391,
|
| 1029 |
+
392,
|
| 1030 |
+
393,
|
| 1031 |
+
394,
|
| 1032 |
+
395,
|
| 1033 |
+
396,
|
| 1034 |
+
397,
|
| 1035 |
+
398,
|
| 1036 |
+
399,
|
| 1037 |
+
400,
|
| 1038 |
+
401,
|
| 1039 |
+
402,
|
| 1040 |
+
403,
|
| 1041 |
+
404,
|
| 1042 |
+
405,
|
| 1043 |
+
406,
|
| 1044 |
+
407,
|
| 1045 |
+
408,
|
| 1046 |
+
409,
|
| 1047 |
+
410,
|
| 1048 |
+
411,
|
| 1049 |
+
412,
|
| 1050 |
+
413,
|
| 1051 |
+
414,
|
| 1052 |
+
415,
|
| 1053 |
+
416,
|
| 1054 |
+
417,
|
| 1055 |
+
418,
|
| 1056 |
+
419,
|
| 1057 |
+
420,
|
| 1058 |
+
421,
|
| 1059 |
+
422,
|
| 1060 |
+
423,
|
| 1061 |
+
424,
|
| 1062 |
+
425,
|
| 1063 |
+
426,
|
| 1064 |
+
427,
|
| 1065 |
+
428,
|
| 1066 |
+
429,
|
| 1067 |
+
430,
|
| 1068 |
+
431,
|
| 1069 |
+
432,
|
| 1070 |
+
433,
|
| 1071 |
+
434,
|
| 1072 |
+
435,
|
| 1073 |
+
436,
|
| 1074 |
+
437,
|
| 1075 |
+
438,
|
| 1076 |
+
439,
|
| 1077 |
+
440,
|
| 1078 |
+
441,
|
| 1079 |
+
442,
|
| 1080 |
+
443,
|
| 1081 |
+
444,
|
| 1082 |
+
445,
|
| 1083 |
+
446,
|
| 1084 |
+
447,
|
| 1085 |
+
448,
|
| 1086 |
+
449,
|
| 1087 |
+
450,
|
| 1088 |
+
451,
|
| 1089 |
+
452,
|
| 1090 |
+
453,
|
| 1091 |
+
454,
|
| 1092 |
+
455,
|
| 1093 |
+
456,
|
| 1094 |
+
457,
|
| 1095 |
+
458,
|
| 1096 |
+
459,
|
| 1097 |
+
460,
|
| 1098 |
+
461,
|
| 1099 |
+
462,
|
| 1100 |
+
463,
|
| 1101 |
+
464,
|
| 1102 |
+
465,
|
| 1103 |
+
466,
|
| 1104 |
+
467,
|
| 1105 |
+
468,
|
| 1106 |
+
469,
|
| 1107 |
+
470,
|
| 1108 |
+
471,
|
| 1109 |
+
472,
|
| 1110 |
+
473,
|
| 1111 |
+
474,
|
| 1112 |
+
475,
|
| 1113 |
+
476,
|
| 1114 |
+
477,
|
| 1115 |
+
478,
|
| 1116 |
+
479,
|
| 1117 |
+
480,
|
| 1118 |
+
481,
|
| 1119 |
+
482,
|
| 1120 |
+
483,
|
| 1121 |
+
484,
|
| 1122 |
+
485,
|
| 1123 |
+
486,
|
| 1124 |
+
487,
|
| 1125 |
+
488,
|
| 1126 |
+
489,
|
| 1127 |
+
490,
|
| 1128 |
+
491,
|
| 1129 |
+
492,
|
| 1130 |
+
493,
|
| 1131 |
+
494,
|
| 1132 |
+
495,
|
| 1133 |
+
496,
|
| 1134 |
+
497,
|
| 1135 |
+
498,
|
| 1136 |
+
499,
|
| 1137 |
+
500,
|
| 1138 |
+
501,
|
| 1139 |
+
502,
|
| 1140 |
+
503,
|
| 1141 |
+
504,
|
| 1142 |
+
505,
|
| 1143 |
+
506,
|
| 1144 |
+
507,
|
| 1145 |
+
508,
|
| 1146 |
+
509,
|
| 1147 |
+
510,
|
| 1148 |
+
511,
|
| 1149 |
+
512,
|
| 1150 |
+
513,
|
| 1151 |
+
514,
|
| 1152 |
+
515,
|
| 1153 |
+
516,
|
| 1154 |
+
517,
|
| 1155 |
+
518,
|
| 1156 |
+
519,
|
| 1157 |
+
520,
|
| 1158 |
+
521,
|
| 1159 |
+
522,
|
| 1160 |
+
523,
|
| 1161 |
+
524,
|
| 1162 |
+
525,
|
| 1163 |
+
526,
|
| 1164 |
+
527,
|
| 1165 |
+
528,
|
| 1166 |
+
529,
|
| 1167 |
+
530,
|
| 1168 |
+
531,
|
| 1169 |
+
532,
|
| 1170 |
+
533,
|
| 1171 |
+
534,
|
| 1172 |
+
535,
|
| 1173 |
+
536,
|
| 1174 |
+
537,
|
| 1175 |
+
538,
|
| 1176 |
+
539,
|
| 1177 |
+
540,
|
| 1178 |
+
541
|
| 1179 |
+
],
|
| 1180 |
+
"val_episodes": [],
|
| 1181 |
+
"train_frames": 331577,
|
| 1182 |
+
"git_commit": "9bfeb4aec689c080b964f0dec10feec47d5b1741"
|
| 1183 |
+
},
|
| 1184 |
+
"training": {
|
| 1185 |
+
"steps": 4000,
|
| 1186 |
+
"batch_size": 512,
|
| 1187 |
+
"lr": 0.0001,
|
| 1188 |
+
"betas": [
|
| 1189 |
+
0.95,
|
| 1190 |
+
0.999
|
| 1191 |
+
],
|
| 1192 |
+
"weight_decay": 1e-06,
|
| 1193 |
+
"warmup": 200,
|
| 1194 |
+
"schedule": "linear warm-up + cosine",
|
| 1195 |
+
"backbone_lr_scale": 0.1,
|
| 1196 |
+
"ema": 0.9999,
|
| 1197 |
+
"shift_px": 0,
|
| 1198 |
+
"amp": true,
|
| 1199 |
+
"seed": 0,
|
| 1200 |
+
"augmentation": {
|
| 1201 |
+
"spec": "docs/augmentation_v2.md",
|
| 1202 |
+
"version": "hb-aug-v2-20261109",
|
| 1203 |
+
"implementation": "evaluation/augmentation/hb_aug_v2.py",
|
| 1204 |
+
"visual": {
|
| 1205 |
+
"effects": [
|
| 1206 |
+
"exposure",
|
| 1207 |
+
"contrast",
|
| 1208 |
+
"saturation",
|
| 1209 |
+
"hue",
|
| 1210 |
+
"gamma",
|
| 1211 |
+
"temperature",
|
| 1212 |
+
"rotation_crop",
|
| 1213 |
+
"noise",
|
| 1214 |
+
"gaussian_blur",
|
| 1215 |
+
"jpeg",
|
| 1216 |
+
"motion_blur",
|
| 1217 |
+
"sharpen",
|
| 1218 |
+
"defocus",
|
| 1219 |
+
"light_shadow",
|
| 1220 |
+
"wb_channel"
|
| 1221 |
+
],
|
| 1222 |
+
"boosted_per_sample": 1,
|
| 1223 |
+
"boost": 1.5,
|
| 1224 |
+
"pixel_scale": "H / 224",
|
| 1225 |
+
"future_targets": "none (one observation frame)"
|
| 1226 |
+
},
|
| 1227 |
+
"proprio": {
|
| 1228 |
+
"robot": "g1",
|
| 1229 |
+
"body_dims": 29,
|
| 1230 |
+
"bias_deg": 2.0,
|
| 1231 |
+
"bias_scope": "per_sample",
|
| 1232 |
+
"noise_deg": 0.25,
|
| 1233 |
+
"noise_clip_sigma": 3,
|
| 1234 |
+
"delay_probability": 0.0,
|
| 1235 |
+
"history_drop_probability": 0.0,
|
| 1236 |
+
"velocity": false
|
| 1237 |
+
},
|
| 1238 |
+
"native_image_augmentation": "off",
|
| 1239 |
+
"evaluation": "off"
|
| 1240 |
+
},
|
| 1241 |
+
"preflight": {
|
| 1242 |
+
"samples": 64,
|
| 1243 |
+
"state_dim": 44,
|
| 1244 |
+
"body_dims": 29,
|
| 1245 |
+
"images_changed": 64,
|
| 1246 |
+
"body_values_moved": 1.0,
|
| 1247 |
+
"max_body_offset_deg": 2.6335,
|
| 1248 |
+
"actions_bit_identical": true,
|
| 1249 |
+
"non_body_state_bit_identical": true,
|
| 1250 |
+
"eval_items_deterministic": 8
|
| 1251 |
+
}
|
| 1252 |
+
},
|
| 1253 |
+
"stats": {
|
| 1254 |
+
"state": {
|
| 1255 |
+
"min": [
|
| 1256 |
+
-1.037501573562622,
|
| 1257 |
+
-0.264034628868103,
|
| 1258 |
+
-0.4427748918533325,
|
| 1259 |
+
0.0667380765080452,
|
| 1260 |
+
-0.5215858817100525,
|
| 1261 |
+
-0.2416602224111557,
|
| 1262 |
+
-0.6867885589599609,
|
| 1263 |
+
-0.47648993134498596,
|
| 1264 |
+
-0.9344953298568726,
|
| 1265 |
+
0.10217262804508209,
|
| 1266 |
+
-0.6552681922912598,
|
| 1267 |
+
-0.21590328216552734,
|
| 1268 |
+
-0.15592412650585175,
|
| 1269 |
+
-0.1158304288983345,
|
| 1270 |
+
0.07265116274356842,
|
| 1271 |
+
0.022757036611437798,
|
| 1272 |
+
-0.02251558005809784,
|
| 1273 |
+
-0.44369247555732727,
|
| 1274 |
+
-0.5461236238479614,
|
| 1275 |
+
-0.5896561145782471,
|
| 1276 |
+
-0.26370522379875183,
|
| 1277 |
+
0.0013440968468785286,
|
| 1278 |
+
-0.9844546318054199,
|
| 1279 |
+
-1.5772571563720703,
|
| 1280 |
+
-1.0258455276489258,
|
| 1281 |
+
-0.8631634712219238,
|
| 1282 |
+
-0.5786121487617493,
|
| 1283 |
+
-1.024689793586731,
|
| 1284 |
+
-0.9216610789299011,
|
| 1285 |
+
0.9997360110282898,
|
| 1286 |
+
0.9988104701042175,
|
| 1287 |
+
0.9986811280250549,
|
| 1288 |
+
0.9989097118377686,
|
| 1289 |
+
0.9351540803909302,
|
| 1290 |
+
0.0,
|
| 1291 |
+
0.5493931770324707,
|
| 1292 |
+
0.5609477758407593,
|
| 1293 |
+
0.6044747233390808,
|
| 1294 |
+
0.6079143285751343,
|
| 1295 |
+
0.8139541745185852,
|
| 1296 |
+
0.0,
|
| 1297 |
+
-0.29203763604164124,
|
| 1298 |
+
-0.12108057737350464,
|
| 1299 |
+
-1.0
|
| 1300 |
+
],
|
| 1301 |
+
"max": [
|
| 1302 |
+
0.31642699241638184,
|
| 1303 |
+
0.32778802514076233,
|
| 1304 |
+
0.5025486946105957,
|
| 1305 |
+
1.8408095836639404,
|
| 1306 |
+
0.5323996543884277,
|
| 1307 |
+
0.23189055919647217,
|
| 1308 |
+
0.39967241883277893,
|
| 1309 |
+
0.18936435878276825,
|
| 1310 |
+
0.1610136777162552,
|
| 1311 |
+
1.3123230934143066,
|
| 1312 |
+
0.25517070293426514,
|
| 1313 |
+
0.21713340282440186,
|
| 1314 |
+
0.19809074699878693,
|
| 1315 |
+
0.11862942576408386,
|
| 1316 |
+
0.30983150005340576,
|
| 1317 |
+
0.4407850205898285,
|
| 1318 |
+
0.4915717840194702,
|
| 1319 |
+
0.1512441635131836,
|
| 1320 |
+
-0.14922617375850677,
|
| 1321 |
+
-0.20036308467388153,
|
| 1322 |
+
0.13975681364536285,
|
| 1323 |
+
0.4291156232357025,
|
| 1324 |
+
0.8944763541221619,
|
| 1325 |
+
0.1526746302843094,
|
| 1326 |
+
0.7923631072044373,
|
| 1327 |
+
1.1935943365097046,
|
| 1328 |
+
1.549551248550415,
|
| 1329 |
+
1.3240046501159668,
|
| 1330 |
+
1.1530930995941162,
|
| 1331 |
+
1.0,
|
| 1332 |
+
1.0,
|
| 1333 |
+
1.0,
|
| 1334 |
+
1.0,
|
| 1335 |
+
1.0,
|
| 1336 |
+
0.0036626288201659918,
|
| 1337 |
+
1.0,
|
| 1338 |
+
1.0,
|
| 1339 |
+
1.0,
|
| 1340 |
+
1.0,
|
| 1341 |
+
1.0,
|
| 1342 |
+
0.011179528199136257,
|
| 1343 |
+
0.08667038381099701,
|
| 1344 |
+
0.1206020638346672,
|
| 1345 |
+
-0.9563509225845337
|
| 1346 |
+
],
|
| 1347 |
+
"mean": [
|
| 1348 |
+
-0.11453739324440969,
|
| 1349 |
+
0.04011084241805277,
|
| 1350 |
+
0.042604342544257975,
|
| 1351 |
+
0.3101375482929991,
|
| 1352 |
+
-0.09883363973761503,
|
| 1353 |
+
-0.03264575295857167,
|
| 1354 |
+
-0.05904688190983114,
|
| 1355 |
+
-0.06457161075417515,
|
| 1356 |
+
-0.2835409265675875,
|
| 1357 |
+
0.3173361870458159,
|
| 1358 |
+
-0.17238908965674926,
|
| 1359 |
+
-0.022206056895898326,
|
| 1360 |
+
0.01720015949095758,
|
| 1361 |
+
0.010739354338715243,
|
| 1362 |
+
0.14542730844781557,
|
| 1363 |
+
0.23942305438226613,
|
| 1364 |
+
0.19775352569474616,
|
| 1365 |
+
-0.06352798202838195,
|
| 1366 |
+
-0.3432223755631105,
|
| 1367 |
+
-0.37103841771520646,
|
| 1368 |
+
-0.04449127923501375,
|
| 1369 |
+
0.18419998718936037,
|
| 1370 |
+
0.06295970191975703,
|
| 1371 |
+
-0.3409248401139509,
|
| 1372 |
+
-0.005028062842690194,
|
| 1373 |
+
-0.07113524459719395,
|
| 1374 |
+
0.35502965168391576,
|
| 1375 |
+
0.041413371540891426,
|
| 1376 |
+
-0.008045864253059339,
|
| 1377 |
+
0.9999993913050222,
|
| 1378 |
+
0.9999989068213664,
|
| 1379 |
+
0.9999985447814413,
|
| 1380 |
+
0.9999986399345618,
|
| 1381 |
+
0.9997595920880835,
|
| 1382 |
+
4.1432946030695356e-08,
|
| 1383 |
+
0.848720485038278,
|
| 1384 |
+
0.8478708518704877,
|
| 1385 |
+
0.8541396666476672,
|
| 1386 |
+
0.8627360528043341,
|
| 1387 |
+
0.9322875091376083,
|
| 1388 |
+
0.0013038922559370368,
|
| 1389 |
+
-0.07185684814001166,
|
| 1390 |
+
0.003796186879417613,
|
| 1391 |
+
-0.9959426704259458
|
| 1392 |
+
],
|
| 1393 |
+
"std": [
|
| 1394 |
+
0.22314642932157291,
|
| 1395 |
+
0.07865177014736555,
|
| 1396 |
+
0.13175734378126513,
|
| 1397 |
+
0.26774492089834084,
|
| 1398 |
+
0.138597724289319,
|
| 1399 |
+
0.05425034662016361,
|
| 1400 |
+
0.14586651661033237,
|
| 1401 |
+
0.06093383638045563,
|
| 1402 |
+
0.14535052480778932,
|
| 1403 |
+
0.16501149156409287,
|
| 1404 |
+
0.11795297516115227,
|
| 1405 |
+
0.05220902917773687,
|
| 1406 |
+
0.04589606128733729,
|
| 1407 |
+
0.02124229308479261,
|
| 1408 |
+
0.023465064820185715,
|
| 1409 |
+
0.06147598163079173,
|
| 1410 |
+
0.08019322209832842,
|
| 1411 |
+
0.10835271570424901,
|
| 1412 |
+
0.049692413539137906,
|
| 1413 |
+
0.04662608297189601,
|
| 1414 |
+
0.06414416688004776,
|
| 1415 |
+
0.06755100433487839,
|
| 1416 |
+
0.3112339885690449,
|
| 1417 |
+
0.24397518045868727,
|
| 1418 |
+
0.24187918334876668,
|
| 1419 |
+
0.5876198067006639,
|
| 1420 |
+
0.2545545751519334,
|
| 1421 |
+
0.2513222402223307,
|
| 1422 |
+
0.2206716966214715,
|
| 1423 |
+
3.0745450764358815e-06,
|
| 1424 |
+
1.0280418129053001e-05,
|
| 1425 |
+
1.3003933935428358e-05,
|
| 1426 |
+
1.0326645711325357e-05,
|
| 1427 |
+
0.0002625973205270167,
|
| 1428 |
+
1.1079706153857785e-05,
|
| 1429 |
+
0.1666589578526184,
|
| 1430 |
+
0.16783685131463846,
|
| 1431 |
+
0.16091359576221068,
|
| 1432 |
+
0.15173440996739748,
|
| 1433 |
+
0.07479574625351736,
|
| 1434 |
+
0.0016642108162531056,
|
| 1435 |
+
0.04762500188416354,
|
| 1436 |
+
0.025104825839366962,
|
| 1437 |
+
0.004688973726931697
|
| 1438 |
+
]
|
| 1439 |
+
},
|
| 1440 |
+
"action": {
|
| 1441 |
+
"min": [
|
| 1442 |
+
-0.5625,
|
| 1443 |
+
-0.4375,
|
| 1444 |
+
-0.4375,
|
| 1445 |
+
-0.4375,
|
| 1446 |
+
-0.5,
|
| 1447 |
+
-0.3125,
|
| 1448 |
+
-0.4375,
|
| 1449 |
+
-0.375,
|
| 1450 |
+
-0.5,
|
| 1451 |
+
-0.5,
|
| 1452 |
+
-0.5625,
|
| 1453 |
+
-0.5,
|
| 1454 |
+
-0.375,
|
| 1455 |
+
-0.375,
|
| 1456 |
+
-0.3125,
|
| 1457 |
+
-0.5625,
|
| 1458 |
+
-0.375,
|
| 1459 |
+
-0.4375,
|
| 1460 |
+
-0.5,
|
| 1461 |
+
-0.5,
|
| 1462 |
+
-0.375,
|
| 1463 |
+
-0.5625,
|
| 1464 |
+
-0.4375,
|
| 1465 |
+
-0.4375,
|
| 1466 |
+
-0.3125,
|
| 1467 |
+
-0.3125,
|
| 1468 |
+
-0.375,
|
| 1469 |
+
-0.5625,
|
| 1470 |
+
-0.4375,
|
| 1471 |
+
-0.375,
|
| 1472 |
+
-0.4375,
|
| 1473 |
+
-0.5625,
|
| 1474 |
+
-0.4375,
|
| 1475 |
+
-0.25,
|
| 1476 |
+
-0.1875,
|
| 1477 |
+
-0.3125,
|
| 1478 |
+
-0.5625,
|
| 1479 |
+
-0.5,
|
| 1480 |
+
-0.125,
|
| 1481 |
+
-0.375,
|
| 1482 |
+
-0.4375,
|
| 1483 |
+
-0.5,
|
| 1484 |
+
-0.3125,
|
| 1485 |
+
-0.375,
|
| 1486 |
+
-0.375,
|
| 1487 |
+
-0.3125,
|
| 1488 |
+
-0.375,
|
| 1489 |
+
-0.5,
|
| 1490 |
+
-0.625,
|
| 1491 |
+
-0.5625,
|
| 1492 |
+
-0.75,
|
| 1493 |
+
-0.375,
|
| 1494 |
+
-0.5625,
|
| 1495 |
+
-0.4375,
|
| 1496 |
+
-0.25,
|
| 1497 |
+
-0.5,
|
| 1498 |
+
-0.4375,
|
| 1499 |
+
-0.1875,
|
| 1500 |
+
-0.3125,
|
| 1501 |
+
-0.4375,
|
| 1502 |
+
-0.5625,
|
| 1503 |
+
-0.4375,
|
| 1504 |
+
-0.25,
|
| 1505 |
+
-0.5625,
|
| 1506 |
+
0.9997360110282898,
|
| 1507 |
+
0.9988104701042175,
|
| 1508 |
+
0.9986811280250549,
|
| 1509 |
+
0.9989097118377686,
|
| 1510 |
+
0.9351540803909302,
|
| 1511 |
+
0.0,
|
| 1512 |
+
0.5493931770324707,
|
| 1513 |
+
0.5609477758407593,
|
| 1514 |
+
0.6044747233390808,
|
| 1515 |
+
0.6079143285751343,
|
| 1516 |
+
0.8139541745185852,
|
| 1517 |
+
0.0
|
| 1518 |
+
],
|
| 1519 |
+
"max": [
|
| 1520 |
+
0.3125,
|
| 1521 |
+
0.375,
|
| 1522 |
+
0.5,
|
| 1523 |
+
0.3125,
|
| 1524 |
+
0.6875,
|
| 1525 |
+
0.5,
|
| 1526 |
+
0.5625,
|
| 1527 |
+
0.3125,
|
| 1528 |
+
0.3125,
|
| 1529 |
+
0.125,
|
| 1530 |
+
0.375,
|
| 1531 |
+
0.1875,
|
| 1532 |
+
0.375,
|
| 1533 |
+
0.4375,
|
| 1534 |
+
0.5,
|
| 1535 |
+
0.4375,
|
| 1536 |
+
0.25,
|
| 1537 |
+
0.3125,
|
| 1538 |
+
0.4375,
|
| 1539 |
+
0.1875,
|
| 1540 |
+
0.3125,
|
| 1541 |
+
0.25,
|
| 1542 |
+
0.3125,
|
| 1543 |
+
0.375,
|
| 1544 |
+
0.3125,
|
| 1545 |
+
0.375,
|
| 1546 |
+
0.0625,
|
| 1547 |
+
0.3125,
|
| 1548 |
+
0.3125,
|
| 1549 |
+
0.375,
|
| 1550 |
+
0.375,
|
| 1551 |
+
0.3125,
|
| 1552 |
+
0.375,
|
| 1553 |
+
0.5,
|
| 1554 |
+
0.1875,
|
| 1555 |
+
0.375,
|
| 1556 |
+
0.5,
|
| 1557 |
+
0.5,
|
| 1558 |
+
0.4375,
|
| 1559 |
+
0.3125,
|
| 1560 |
+
0.5,
|
| 1561 |
+
0.4375,
|
| 1562 |
+
0.5,
|
| 1563 |
+
0.25,
|
| 1564 |
+
0.4375,
|
| 1565 |
+
0.4375,
|
| 1566 |
+
0.3125,
|
| 1567 |
+
0.5625,
|
| 1568 |
+
0.1875,
|
| 1569 |
+
0.375,
|
| 1570 |
+
0.4375,
|
| 1571 |
+
0.3125,
|
| 1572 |
+
0.5625,
|
| 1573 |
+
0.5,
|
| 1574 |
+
0.3125,
|
| 1575 |
+
0.625,
|
| 1576 |
+
0.375,
|
| 1577 |
+
0.3125,
|
| 1578 |
+
0.4375,
|
| 1579 |
+
0.125,
|
| 1580 |
+
0.375,
|
| 1581 |
+
0.4375,
|
| 1582 |
+
0.5,
|
| 1583 |
+
0.375,
|
| 1584 |
+
1.0,
|
| 1585 |
+
1.0,
|
| 1586 |
+
1.0,
|
| 1587 |
+
1.0,
|
| 1588 |
+
1.0,
|
| 1589 |
+
0.0036626288201659918,
|
| 1590 |
+
1.0,
|
| 1591 |
+
1.0,
|
| 1592 |
+
1.0,
|
| 1593 |
+
1.0,
|
| 1594 |
+
1.0,
|
| 1595 |
+
0.011179528199136257
|
| 1596 |
+
],
|
| 1597 |
+
"mean": [
|
| 1598 |
+
0.035801073355510186,
|
| 1599 |
+
0.008993197658462439,
|
| 1600 |
+
-0.040684742910394874,
|
| 1601 |
+
-0.015219504066928647,
|
| 1602 |
+
0.06590757953657823,
|
| 1603 |
+
0.10679928794819907,
|
| 1604 |
+
0.07591468195924325,
|
| 1605 |
+
0.005018630664973747,
|
| 1606 |
+
0.02696074365833577,
|
| 1607 |
+
-0.21216018451219476,
|
| 1608 |
+
-0.1270698435054301,
|
| 1609 |
+
-0.20399956118789905,
|
| 1610 |
+
-0.038899524092443086,
|
| 1611 |
+
0.06899321273791607,
|
| 1612 |
+
0.17266030967166,
|
| 1613 |
+
-0.0748498840390015,
|
| 1614 |
+
0.0503489762558923,
|
| 1615 |
+
-0.06576507869966855,
|
| 1616 |
+
0.0027595400163461276,
|
| 1617 |
+
-0.08168671982676724,
|
| 1618 |
+
-0.0738222192733513,
|
| 1619 |
+
-0.1700281910385823,
|
| 1620 |
+
-0.09772541521275602,
|
| 1621 |
+
-0.10753158391565157,
|
| 1622 |
+
0.019795175781191096,
|
| 1623 |
+
-0.025940241633165148,
|
| 1624 |
+
-0.17703749807736965,
|
| 1625 |
+
-0.05779030964150107,
|
| 1626 |
+
0.025859755049355053,
|
| 1627 |
+
-0.010009175847540693,
|
| 1628 |
+
0.0017912505994082822,
|
| 1629 |
+
-0.15789281222762735,
|
| 1630 |
+
0.03512852972311107,
|
| 1631 |
+
0.12875553792934974,
|
| 1632 |
+
0.02877913727429828,
|
| 1633 |
+
0.08183280203391671,
|
| 1634 |
+
-0.08610895810023012,
|
| 1635 |
+
-0.05243861154422653,
|
| 1636 |
+
0.12698634103089176,
|
| 1637 |
+
-0.07630052747928837,
|
| 1638 |
+
-0.06368411409717803,
|
| 1639 |
+
-0.07644208585034547,
|
| 1640 |
+
0.10793175491665585,
|
| 1641 |
+
-0.11472240987764531,
|
| 1642 |
+
0.0446866414136083,
|
| 1643 |
+
-0.04013735874321801,
|
| 1644 |
+
-0.021028863582214688,
|
| 1645 |
+
-0.039761126374869185,
|
| 1646 |
+
-0.2875461431281422,
|
| 1647 |
+
-0.07881219897640669,
|
| 1648 |
+
0.023944852930088637,
|
| 1649 |
+
0.07625246172080694,
|
| 1650 |
+
0.028764434806998074,
|
| 1651 |
+
-0.06805847510532999,
|
| 1652 |
+
-0.0025467312268341894,
|
| 1653 |
+
0.10802901739264183,
|
| 1654 |
+
-0.05356523522439735,
|
| 1655 |
+
0.0780337221821779,
|
| 1656 |
+
0.13257554052301576,
|
| 1657 |
+
-0.16686659508952673,
|
| 1658 |
+
-0.044055377785552075,
|
| 1659 |
+
0.07334570853828824,
|
| 1660 |
+
0.17842857767577366,
|
| 1661 |
+
-0.05643768264988223,
|
| 1662 |
+
0.9999993913050222,
|
| 1663 |
+
0.9999989068213664,
|
| 1664 |
+
0.9999985447814413,
|
| 1665 |
+
0.9999986399345618,
|
| 1666 |
+
0.9997595920880835,
|
| 1667 |
+
4.1432946030695356e-08,
|
| 1668 |
+
0.848720485038278,
|
| 1669 |
+
0.8478708518704877,
|
| 1670 |
+
0.8541396666476672,
|
| 1671 |
+
0.8627360528043341,
|
| 1672 |
+
0.9322875091376083,
|
| 1673 |
+
0.0013038922559370368
|
| 1674 |
+
],
|
| 1675 |
+
"std": [
|
| 1676 |
+
0.11173244677940765,
|
| 1677 |
+
0.15194660980294933,
|
| 1678 |
+
0.1351430711515662,
|
| 1679 |
+
0.10484135405721283,
|
| 1680 |
+
0.1929176685503166,
|
| 1681 |
+
0.13755941559466697,
|
| 1682 |
+
0.17051900489315974,
|
| 1683 |
+
0.09179112225976728,
|
| 1684 |
+
0.09192408768656414,
|
| 1685 |
+
0.07671847366968917,
|
| 1686 |
+
0.13186630647447378,
|
| 1687 |
+
0.10839263606678452,
|
| 1688 |
+
0.12993358124861237,
|
| 1689 |
+
0.14329446957419215,
|
| 1690 |
+
0.10953734185200527,
|
| 1691 |
+
0.14750468461845972,
|
| 1692 |
+
0.08484062397807172,
|
| 1693 |
+
0.15093021798116624,
|
| 1694 |
+
0.15118011919576488,
|
| 1695 |
+
0.10079911766908481,
|
| 1696 |
+
0.10664686862803845,
|
| 1697 |
+
0.13285217338230945,
|
| 1698 |
+
0.09754221857903407,
|
| 1699 |
+
0.10789405672773242,
|
| 1700 |
+
0.08581448960575783,
|
| 1701 |
+
0.12451903338694055,
|
| 1702 |
+
0.06710254750165537,
|
| 1703 |
+
0.12620998029099512,
|
| 1704 |
+
0.1070435007690436,
|
| 1705 |
+
0.13340008187123648,
|
| 1706 |
+
0.13824680236385728,
|
| 1707 |
+
0.13209141989319176,
|
| 1708 |
+
0.09043010314064626,
|
| 1709 |
+
0.10448598825889968,
|
| 1710 |
+
0.05152826575928413,
|
| 1711 |
+
0.101548845386541,
|
| 1712 |
+
0.12231309853193433,
|
| 1713 |
+
0.15164600068096626,
|
| 1714 |
+
0.09056976406094214,
|
| 1715 |
+
0.10507904679337436,
|
| 1716 |
+
0.12492820977689113,
|
| 1717 |
+
0.14563987562071293,
|
| 1718 |
+
0.1485299613415581,
|
| 1719 |
+
0.07991123184450995,
|
| 1720 |
+
0.11136094888438179,
|
| 1721 |
+
0.14478875216432144,
|
| 1722 |
+
0.11837466954458266,
|
| 1723 |
+
0.15013454795740372,
|
| 1724 |
+
0.11021753863508399,
|
| 1725 |
+
0.13943847366018014,
|
| 1726 |
+
0.11837348053983793,
|
| 1727 |
+
0.08625441769459002,
|
| 1728 |
+
0.20280470849201804,
|
| 1729 |
+
0.14262414065572115,
|
| 1730 |
+
0.06812308254176133,
|
| 1731 |
+
0.16804197774588864,
|
| 1732 |
+
0.15184038871544758,
|
| 1733 |
+
0.06009853362212434,
|
| 1734 |
+
0.13033233324270047,
|
| 1735 |
+
0.08743776901836958,
|
| 1736 |
+
0.11568911736106861,
|
| 1737 |
+
0.10386805895710192,
|
| 1738 |
+
0.10887203688609184,
|
| 1739 |
+
0.14395784989811514,
|
| 1740 |
+
3.0745450764358815e-06,
|
| 1741 |
+
1.0280418129053001e-05,
|
| 1742 |
+
1.3003933935428358e-05,
|
| 1743 |
+
1.0326645711325357e-05,
|
| 1744 |
+
0.0002625973205270167,
|
| 1745 |
+
1.1079706153857785e-05,
|
| 1746 |
+
0.1666589578526184,
|
| 1747 |
+
0.16783685131463846,
|
| 1748 |
+
0.16091359576221068,
|
| 1749 |
+
0.15173440996739748,
|
| 1750 |
+
0.07479574625351736,
|
| 1751 |
+
0.0016642108162531056
|
| 1752 |
+
]
|
| 1753 |
+
}
|
| 1754 |
+
},
|
| 1755 |
+
"code_commit": "8c3b88d2a04b515650d446c391a067cde31407f6",
|
| 1756 |
+
"step": 4000,
|
| 1757 |
+
"weights": "ema",
|
| 1758 |
+
"offline_eval": {
|
| 1759 |
+
"mse": 0.0062528024427592754,
|
| 1760 |
+
"mse_row0": 0.004473628476262093,
|
| 1761 |
+
"mse_motion_token": 0.006077274680137634,
|
| 1762 |
+
"mse_inspire_left_hand_state": 8.844343392411247e-05,
|
| 1763 |
+
"mse_inspire_right_hand_state": 0.01428945828229189,
|
| 1764 |
+
"samples": 256,
|
| 1765 |
+
"frames": "train"
|
| 1766 |
+
},
|
| 1767 |
+
"format": "hb_baselines/1"
|
| 1768 |
+
}
|
b6-pedal-bin/b512-v6-pure/step-004000/model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a5142ade874c13e81ee536dcf54f229ba72cf3314d1ea79ccf02a09e09a8971
|
| 3 |
+
size 336144555
|
b6-pedal-bin/b512-v6-pure/step-004000/protocol.json
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "hb_baselines/1",
|
| 3 |
+
"step": 4000,
|
| 4 |
+
"policy": "act",
|
| 5 |
+
"files": {
|
| 6 |
+
"config.json": {
|
| 7 |
+
"bytes": 22292,
|
| 8 |
+
"sha256": "6893dcfe9b12cccaa0b6135f80ed117b54948134b72f7521ed52f2350594185c"
|
| 9 |
+
},
|
| 10 |
+
"model.pt": {
|
| 11 |
+
"bytes": 336144555,
|
| 12 |
+
"sha256": "7a5142ade874c13e81ee536dcf54f229ba72cf3314d1ea79ccf02a09e09a8971"
|
| 13 |
+
},
|
| 14 |
+
"training_records/pip_freeze_hb-baselines.txt": {
|
| 15 |
+
"bytes": 1185,
|
| 16 |
+
"sha256": "72942d6f1c95ab99ba51fcf641bfd0e4cb34943c5b19a2a39d8da72ef5daa6b2"
|
| 17 |
+
},
|
| 18 |
+
"training_records/preflight_run.json": {
|
| 19 |
+
"bytes": 3560,
|
| 20 |
+
"sha256": "1a759ff5335992028c0b5f85700c98b37ec3730e7a5b4fb6b400744ed4884e21"
|
| 21 |
+
},
|
| 22 |
+
"training_records/train_act_b6v6p_dsw.sh": {
|
| 23 |
+
"bytes": 1854,
|
| 24 |
+
"sha256": "ca52d204c81a7cb06eb35a649ec9554b8a1037c3d1a425b1360350e5cbc9852b"
|
| 25 |
+
},
|
| 26 |
+
"training_records/train.log": {
|
| 27 |
+
"bytes": 22890,
|
| 28 |
+
"sha256": "9e8fec047e8a7ebe01cefce37064ddf13888a81d6fca445ce1103624053774e6"
|
| 29 |
+
},
|
| 30 |
+
"training_records/inloop-mse.jsonl": {
|
| 31 |
+
"bytes": 26458,
|
| 32 |
+
"sha256": "2d40d928a8d3214ea632cd9a39c60bc8bd9938ade5e97dd4b3e0b8e948c79029"
|
| 33 |
+
},
|
| 34 |
+
"training_records/code_commit.txt": {
|
| 35 |
+
"bytes": 41,
|
| 36 |
+
"sha256": "26b2c9863f5f18725e562f2842c0d4d727f1490aa76e43fa23c454bcf8fb65a0"
|
| 37 |
+
},
|
| 38 |
+
"training_records/train_log.jsonl": {
|
| 39 |
+
"bytes": 19904,
|
| 40 |
+
"sha256": "a6229ac899a7fe62f63af4c771811bc8a541b412ba1af5b8f97a94fd918ea337"
|
| 41 |
+
},
|
| 42 |
+
"training_records/run.json": {
|
| 43 |
+
"bytes": 22864,
|
| 44 |
+
"sha256": "ec320bd513cf17d6940fd0c3389b92ec381d1bd93e0bcd38eb2f0d0c2734a0eb"
|
| 45 |
+
},
|
| 46 |
+
"training_records/code_8c3b88d2/evaluation/policy/ACT/model.py": {
|
| 47 |
+
"bytes": 573,
|
| 48 |
+
"sha256": "593889e0403303d97820d46a6808aed24a3f2cc950dc11310fa305136fbd27c1"
|
| 49 |
+
},
|
| 50 |
+
"training_records/code_8c3b88d2/evaluation/augmentation/hb_aug_v2.py": {
|
| 51 |
+
"bytes": 7475,
|
| 52 |
+
"sha256": "9f7713cea4f846efcfc924234267ced48210357f419d67915c10b504316bedde"
|
| 53 |
+
},
|
| 54 |
+
"training_records/code_8c3b88d2/evaluation/baselines/train.py": {
|
| 55 |
+
"bytes": 31056,
|
| 56 |
+
"sha256": "ee8582c1ba93b9b9a45bbb02570ed9bd938b6f8ccdf52343f68d4ceb763159a2"
|
| 57 |
+
},
|
| 58 |
+
"training_records/code_8c3b88d2/evaluation/baselines/runtime.py": {
|
| 59 |
+
"bytes": 8550,
|
| 60 |
+
"sha256": "379a2b2c5221e337df62e2097616438ae83a65d8cbb89a0e433e15ecd7aec881"
|
| 61 |
+
},
|
| 62 |
+
"training_records/code_8c3b88d2/evaluation/baselines/requirements.txt": {
|
| 63 |
+
"bytes": 485,
|
| 64 |
+
"sha256": "bb211f66038e53efd08ee3ec03e133d8bb206ec36cc608d349b4fad3a61e874b"
|
| 65 |
+
},
|
| 66 |
+
"training_records/code_8c3b88d2/evaluation/baselines/policies.py": {
|
| 67 |
+
"bytes": 14190,
|
| 68 |
+
"sha256": "68d4bad86d82007ed77ab0dcc8f7345da810d57c298323fccadc1efcf99dac4a"
|
| 69 |
+
},
|
| 70 |
+
"training_records/code_8c3b88d2/evaluation/baselines/nets.py": {
|
| 71 |
+
"bytes": 9986,
|
| 72 |
+
"sha256": "38a66937bb92393a3f1ce0644b249da28d582a4fd03d134b7743e6037abd88b9"
|
| 73 |
+
},
|
| 74 |
+
"training_records/code_8c3b88d2/evaluation/baselines/inloop.py": {
|
| 75 |
+
"bytes": 5814,
|
| 76 |
+
"sha256": "dc9cdf83969ef09a4ccd76d764f44dc9cf69250d3f1814c9930c4883bf4ee547"
|
| 77 |
+
},
|
| 78 |
+
"training_records/code_8c3b88d2/evaluation/baselines/flash.py": {
|
| 79 |
+
"bytes": 24032,
|
| 80 |
+
"sha256": "35c01a4e2edd80f85878b37928069c09ed3238127bbb51a5443e7f1c92703e53"
|
| 81 |
+
},
|
| 82 |
+
"training_records/code_8c3b88d2/evaluation/baselines/data.py": {
|
| 83 |
+
"bytes": 18527,
|
| 84 |
+
"sha256": "d27091c71268657c9341d95fb7f85466c540be6dd76047bebd888c6e00379e7b"
|
| 85 |
+
},
|
| 86 |
+
"training_records/code_8c3b88d2/evaluation/baselines/check_flash_parity.py": {
|
| 87 |
+
"bytes": 7900,
|
| 88 |
+
"sha256": "91f714aa3b7ec6b5c28764496163671cadabe4a833c0b06b6bc4c155cec7f66f"
|
| 89 |
+
},
|
| 90 |
+
"training_records/code_8c3b88d2/evaluation/baselines/check_flash_adapter.py": {
|
| 91 |
+
"bytes": 6003,
|
| 92 |
+
"sha256": "aa7fc175f50de83b130427cc30533a45220e70d0ed8c807f33ca44d39cb9fb81"
|
| 93 |
+
},
|
| 94 |
+
"training_records/code_8c3b88d2/evaluation/baselines/adapters.py": {
|
| 95 |
+
"bytes": 3349,
|
| 96 |
+
"sha256": "71e26fbbe13a8df02c82cf98555c4e45dd42af053e45a371e5356f2e23596061"
|
| 97 |
+
},
|
| 98 |
+
"training_records/code_8c3b88d2/evaluation/baselines/act_nets.py": {
|
| 99 |
+
"bytes": 22435,
|
| 100 |
+
"sha256": "3db95cd8e4e436875e11f1054a99d250ca7d94e0127909090b58730402340f19"
|
| 101 |
+
},
|
| 102 |
+
"training_records/code_8c3b88d2/evaluation/baselines/__init__.py": {
|
| 103 |
+
"bytes": 755,
|
| 104 |
+
"sha256": "69e97429f08c1a249e48c519026c3534245f22543c5a6876f0a13b09ff3f79b1"
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
"task": "B6 pedal-bin trash disposal (G1)",
|
| 108 |
+
"task_dir": "b6-pedal-bin",
|
| 109 |
+
"training_data": "humanoid-benchmark/b6-pedal-bin @ad2f5bf0 (v6 at the repo root), all 542 episodes, 331577 frames; user exception to the B6 v6 first-500 rule (as GR00T/Psi-Zero b512-v6-pure)",
|
| 110 |
+
"episodes": 542,
|
| 111 |
+
"steps": 4000,
|
| 112 |
+
"global_batch": 512,
|
| 113 |
+
"per_gpu_batch": 512,
|
| 114 |
+
"num_gpus": 1,
|
| 115 |
+
"gradient_accumulation_steps": 1,
|
| 116 |
+
"save_steps": [
|
| 117 |
+
2000,
|
| 118 |
+
4000
|
| 119 |
+
],
|
| 120 |
+
"lr": 0.0001,
|
| 121 |
+
"lr_schedule": "linear warm-up 200 + cosine",
|
| 122 |
+
"backbone_lr_scale": 0.1,
|
| 123 |
+
"ema": 0.9999,
|
| 124 |
+
"augmentation": "Humanoid Benchmark online augmentation spec v2 (hb-aug-v2-20261109): 15 visual effects, one per sample at 1.5x; proprio per-joint bias U(+-2 deg) + N(0, 0.25 deg); no delay, no history drop; model-native image augmentation off",
|
| 125 |
+
"state_dim": 44,
|
| 126 |
+
"action_dim": 76,
|
| 127 |
+
"cameras": [
|
| 128 |
+
"ego_view",
|
| 129 |
+
"chest"
|
| 130 |
+
],
|
| 131 |
+
"image_hw": [
|
| 132 |
+
168,
|
| 133 |
+
224
|
| 134 |
+
],
|
| 135 |
+
"inloop_mse": {
|
| 136 |
+
"task": "b6v6",
|
| 137 |
+
"split": "train10",
|
| 138 |
+
"every": 250,
|
| 139 |
+
"seed": 1234,
|
| 140 |
+
"weights": "ema",
|
| 141 |
+
"nmse_at_this_step": 0.0673,
|
| 142 |
+
"curve": {
|
| 143 |
+
"250": 0.2572,
|
| 144 |
+
"500": 0.1786,
|
| 145 |
+
"750": 0.1366,
|
| 146 |
+
"1000": 0.102,
|
| 147 |
+
"1250": 0.0902,
|
| 148 |
+
"1500": 0.0847,
|
| 149 |
+
"1750": 0.0808,
|
| 150 |
+
"2000": 0.0771,
|
| 151 |
+
"2250": 0.0739,
|
| 152 |
+
"2500": 0.0719,
|
| 153 |
+
"2750": 0.0704,
|
| 154 |
+
"3000": 0.0694,
|
| 155 |
+
"3250": 0.0685,
|
| 156 |
+
"3500": 0.068,
|
| 157 |
+
"3750": 0.0675,
|
| 158 |
+
"4000": 0.0673
|
| 159 |
+
}
|
| 160 |
+
},
|
| 161 |
+
"seed": 0,
|
| 162 |
+
"reproducibility": {
|
| 163 |
+
"protocol": "https://github.com/zuo-kuangji/HumanWAM/blob/bai/hb_training/REPRODUCIBILITY.md",
|
| 164 |
+
"protocol_commit": "ea6e6f6",
|
| 165 |
+
"training_seed": 0,
|
| 166 |
+
"training_seed_source": "hb_baselines DEFAULTS seed 0 (= the published act b512* folders)",
|
| 167 |
+
"training_seed_verified_from_run_files": true,
|
| 168 |
+
"augmentation_random_stream": "not seeded: hb_baselines draws the per-sample augmentation from pid/urandom (only FLASH uses HB_AUG_SEED); the distribution is exactly spec v2, the individual draws are not bit-reproducible (registered exception)",
|
| 169 |
+
"inloop_mse_seed": 1234,
|
| 170 |
+
"layout": {
|
| 171 |
+
"nodes": 1,
|
| 172 |
+
"gpus_per_node": 1,
|
| 173 |
+
"per_gpu_batch": 512,
|
| 174 |
+
"global_batch": 512,
|
| 175 |
+
"gradient_accumulation": 1,
|
| 176 |
+
"num_workers": 32,
|
| 177 |
+
"prefetch": 2
|
| 178 |
+
},
|
| 179 |
+
"environment": "hb-baselines (evaluation/baselines/requirements.txt: Python 3.12.1, torch 2.9.0+cu128, torchvision 0.24.0); training_records/pip_freeze_hb-baselines.txt",
|
| 180 |
+
"hardware": "Aliyun PAI DSW, 1 x RTX 4090 46 GB (process at nice 19 next to closed-loop evaluations)",
|
| 181 |
+
"upstream_code": "github.com/zuo-kuangji/Humanoid_benchmark bai @ 8c3b88d2a04b515650d446c391a067cde31407f6 (evaluation/baselines/train.py --policy act --contract g1_sonic_dfx6, evaluation/augmentation/hb_aug_v2.py)",
|
| 182 |
+
"determinism": "statistical reproducibility: same data commit, config, seed and layout give the same curves within run-to-run noise; GPU kernels (AMP, cuDNN) are not bitwise deterministic",
|
| 183 |
+
"exceptions": [
|
| 184 |
+
"all 542 episodes of b6 v6 (user 2026-11-24)",
|
| 185 |
+
"augmentation random stream not seeded (hb_baselines)"
|
| 186 |
+
]
|
| 187 |
+
},
|
| 188 |
+
"inference": "Humanoid_benchmark evaluation/policy/ACT (evaluation/baselines/adapters.py, runtime.BaselinePolicy) loads this folder (config.json + model.pt); step-004000/training_records/code_* is the exact code",
|
| 189 |
+
"resume_state_included": false
|
| 190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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Humanoid Benchmark data augmentation v2 (project CLAUDE.md), model-agnostic torch implementation.
|
| 2 |
+
|
| 3 |
+
augment(x, rng, obs_mask=None) takes x: float [T, V, 3, H, W] in [0, 1] (T frames, V cameras) and returns the
|
| 4 |
+
augmented tensor. Each call is one training sample: one of the 15 effects is chosen uniformly and its magnitude
|
| 5 |
+
is scaled by 1.5 around identity; the rest stay at x1. Colour is shared across cameras and time; geometry, light
|
| 6 |
+
patches and white balance are drawn per camera and fixed over time; sensor/optics effects (noise, gaussian blur,
|
| 7 |
+
JPEG, motion blur, sharpen, defocus) apply only to observation frames (obs_mask True).
|
| 8 |
+
Pixel-size parameters are defined at 224 px and scaled by H / 224.
|
| 9 |
+
perturb_joints(q, rng) applies the proprio spec: per-joint bias +-2 deg plus N(0, 0.25 deg) clipped at 3 sigma.
|
| 10 |
+
"""
|
| 11 |
+
import io
|
| 12 |
+
import math
|
| 13 |
+
|
| 14 |
+
import numpy as np
|
| 15 |
+
import torch
|
| 16 |
+
import torch.nn.functional as F
|
| 17 |
+
from PIL import Image
|
| 18 |
+
from torchvision.transforms import InterpolationMode
|
| 19 |
+
from torchvision.transforms import functional as TF
|
| 20 |
+
|
| 21 |
+
EFFECTS = ("exposure", "contrast", "saturation", "hue", "gamma", "temperature", "rotation_crop", "noise",
|
| 22 |
+
"gaussian_blur", "jpeg", "motion_blur", "sharpen", "defocus", "light_shadow", "wb_channel")
|
| 23 |
+
CENTER = {"exposure": 0.0, "contrast": 1.0, "saturation": 1.0, "hue": 0.0, "gamma": 1.0, "temperature": 0.0}
|
| 24 |
+
RANGE = {"exposure": (-0.22, 0.22), "contrast": (0.88, 1.12), "saturation": (0.76, 1.24), "hue": (-0.015, 0.015),
|
| 25 |
+
"gamma": (0.89, 1.11), "temperature": (-0.066, 0.066)}
|
| 26 |
+
VERSION = "hb-aug-v2-20261109"
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def sample(rng, views, height):
|
| 30 |
+
boost = EFFECTS[int(rng.integers(len(EFFECTS)))]
|
| 31 |
+
|
| 32 |
+
def k(name):
|
| 33 |
+
return 1.5 if boost == name else 1.0
|
| 34 |
+
|
| 35 |
+
px = height / 224.0
|
| 36 |
+
p = {"boost": boost}
|
| 37 |
+
for name, (a, b) in RANGE.items():
|
| 38 |
+
c = CENTER[name]
|
| 39 |
+
p[name] = float(rng.uniform(c + k(name) * (a - c), c + k(name) * (b - c)))
|
| 40 |
+
p["geometry"] = []
|
| 41 |
+
for _ in range(views):
|
| 42 |
+
angle = float(rng.uniform(-1.5 * k("rotation_crop"), 1.5 * k("rotation_crop")))
|
| 43 |
+
p["geometry"].append((angle, 1.0 + abs(angle) * 0.015 + float(rng.uniform(0, 0.02 * k("rotation_crop")))))
|
| 44 |
+
p["noise"] = 4.0 / 255.0 * k("noise") if rng.random() < 0.5 else 0.0
|
| 45 |
+
p["gaussian_blur"] = float(rng.uniform(0.25, 0.65)) * k("gaussian_blur") if rng.random() < 0.15 else 0.0
|
| 46 |
+
if rng.random() < 0.35:
|
| 47 |
+
lo = int(round(100 - k("jpeg") * 30))
|
| 48 |
+
hi = int(round(100 - k("jpeg") * 5))
|
| 49 |
+
p["jpeg"] = int(rng.integers(lo, hi + 1))
|
| 50 |
+
else:
|
| 51 |
+
p["jpeg"] = None
|
| 52 |
+
p["motion_blur"] = ((float(rng.uniform(3, 7)) * k("motion_blur") * px, float(rng.uniform(0, 180)))
|
| 53 |
+
if rng.random() < 0.15 else None)
|
| 54 |
+
p["sharpen"] = float(rng.uniform(0.2, 0.6)) * k("sharpen") if rng.random() < 0.15 else 0.0
|
| 55 |
+
p["defocus"] = float(rng.uniform(1, 2)) * k("defocus") * px if rng.random() < 0.10 else 0.0
|
| 56 |
+
if rng.random() < 0.30:
|
| 57 |
+
g = 0.30 * k("light_shadow")
|
| 58 |
+
p["light_shadow"] = [[(float(rng.uniform(0.1, 0.9)), float(rng.uniform(0.1, 0.9)),
|
| 59 |
+
float(rng.uniform(0.15, 0.35)), float(rng.uniform(1 - g, 1 + g)))
|
| 60 |
+
for _ in range(int(rng.integers(1, 3)))] for _ in range(views)]
|
| 61 |
+
else:
|
| 62 |
+
p["light_shadow"] = None
|
| 63 |
+
if rng.random() < 0.30:
|
| 64 |
+
g = 0.10 * k("wb_channel")
|
| 65 |
+
gains = []
|
| 66 |
+
for _ in range(views):
|
| 67 |
+
row = [1.0, 1.0, 1.0]
|
| 68 |
+
row[int(rng.integers(0, 3))] = float(rng.uniform(1 - g, 1 + g))
|
| 69 |
+
gains.append(row)
|
| 70 |
+
p["wb_channel"] = gains
|
| 71 |
+
else:
|
| 72 |
+
p["wb_channel"] = None
|
| 73 |
+
return p
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
def _conv(x, kernel):
|
| 77 |
+
n, c, h, w = x.shape
|
| 78 |
+
k = kernel.to(x)[None, None].repeat(c, 1, 1, 1)
|
| 79 |
+
pad = kernel.shape[-1] // 2
|
| 80 |
+
return F.conv2d(F.pad(x, (pad, pad, pad, pad), mode="reflect"), k, groups=c)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def motion_kernel(length, angle_deg):
|
| 84 |
+
size = max(3, int(round(length)) | 1)
|
| 85 |
+
k = torch.zeros(size, size)
|
| 86 |
+
c = size // 2
|
| 87 |
+
th = math.radians(angle_deg)
|
| 88 |
+
for s in np.linspace(-(length - 1) / 2, (length - 1) / 2, 8 * size):
|
| 89 |
+
k[int(round(c - s * math.sin(th))), int(round(c + s * math.cos(th)))] = 1.0
|
| 90 |
+
return k / k.sum()
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def disk_kernel(r):
|
| 94 |
+
size = 2 * int(math.ceil(r)) + 1
|
| 95 |
+
c = size // 2
|
| 96 |
+
yy, xx = torch.meshgrid(torch.arange(size), torch.arange(size), indexing="ij")
|
| 97 |
+
k = (((yy - c) ** 2 + (xx - c) ** 2) <= (r + 0.5) ** 2).float()
|
| 98 |
+
return k / k.sum()
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def apply(x, p, obs_mask=None, noise_seed=0):
|
| 102 |
+
t, v, c, h, w = x.shape
|
| 103 |
+
x = x.clone().clamp(0, 1)
|
| 104 |
+
for vi, (angle, scale) in enumerate(p["geometry"]):
|
| 105 |
+
x[:, vi] = TF.affine(x[:, vi], angle=angle, translate=[0, 0], scale=scale, shear=[0, 0],
|
| 106 |
+
interpolation=InterpolationMode.BILINEAR)
|
| 107 |
+
if p["light_shadow"] is not None:
|
| 108 |
+
yy, xx = torch.meshgrid(torch.linspace(0, 1, h), torch.linspace(0, 1, w), indexing="ij")
|
| 109 |
+
for vi, blobs in enumerate(p["light_shadow"]):
|
| 110 |
+
m = torch.ones(h, w)
|
| 111 |
+
for cx, cy, s, g in blobs:
|
| 112 |
+
m = m + (g - 1.0) * torch.exp(-((xx - cx) ** 2 + (yy - cy) ** 2) / (2 * s * s))
|
| 113 |
+
x[:, vi] = (x[:, vi] * m.clamp(min=0).to(x)).clamp(0, 1)
|
| 114 |
+
if p["wb_channel"] is not None:
|
| 115 |
+
for vi, g in enumerate(p["wb_channel"]):
|
| 116 |
+
x[:, vi] = (x[:, vi] * torch.tensor(g, dtype=x.dtype).view(1, 3, 1, 1)).clamp(0, 1)
|
| 117 |
+
y = x.reshape(t * v, c, h, w)
|
| 118 |
+
y = (y * float(2.0 ** p["exposure"])).clamp(0, 1)
|
| 119 |
+
d = p["temperature"]
|
| 120 |
+
y = (y * y.new_tensor([1.0 + d, 1.0, 1.0 - d]).view(1, 3, 1, 1)).clamp(0, 1)
|
| 121 |
+
y = ((y - 0.5) * p["contrast"] + 0.5).clamp(0, 1)
|
| 122 |
+
y = TF.adjust_saturation(y, p["saturation"])
|
| 123 |
+
y = TF.adjust_hue(y, p["hue"])
|
| 124 |
+
y = y.clamp(0, 1).pow(p["gamma"])
|
| 125 |
+
x = y.reshape(t, v, c, h, w)
|
| 126 |
+
mask = torch.ones(t, dtype=torch.bool) if obs_mask is None else torch.as_tensor(obs_mask, dtype=torch.bool)
|
| 127 |
+
if bool(mask.any()):
|
| 128 |
+
o = x[mask].reshape(-1, c, h, w)
|
| 129 |
+
if p["gaussian_blur"] > 0:
|
| 130 |
+
o = TF.gaussian_blur(o, [3, 3], [p["gaussian_blur"]] * 2)
|
| 131 |
+
if p["motion_blur"] is not None:
|
| 132 |
+
o = _conv(o, motion_kernel(*p["motion_blur"]))
|
| 133 |
+
if p["defocus"] > 0:
|
| 134 |
+
o = _conv(o, disk_kernel(p["defocus"]))
|
| 135 |
+
if p["sharpen"] > 0:
|
| 136 |
+
o = o + p["sharpen"] * (o - TF.gaussian_blur(o, [5, 5], [1.0, 1.0]))
|
| 137 |
+
o = o.clamp(0, 1)
|
| 138 |
+
if p["noise"] > 0:
|
| 139 |
+
gen = torch.Generator().manual_seed(int(noise_seed))
|
| 140 |
+
o = (o + torch.randn(o.shape, generator=gen, dtype=o.dtype) * p["noise"]).clamp(0, 1)
|
| 141 |
+
if p["jpeg"] is not None:
|
| 142 |
+
for i in range(o.shape[0]):
|
| 143 |
+
buf = io.BytesIO()
|
| 144 |
+
TF.to_pil_image(o[i]).save(buf, format="JPEG", quality=int(p["jpeg"]))
|
| 145 |
+
buf.seek(0)
|
| 146 |
+
with Image.open(buf) as im:
|
| 147 |
+
o[i] = TF.pil_to_tensor(im.convert("RGB")).to(o.dtype).div(255.0)
|
| 148 |
+
x[mask] = o.reshape(-1, v, c, h, w)
|
| 149 |
+
return x.clamp(0, 1)
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
def augment(x, rng, obs_mask=None):
|
| 153 |
+
p = sample(rng, x.shape[1], x.shape[-2])
|
| 154 |
+
return apply(x, p, obs_mask, noise_seed=int(rng.integers(0, 2 ** 62))), p
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
def perturb_joints(q, rng):
|
| 158 |
+
q = np.asarray(q, dtype=np.float64)
|
| 159 |
+
d = q.shape[-1]
|
| 160 |
+
bias = rng.uniform(-math.radians(2.0), math.radians(2.0), size=d)
|
| 161 |
+
sigma = math.radians(0.25)
|
| 162 |
+
noise = np.clip(rng.normal(0.0, sigma, size=q.shape), -3 * sigma, 3 * sigma)
|
| 163 |
+
return (q + bias + noise).astype(np.float32)
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""FM-DiT, DP (Diffusion Policy, DDPM-DiT), ACT and FLASH visuomotor baselines of the Humanoid Benchmark.
|
| 2 |
+
|
| 3 |
+
The first three ported from DextraVerse's imitation-learning core (`dextraverse/algorithms/il/models/{fm_dit,
|
| 4 |
+
ddpm_dit,act}.py` and their networks), FLASH from NTUMARS/FLASH-Policy @ f47e490 (`flash.py`), torch only.
|
| 5 |
+
`train.py` trains one on a task's LeRobot v2.1 expert dataset through a robot contract
|
| 6 |
+
(`data.CONTRACTS`: G1 state44/action76 or H2 state78/action75); `runtime.BaselinePolicy` serves a checkpoint to the
|
| 7 |
+
G1 evaluation adapters (`evaluation/policy/{FMDiT,DP,ACT,FLASH}/model.py`, via `adapters.py`) and to the H2 adapter
|
| 8 |
+
(`debug/newton/h2_policy_adapters/baseline.py`). Usage and the environment: evaluation/README.md#baselines.
|
| 9 |
+
"""
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/act_nets.py
ADDED
|
@@ -0,0 +1,615 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""ACT (Zhao et al. 2023, "Learning Fine-Grained Bimanual Manipulation with Low-Cost Hardware") network core: the
|
| 2 |
+
ResNet backbone with frozen BatchNorm and sine position embedding, the DETR encoder-decoder transformer and the CVAE
|
| 3 |
+
action-chunk decoder.
|
| 4 |
+
|
| 5 |
+
Ported unchanged from DextraVerse (`dextraverse/algorithms/il/models/nets/act/`), which vendors the ACT repository's
|
| 6 |
+
`detr/models/{backbone,position_encoding,transformer,detr_vae}.py` (Apache-2.0, (c) Facebook, Inc. and its
|
| 7 |
+
affiliates; see THIRD_PARTY_NOTICES.md) with the NestedTensor/argparse plumbing removed, explicit `qpos_dim` /
|
| 8 |
+
`action_dim` instead of the ALOHA 14-DoF constants, and one backbone shared by every camera (upstream behaviour).
|
| 9 |
+
The policy uses `return_intermediate_dec=False`: `Transformer.forward(...)[0]` is the final decoder layer.
|
| 10 |
+
"""
|
| 11 |
+
from __future__ import annotations
|
| 12 |
+
|
| 13 |
+
import copy
|
| 14 |
+
import math
|
| 15 |
+
from typing import Optional
|
| 16 |
+
|
| 17 |
+
import numpy as np
|
| 18 |
+
import torch
|
| 19 |
+
import torch.nn.functional as F
|
| 20 |
+
import torchvision
|
| 21 |
+
from torch import Tensor, nn
|
| 22 |
+
from torchvision.models._utils import IntermediateLayerGetter
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class PositionEmbeddingSine(nn.Module):
|
| 26 |
+
"""Standard DETR sine embedding over a ``(B, C, H, W)`` feature map."""
|
| 27 |
+
|
| 28 |
+
def __init__(
|
| 29 |
+
self, num_pos_feats: int = 64, temperature: int = 10000, normalize: bool = False
|
| 30 |
+
) -> None:
|
| 31 |
+
super().__init__()
|
| 32 |
+
self.num_pos_feats = num_pos_feats
|
| 33 |
+
self.temperature = temperature
|
| 34 |
+
self.normalize = normalize
|
| 35 |
+
self.scale = 2 * math.pi
|
| 36 |
+
|
| 37 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 38 |
+
not_mask = torch.ones((1, x.shape[-2], x.shape[-1]), device=x.device)
|
| 39 |
+
y_embed = not_mask.cumsum(1, dtype=torch.float32)
|
| 40 |
+
x_embed = not_mask.cumsum(2, dtype=torch.float32)
|
| 41 |
+
if self.normalize:
|
| 42 |
+
eps = 1e-6
|
| 43 |
+
y_embed = y_embed / (y_embed[:, -1:, :] + eps) * self.scale
|
| 44 |
+
x_embed = x_embed / (x_embed[:, :, -1:] + eps) * self.scale
|
| 45 |
+
|
| 46 |
+
dim_t = torch.arange(self.num_pos_feats, dtype=torch.float32, device=x.device)
|
| 47 |
+
dim_t = self.temperature ** (2 * (dim_t // 2) / self.num_pos_feats)
|
| 48 |
+
|
| 49 |
+
pos_x = x_embed[:, :, :, None] / dim_t
|
| 50 |
+
pos_y = y_embed[:, :, :, None] / dim_t
|
| 51 |
+
pos_x = torch.stack(
|
| 52 |
+
(pos_x[:, :, :, 0::2].sin(), pos_x[:, :, :, 1::2].cos()), dim=4
|
| 53 |
+
).flatten(3)
|
| 54 |
+
pos_y = torch.stack(
|
| 55 |
+
(pos_y[:, :, :, 0::2].sin(), pos_y[:, :, :, 1::2].cos()), dim=4
|
| 56 |
+
).flatten(3)
|
| 57 |
+
return torch.cat((pos_y, pos_x), dim=3).permute(0, 3, 1, 2)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
class FrozenBatchNorm2d(nn.Module):
|
| 61 |
+
"""BatchNorm2d with fixed statistics and affine parameters (the DETR/ACT backbone norm)."""
|
| 62 |
+
|
| 63 |
+
def __init__(self, n: int) -> None:
|
| 64 |
+
super().__init__()
|
| 65 |
+
self.register_buffer("weight", torch.ones(n))
|
| 66 |
+
self.register_buffer("bias", torch.zeros(n))
|
| 67 |
+
self.register_buffer("running_mean", torch.zeros(n))
|
| 68 |
+
self.register_buffer("running_var", torch.ones(n))
|
| 69 |
+
|
| 70 |
+
def _load_from_state_dict(self, state_dict, prefix, local_metadata, strict, *args):
|
| 71 |
+
state_dict.pop(prefix + "num_batches_tracked", None)
|
| 72 |
+
super()._load_from_state_dict(state_dict, prefix, local_metadata, strict, *args)
|
| 73 |
+
|
| 74 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 75 |
+
w = self.weight.reshape(1, -1, 1, 1)
|
| 76 |
+
b = self.bias.reshape(1, -1, 1, 1)
|
| 77 |
+
rv = self.running_var.reshape(1, -1, 1, 1)
|
| 78 |
+
rm = self.running_mean.reshape(1, -1, 1, 1)
|
| 79 |
+
scale = w * (rv + 1e-5).rsqrt()
|
| 80 |
+
return x * scale + (b - rm * scale)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
class Backbone(nn.Module):
|
| 84 |
+
"""ResNet trunk returning the layer4 feature map."""
|
| 85 |
+
|
| 86 |
+
def __init__(self, name: str = "resnet18", weights: str | None = None) -> None:
|
| 87 |
+
super().__init__()
|
| 88 |
+
trunk = getattr(torchvision.models, name)(
|
| 89 |
+
replace_stride_with_dilation=[False, False, False],
|
| 90 |
+
weights=weights,
|
| 91 |
+
norm_layer=FrozenBatchNorm2d,
|
| 92 |
+
)
|
| 93 |
+
self.body = IntermediateLayerGetter(trunk, return_layers={"layer4": "0"})
|
| 94 |
+
self.num_channels = 512 if name in ("resnet18", "resnet34") else 2048
|
| 95 |
+
|
| 96 |
+
def forward(self, x: torch.Tensor) -> dict[str, torch.Tensor]:
|
| 97 |
+
return self.body(x)
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
class Joiner(nn.Sequential):
|
| 101 |
+
"""Backbone + position embedding, returning matched feature/position lists."""
|
| 102 |
+
|
| 103 |
+
def __init__(self, backbone: Backbone, position_embedding: PositionEmbeddingSine) -> None:
|
| 104 |
+
super().__init__(backbone, position_embedding)
|
| 105 |
+
self.num_channels = backbone.num_channels
|
| 106 |
+
|
| 107 |
+
def forward(self, x: torch.Tensor) -> tuple[list[torch.Tensor], list[torch.Tensor]]:
|
| 108 |
+
features = list(self[0](x).values())
|
| 109 |
+
pos = [self[1](f).to(f.dtype) for f in features]
|
| 110 |
+
return features, pos
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
def build_backbone(
|
| 114 |
+
name: str = "resnet18", hidden_dim: int = 512, weights: str | None = None
|
| 115 |
+
) -> Joiner:
|
| 116 |
+
"""The ACT camera backbone: ResNet + sine embedding sized to the transformer width."""
|
| 117 |
+
return Joiner(Backbone(name, weights=weights), PositionEmbeddingSine(hidden_dim // 2))
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
class Transformer(nn.Module):
|
| 121 |
+
def __init__(
|
| 122 |
+
self,
|
| 123 |
+
d_model=512,
|
| 124 |
+
nhead=8,
|
| 125 |
+
num_encoder_layers=6,
|
| 126 |
+
num_decoder_layers=6,
|
| 127 |
+
dim_feedforward=2048,
|
| 128 |
+
dropout=0.1,
|
| 129 |
+
activation="relu",
|
| 130 |
+
normalize_before=False,
|
| 131 |
+
return_intermediate_dec=False,
|
| 132 |
+
):
|
| 133 |
+
super().__init__()
|
| 134 |
+
|
| 135 |
+
encoder_layer = TransformerEncoderLayer(
|
| 136 |
+
d_model, nhead, dim_feedforward, dropout, activation, normalize_before
|
| 137 |
+
)
|
| 138 |
+
encoder_norm = nn.LayerNorm(d_model) if normalize_before else None
|
| 139 |
+
self.encoder = TransformerEncoder(encoder_layer, num_encoder_layers, encoder_norm)
|
| 140 |
+
|
| 141 |
+
decoder_layer = TransformerDecoderLayer(
|
| 142 |
+
d_model, nhead, dim_feedforward, dropout, activation, normalize_before
|
| 143 |
+
)
|
| 144 |
+
decoder_norm = nn.LayerNorm(d_model)
|
| 145 |
+
self.decoder = TransformerDecoder(
|
| 146 |
+
decoder_layer,
|
| 147 |
+
num_decoder_layers,
|
| 148 |
+
decoder_norm,
|
| 149 |
+
return_intermediate=return_intermediate_dec,
|
| 150 |
+
)
|
| 151 |
+
|
| 152 |
+
self._reset_parameters()
|
| 153 |
+
|
| 154 |
+
self.d_model = d_model
|
| 155 |
+
self.nhead = nhead
|
| 156 |
+
|
| 157 |
+
def _reset_parameters(self):
|
| 158 |
+
for p in self.parameters():
|
| 159 |
+
if p.dim() > 1:
|
| 160 |
+
nn.init.xavier_uniform_(p)
|
| 161 |
+
|
| 162 |
+
def forward(
|
| 163 |
+
self,
|
| 164 |
+
src,
|
| 165 |
+
mask,
|
| 166 |
+
query_embed,
|
| 167 |
+
pos_embed,
|
| 168 |
+
latent_input=None,
|
| 169 |
+
proprio_input=None,
|
| 170 |
+
additional_pos_embed=None,
|
| 171 |
+
):
|
| 172 |
+
# TODO flatten only when input has H and W
|
| 173 |
+
if len(src.shape) == 4: # has H and W
|
| 174 |
+
# flatten NxCxHxW to HWxNxC
|
| 175 |
+
bs, c, h, w = src.shape
|
| 176 |
+
src = src.flatten(2).permute(2, 0, 1)
|
| 177 |
+
pos_embed = pos_embed.flatten(2).permute(2, 0, 1).repeat(1, bs, 1)
|
| 178 |
+
query_embed = query_embed.unsqueeze(1).repeat(1, bs, 1)
|
| 179 |
+
# mask = mask.flatten(1)
|
| 180 |
+
|
| 181 |
+
additional_pos_embed = additional_pos_embed.unsqueeze(1).repeat(
|
| 182 |
+
1, bs, 1
|
| 183 |
+
) # seq, bs, dim
|
| 184 |
+
pos_embed = torch.cat([additional_pos_embed, pos_embed], axis=0)
|
| 185 |
+
|
| 186 |
+
addition_input = torch.stack([latent_input, proprio_input], axis=0)
|
| 187 |
+
src = torch.cat([addition_input, src], axis=0)
|
| 188 |
+
else:
|
| 189 |
+
assert len(src.shape) == 3
|
| 190 |
+
# flatten NxHWxC to HWxNxC
|
| 191 |
+
bs, hw, c = src.shape
|
| 192 |
+
src = src.permute(1, 0, 2)
|
| 193 |
+
pos_embed = pos_embed.unsqueeze(1).repeat(1, bs, 1)
|
| 194 |
+
query_embed = query_embed.unsqueeze(1).repeat(1, bs, 1)
|
| 195 |
+
|
| 196 |
+
tgt = torch.zeros_like(query_embed)
|
| 197 |
+
memory = self.encoder(src, src_key_padding_mask=mask, pos=pos_embed)
|
| 198 |
+
hs = self.decoder(
|
| 199 |
+
tgt, memory, memory_key_padding_mask=mask, pos=pos_embed, query_pos=query_embed
|
| 200 |
+
)
|
| 201 |
+
hs = hs.transpose(1, 2)
|
| 202 |
+
return hs
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
class TransformerEncoder(nn.Module):
|
| 206 |
+
def __init__(self, encoder_layer, num_layers, norm=None):
|
| 207 |
+
super().__init__()
|
| 208 |
+
self.layers = _get_clones(encoder_layer, num_layers)
|
| 209 |
+
self.num_layers = num_layers
|
| 210 |
+
self.norm = norm
|
| 211 |
+
|
| 212 |
+
def forward(
|
| 213 |
+
self,
|
| 214 |
+
src,
|
| 215 |
+
mask: Optional[Tensor] = None,
|
| 216 |
+
src_key_padding_mask: Optional[Tensor] = None,
|
| 217 |
+
pos: Optional[Tensor] = None,
|
| 218 |
+
):
|
| 219 |
+
output = src
|
| 220 |
+
|
| 221 |
+
for layer in self.layers:
|
| 222 |
+
output = layer(
|
| 223 |
+
output, src_mask=mask, src_key_padding_mask=src_key_padding_mask, pos=pos
|
| 224 |
+
)
|
| 225 |
+
|
| 226 |
+
if self.norm is not None:
|
| 227 |
+
output = self.norm(output)
|
| 228 |
+
|
| 229 |
+
return output
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
class TransformerDecoder(nn.Module):
|
| 233 |
+
def __init__(self, decoder_layer, num_layers, norm=None, return_intermediate=False):
|
| 234 |
+
super().__init__()
|
| 235 |
+
self.layers = _get_clones(decoder_layer, num_layers)
|
| 236 |
+
self.num_layers = num_layers
|
| 237 |
+
self.norm = norm
|
| 238 |
+
self.return_intermediate = return_intermediate
|
| 239 |
+
|
| 240 |
+
def forward(
|
| 241 |
+
self,
|
| 242 |
+
tgt,
|
| 243 |
+
memory,
|
| 244 |
+
tgt_mask: Optional[Tensor] = None,
|
| 245 |
+
memory_mask: Optional[Tensor] = None,
|
| 246 |
+
tgt_key_padding_mask: Optional[Tensor] = None,
|
| 247 |
+
memory_key_padding_mask: Optional[Tensor] = None,
|
| 248 |
+
pos: Optional[Tensor] = None,
|
| 249 |
+
query_pos: Optional[Tensor] = None,
|
| 250 |
+
):
|
| 251 |
+
output = tgt
|
| 252 |
+
|
| 253 |
+
intermediate = []
|
| 254 |
+
|
| 255 |
+
for layer in self.layers:
|
| 256 |
+
output = layer(
|
| 257 |
+
output,
|
| 258 |
+
memory,
|
| 259 |
+
tgt_mask=tgt_mask,
|
| 260 |
+
memory_mask=memory_mask,
|
| 261 |
+
tgt_key_padding_mask=tgt_key_padding_mask,
|
| 262 |
+
memory_key_padding_mask=memory_key_padding_mask,
|
| 263 |
+
pos=pos,
|
| 264 |
+
query_pos=query_pos,
|
| 265 |
+
)
|
| 266 |
+
if self.return_intermediate:
|
| 267 |
+
intermediate.append(self.norm(output))
|
| 268 |
+
|
| 269 |
+
if self.norm is not None:
|
| 270 |
+
output = self.norm(output)
|
| 271 |
+
if self.return_intermediate:
|
| 272 |
+
intermediate.pop()
|
| 273 |
+
intermediate.append(output)
|
| 274 |
+
|
| 275 |
+
if self.return_intermediate:
|
| 276 |
+
return torch.stack(intermediate)
|
| 277 |
+
|
| 278 |
+
return output.unsqueeze(0)
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
class TransformerEncoderLayer(nn.Module):
|
| 282 |
+
def __init__(
|
| 283 |
+
self,
|
| 284 |
+
d_model,
|
| 285 |
+
nhead,
|
| 286 |
+
dim_feedforward=2048,
|
| 287 |
+
dropout=0.1,
|
| 288 |
+
activation="relu",
|
| 289 |
+
normalize_before=False,
|
| 290 |
+
):
|
| 291 |
+
super().__init__()
|
| 292 |
+
self.self_attn = nn.MultiheadAttention(d_model, nhead, dropout=dropout)
|
| 293 |
+
# Implementation of Feedforward model
|
| 294 |
+
self.linear1 = nn.Linear(d_model, dim_feedforward)
|
| 295 |
+
self.dropout = nn.Dropout(dropout)
|
| 296 |
+
self.linear2 = nn.Linear(dim_feedforward, d_model)
|
| 297 |
+
|
| 298 |
+
self.norm1 = nn.LayerNorm(d_model)
|
| 299 |
+
self.norm2 = nn.LayerNorm(d_model)
|
| 300 |
+
self.dropout1 = nn.Dropout(dropout)
|
| 301 |
+
self.dropout2 = nn.Dropout(dropout)
|
| 302 |
+
|
| 303 |
+
self.activation = _get_activation_fn(activation)
|
| 304 |
+
self.normalize_before = normalize_before
|
| 305 |
+
|
| 306 |
+
def with_pos_embed(self, tensor, pos: Optional[Tensor]):
|
| 307 |
+
return tensor if pos is None else tensor + pos
|
| 308 |
+
|
| 309 |
+
def forward_post(
|
| 310 |
+
self,
|
| 311 |
+
src,
|
| 312 |
+
src_mask: Optional[Tensor] = None,
|
| 313 |
+
src_key_padding_mask: Optional[Tensor] = None,
|
| 314 |
+
pos: Optional[Tensor] = None,
|
| 315 |
+
):
|
| 316 |
+
q = k = self.with_pos_embed(src, pos)
|
| 317 |
+
src2 = self.self_attn(
|
| 318 |
+
q, k, value=src, attn_mask=src_mask, key_padding_mask=src_key_padding_mask
|
| 319 |
+
)[0]
|
| 320 |
+
src = src + self.dropout1(src2)
|
| 321 |
+
src = self.norm1(src)
|
| 322 |
+
src2 = self.linear2(self.dropout(self.activation(self.linear1(src))))
|
| 323 |
+
src = src + self.dropout2(src2)
|
| 324 |
+
src = self.norm2(src)
|
| 325 |
+
return src
|
| 326 |
+
|
| 327 |
+
def forward_pre(
|
| 328 |
+
self,
|
| 329 |
+
src,
|
| 330 |
+
src_mask: Optional[Tensor] = None,
|
| 331 |
+
src_key_padding_mask: Optional[Tensor] = None,
|
| 332 |
+
pos: Optional[Tensor] = None,
|
| 333 |
+
):
|
| 334 |
+
src2 = self.norm1(src)
|
| 335 |
+
q = k = self.with_pos_embed(src2, pos)
|
| 336 |
+
src2 = self.self_attn(
|
| 337 |
+
q, k, value=src2, attn_mask=src_mask, key_padding_mask=src_key_padding_mask
|
| 338 |
+
)[0]
|
| 339 |
+
src = src + self.dropout1(src2)
|
| 340 |
+
src2 = self.norm2(src)
|
| 341 |
+
src2 = self.linear2(self.dropout(self.activation(self.linear1(src2))))
|
| 342 |
+
src = src + self.dropout2(src2)
|
| 343 |
+
return src
|
| 344 |
+
|
| 345 |
+
def forward(
|
| 346 |
+
self,
|
| 347 |
+
src,
|
| 348 |
+
src_mask: Optional[Tensor] = None,
|
| 349 |
+
src_key_padding_mask: Optional[Tensor] = None,
|
| 350 |
+
pos: Optional[Tensor] = None,
|
| 351 |
+
):
|
| 352 |
+
if self.normalize_before:
|
| 353 |
+
return self.forward_pre(src, src_mask, src_key_padding_mask, pos)
|
| 354 |
+
return self.forward_post(src, src_mask, src_key_padding_mask, pos)
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
class TransformerDecoderLayer(nn.Module):
|
| 358 |
+
def __init__(
|
| 359 |
+
self,
|
| 360 |
+
d_model,
|
| 361 |
+
nhead,
|
| 362 |
+
dim_feedforward=2048,
|
| 363 |
+
dropout=0.1,
|
| 364 |
+
activation="relu",
|
| 365 |
+
normalize_before=False,
|
| 366 |
+
):
|
| 367 |
+
super().__init__()
|
| 368 |
+
self.self_attn = nn.MultiheadAttention(d_model, nhead, dropout=dropout)
|
| 369 |
+
self.multihead_attn = nn.MultiheadAttention(d_model, nhead, dropout=dropout)
|
| 370 |
+
# Implementation of Feedforward model
|
| 371 |
+
self.linear1 = nn.Linear(d_model, dim_feedforward)
|
| 372 |
+
self.dropout = nn.Dropout(dropout)
|
| 373 |
+
self.linear2 = nn.Linear(dim_feedforward, d_model)
|
| 374 |
+
|
| 375 |
+
self.norm1 = nn.LayerNorm(d_model)
|
| 376 |
+
self.norm2 = nn.LayerNorm(d_model)
|
| 377 |
+
self.norm3 = nn.LayerNorm(d_model)
|
| 378 |
+
self.dropout1 = nn.Dropout(dropout)
|
| 379 |
+
self.dropout2 = nn.Dropout(dropout)
|
| 380 |
+
self.dropout3 = nn.Dropout(dropout)
|
| 381 |
+
|
| 382 |
+
self.activation = _get_activation_fn(activation)
|
| 383 |
+
self.normalize_before = normalize_before
|
| 384 |
+
|
| 385 |
+
def with_pos_embed(self, tensor, pos: Optional[Tensor]):
|
| 386 |
+
return tensor if pos is None else tensor + pos
|
| 387 |
+
|
| 388 |
+
def forward_post(
|
| 389 |
+
self,
|
| 390 |
+
tgt,
|
| 391 |
+
memory,
|
| 392 |
+
tgt_mask: Optional[Tensor] = None,
|
| 393 |
+
memory_mask: Optional[Tensor] = None,
|
| 394 |
+
tgt_key_padding_mask: Optional[Tensor] = None,
|
| 395 |
+
memory_key_padding_mask: Optional[Tensor] = None,
|
| 396 |
+
pos: Optional[Tensor] = None,
|
| 397 |
+
query_pos: Optional[Tensor] = None,
|
| 398 |
+
):
|
| 399 |
+
q = k = self.with_pos_embed(tgt, query_pos)
|
| 400 |
+
tgt2 = self.self_attn(
|
| 401 |
+
q, k, value=tgt, attn_mask=tgt_mask, key_padding_mask=tgt_key_padding_mask
|
| 402 |
+
)[0]
|
| 403 |
+
tgt = tgt + self.dropout1(tgt2)
|
| 404 |
+
tgt = self.norm1(tgt)
|
| 405 |
+
tgt2 = self.multihead_attn(
|
| 406 |
+
query=self.with_pos_embed(tgt, query_pos),
|
| 407 |
+
key=self.with_pos_embed(memory, pos),
|
| 408 |
+
value=memory,
|
| 409 |
+
attn_mask=memory_mask,
|
| 410 |
+
key_padding_mask=memory_key_padding_mask,
|
| 411 |
+
)[0]
|
| 412 |
+
tgt = tgt + self.dropout2(tgt2)
|
| 413 |
+
tgt = self.norm2(tgt)
|
| 414 |
+
tgt2 = self.linear2(self.dropout(self.activation(self.linear1(tgt))))
|
| 415 |
+
tgt = tgt + self.dropout3(tgt2)
|
| 416 |
+
tgt = self.norm3(tgt)
|
| 417 |
+
return tgt
|
| 418 |
+
|
| 419 |
+
def forward_pre(
|
| 420 |
+
self,
|
| 421 |
+
tgt,
|
| 422 |
+
memory,
|
| 423 |
+
tgt_mask: Optional[Tensor] = None,
|
| 424 |
+
memory_mask: Optional[Tensor] = None,
|
| 425 |
+
tgt_key_padding_mask: Optional[Tensor] = None,
|
| 426 |
+
memory_key_padding_mask: Optional[Tensor] = None,
|
| 427 |
+
pos: Optional[Tensor] = None,
|
| 428 |
+
query_pos: Optional[Tensor] = None,
|
| 429 |
+
):
|
| 430 |
+
tgt2 = self.norm1(tgt)
|
| 431 |
+
q = k = self.with_pos_embed(tgt2, query_pos)
|
| 432 |
+
tgt2 = self.self_attn(
|
| 433 |
+
q, k, value=tgt2, attn_mask=tgt_mask, key_padding_mask=tgt_key_padding_mask
|
| 434 |
+
)[0]
|
| 435 |
+
tgt = tgt + self.dropout1(tgt2)
|
| 436 |
+
tgt2 = self.norm2(tgt)
|
| 437 |
+
tgt2 = self.multihead_attn(
|
| 438 |
+
query=self.with_pos_embed(tgt2, query_pos),
|
| 439 |
+
key=self.with_pos_embed(memory, pos),
|
| 440 |
+
value=memory,
|
| 441 |
+
attn_mask=memory_mask,
|
| 442 |
+
key_padding_mask=memory_key_padding_mask,
|
| 443 |
+
)[0]
|
| 444 |
+
tgt = tgt + self.dropout2(tgt2)
|
| 445 |
+
tgt2 = self.norm3(tgt)
|
| 446 |
+
tgt2 = self.linear2(self.dropout(self.activation(self.linear1(tgt2))))
|
| 447 |
+
tgt = tgt + self.dropout3(tgt2)
|
| 448 |
+
return tgt
|
| 449 |
+
|
| 450 |
+
def forward(
|
| 451 |
+
self,
|
| 452 |
+
tgt,
|
| 453 |
+
memory,
|
| 454 |
+
tgt_mask: Optional[Tensor] = None,
|
| 455 |
+
memory_mask: Optional[Tensor] = None,
|
| 456 |
+
tgt_key_padding_mask: Optional[Tensor] = None,
|
| 457 |
+
memory_key_padding_mask: Optional[Tensor] = None,
|
| 458 |
+
pos: Optional[Tensor] = None,
|
| 459 |
+
query_pos: Optional[Tensor] = None,
|
| 460 |
+
):
|
| 461 |
+
if self.normalize_before:
|
| 462 |
+
return self.forward_pre(
|
| 463 |
+
tgt,
|
| 464 |
+
memory,
|
| 465 |
+
tgt_mask,
|
| 466 |
+
memory_mask,
|
| 467 |
+
tgt_key_padding_mask,
|
| 468 |
+
memory_key_padding_mask,
|
| 469 |
+
pos,
|
| 470 |
+
query_pos,
|
| 471 |
+
)
|
| 472 |
+
return self.forward_post(
|
| 473 |
+
tgt,
|
| 474 |
+
memory,
|
| 475 |
+
tgt_mask,
|
| 476 |
+
memory_mask,
|
| 477 |
+
tgt_key_padding_mask,
|
| 478 |
+
memory_key_padding_mask,
|
| 479 |
+
pos,
|
| 480 |
+
query_pos,
|
| 481 |
+
)
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
def _get_clones(module, N):
|
| 485 |
+
return nn.ModuleList([copy.deepcopy(module) for i in range(N)])
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
def _get_activation_fn(activation):
|
| 489 |
+
"""Return an activation function given a string."""
|
| 490 |
+
if activation == "relu":
|
| 491 |
+
return F.relu
|
| 492 |
+
if activation == "gelu":
|
| 493 |
+
return F.gelu
|
| 494 |
+
raise RuntimeError(f"activation should be relu/gelu, not {activation}.")
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
def reparametrize(mu: torch.Tensor, logvar: torch.Tensor) -> torch.Tensor:
|
| 499 |
+
std = logvar.div(2).exp()
|
| 500 |
+
return mu + std * torch.randn_like(std)
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
def get_sinusoid_encoding_table(n_position: int, d_hid: int) -> torch.Tensor:
|
| 504 |
+
def angle_vec(position: int) -> list[float]:
|
| 505 |
+
return [position / np.power(10000, 2 * (j // 2) / d_hid) for j in range(d_hid)]
|
| 506 |
+
|
| 507 |
+
table = np.array([angle_vec(i) for i in range(n_position)])
|
| 508 |
+
table[:, 0::2] = np.sin(table[:, 0::2])
|
| 509 |
+
table[:, 1::2] = np.cos(table[:, 1::2])
|
| 510 |
+
return torch.FloatTensor(table).unsqueeze(0)
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def build_style_encoder(
|
| 514 |
+
hidden_dim: int, nheads: int, dim_feedforward: int, enc_layers: int, dropout: float
|
| 515 |
+
) -> TransformerEncoder:
|
| 516 |
+
"""The CVAE style encoder (a plain transformer encoder over [CLS, qpos, action seq])."""
|
| 517 |
+
layer = TransformerEncoderLayer(hidden_dim, nheads, dim_feedforward, dropout, "relu", False)
|
| 518 |
+
return TransformerEncoder(layer, enc_layers, norm=None)
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
class DETRVAE(nn.Module):
|
| 522 |
+
"""CVAE decoder: (qpos, images[, action seq]) → ``num_queries`` future actions."""
|
| 523 |
+
|
| 524 |
+
def __init__(
|
| 525 |
+
self,
|
| 526 |
+
backbone: Joiner,
|
| 527 |
+
transformer: Transformer,
|
| 528 |
+
encoder: TransformerEncoder,
|
| 529 |
+
*,
|
| 530 |
+
qpos_dim: int,
|
| 531 |
+
action_dim: int,
|
| 532 |
+
num_queries: int,
|
| 533 |
+
latent_dim: int = 32,
|
| 534 |
+
) -> None:
|
| 535 |
+
super().__init__()
|
| 536 |
+
self.num_queries = num_queries
|
| 537 |
+
self.transformer = transformer
|
| 538 |
+
self.encoder = encoder
|
| 539 |
+
hidden_dim = transformer.d_model
|
| 540 |
+
self.action_head = nn.Linear(hidden_dim, action_dim)
|
| 541 |
+
self.query_embed = nn.Embedding(num_queries, hidden_dim)
|
| 542 |
+
self.backbone = backbone # ONE backbone shared by every camera (upstream behavior)
|
| 543 |
+
self.input_proj = nn.Conv2d(backbone.num_channels, hidden_dim, kernel_size=1)
|
| 544 |
+
self.input_proj_robot_state = nn.Linear(qpos_dim, hidden_dim)
|
| 545 |
+
|
| 546 |
+
# CVAE style encoder inputs
|
| 547 |
+
self.latent_dim = latent_dim
|
| 548 |
+
self.cls_embed = nn.Embedding(1, hidden_dim)
|
| 549 |
+
self.encoder_action_proj = nn.Linear(action_dim, hidden_dim)
|
| 550 |
+
self.encoder_joint_proj = nn.Linear(qpos_dim, hidden_dim)
|
| 551 |
+
self.latent_proj = nn.Linear(hidden_dim, latent_dim * 2)
|
| 552 |
+
self.register_buffer(
|
| 553 |
+
"pos_table", get_sinusoid_encoding_table(1 + 1 + num_queries, hidden_dim)
|
| 554 |
+
)
|
| 555 |
+
# decoder side
|
| 556 |
+
self.latent_out_proj = nn.Linear(latent_dim, hidden_dim)
|
| 557 |
+
self.additional_pos_embed = nn.Embedding(2, hidden_dim) # latent + proprio slots
|
| 558 |
+
|
| 559 |
+
def forward(
|
| 560 |
+
self,
|
| 561 |
+
qpos: torch.Tensor,
|
| 562 |
+
images: torch.Tensor,
|
| 563 |
+
actions: torch.Tensor | None = None,
|
| 564 |
+
is_pad: torch.Tensor | None = None,
|
| 565 |
+
) -> tuple[torch.Tensor, tuple[torch.Tensor | None, torch.Tensor | None]]:
|
| 566 |
+
"""``qpos (B, Dq)``, ``images (B, ncam, C, H, W)``; train passes ``actions (B, T, Da)``."""
|
| 567 |
+
is_training = actions is not None
|
| 568 |
+
bs = qpos.shape[0]
|
| 569 |
+
if is_training:
|
| 570 |
+
action_embed = self.encoder_action_proj(actions)
|
| 571 |
+
qpos_embed = self.encoder_joint_proj(qpos).unsqueeze(1)
|
| 572 |
+
cls_embed = self.cls_embed.weight.unsqueeze(0).repeat(bs, 1, 1)
|
| 573 |
+
encoder_input = torch.cat([cls_embed, qpos_embed, action_embed], dim=1)
|
| 574 |
+
encoder_input = encoder_input.permute(1, 0, 2)
|
| 575 |
+
if is_pad is None:
|
| 576 |
+
is_pad = torch.zeros(bs, actions.shape[1], dtype=torch.bool, device=qpos.device)
|
| 577 |
+
cls_joint_is_pad = torch.full((bs, 2), False, device=qpos.device)
|
| 578 |
+
key_pad = torch.cat([cls_joint_is_pad, is_pad], dim=1)
|
| 579 |
+
pos_embed = self.pos_table.clone().detach().permute(1, 0, 2)
|
| 580 |
+
encoder_output = self.encoder(
|
| 581 |
+
encoder_input, pos=pos_embed, src_key_padding_mask=key_pad
|
| 582 |
+
)[0]
|
| 583 |
+
latent_info = self.latent_proj(encoder_output)
|
| 584 |
+
mu = latent_info[:, : self.latent_dim]
|
| 585 |
+
logvar = latent_info[:, self.latent_dim :]
|
| 586 |
+
latent_input = self.latent_out_proj(reparametrize(mu, logvar))
|
| 587 |
+
else:
|
| 588 |
+
mu = logvar = None
|
| 589 |
+
latent_sample = torch.zeros(bs, self.latent_dim, device=qpos.device)
|
| 590 |
+
latent_input = self.latent_out_proj(latent_sample)
|
| 591 |
+
|
| 592 |
+
all_cam_features, all_cam_pos = [], []
|
| 593 |
+
for cam_id in range(images.shape[1]):
|
| 594 |
+
features, pos = self.backbone(images[:, cam_id])
|
| 595 |
+
all_cam_features.append(self.input_proj(features[0]))
|
| 596 |
+
all_cam_pos.append(pos[0])
|
| 597 |
+
proprio_input = self.input_proj_robot_state(qpos)
|
| 598 |
+
src = torch.cat(all_cam_features, dim=3) # cameras fold into the width axis
|
| 599 |
+
pos = torch.cat(all_cam_pos, dim=3)
|
| 600 |
+
hs = self.transformer(
|
| 601 |
+
src,
|
| 602 |
+
None,
|
| 603 |
+
self.query_embed.weight,
|
| 604 |
+
pos,
|
| 605 |
+
latent_input,
|
| 606 |
+
proprio_input,
|
| 607 |
+
self.additional_pos_embed.weight,
|
| 608 |
+
)[0]
|
| 609 |
+
return self.action_head(hs), (mu, logvar)
|
| 610 |
+
|
| 611 |
+
|
| 612 |
+
def kl_divergence(mu: torch.Tensor, logvar: torch.Tensor) -> torch.Tensor:
|
| 613 |
+
"""Total KL(q(z|x) || N(0, I)), summed over latent dims, meaned over the batch."""
|
| 614 |
+
klds = -0.5 * (1 + logvar - mu.pow(2) - logvar.exp())
|
| 615 |
+
return klds.sum(1).mean()
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/adapters.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""The G1 evaluation adapters of the baselines (evaluation/README.md#the-model-interface): `make_model('fm_dit')`
|
| 2 |
+
returns the `Model` class that `evaluation/policy/FMDiT/model.py` exports (likewise DP, ACT, FLASH).
|
| 3 |
+
|
| 4 |
+
Observation: the current ego_view and chest frames (480x640 RGB, resized as the training cache) and state44; FM-DiT,
|
| 5 |
+
DP and ACT read no past actions or earlier frames (one frame); FLASH also reads the interface's executed rows before
|
| 6 |
+
the query (`past_actions`, `history_valid`: the token sent and the INSPIRE opening measured at each earlier frame)
|
| 7 |
+
for its polynomial history. Output: the checkpoint's whole chunk (16 rows of action76, row 0 executed at the request's
|
| 8 |
+
frame), `execution_steps` rows of it executed before the next query (deploy.yml `config: execution_steps`, default the
|
| 9 |
+
whole chunk; the runners re-query after at most 12 rows), the request's seed for the sampling noise (FM-DiT, DP).
|
| 10 |
+
"""
|
| 11 |
+
from __future__ import annotations
|
| 12 |
+
|
| 13 |
+
from .runtime import BaselinePolicy
|
| 14 |
+
|
| 15 |
+
WIDTH = {'sonic_dfx6': 76}
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def require(condition, message):
|
| 19 |
+
if not condition:
|
| 20 |
+
raise RuntimeError(message)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def make_model(policy_name: str):
|
| 24 |
+
class Model:
|
| 25 |
+
history_length = 1 # the current head and chest frames only
|
| 26 |
+
video_frames = 0
|
| 27 |
+
|
| 28 |
+
def __init__(self, cfg):
|
| 29 |
+
self.policy = BaselinePolicy(cfg['checkpoint_path'], device=cfg.get('device', 'cuda:0'),
|
| 30 |
+
policy=policy_name, robot='g1')
|
| 31 |
+
contract = self.policy.contract
|
| 32 |
+
require(cfg['action_space'] in WIDTH and contract['action_space'] == cfg['action_space']
|
| 33 |
+
and self.policy.action_dim == WIDTH[cfg['action_space']] and self.policy.state_dim == 44
|
| 34 |
+
and list(self.policy.cameras) == ['ego_view', 'chest'],
|
| 35 |
+
f"checkpoint contract {contract['name']} does not serve {cfg['action_space']}")
|
| 36 |
+
extra = cfg.get('config') or {}
|
| 37 |
+
if extra.get('check_task', True):
|
| 38 |
+
require(cfg['task'].strip() == (self.policy.task_text or '').strip(),
|
| 39 |
+
f'task text {cfg["task"]!r} is not the training task {self.policy.task_text!r}')
|
| 40 |
+
self.execution_steps = int(extra.get('execution_steps') or self.policy.horizon)
|
| 41 |
+
require(1 <= self.execution_steps <= self.policy.horizon, f'execution_steps {self.execution_steps}')
|
| 42 |
+
self.uses_history = self.policy.name == 'flash'
|
| 43 |
+
self.info = dict(self.policy.info(), execution_steps=self.execution_steps,
|
| 44 |
+
inputs='current frames + state44' + (' + executed-action history' if self.uses_history
|
| 45 |
+
else ''))
|
| 46 |
+
|
| 47 |
+
def get_action(self, obs):
|
| 48 |
+
if self.uses_history:
|
| 49 |
+
action, _ = self.policy.predict(obs['images'], obs['state'], seed=obs['seed'],
|
| 50 |
+
past_actions=obs['past_actions'], history_valid=obs['history_valid'])
|
| 51 |
+
else:
|
| 52 |
+
action, _ = self.policy.predict(obs['images'], obs['state'], seed=obs['seed'])
|
| 53 |
+
return dict(action=action, execution_steps=self.execution_steps,
|
| 54 |
+
sampling_steps=self.policy.sampling_steps)
|
| 55 |
+
|
| 56 |
+
Model.__name__ = Model.__qualname__ = f'Model_{policy_name}'
|
| 57 |
+
return Model
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/check_flash_adapter.py
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Offline check of the FLASH adapter against the training path on recorded frames (before any closed-loop run):
|
| 2 |
+
|
| 3 |
+
<baselines env>/bin/python -I evaluation/baselines/check_flash_adapter.py --checkpoint <checkpoints/step-NNNNNN> \\
|
| 4 |
+
--dataset <LeRobot v2.1 root> --episodes 0,60 --queries 8 [--device cuda:0]
|
| 5 |
+
|
| 6 |
+
For query frames t of each episode (0, then evenly spaced) it builds
|
| 7 |
+
(a) the interface observation a runner sends: the 480x640 ego_view / chest frames (decoded from the dataset videos),
|
| 8 |
+
state44 and past_actions = the 40 recorded action rows before t (history_valid 0 before the episode start), and
|
| 9 |
+
calls evaluation/policy/FLASH/model.py Model.get_action, the deployed adapter;
|
| 10 |
+
(b) the training path: FlashChunkDataset's item for the same anchor (frames resized as the frame cache, the dataset's
|
| 11 |
+
history rule) through FlashPolicy.predict.
|
| 12 |
+
Both chunks must be equal bit for bit (same weights, same device); it also prints the normalized MSE of the chunk
|
| 13 |
+
against the recorded rows from t (rows past the episode's end excluded). Exits 1 on a mismatch.
|
| 14 |
+
"""
|
| 15 |
+
from __future__ import annotations
|
| 16 |
+
|
| 17 |
+
import argparse
|
| 18 |
+
import json
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
import sys
|
| 21 |
+
|
| 22 |
+
import numpy as np
|
| 23 |
+
|
| 24 |
+
HERE = Path(__file__).resolve().parent
|
| 25 |
+
EVALUATION = HERE.parent
|
| 26 |
+
if str(EVALUATION) not in sys.path:
|
| 27 |
+
sys.path.insert(0, str(EVALUATION))
|
| 28 |
+
|
| 29 |
+
HISTORY_ROWS = 40 # the interface's past_actions rows (debug/newton/b6_policy_eval.py HISTORY_ROWS)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def decode(path, indices):
|
| 33 |
+
import av
|
| 34 |
+
want, out = set(int(i) for i in indices), {}
|
| 35 |
+
with av.open(str(path)) as container:
|
| 36 |
+
for k, frame in enumerate(container.decode(video=0)):
|
| 37 |
+
if k in want:
|
| 38 |
+
out[k] = frame.to_ndarray(format='rgb24')
|
| 39 |
+
if len(out) == len(want):
|
| 40 |
+
break
|
| 41 |
+
return out
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def main():
|
| 45 |
+
p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 46 |
+
p.add_argument('--checkpoint', type=Path, required=True)
|
| 47 |
+
p.add_argument('--dataset', type=Path, required=True)
|
| 48 |
+
p.add_argument('--episodes', default='0')
|
| 49 |
+
p.add_argument('--queries', type=int, default=8)
|
| 50 |
+
p.add_argument('--device', default='cuda:0')
|
| 51 |
+
a = p.parse_args()
|
| 52 |
+
|
| 53 |
+
import torch
|
| 54 |
+
from baselines.data import CONTRACTS, FlashChunkDataset, LeRobotDataset, load_lowdim, resize_frame
|
| 55 |
+
from baselines.runtime import BaselinePolicy
|
| 56 |
+
sys.path.insert(0, str(EVALUATION / 'policy' / 'FLASH'))
|
| 57 |
+
import model as flash_model
|
| 58 |
+
|
| 59 |
+
base = BaselinePolicy(a.checkpoint, device=a.device, policy='flash', robot='g1')
|
| 60 |
+
contract = CONTRACTS[base.contract['name']]
|
| 61 |
+
adapter = flash_model.Model(dict(checkpoint_path=str(a.checkpoint), device=a.device, action_space='sonic_dfx6',
|
| 62 |
+
task=base.task_text or '', config={}))
|
| 63 |
+
policy = adapter.policy.model # the adapter's own loaded weights
|
| 64 |
+
dataset = LeRobotDataset(a.dataset)
|
| 65 |
+
episodes = [int(e) for e in a.episodes.split(',')]
|
| 66 |
+
lowdim = load_lowdim(dataset, contract, episodes)
|
| 67 |
+
report, worst = [], 0.0
|
| 68 |
+
for pos, ep in enumerate(episodes):
|
| 69 |
+
s, n = int(lowdim['starts'][pos]), int(lowdim['lengths'][pos])
|
| 70 |
+
ts = sorted({0, *np.linspace(0, n - 1, a.queries).astype(int).tolist()})[:a.queries]
|
| 71 |
+
frames = {c: decode(dataset.video(ep, c), ts) for c in base.cameras}
|
| 72 |
+
hw = base.image_hw
|
| 73 |
+
maps = {c: np.zeros((lowdim['lengths'].sum(), *hw, 3), np.uint8) for c in base.cameras}
|
| 74 |
+
for t in ts:
|
| 75 |
+
for c in base.cameras:
|
| 76 |
+
maps[c][s + t] = resize_frame(frames[c][t], hw) # the frame cache's resize of the same frame
|
| 77 |
+
f = policy.flash
|
| 78 |
+
H_ext = f['poly_prefix'] + f['n_action'] + f['poly_suffix'] + 2 * f['fit_pad']
|
| 79 |
+
offsets = (np.arange(H_ext) - (f['fit_pad'] + f['poly_prefix'])) * f['stride']
|
| 80 |
+
ds = FlashChunkDataset(lowdim, {}, base.cameras, hw, [pos], offsets=offsets, stride=f['stride'],
|
| 81 |
+
n_history=f['n_history'], rows=f['rows'], with_dense=True)
|
| 82 |
+
ds._maps, ds._pid = maps, __import__('os').getpid()
|
| 83 |
+
for t in ts:
|
| 84 |
+
k = int(np.nonzero(ds.index == s + t)[0][0])
|
| 85 |
+
images, state, _, hist, has, dense, dense_valid = ds[k]
|
| 86 |
+
idx = np.arange(t - HISTORY_ROWS, t)
|
| 87 |
+
past = lowdim['action'][s + np.clip(idx, 0, n - 1)].astype(np.float32)
|
| 88 |
+
valid = (idx >= 0).astype(np.float32)
|
| 89 |
+
past[idx < 0] = 0.0
|
| 90 |
+
obs = dict(images={c: frames[c][t] for c in base.cameras}, state=lowdim['state'][s + t],
|
| 91 |
+
past_actions=past, history_valid=valid, seed=0, frame=t, history_frame=t)
|
| 92 |
+
a_chunk = adapter.get_action(obs)['action']
|
| 93 |
+
with torch.inference_mode():
|
| 94 |
+
img = images[None].to(a.device).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 95 |
+
b_chunk, _ = policy.predict(img, state[None].to(a.device), hist[None].to(a.device),
|
| 96 |
+
has[None].to(a.device))
|
| 97 |
+
b_chunk = b_chunk[0].float().cpu().numpy()
|
| 98 |
+
diff = float(np.abs(a_chunk - b_chunk).max())
|
| 99 |
+
worst = max(worst, diff)
|
| 100 |
+
nrm = policy.action_norm
|
| 101 |
+
err = (nrm.normalize(torch.from_numpy(a_chunk).to(a.device)) -
|
| 102 |
+
nrm.normalize(dense.to(a.device))).pow(2).cpu().numpy()[dense_valid.numpy()]
|
| 103 |
+
report.append(dict(episode=ep, t=t, has_history=bool(has), max_abs_diff=diff,
|
| 104 |
+
nmse_vs_recorded=float(err.mean()),
|
| 105 |
+
token_cos_row0=float(np.dot(a_chunk[0, :64], dense[0, :64].numpy()) /
|
| 106 |
+
(np.linalg.norm(a_chunk[0, :64]) *
|
| 107 |
+
np.linalg.norm(dense[0, :64].numpy()) + 1e-12))))
|
| 108 |
+
ok = worst == 0.0
|
| 109 |
+
print(json.dumps(dict(ok=ok, max_abs_diff=worst, checkpoint=str(a.checkpoint), queries=report), indent=1))
|
| 110 |
+
sys.exit(0 if ok else 1)
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
if __name__ == '__main__':
|
| 114 |
+
main()
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/check_flash_parity.py
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Check the FLASH port (evaluation/baselines/flash.py) against the upstream policy, on the CPU:
|
| 2 |
+
|
| 3 |
+
<baselines env>/bin/python -I evaluation/baselines/check_flash_parity.py --upstream <FLASH-Policy checkout>
|
| 4 |
+
|
| 5 |
+
Upstream is NTUMARS/FLASH-Policy @ f47e490 (roboverse_learn/il/...); its `zarr` and `einops` imports are shimmed
|
| 6 |
+
when the environment lacks them (only the parts used here run). Compared, for flash.yaml's settings with n_obs_steps =
|
| 7 |
+
n_history (8), n_action_steps 8, horizon 16:
|
| 8 |
+
|
| 9 |
+
- the polynomial buffers: least-squares matrix, coefficient scales, Tikhonov history fit, KKT boundary-constraint
|
| 10 |
+
matrices and pinned indices;
|
| 11 |
+
- target coefficients (least squares + boundary constraint) and history coefficients on random normalized
|
| 12 |
+
trajectories (identity normalizers on both sides);
|
| 13 |
+
- the DiT: upstream FlowTransformer's weights loaded strictly into FlashFlowTransformer, same outputs;
|
| 14 |
+
- the image encoder: upstream MultiImageObsEncoder (two rgb keys, agent_pos) with this port's weights, same features
|
| 15 |
+
(upstream concatenates its rgb keys in sorted order);
|
| 16 |
+
- the 30 Hz output rows: at multiples of the stride they equal upstream's trajectory points from the anchor.
|
| 17 |
+
Prints one JSON line with the largest differences; exits 1 when one exceeds its tolerance.
|
| 18 |
+
"""
|
| 19 |
+
from __future__ import annotations
|
| 20 |
+
|
| 21 |
+
import argparse
|
| 22 |
+
import json
|
| 23 |
+
from pathlib import Path
|
| 24 |
+
import sys
|
| 25 |
+
import types
|
| 26 |
+
|
| 27 |
+
import torch
|
| 28 |
+
|
| 29 |
+
HERE = Path(__file__).resolve().parent
|
| 30 |
+
if str(HERE.parent) not in sys.path:
|
| 31 |
+
sys.path.insert(0, str(HERE.parent))
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def shim_upstream_imports():
|
| 35 |
+
try:
|
| 36 |
+
import zarr # noqa: F401
|
| 37 |
+
except ImportError:
|
| 38 |
+
zarr = types.ModuleType('zarr')
|
| 39 |
+
zarr.Array = type('Array', (), {})
|
| 40 |
+
sys.modules['zarr'] = zarr
|
| 41 |
+
try:
|
| 42 |
+
import einops # noqa: F401
|
| 43 |
+
except ImportError:
|
| 44 |
+
einops = types.ModuleType('einops')
|
| 45 |
+
einops.reduce = lambda x, pattern, op: x.reshape(x.shape[0], -1) # "b ... -> b (...)" (no reduced axis)
|
| 46 |
+
sys.modules['einops'] = einops
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def main():
|
| 50 |
+
p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 51 |
+
p.add_argument('--upstream', type=Path, required=True, help='FLASH-Policy checkout (commit f47e490)')
|
| 52 |
+
p.add_argument('--stride', type=int, default=2)
|
| 53 |
+
a = p.parse_args()
|
| 54 |
+
shim_upstream_imports()
|
| 55 |
+
sys.path.insert(0, str(a.upstream.resolve()))
|
| 56 |
+
from roboverse_learn.il.policies.flash.flash_policy import FlashDiTImagePolicy
|
| 57 |
+
from roboverse_learn.il.utils.models.flow_net import FlowTransformer
|
| 58 |
+
from roboverse_learn.il.utils.vision.model_getter import get_resnet
|
| 59 |
+
from roboverse_learn.il.utils.vision.multi_image_obs_encoder import MultiImageObsEncoder
|
| 60 |
+
from baselines.flash import FLASH_DEFAULTS, FLASH_POLICY_FIELDS, FlashFlowTransformer
|
| 61 |
+
from baselines.policies import PolicyConfig, build_policy
|
| 62 |
+
|
| 63 |
+
torch.manual_seed(0)
|
| 64 |
+
Da, Ds, H, W = 76, 44, 48, 64
|
| 65 |
+
f = dict(FLASH_DEFAULTS, stride=a.stride)
|
| 66 |
+
cfg = PolicyConfig.from_dict(dict(policy='flash', n_cameras=2, state_dim=Ds, action_dim=Da, horizon=f['rows'],
|
| 67 |
+
**FLASH_POLICY_FIELDS, extra=dict(flash=f)))
|
| 68 |
+
ours = build_policy(cfg, pretrained=False).eval()
|
| 69 |
+
shape_meta = dict(obs=dict(ego_view=dict(shape=[3, H, W], type='rgb'), chest=dict(shape=[3, H, W], type='rgb'),
|
| 70 |
+
agent_pos=dict(shape=[Ds], type='low_dim')), action=dict(shape=[Da]))
|
| 71 |
+
enc = MultiImageObsEncoder(shape_meta=shape_meta, rgb_model=get_resnet('resnet18', weights=None),
|
| 72 |
+
resize_shape=None, crop_shape=None, random_crop=True, use_group_norm=True,
|
| 73 |
+
share_rgb_model=False, imagenet_norm=True)
|
| 74 |
+
up = FlashDiTImagePolicy(shape_meta=shape_meta, obs_encoder=enc, horizon=f['n_history'] + f['n_action'],
|
| 75 |
+
n_action_steps=f['n_action'], n_obs_steps=f['n_history'], num_inference_steps=1,
|
| 76 |
+
obs_as_global_cond=True, diffusion_step_embed_dim=256, hidden_dim=512, num_layers=4,
|
| 77 |
+
num_heads=8, mlp_ratio=4, dropout=0.0, poly_order=f['poly_order'], basis_type='legendre',
|
| 78 |
+
fit_pad=f['fit_pad'], boundary_constraint=f['boundary_constraint'],
|
| 79 |
+
history_noise_std=f['history_noise_std'], history_reg_lambda=f['history_reg_lambda'],
|
| 80 |
+
consistency_weight=f['consistency_weight'], flash_solver='euler',
|
| 81 |
+
poly_prefix=f['poly_prefix'], poly_suffix=f['poly_suffix']).eval()
|
| 82 |
+
res, tol = {}, {}
|
| 83 |
+
|
| 84 |
+
def diff(name, x, y, t):
|
| 85 |
+
res[name] = float((x.double() - y.double()).abs().max())
|
| 86 |
+
tol[name] = t
|
| 87 |
+
|
| 88 |
+
for b in ('_lstsq_matrix', '_coeff_scale', '_history_lstsq_matrix', '_bc_eval_pos', '_bc_eval_vel',
|
| 89 |
+
'_bc_correction'):
|
| 90 |
+
diff(b, getattr(ours, b), getattr(up, b), 1e-6)
|
| 91 |
+
res['_bc_pos_indices_equal'] = bool(torch.equal(ours._bc_pos_indices, up._bc_pos_indices))
|
| 92 |
+
|
| 93 |
+
# identity normalizers on both sides: compare the polynomial algebra itself
|
| 94 |
+
B = 6
|
| 95 |
+
traj = torch.randn(B, ours.H_ext, Da)
|
| 96 |
+
hist = torch.randn(B, f['n_history'], Da)
|
| 97 |
+
with torch.no_grad():
|
| 98 |
+
t_up = up._apply_boundary_constraint(up._trajectory_to_coefficients(traj), traj)
|
| 99 |
+
t_ours = ours._apply_boundary_constraint(ours._to_coeff(traj), traj)
|
| 100 |
+
diff('target_coeff', t_ours, t_up, 1e-4)
|
| 101 |
+
h_up = up._history_to_coefficients(hist)
|
| 102 |
+
h_ours = torch.einsum('ch,bhd->bcd', ours._history_lstsq_matrix, hist) / ours._coeff_scale
|
| 103 |
+
diff('history_coeff', h_ours, h_up, 1e-5)
|
| 104 |
+
|
| 105 |
+
# DiT: upstream weights into the port
|
| 106 |
+
dit_up = FlowTransformer(input_dim=Da, condition_dim=300, hidden_dim=512, output_dim=Da, num_layers=4,
|
| 107 |
+
num_heads=8, mlp_ratio=4, dropout=0.0, time_embed_dim=256).eval()
|
| 108 |
+
dit_ours = FlashFlowTransformer(input_dim=Da, condition_dim=300, hidden_dim=512, output_dim=Da, num_layers=4,
|
| 109 |
+
num_heads=8, mlp_ratio=4, dropout=0.0, time_embed_dim=256).eval()
|
| 110 |
+
dit_ours.load_state_dict(dit_up.state_dict(), strict=True)
|
| 111 |
+
x, t, c = torch.randn(B, ours.num_coeff, Da), torch.rand(B), torch.randn(B, 300)
|
| 112 |
+
diff('dit', dit_ours(x, t, c), dit_up(x, t, c), 1e-5)
|
| 113 |
+
|
| 114 |
+
# encoder: the port's ResNets into upstream's per-key models (sorted keys: chest, ego_view)
|
| 115 |
+
for i, cam in enumerate(('ego_view', 'chest')):
|
| 116 |
+
enc.key_model_map[cam].load_state_dict(ours.obs_encoder.rgb[i].state_dict(), strict=True)
|
| 117 |
+
imgs, state_n = torch.rand(B, 2, 3, H, W), torch.rand(B, Ds) * 2 - 1
|
| 118 |
+
f_ours = ours.obs_encoder(imgs, state_n)
|
| 119 |
+
f_up = enc({'ego_view': imgs[:, 0] * 2 - 1, 'chest': imgs[:, 1] * 2 - 1, 'agent_pos': state_n})
|
| 120 |
+
n = 512
|
| 121 |
+
f_up_reordered = torch.cat([f_up[:, n:2 * n], f_up[:, :n], f_up[:, 2 * n:]], dim=-1) # chest|ego -> ego|chest
|
| 122 |
+
diff('encoder', f_ours, f_up_reordered, 1e-4)
|
| 123 |
+
|
| 124 |
+
# 30 Hz rows from the anchor vs upstream's points: identity normalizer on ours
|
| 125 |
+
ours.action_norm.scale.fill_(1.0)
|
| 126 |
+
ours.action_norm.offset.zero_()
|
| 127 |
+
coeff = torch.randn(B, ours.num_coeff, Da)
|
| 128 |
+
dense = ours.dense_from_coeff(coeff)
|
| 129 |
+
sparse = up._coefficients_to_trajectory(coeff) # (B, H_poly, Da), anchor at up._anchor_idx
|
| 130 |
+
k = torch.arange(0, ours.rows, a.stride)
|
| 131 |
+
j = up._anchor_idx + k // a.stride
|
| 132 |
+
diff('dense_vs_upstream_points', dense[:, k], sparse[:, j], 1e-4)
|
| 133 |
+
bad = {k: v for k, v in res.items() if k in tol and v > tol[k]}
|
| 134 |
+
ok = not bad and res['_bc_pos_indices_equal']
|
| 135 |
+
print(json.dumps(dict(ok=ok, max_abs_diff=res, tolerance=tol, stride=a.stride,
|
| 136 |
+
upstream_anchor_idx=int(up._anchor_idx), port_anchor=int(ours.anchor))), flush=True)
|
| 137 |
+
sys.exit(0 if ok else 1)
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
if __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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Training data of the baselines: a task's LeRobot v2.1 expert dataset read through a robot contract.
|
| 2 |
+
|
| 3 |
+
A contract names the cameras and which dataset columns form the policy state and the action rows, the same layouts
|
| 4 |
+
the registered GR00T / Psi0 checkpoints were trained on:
|
| 5 |
+
|
| 6 |
+
- `g1_sonic_dfx6` (G1 + INSPIRE, the evaluation/README.md interface; ego_view, chest): state44 =
|
| 7 |
+
`observation.state[0:29]` body, measured `observation.inspire_{left,right}_hand_state`,
|
| 8 |
+
`observation.projected_gravity`; action76 (`sonic_dfx6`) = `action.motion_token` 64 and the measured DFX6 of the
|
| 9 |
+
same row (row 0 = the current opening);
|
| 10 |
+
- `h2_sharpa` (H2 + Sharpa, debug/newton/h2_sharpa_policy_eval.py; head, chest): state78 = `observation.state` 75,
|
| 11 |
+
`observation.projected_gravity` 3; action75 = `action.body_target` 31, `action.hands` 44 (absolute targets);
|
| 12 |
+
- `h2_sharpa_planner` (H2 + Sharpa a14 v2, h2_policy_planner_eval.py; head, chest): state78; action82 = action75 +
|
| 13 |
+
`action.planner` 7.
|
| 14 |
+
|
| 15 |
+
Frames: every camera's video is decoded once (PyAV), each frame resized with `resize_frame` (OpenCV INTER_AREA, the
|
| 16 |
+
same function the policy runtime applies to live frames) and stored as a uint8 memory map in a cache directory keyed by
|
| 17 |
+
the dataset, episodes, camera and size. A training sample is the frame t of an episode: the cameras and the state at t,
|
| 18 |
+
and the action rows t..t+horizon-1 (rows past the episode's end repeat its last row, as DextraVerse's windows).
|
| 19 |
+
"""
|
| 20 |
+
from __future__ import annotations
|
| 21 |
+
|
| 22 |
+
from dataclasses import dataclass
|
| 23 |
+
import hashlib
|
| 24 |
+
import json
|
| 25 |
+
import os
|
| 26 |
+
from pathlib import Path
|
| 27 |
+
import sys
|
| 28 |
+
|
| 29 |
+
import numpy as np
|
| 30 |
+
|
| 31 |
+
CACHE_VERSION = 1
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
@dataclass(frozen=True)
|
| 35 |
+
class Contract:
|
| 36 |
+
name: str
|
| 37 |
+
robot: str
|
| 38 |
+
cameras: tuple
|
| 39 |
+
state: tuple # ((column, start, end), ...) concatenated in order
|
| 40 |
+
action: tuple
|
| 41 |
+
action_space: str | None = None # the G1 evaluation interface's action space, if any
|
| 42 |
+
body_dims: int = 0 # leading raw-radian body joint angles of the state (augmentation spec v2 perturbs these)
|
| 43 |
+
|
| 44 |
+
@property
|
| 45 |
+
def state_dim(self) -> int:
|
| 46 |
+
return sum(end - start for _, start, end in self.state)
|
| 47 |
+
|
| 48 |
+
@property
|
| 49 |
+
def action_dim(self) -> int:
|
| 50 |
+
return sum(end - start for _, start, end in self.action)
|
| 51 |
+
|
| 52 |
+
def to_dict(self, cameras=None) -> dict:
|
| 53 |
+
return dict(name=self.name, robot=self.robot, cameras=list(cameras or self.cameras),
|
| 54 |
+
state=[list(s) for s in self.state], action=[list(a) for a in self.action],
|
| 55 |
+
state_dim=self.state_dim, action_dim=self.action_dim, action_space=self.action_space,
|
| 56 |
+
body_dims=self.body_dims)
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
_G1_HANDS = (('observation.inspire_left_hand_state', 0, 6), ('observation.inspire_right_hand_state', 0, 6))
|
| 60 |
+
_H2_STATE = (('observation.state', 0, 75), ('observation.projected_gravity', 0, 3))
|
| 61 |
+
_H2_ACTION = (('action.body_target', 0, 31), ('action.hands', 0, 44))
|
| 62 |
+
# body_dims: G1 observation.state[0:29] are the 29 body joints; H2 observation.state[0:31] are legs 6+6, waist 3,
|
| 63 |
+
# head 2, arms 7+7 (docs/unitree_h2_sharpa.md), then the Sharpa hands.
|
| 64 |
+
CONTRACTS = {c.name: c for c in (
|
| 65 |
+
Contract('g1_sonic_dfx6', 'g1', ('ego_view', 'chest'),
|
| 66 |
+
(('observation.state', 0, 29), *_G1_HANDS, ('observation.projected_gravity', 0, 3)),
|
| 67 |
+
(('action.motion_token', 0, 64), *_G1_HANDS), action_space='sonic_dfx6', body_dims=29),
|
| 68 |
+
Contract('h2_sharpa', 'h2_sharpa', ('head', 'chest'), _H2_STATE, _H2_ACTION, body_dims=31),
|
| 69 |
+
Contract('h2_sharpa_planner', 'h2_sharpa', ('head', 'chest'), _H2_STATE,
|
| 70 |
+
(*_H2_ACTION, ('action.planner', 0, 7)), body_dims=31),
|
| 71 |
+
)}
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
def augmentation_module():
|
| 75 |
+
"""evaluation/augmentation: the augmentation spec v2 shared by every model's training (imported on demand)."""
|
| 76 |
+
evaluation = str(Path(__file__).resolve().parents[1])
|
| 77 |
+
if evaluation not in sys.path:
|
| 78 |
+
sys.path.insert(0, evaluation)
|
| 79 |
+
import augmentation
|
| 80 |
+
return augmentation
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def resize_frame(frame: np.ndarray, hw) -> np.ndarray:
|
| 84 |
+
"""(H, W, 3) uint8 RGB -> (h, w, 3) uint8, OpenCV INTER_AREA (training cache and live frames alike)."""
|
| 85 |
+
import cv2
|
| 86 |
+
frame = np.ascontiguousarray(frame, dtype=np.uint8)
|
| 87 |
+
if frame.ndim != 3 or frame.shape[2] != 3:
|
| 88 |
+
raise ValueError(f'expected an (H, W, 3) RGB frame, got {frame.shape}')
|
| 89 |
+
h, w = int(hw[0]), int(hw[1])
|
| 90 |
+
if frame.shape[:2] == (h, w):
|
| 91 |
+
return frame
|
| 92 |
+
return cv2.resize(frame, (w, h), interpolation=cv2.INTER_AREA)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
class LeRobotDataset:
|
| 96 |
+
"""A LeRobot v2.1 dataset directory (meta/info.json, meta/episodes.jsonl, data/, videos/)."""
|
| 97 |
+
|
| 98 |
+
def __init__(self, root):
|
| 99 |
+
self.root = Path(root).expanduser().resolve()
|
| 100 |
+
self.info = json.loads((self.root / 'meta/info.json').read_text())
|
| 101 |
+
if self.info.get('codebase_version') != 'v2.1':
|
| 102 |
+
raise ValueError(f"{self.root}: LeRobot {self.info.get('codebase_version')}, expected v2.1")
|
| 103 |
+
rows = [json.loads(line) for line in (self.root / 'meta/episodes.jsonl').read_text().splitlines() if line]
|
| 104 |
+
self.lengths = {int(r['episode_index']): int(r['length']) for r in rows}
|
| 105 |
+
tasks = [json.loads(line) for line in (self.root / 'meta/tasks.jsonl').read_text().splitlines() if line]
|
| 106 |
+
self.tasks = {int(t['task_index']): t['task'] for t in tasks}
|
| 107 |
+
self.fps = float(self.info['fps'])
|
| 108 |
+
|
| 109 |
+
@property
|
| 110 |
+
def name(self) -> str:
|
| 111 |
+
"""The dataset's folder name (its parent's for an export folder named `lerobot`)."""
|
| 112 |
+
return self.root.parent.name if self.root.name == 'lerobot' else self.root.name
|
| 113 |
+
|
| 114 |
+
def chunk(self, episode: int) -> int:
|
| 115 |
+
return episode // int(self.info['chunks_size'])
|
| 116 |
+
|
| 117 |
+
def parquet(self, episode: int) -> Path:
|
| 118 |
+
return self.root / self.info['data_path'].format(episode_chunk=self.chunk(episode), episode_index=episode)
|
| 119 |
+
|
| 120 |
+
def video(self, episode: int, camera: str) -> Path:
|
| 121 |
+
return self.root / self.info['video_path'].format(episode_chunk=self.chunk(episode), episode_index=episode,
|
| 122 |
+
video_key=f'observation.images.{camera}')
|
| 123 |
+
|
| 124 |
+
def check_contract(self, contract: Contract, cameras):
|
| 125 |
+
features = self.info['features']
|
| 126 |
+
for column, start, end in (*contract.state, *contract.action):
|
| 127 |
+
if column not in features:
|
| 128 |
+
raise KeyError(f'{self.root.name}: no column {column!r} (contract {contract.name})')
|
| 129 |
+
width = int(np.prod(features[column]['shape']))
|
| 130 |
+
if end > width:
|
| 131 |
+
raise ValueError(f'{column} has {width} values; the contract reads {start}:{end}')
|
| 132 |
+
for camera in cameras:
|
| 133 |
+
key = f'observation.images.{camera}'
|
| 134 |
+
if features.get(key, {}).get('dtype') != 'video':
|
| 135 |
+
raise KeyError(f'{self.root.name}: no video {key!r}')
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
def parse_episodes(spec: str | None, available) -> list:
|
| 139 |
+
"""'0:100', '0,3,7' or None (all), restricted to the dataset's episodes, sorted."""
|
| 140 |
+
available = sorted(available)
|
| 141 |
+
if not spec:
|
| 142 |
+
return available
|
| 143 |
+
chosen = set()
|
| 144 |
+
for part in spec.split(','):
|
| 145 |
+
if ':' in part:
|
| 146 |
+
lo, hi = part.split(':')
|
| 147 |
+
chosen.update(range(int(lo or 0), int(hi) if hi else available[-1] + 1))
|
| 148 |
+
else:
|
| 149 |
+
chosen.add(int(part))
|
| 150 |
+
missing = sorted(chosen - set(available))
|
| 151 |
+
if missing:
|
| 152 |
+
raise ValueError(f'episodes not in the dataset: {missing[:10]}')
|
| 153 |
+
return sorted(chosen)
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
def load_lowdim(dataset: LeRobotDataset, contract: Contract, episodes) -> dict:
|
| 157 |
+
"""State (N, state_dim) and action (N, action_dim) float32 of the episodes in order, plus each episode's start
|
| 158 |
+
row, length and task text."""
|
| 159 |
+
import pyarrow.parquet as pq
|
| 160 |
+
columns = sorted({c for c, _, _ in (*contract.state, *contract.action)} | {'frame_index', 'task_index'})
|
| 161 |
+
states, actions, starts, lengths, tasks, offset = [], [], [], [], set(), 0
|
| 162 |
+
for episode in episodes:
|
| 163 |
+
table = pq.read_table(dataset.parquet(episode), columns=columns)
|
| 164 |
+
data = {c: np.asarray(table.column(c).to_pylist(), dtype=np.float64) for c in columns}
|
| 165 |
+
n = len(data['frame_index'])
|
| 166 |
+
if n != dataset.lengths[episode] or not np.array_equal(data['frame_index'], np.arange(n)):
|
| 167 |
+
raise ValueError(f'episode {episode}: {n} rows / frame_index differ from episodes.jsonl')
|
| 168 |
+
|
| 169 |
+
def pick(spec):
|
| 170 |
+
return np.concatenate([data[c].reshape(n, -1)[:, s:e] for c, s, e in spec], axis=1).astype(np.float32)
|
| 171 |
+
|
| 172 |
+
states.append(pick(contract.state))
|
| 173 |
+
actions.append(pick(contract.action))
|
| 174 |
+
tasks.update(dataset.tasks[int(i)] for i in np.unique(data['task_index']))
|
| 175 |
+
starts.append(offset)
|
| 176 |
+
lengths.append(n)
|
| 177 |
+
offset += n
|
| 178 |
+
state, action = np.concatenate(states), np.concatenate(actions)
|
| 179 |
+
if not (np.isfinite(state).all() and np.isfinite(action).all()):
|
| 180 |
+
raise ValueError('non-finite state or action values')
|
| 181 |
+
return dict(state=state, action=action, starts=np.asarray(starts), lengths=np.asarray(lengths),
|
| 182 |
+
episodes=list(episodes), tasks=sorted(tasks))
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
def statistics(lowdim: dict, rows: np.ndarray) -> dict:
|
| 186 |
+
out = {}
|
| 187 |
+
for key in ('state', 'action'):
|
| 188 |
+
x = lowdim[key][rows].astype(np.float64)
|
| 189 |
+
out[key] = dict(min=x.min(0).tolist(), max=x.max(0).tolist(), mean=x.mean(0).tolist(), std=x.std(0).tolist())
|
| 190 |
+
return out
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
# -- frame cache --------------------------------------------------------------------------------------------------
|
| 194 |
+
def _decode_into(job):
|
| 195 |
+
path, out_path, total, start, length, hw = job
|
| 196 |
+
import av
|
| 197 |
+
frames = np.memmap(out_path, dtype=np.uint8, mode='r+', shape=(total, hw[0], hw[1], 3))
|
| 198 |
+
count = 0
|
| 199 |
+
with av.open(str(path)) as container:
|
| 200 |
+
stream = container.streams.video[0]
|
| 201 |
+
stream.thread_type = 'AUTO'
|
| 202 |
+
for frame in container.decode(stream):
|
| 203 |
+
if count < length:
|
| 204 |
+
frames[start + count] = resize_frame(frame.to_ndarray(format='rgb24'), hw)
|
| 205 |
+
count += 1
|
| 206 |
+
frames.flush()
|
| 207 |
+
del frames
|
| 208 |
+
if count != length:
|
| 209 |
+
raise ValueError(f'{path}: {count} video frames, {length} data rows')
|
| 210 |
+
return length
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
def frame_cache(dataset: LeRobotDataset, lowdim: dict, cameras, hw, cache_root, workers=8) -> dict:
|
| 214 |
+
"""{camera: path of the (N, h, w, 3) uint8 memory map} for the episodes of `lowdim`, decoded once and reused."""
|
| 215 |
+
from multiprocessing import get_context
|
| 216 |
+
total = int(lowdim['lengths'].sum())
|
| 217 |
+
paths = {}
|
| 218 |
+
for camera in cameras:
|
| 219 |
+
key = json.dumps(dict(version=CACHE_VERSION, root=str(dataset.root), episodes=lowdim['episodes'],
|
| 220 |
+
lengths=lowdim['lengths'].tolist(), camera=camera, hw=list(hw)), sort_keys=True)
|
| 221 |
+
digest = hashlib.sha256(key.encode()).hexdigest()[:16]
|
| 222 |
+
folder = Path(cache_root).expanduser() / f'{dataset.name}_{camera}_{hw[0]}x{hw[1]}_{digest}'
|
| 223 |
+
folder.mkdir(parents=True, exist_ok=True)
|
| 224 |
+
out, meta = folder / 'frames.u8', folder / 'meta.json'
|
| 225 |
+
if meta.exists() and json.loads(meta.read_text()).get('complete'):
|
| 226 |
+
paths[camera] = out
|
| 227 |
+
continue
|
| 228 |
+
np.memmap(out, dtype=np.uint8, mode='w+', shape=(total, hw[0], hw[1], 3)).flush()
|
| 229 |
+
jobs = [(dataset.video(e, camera), out, total, int(s), int(n), tuple(hw))
|
| 230 |
+
for e, s, n in zip(lowdim['episodes'], lowdim['starts'], lowdim['lengths'])]
|
| 231 |
+
with get_context('spawn').Pool(max(1, int(workers))) as pool: # the caller may hold torch threads
|
| 232 |
+
for done, _ in enumerate(pool.imap_unordered(_decode_into, jobs), 1):
|
| 233 |
+
if done % 20 == 0 or done == len(jobs):
|
| 234 |
+
print(json.dumps(dict(event='frame_cache', camera=camera, episodes=done, of=len(jobs))),
|
| 235 |
+
flush=True)
|
| 236 |
+
meta.write_text(json.dumps(dict(json.loads(key), frames=total, complete=True), indent=1))
|
| 237 |
+
paths[camera] = out
|
| 238 |
+
return paths
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
class ChunkDataset:
|
| 242 |
+
"""torch-style dataset of (images (n_cameras, h, w, 3) uint8, state (state_dim,), action (horizon, action_dim))
|
| 243 |
+
over the frames of the selected episodes (positions into lowdim['episodes']). Memory maps open lazily per
|
| 244 |
+
process (DataLoader workers).
|
| 245 |
+
|
| 246 |
+
`body_dims` > 0 turns on the training augmentation (docs/augmentation_v2.md, evaluation/augmentation): per item,
|
| 247 |
+
the cached frames of all cameras get one hb_aug_v2.augment call (one time step, no future targets) and the first
|
| 248 |
+
`body_dims` state values the per-sample joint bias + noise; the action rows are never touched. 0 (evaluation,
|
| 249 |
+
offline checks) returns the cached frames and the recorded state unchanged, deterministically."""
|
| 250 |
+
|
| 251 |
+
def __init__(self, lowdim: dict, frames: dict, cameras, hw, horizon: int, positions, body_dims: int = 0):
|
| 252 |
+
self.lowdim, self.paths, self.cameras, self.hw, self.horizon = lowdim, frames, list(cameras), tuple(hw), horizon
|
| 253 |
+
self.positions, self.body_dims = list(positions), int(body_dims)
|
| 254 |
+
if self.body_dims:
|
| 255 |
+
augmentation_module() # asserts the spec version before any worker starts
|
| 256 |
+
self.total = int(lowdim['lengths'].sum())
|
| 257 |
+
index, end = [], np.zeros(self.total, np.int64)
|
| 258 |
+
for p in positions:
|
| 259 |
+
s, n = int(lowdim['starts'][p]), int(lowdim['lengths'][p])
|
| 260 |
+
index.append(np.arange(s, s + n))
|
| 261 |
+
end[s:s + n] = s + n
|
| 262 |
+
self.index, self.end = np.concatenate(index), end
|
| 263 |
+
self._maps, self._pid = None, None
|
| 264 |
+
|
| 265 |
+
def __len__(self):
|
| 266 |
+
return len(self.index)
|
| 267 |
+
|
| 268 |
+
def _frames(self):
|
| 269 |
+
if self._maps is None or self._pid != os.getpid():
|
| 270 |
+
self._maps = {c: np.memmap(self.paths[c], dtype=np.uint8, mode='r', shape=(self.total, *self.hw, 3))
|
| 271 |
+
for c in self.cameras}
|
| 272 |
+
self._pid = os.getpid()
|
| 273 |
+
return self._maps
|
| 274 |
+
|
| 275 |
+
def rows(self, i: int) -> np.ndarray:
|
| 276 |
+
return np.minimum(np.arange(i, i + self.horizon), self.end[i] - 1)
|
| 277 |
+
|
| 278 |
+
def plain(self):
|
| 279 |
+
"""The same items without augmentation (the preflight's reference read)."""
|
| 280 |
+
return ChunkDataset(self.lowdim, self.paths, self.cameras, self.hw, self.horizon, self.positions)
|
| 281 |
+
|
| 282 |
+
def _observation(self, i: int, rng=None):
|
| 283 |
+
"""The cameras (n_cameras, h, w, 3) uint8 and the state of frame i, augmented when body_dims > 0."""
|
| 284 |
+
import torch
|
| 285 |
+
maps = self._frames()
|
| 286 |
+
images = torch.from_numpy(np.stack([maps[c][i] for c in self.cameras]))
|
| 287 |
+
state = self.lowdim['state'][i]
|
| 288 |
+
if self.body_dims:
|
| 289 |
+
augmentation = augmentation_module()
|
| 290 |
+
images, _ = augmentation.augment_frames_uint8(images, rng=rng)
|
| 291 |
+
state = augmentation.perturb_body(state, self.body_dims, rng=rng)
|
| 292 |
+
return images, torch.from_numpy(np.asarray(state, dtype=np.float32))
|
| 293 |
+
|
| 294 |
+
def __getitem__(self, k):
|
| 295 |
+
import torch
|
| 296 |
+
i = int(self.index[k])
|
| 297 |
+
images, state = self._observation(i)
|
| 298 |
+
return images, state, torch.from_numpy(self.lowdim['action'][self.rows(i)])
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
class FlashChunkDataset(ChunkDataset):
|
| 302 |
+
"""FLASH training items (evaluation/baselines/flash.py) over every frame of the selected episodes as the anchor:
|
| 303 |
+
(images, state, poly, history, has_history[, dense, dense_valid]).
|
| 304 |
+
|
| 305 |
+
- images, state: the anchor frame's cameras and state44, augmented as ChunkDataset (spec v2) when body_dims > 0;
|
| 306 |
+
- poly (H_ext, action_dim): the action rows at `offsets` frames from the anchor (the polynomial's extended grid,
|
| 307 |
+
`stride` frames apart), clamped to the episode (FLASH's edge padding);
|
| 308 |
+
- history (n_history, action_dim), has_history: flash.history_rows over the `span` executed rows before the anchor
|
| 309 |
+
(rows before the episode start invalid), the same function the adapter applies to past_actions;
|
| 310 |
+
- dense (rows, action_dim), dense_valid: the recorded 30 Hz rows from the anchor (offline check only).
|
| 311 |
+
|
| 312 |
+
aug_seed: the augmentation random stream is numpy default_rng([aug_seed, torch.initial_seed(), worker id]) per
|
| 313 |
+
DataLoader worker (deterministic for a fixed seed, worker count and sampling order); None uses the shared
|
| 314 |
+
worker_rng (pid + urandom)."""
|
| 315 |
+
|
| 316 |
+
def __init__(self, lowdim, frames, cameras, hw, positions, *, offsets, stride, n_history, rows, body_dims=0,
|
| 317 |
+
aug_seed=None, with_dense=False):
|
| 318 |
+
super().__init__(lowdim, frames, cameras, hw, rows, positions, body_dims=body_dims)
|
| 319 |
+
self.offsets = np.asarray(offsets, dtype=np.int64)
|
| 320 |
+
self.stride, self.n_history, self.n_rows = int(stride), int(n_history), int(rows)
|
| 321 |
+
self.span = (self.n_history - 1) * self.stride + 1
|
| 322 |
+
self.aug_seed, self.with_dense = aug_seed, bool(with_dense)
|
| 323 |
+
start = np.zeros(self.total, np.int64)
|
| 324 |
+
for p in positions:
|
| 325 |
+
s, n = int(lowdim['starts'][p]), int(lowdim['lengths'][p])
|
| 326 |
+
start[s:s + n] = s
|
| 327 |
+
self.start = start
|
| 328 |
+
self._rng_key, self._rng_obj = None, None
|
| 329 |
+
|
| 330 |
+
def plain(self):
|
| 331 |
+
return FlashChunkDataset(self.lowdim, self.paths, self.cameras, self.hw, self.positions, offsets=self.offsets,
|
| 332 |
+
stride=self.stride, n_history=self.n_history, rows=self.n_rows,
|
| 333 |
+
with_dense=self.with_dense)
|
| 334 |
+
|
| 335 |
+
def _rng(self):
|
| 336 |
+
if self.aug_seed is None or not self.body_dims:
|
| 337 |
+
return None
|
| 338 |
+
import torch
|
| 339 |
+
info = torch.utils.data.get_worker_info()
|
| 340 |
+
wid = info.id if info is not None else 0
|
| 341 |
+
key = (os.getpid(), wid)
|
| 342 |
+
if self._rng_key != key:
|
| 343 |
+
self._rng_obj = np.random.default_rng([int(self.aug_seed), int(torch.initial_seed()), int(wid)])
|
| 344 |
+
self._rng_key = key
|
| 345 |
+
return self._rng_obj
|
| 346 |
+
|
| 347 |
+
def __getitem__(self, k):
|
| 348 |
+
import torch
|
| 349 |
+
from .flash import history_rows
|
| 350 |
+
i = int(self.index[k])
|
| 351 |
+
s0, e1 = int(self.start[i]), int(self.end[i])
|
| 352 |
+
images, state = self._observation(i, rng=self._rng())
|
| 353 |
+
action = self.lowdim['action']
|
| 354 |
+
poly = action[np.clip(i + self.offsets, s0, e1 - 1)]
|
| 355 |
+
past = i - self.span + np.arange(self.span)
|
| 356 |
+
history, has = history_rows(action[np.maximum(past, s0)], past >= s0, self.stride, self.n_history)
|
| 357 |
+
out = [images, state, torch.from_numpy(np.ascontiguousarray(poly)), torch.from_numpy(history),
|
| 358 |
+
torch.tensor(bool(has))]
|
| 359 |
+
if self.with_dense:
|
| 360 |
+
idx = i + np.arange(self.n_rows)
|
| 361 |
+
out += [torch.from_numpy(np.ascontiguousarray(action[np.minimum(idx, e1 - 1)])),
|
| 362 |
+
torch.from_numpy(idx < e1)]
|
| 363 |
+
return tuple(out)
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/flash.py
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""FLASH (Bai et al., "FLASH: Efficient Visuomotor Policy via Sparse Sampling", NeurIPS 2026) behind the baselines
|
| 2 |
+
contract: history-to-future polynomial flow matching with a DiT backbone and one Euler step at inference.
|
| 3 |
+
|
| 4 |
+
Ported from NTUMARS/FLASH-Policy @ f47e490 (Apache-2.0): `roboverse_learn/il/policies/flash/flash_policy.py`
|
| 5 |
+
(`FlashDiTImagePolicy`: basis, least-squares and Tikhonov history fits, KKT C1 boundary constraint, loss, sampler),
|
| 6 |
+
`utils/models/flow_net.py` + `policies/dp/models/diffusion/positional_embedding.py` (the DiT and its torchtune RoPE,
|
| 7 |
+
which differs from the DextraVerse RoPE of nets.py), `utils/vision/multi_image_obs_encoder.py` (one ResNet18 per
|
| 8 |
+
camera, GroupNorm, ImageNet normalization of the range-normalized image) and `configs/policy_config/flash.yaml` +
|
| 9 |
+
`configs/train_config/default_train.yaml` (the defaults below). Architecture, initialization and loss are unchanged.
|
| 10 |
+
|
| 11 |
+
What the humanoid interface changes (owner decisions 2026-11-24, recorded in every checkpoint's config):
|
| 12 |
+
|
| 13 |
+
- **Action space and history.** FLASH fits its flow start to the measured history of the action quantity (Franka
|
| 14 |
+
joint positions). The G1 action76 is the SONIC motion token (64, a latent with no measured counterpart) plus the
|
| 15 |
+
measured INSPIRE openings (12). The history is therefore the *executed* action rows - the token sent at each frame
|
| 16 |
+
and the opening measured at it, the interface's `past_actions` - ending one frame before the query (row t-1: the
|
| 17 |
+
token of frame t is what the policy is asked for). Training reads the same dataset rows. `n_history` points at the
|
| 18 |
+
sampling stride; rows before the episode start repeat its first row (FLASH's edge padding); with no row at all (the
|
| 19 |
+
episode's first frame) the flow starts from the zero coefficients, in training as at deployment.
|
| 20 |
+
- **Sampling stride.** The model's points are `stride` dataset frames apart (30 Hz data: stride 2 = 67 ms, the paper's
|
| 21 |
+
4 x 15 ms = 60 ms). Every dataset frame is an anchor (FLASH's converter keeps only every stride-th frame: one phase
|
| 22 |
+
of the same sparse data).
|
| 23 |
+
- **Observation.** The current ego_view and chest frames and state44 condition the DiT (n_obs 1); FLASH's 8-frame
|
| 24 |
+
observation history is not rendered by the benchmark runners. state44 is the low-dim encoder input as agent_pos is.
|
| 25 |
+
- **Output.** The polynomial is evaluated at every 30 Hz frame from the anchor (`rows` rows, row 0 = the query frame),
|
| 26 |
+
the analytic form of FLASH's continuous-time resampling, at exact frame times. FLASH's velocity feed-forward has no
|
| 27 |
+
channel in the interface (SONIC takes tokens) and is not produced.
|
| 28 |
+
- Polynomial fits run in float32 outside autocast (FLASH runs them inside its bf16 autocast); the encoder and the
|
| 29 |
+
DiT run under the trainer's bf16 autocast as upstream.
|
| 30 |
+
- Augmentation spec v2 replaces the native image augmentation (FLASH's random_crop is configured but inert without
|
| 31 |
+
crop_shape).
|
| 32 |
+
"""
|
| 33 |
+
from __future__ import annotations
|
| 34 |
+
|
| 35 |
+
import copy
|
| 36 |
+
|
| 37 |
+
import numpy as np
|
| 38 |
+
import torch
|
| 39 |
+
import torch.nn as nn
|
| 40 |
+
import torch.nn.functional as F
|
| 41 |
+
import torchvision
|
| 42 |
+
|
| 43 |
+
from .nets import IMAGENET_MEAN, IMAGENET_STD, Mlp, SinusoidalPosEmb, replace_batchnorm_with_groupnorm
|
| 44 |
+
|
| 45 |
+
# configs/policy_config/flash.yaml (+ default_runner.yaml horizon 16 / n_obs 8 / n_action 8), owner 2026-11-24 stride 2
|
| 46 |
+
FLASH_DEFAULTS = dict(stride=2, n_history=8, n_action=8, rows=16, poly_order=6, fit_pad=1, boundary_constraint=True,
|
| 47 |
+
poly_prefix=1, poly_suffix=1, history_noise_std=0.5, history_reg_lambda=0.1,
|
| 48 |
+
consistency_weight=1.0, solver='euler')
|
| 49 |
+
# PolicyConfig fields of a FLASH run (flash.yaml + default_train.yaml): DiT 512 x 4 x 8, dropout 0, time embedding
|
| 50 |
+
# 256, one inference step, ResNet18 from scratch with GroupNorm, one per camera
|
| 51 |
+
FLASH_POLICY_FIELDS = dict(hidden_dim=512, num_layers=4, num_heads=8, mlp_ratio=4.0, dropout=0.0, time_embed_dim=256,
|
| 52 |
+
num_inference_steps=1, backbone='resnet18', backbone_weights=None, backbone_norm='group')
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def flash_settings(cfg) -> dict:
|
| 56 |
+
"""The FLASH settings of a PolicyConfig (cfg.extra['flash'] over the defaults); unknown keys are an error."""
|
| 57 |
+
given = dict((cfg.extra or {}).get('flash', {}))
|
| 58 |
+
unknown = sorted(set(given) - set(FLASH_DEFAULTS))
|
| 59 |
+
if unknown:
|
| 60 |
+
raise KeyError(f'unknown FLASH settings {unknown}; known: {sorted(FLASH_DEFAULTS)}')
|
| 61 |
+
out = dict(FLASH_DEFAULTS, **given)
|
| 62 |
+
if out['solver'] not in ('euler', 'midpoint'):
|
| 63 |
+
raise ValueError(f"solver {out['solver']!r}")
|
| 64 |
+
if out['poly_prefix'] is None or int(out['poly_prefix']) < 0:
|
| 65 |
+
raise ValueError('this port implements poly_prefix >= 0 (flash.yaml: 1)')
|
| 66 |
+
return out
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
# --- networks: utils/models/flow_net.py and positional_embedding.py of FLASH-Policy ------------------------------
|
| 70 |
+
class RotaryPosEmbFlash(nn.Module):
|
| 71 |
+
"""torchtune RoPE as FLASH builds it: `dim` = the model width, its dim/2 frequencies split over the heads, pairs
|
| 72 |
+
interleaved (x[..., 0::2], x[..., 1::2])."""
|
| 73 |
+
|
| 74 |
+
def __init__(self, dim: int, max_seq_len: int = 256, base: int = 10_000):
|
| 75 |
+
super().__init__()
|
| 76 |
+
self.dim, self.base, self.max_seq_len = dim, base, max_seq_len
|
| 77 |
+
theta = 1.0 / (base ** (torch.arange(0, dim, 2)[: (dim // 2)].float() / dim))
|
| 78 |
+
self.register_buffer('theta', theta, persistent=False)
|
| 79 |
+
seq_idx = torch.arange(max_seq_len, dtype=theta.dtype)
|
| 80 |
+
idx_theta = torch.einsum('i, j -> ij', seq_idx, theta).float()
|
| 81 |
+
self.register_buffer('cache', torch.stack([torch.cos(idx_theta), torch.sin(idx_theta)], dim=-1),
|
| 82 |
+
persistent=False)
|
| 83 |
+
|
| 84 |
+
def forward(self, x): # x: (B, heads, S, head_dim)
|
| 85 |
+
x = x.permute(0, 2, 1, 3)
|
| 86 |
+
B, S, heads, head_dim = x.size()
|
| 87 |
+
rope = self.cache[:S].view(1, S, heads, head_dim // 2, 2)
|
| 88 |
+
xs = x.float().reshape(*x.shape[:-1], head_dim // 2, 2)
|
| 89 |
+
out = torch.stack([xs[..., 0] * rope[..., 0] - xs[..., 1] * rope[..., 1],
|
| 90 |
+
xs[..., 1] * rope[..., 0] + xs[..., 0] * rope[..., 1]], -1)
|
| 91 |
+
return out.flatten(3).permute(0, 2, 1, 3).type_as(x)
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
class FlashAttention(nn.Module):
|
| 95 |
+
def __init__(self, dim, num_heads=8, qkv_bias=True, attn_drop=0.0, proj_drop=0.0, max_seq_len=256, qk_norm=True):
|
| 96 |
+
super().__init__()
|
| 97 |
+
assert dim % num_heads == 0, 'dim should be divisible by num_heads'
|
| 98 |
+
self.num_heads, self.head_dim = num_heads, dim // num_heads
|
| 99 |
+
self.attn_drop = attn_drop
|
| 100 |
+
self.proj_drop = nn.Dropout(proj_drop)
|
| 101 |
+
self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
|
| 102 |
+
self.q_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 103 |
+
self.k_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 104 |
+
self.proj = nn.Linear(dim, dim)
|
| 105 |
+
self.rope = RotaryPosEmbFlash(dim, max_seq_len=max_seq_len)
|
| 106 |
+
|
| 107 |
+
def forward(self, x):
|
| 108 |
+
B, S, C = x.shape
|
| 109 |
+
q, k, v = self.qkv(x).reshape(B, S, 3, self.num_heads, self.head_dim).permute(2, 0, 3, 1, 4).unbind(0)
|
| 110 |
+
q, k = self.rope(self.q_norm(q)), self.rope(self.k_norm(k))
|
| 111 |
+
x = F.scaled_dot_product_attention(q, k, v, dropout_p=self.attn_drop if self.training else 0.0)
|
| 112 |
+
return self.proj_drop(self.proj(x.transpose(1, 2).reshape(B, S, C)))
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
class FlashAdaLNBlock(nn.Module):
|
| 116 |
+
def __init__(self, dim, num_heads, mlp_ratio=4.0, dropout=0.0, max_seq_len=256):
|
| 117 |
+
super().__init__()
|
| 118 |
+
self.norm1 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 119 |
+
self.attn = FlashAttention(dim, num_heads=num_heads, attn_drop=dropout, proj_drop=dropout,
|
| 120 |
+
max_seq_len=max_seq_len)
|
| 121 |
+
self.norm2 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 122 |
+
self.mlp = Mlp(in_features=dim, hidden_features=int(dim * mlp_ratio),
|
| 123 |
+
act_layer=lambda: nn.GELU(approximate='tanh'), drop=0)
|
| 124 |
+
self.ada_ln = nn.Sequential(nn.SiLU(), nn.Linear(dim, 6 * dim))
|
| 125 |
+
self.dim = dim
|
| 126 |
+
nn.init.constant_(self.ada_ln[-1].weight, 0)
|
| 127 |
+
nn.init.constant_(self.ada_ln[-1].bias, 0)
|
| 128 |
+
|
| 129 |
+
def forward(self, x, t, c):
|
| 130 |
+
B = x.shape[0]
|
| 131 |
+
gamma1, gamma2, scale1, scale2, shift1, shift2 = self.ada_ln(F.silu(t + c)).view(B, 6, 1, self.dim).unbind(1)
|
| 132 |
+
x = x + self.attn(self.norm1(x).mul(scale1.add(1)).add_(shift1)).mul_(gamma1)
|
| 133 |
+
return x + self.mlp(self.norm2(x).mul(scale2.add(1)).add_(shift2)).mul_(gamma2)
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
class FlashFlowTransformer(nn.Module):
|
| 137 |
+
"""FLASH's FlowTransformer: AdaLN DiT over the C coefficient rows (tokens of width action_dim)."""
|
| 138 |
+
|
| 139 |
+
def __init__(self, input_dim, condition_dim, hidden_dim, output_dim, num_layers, num_heads, mlp_ratio=4.0,
|
| 140 |
+
dropout=0.1, time_embed_dim=256, max_seq_len=256):
|
| 141 |
+
super().__init__()
|
| 142 |
+
self.input_proj = nn.Linear(input_dim, hidden_dim)
|
| 143 |
+
self.time_embed = nn.Sequential(SinusoidalPosEmb(time_embed_dim), nn.Linear(time_embed_dim, time_embed_dim * 4),
|
| 144 |
+
nn.Mish(), nn.Linear(time_embed_dim * 4, hidden_dim))
|
| 145 |
+
self.cond_embed = nn.Linear(condition_dim, hidden_dim)
|
| 146 |
+
self.transformer_blocks = nn.ModuleList(
|
| 147 |
+
[FlashAdaLNBlock(hidden_dim, num_heads, mlp_ratio=mlp_ratio, dropout=dropout, max_seq_len=max_seq_len)
|
| 148 |
+
for _ in range(num_layers)])
|
| 149 |
+
self.norm = nn.LayerNorm(hidden_dim)
|
| 150 |
+
self.out_proj = nn.Linear(hidden_dim, output_dim)
|
| 151 |
+
|
| 152 |
+
def basic_init(module):
|
| 153 |
+
if isinstance(module, nn.Linear):
|
| 154 |
+
nn.init.xavier_uniform_(module.weight)
|
| 155 |
+
if module.bias is not None:
|
| 156 |
+
nn.init.constant_(module.bias, 0)
|
| 157 |
+
|
| 158 |
+
self.apply(basic_init)
|
| 159 |
+
nn.init.normal_(self.time_embed[1].weight, std=0.02)
|
| 160 |
+
nn.init.normal_(self.time_embed[3].weight, std=0.02)
|
| 161 |
+
|
| 162 |
+
def forward(self, x, t, global_cond):
|
| 163 |
+
if not torch.is_tensor(t):
|
| 164 |
+
t = torch.tensor(t, device=x.device)
|
| 165 |
+
if t.ndim == 0:
|
| 166 |
+
t = t.expand(x.shape[0])
|
| 167 |
+
x = self.input_proj(x)
|
| 168 |
+
t = self.time_embed(t)
|
| 169 |
+
c = self.cond_embed(global_cond)
|
| 170 |
+
for block in self.transformer_blocks:
|
| 171 |
+
x = block(x, t, c)
|
| 172 |
+
return self.out_proj(self.norm(x))
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
class FlashObsEncoder(nn.Module):
|
| 176 |
+
"""FLASH's MultiImageObsEncoder (share_rgb_model False, use_group_norm, imagenet_norm, no resize / crop): one
|
| 177 |
+
torchvision ResNet (classifier removed) per camera, every copy deep-copied from one initialization, BatchNorm
|
| 178 |
+
replaced by GroupNorm(C // 16) after the copy; each [0, 1] image goes through FLASH's range normalizer (x 2 - 1)
|
| 179 |
+
and then torchvision's ImageNet Normalize, as upstream composes them. Output: the cameras' pooled features in the
|
| 180 |
+
contract's camera order, then the normalized state. (B, n_cameras * 512 + state_dim)."""
|
| 181 |
+
|
| 182 |
+
def __init__(self, n_cameras, state_dim, backbone='resnet18', weights=None):
|
| 183 |
+
super().__init__()
|
| 184 |
+
base = getattr(torchvision.models, backbone)(weights=weights)
|
| 185 |
+
base.fc = nn.Identity()
|
| 186 |
+
self.rgb = nn.ModuleList([replace_batchnorm_with_groupnorm(copy.deepcopy(base)) for _ in range(n_cameras)])
|
| 187 |
+
self.n_cameras, self.state_dim = int(n_cameras), int(state_dim)
|
| 188 |
+
self.register_buffer('mean', torch.tensor(IMAGENET_MEAN).view(1, 3, 1, 1), persistent=False)
|
| 189 |
+
self.register_buffer('std', torch.tensor(IMAGENET_STD).view(1, 3, 1, 1), persistent=False)
|
| 190 |
+
self.feature_dim = self.n_cameras * (512 if backbone in ('resnet18', 'resnet34') else 2048) + self.state_dim
|
| 191 |
+
|
| 192 |
+
def forward(self, images, state):
|
| 193 |
+
"""images (B, n_cameras, 3, H, W) in [0, 1]; state (B, state_dim) normalized."""
|
| 194 |
+
x = images * 2.0 - 1.0 # get_image_range_normalizer: [0, 1] -> [-1, 1]
|
| 195 |
+
feats = [net((x[:, i] - self.mean) / self.std) for i, net in enumerate(self.rgb)]
|
| 196 |
+
return torch.cat([*feats, state], dim=-1)
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
# --- the policy ---------------------------------------------------------------------------------------------------
|
| 200 |
+
def legendre_basis(s: torch.Tensor, degree: int):
|
| 201 |
+
"""Shifted Legendre basis on s in [0, 1] and its first / second derivatives (FLASH's _build_legendre_basis)."""
|
| 202 |
+
x = 2 * s - 1
|
| 203 |
+
H, C = len(s), degree + 1
|
| 204 |
+
P = torch.zeros(H, C, dtype=s.dtype)
|
| 205 |
+
dP = torch.zeros(H, C, dtype=s.dtype)
|
| 206 |
+
d2P = torch.zeros(H, C, dtype=s.dtype)
|
| 207 |
+
P[:, 0] = 1.0
|
| 208 |
+
if C > 1:
|
| 209 |
+
P[:, 1] = x
|
| 210 |
+
dP[:, 1] = 1.0
|
| 211 |
+
for n in range(1, C - 1):
|
| 212 |
+
P[:, n + 1] = ((2 * n + 1) * x * P[:, n] - n * P[:, n - 1]) / (n + 1)
|
| 213 |
+
dP[:, n + 1] = ((2 * n + 1) * (P[:, n] + x * dP[:, n]) - n * dP[:, n - 1]) / (n + 1)
|
| 214 |
+
d2P[:, n + 1] = ((2 * n + 1) * (2 * dP[:, n] + x * d2P[:, n]) - n * d2P[:, n - 1]) / (n + 1)
|
| 215 |
+
return P, 2 * dP, 4 * d2P
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
def history_rows(rows, valid, stride: int, n_history: int):
|
| 219 |
+
"""The FLASH history of one query from its executed rows.
|
| 220 |
+
|
| 221 |
+
rows (N, D) and valid (N,): consecutive frames ending at the frame before the query (row N - 1 = t - 1), a valid
|
| 222 |
+
contiguous suffix (the interface's past_actions / history_valid; the dataset's rows before an anchor). Returns
|
| 223 |
+
(history (n_history, D) float32 at frames t-1-(n_history-1-j)*stride, has_history bool): a point before the first
|
| 224 |
+
valid row repeats that row (FLASH's edge padding); with no valid row has_history is False (zero start)."""
|
| 225 |
+
rows = np.asarray(rows, dtype=np.float32)
|
| 226 |
+
valid = np.asarray(valid, dtype=bool).reshape(-1)
|
| 227 |
+
span = (n_history - 1) * stride + 1
|
| 228 |
+
if len(rows) < span or len(valid) != len(rows):
|
| 229 |
+
raise ValueError(f'need >= {span} history rows (stride {stride} x {n_history} points), got {rows.shape}')
|
| 230 |
+
if not valid.any():
|
| 231 |
+
return np.zeros((n_history, rows.shape[1]), np.float32), False
|
| 232 |
+
first = int(np.argmax(valid))
|
| 233 |
+
if not valid[first:].all():
|
| 234 |
+
raise ValueError('history_valid must be a contiguous suffix')
|
| 235 |
+
idx = len(rows) - 1 - (n_history - 1 - np.arange(n_history)) * stride
|
| 236 |
+
return rows[np.maximum(idx, first)].copy(), True
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
class FlashPolicy(nn.Module):
|
| 240 |
+
"""FLASH (FlashDiTImagePolicy) on the baselines contract.
|
| 241 |
+
|
| 242 |
+
Training: compute_loss(images, state, poly, history, has_history) with poly (B, H_ext, Da) the physical action
|
| 243 |
+
rows at the polynomial's extended grid (anchor index fit_pad + poly_prefix, `stride` frames apart, clamped at the
|
| 244 |
+
episode's ends), history (B, n_history, Da) from history_rows. Inference: predict(images, state, history,
|
| 245 |
+
has_history) -> the physical (B, rows, Da) chunk at 30 Hz from the query frame, and the normalized coefficients."""
|
| 246 |
+
name = 'flash'
|
| 247 |
+
backbone_prefix = 'obs_encoder.rgb.'
|
| 248 |
+
|
| 249 |
+
def __init__(self, cfg, init_weights=None):
|
| 250 |
+
super().__init__()
|
| 251 |
+
from .policies import Normalizer
|
| 252 |
+
self.cfg = cfg
|
| 253 |
+
self.state_norm = Normalizer(cfg.state_dim)
|
| 254 |
+
self.action_norm = Normalizer(cfg.action_dim)
|
| 255 |
+
f = self.flash = flash_settings(cfg)
|
| 256 |
+
self.stride, self.n_history, self.n_action = int(f['stride']), int(f['n_history']), int(f['n_action'])
|
| 257 |
+
self.rows, self.poly_order, self.fit_pad = int(f['rows']), int(f['poly_order']), int(f['fit_pad'])
|
| 258 |
+
self.prefix, self.suffix = int(f['poly_prefix']), int(f['poly_suffix'])
|
| 259 |
+
self.boundary_constraint = bool(f['boundary_constraint'])
|
| 260 |
+
self.history_noise_std = float(f['history_noise_std'])
|
| 261 |
+
self.history_reg_lambda = float(f['history_reg_lambda'])
|
| 262 |
+
self.consistency_weight = float(f['consistency_weight'])
|
| 263 |
+
self.solver = f['solver']
|
| 264 |
+
if cfg.horizon != self.rows:
|
| 265 |
+
raise ValueError(f'PolicyConfig.horizon {cfg.horizon} must equal the FLASH output rows {self.rows}')
|
| 266 |
+
C = self.num_coeff = self.poly_order + 1
|
| 267 |
+
H_poly = self.H_poly = self.prefix + self.n_action + self.suffix
|
| 268 |
+
H_ext = self.H_ext = H_poly + 2 * self.fit_pad
|
| 269 |
+
self.anchor = self.fit_pad + self.prefix # anchor index in the extended grid
|
| 270 |
+
last_dense = (self.rows - 1) / self.stride
|
| 271 |
+
if self.prefix + last_dense > H_poly - 1 + 1e-9:
|
| 272 |
+
raise ValueError(f'{self.rows} rows at stride {self.stride} reach past the fitted polynomial')
|
| 273 |
+
|
| 274 |
+
s_ext = torch.linspace(0.0, 1.0, H_ext, dtype=torch.float64)
|
| 275 |
+
s_mid = s_ext[self.fit_pad:self.fit_pad + H_poly] if self.fit_pad > 0 else s_ext
|
| 276 |
+
eval_ext, d1_ext, _ = legendre_basis(s_ext, self.poly_order)
|
| 277 |
+
StS = eval_ext.T @ eval_ext
|
| 278 |
+
lstsq = torch.linalg.solve(StS, eval_ext.T)
|
| 279 |
+
eval_mid, _, _ = legendre_basis(s_mid, self.poly_order)
|
| 280 |
+
coeff_scale = torch.norm(lstsq, dim=1).clamp(min=1e-8)
|
| 281 |
+
self.register_buffer('_lstsq_matrix', lstsq.float())
|
| 282 |
+
self.register_buffer('_coeff_scale', coeff_scale.float().view(1, -1, 1))
|
| 283 |
+
# history fit (flash_policy.py, poly_prefix branch): the first n_history rows of the core grid, Tikhonov
|
| 284 |
+
S_hist = eval_mid.double() if H_poly == self.n_history else eval_mid[:self.n_history, :].double()
|
| 285 |
+
StS_hist = S_hist.T @ S_hist
|
| 286 |
+
if self.history_reg_lambda > 0:
|
| 287 |
+
StS_hist = StS_hist + self.history_reg_lambda * torch.eye(C, dtype=torch.float64)
|
| 288 |
+
self.register_buffer('_history_lstsq_matrix', torch.linalg.solve(StS_hist, S_hist.T).float())
|
| 289 |
+
if self.boundary_constraint: # KKT C1 at the execution start and the next window's start
|
| 290 |
+
idx = [self.fit_pad + self.prefix, self.fit_pad + self.prefix + self.n_action]
|
| 291 |
+
if idx[1] >= H_ext:
|
| 292 |
+
raise ValueError(f'bc_overlap {idx[1]} >= H_ext {H_ext}: increase fit_pad')
|
| 293 |
+
A_pos, A_vel = eval_ext[idx, :], d1_ext[idx, :]
|
| 294 |
+
A = torch.cat([A_pos, A_vel], dim=0)
|
| 295 |
+
StS_inv_AT = torch.linalg.solve(StS, torch.eye(C, dtype=torch.float64)) @ A.T
|
| 296 |
+
self.register_buffer('_bc_eval_pos', A_pos.float())
|
| 297 |
+
self.register_buffer('_bc_eval_vel', A_vel.float())
|
| 298 |
+
self.register_buffer('_bc_correction', (StS_inv_AT @ torch.linalg.inv(A @ StS_inv_AT)).float())
|
| 299 |
+
self.register_buffer('_bc_pos_indices', torch.tensor(idx, dtype=torch.long))
|
| 300 |
+
# the 30 Hz output rows: frame k after the anchor sits at grid index anchor + k / stride
|
| 301 |
+
s_dense = torch.tensor([(self.anchor + k / self.stride) / (H_ext - 1) for k in range(self.rows)],
|
| 302 |
+
dtype=torch.float64)
|
| 303 |
+
self.register_buffer('_dense_eval_matrix', legendre_basis(s_dense, self.poly_order)[0].float())
|
| 304 |
+
|
| 305 |
+
self.obs_encoder = FlashObsEncoder(cfg.n_cameras, cfg.state_dim, backbone=cfg.backbone, weights=init_weights)
|
| 306 |
+
self.model = FlashFlowTransformer(input_dim=cfg.action_dim, condition_dim=self.obs_encoder.feature_dim,
|
| 307 |
+
hidden_dim=cfg.hidden_dim, output_dim=cfg.action_dim,
|
| 308 |
+
num_layers=cfg.num_layers, num_heads=cfg.num_heads, mlp_ratio=cfg.mlp_ratio,
|
| 309 |
+
dropout=cfg.dropout, time_embed_dim=cfg.time_embed_dim)
|
| 310 |
+
|
| 311 |
+
def fit_normalizers(self, stats: dict):
|
| 312 |
+
self.state_norm.fit(stats['state']['min'], stats['state']['max'])
|
| 313 |
+
self.action_norm.fit(stats['action']['min'], stats['action']['max'])
|
| 314 |
+
|
| 315 |
+
@property
|
| 316 |
+
def sampling_steps(self) -> int:
|
| 317 |
+
return int(self.cfg.num_inference_steps or 1)
|
| 318 |
+
|
| 319 |
+
@property
|
| 320 |
+
def history_span(self) -> int:
|
| 321 |
+
"""Executed rows a query needs: (n_history - 1) * stride + 1."""
|
| 322 |
+
return (self.n_history - 1) * self.stride + 1
|
| 323 |
+
|
| 324 |
+
def extended_offsets(self) -> np.ndarray:
|
| 325 |
+
"""Frame offsets from the anchor of the extended polynomial grid (for the training targets)."""
|
| 326 |
+
return (np.arange(self.H_ext) - self.anchor) * self.stride
|
| 327 |
+
|
| 328 |
+
# polynomial operations, float32 and outside autocast ----------------------------------------------------------
|
| 329 |
+
def _to_coeff(self, traj_n):
|
| 330 |
+
return torch.einsum('ch,bhd->bcd', self._lstsq_matrix, traj_n) / self._coeff_scale
|
| 331 |
+
|
| 332 |
+
def _history_coeff(self, history, has_history):
|
| 333 |
+
with torch.autocast(history.device.type, enabled=False):
|
| 334 |
+
h = torch.einsum('ch,bhd->bcd', self._history_lstsq_matrix, self.action_norm.normalize(history.float()))
|
| 335 |
+
h = h / self._coeff_scale
|
| 336 |
+
return torch.where(has_history.view(-1, 1, 1).bool(), h, torch.zeros_like(h))
|
| 337 |
+
|
| 338 |
+
def _apply_boundary_constraint(self, norm_coeff, traj_n):
|
| 339 |
+
raw = norm_coeff * self._coeff_scale
|
| 340 |
+
idx, H = self._bc_pos_indices, traj_n.shape[1]
|
| 341 |
+
cur_pos = torch.einsum('kc,bcd->bkd', self._bc_eval_pos, raw)
|
| 342 |
+
tgt_pos = traj_n[:, idx, :]
|
| 343 |
+
vel = []
|
| 344 |
+
for i in idx.tolist():
|
| 345 |
+
if i + 1 < H:
|
| 346 |
+
v = (traj_n[:, i + 1] - traj_n[:, i - 1]) * (H - 1) / 2
|
| 347 |
+
elif i >= 2:
|
| 348 |
+
v = (3 * traj_n[:, i] - 4 * traj_n[:, i - 1] + traj_n[:, i - 2]) * (H - 1) / 2
|
| 349 |
+
else:
|
| 350 |
+
v = (traj_n[:, i] - traj_n[:, i - 1]) * (H - 1)
|
| 351 |
+
vel.append(v)
|
| 352 |
+
tgt_vel = torch.stack(vel, dim=1)
|
| 353 |
+
cur_vel = torch.einsum('kc,bcd->bkd', self._bc_eval_vel, raw)
|
| 354 |
+
residual = torch.cat([cur_pos - tgt_pos, cur_vel - tgt_vel], dim=1)
|
| 355 |
+
return (raw - torch.einsum('ck,bkd->bcd', self._bc_correction, residual)) / self._coeff_scale
|
| 356 |
+
|
| 357 |
+
def target_coeff(self, poly):
|
| 358 |
+
with torch.autocast(poly.device.type, enabled=False):
|
| 359 |
+
traj_n = self.action_norm.normalize(poly.float())
|
| 360 |
+
coeff = self._to_coeff(traj_n)
|
| 361 |
+
if self.boundary_constraint:
|
| 362 |
+
coeff = self._apply_boundary_constraint(coeff, traj_n)
|
| 363 |
+
return coeff
|
| 364 |
+
|
| 365 |
+
def dense_from_coeff(self, norm_coeff):
|
| 366 |
+
"""(B, rows, Da) physical actions at the 30 Hz frames from the anchor."""
|
| 367 |
+
with torch.autocast(norm_coeff.device.type, enabled=False):
|
| 368 |
+
raw = norm_coeff.float() * self._coeff_scale
|
| 369 |
+
return self.action_norm.unnormalize(torch.einsum('hc,bcd->bhd', self._dense_eval_matrix, raw))
|
| 370 |
+
|
| 371 |
+
def condition(self, images, state):
|
| 372 |
+
return self.obs_encoder(images, self.state_norm.normalize(state))
|
| 373 |
+
|
| 374 |
+
# training and inference ------------------------------------------------------------------------------------------
|
| 375 |
+
def compute_loss(self, images, state, poly, history, has_history):
|
| 376 |
+
target = self.target_coeff(poly)
|
| 377 |
+
hist = self._history_coeff(history, has_history)
|
| 378 |
+
if self.training and self.history_noise_std > 0:
|
| 379 |
+
hist = hist + torch.randn_like(hist) * self.history_noise_std
|
| 380 |
+
cond = self.condition(images, state)
|
| 381 |
+
t = torch.rand(target.shape[0], device=target.device)
|
| 382 |
+
te = t.view(-1, 1, 1)
|
| 383 |
+
x_t = (1 - te) * hist + te * target
|
| 384 |
+
loss_fm = F.mse_loss(self.model(x_t, t, cond).float(), target - hist)
|
| 385 |
+
loss, metrics = loss_fm, dict(fm=float(loss_fm.detach()))
|
| 386 |
+
if self.consistency_weight > 0:
|
| 387 |
+
v0 = self.model(hist, torch.zeros_like(t), cond).float()
|
| 388 |
+
loss_c = F.mse_loss(hist + v0, target)
|
| 389 |
+
loss = loss + self.consistency_weight * loss_c
|
| 390 |
+
metrics['consistency'] = float(loss_c.detach())
|
| 391 |
+
return loss, metrics
|
| 392 |
+
|
| 393 |
+
@torch.no_grad()
|
| 394 |
+
def predict_coeff(self, images, state, history, has_history):
|
| 395 |
+
cond = self.condition(images, state)
|
| 396 |
+
x = self._history_coeff(history, has_history)
|
| 397 |
+
times = torch.linspace(0, 1.0, self.sampling_steps + 1)
|
| 398 |
+
for i in range(self.sampling_steps):
|
| 399 |
+
t0 = times[i].view(1).expand(x.shape[0]).to(x.device)
|
| 400 |
+
t1 = times[i + 1].view(1).expand(x.shape[0]).to(x.device)
|
| 401 |
+
dt = (t1 - t0).view(-1, 1, 1)
|
| 402 |
+
if self.solver == 'euler':
|
| 403 |
+
x = x + dt * self.model(x, t0, cond).float()
|
| 404 |
+
else:
|
| 405 |
+
x_mid = x + self.model(x, t0, cond).float() * dt / 2
|
| 406 |
+
x = x + dt * self.model(x_mid, t0 + (t1 - t0) / 2, cond).float()
|
| 407 |
+
return x
|
| 408 |
+
|
| 409 |
+
@torch.no_grad()
|
| 410 |
+
def predict(self, images, state, history, has_history, generator=None): # noqa: ARG002 - deterministic
|
| 411 |
+
coeff = self.predict_coeff(images, state, history, has_history)
|
| 412 |
+
return self.dense_from_coeff(coeff), coeff
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/inloop.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-training open-loop action MSE of the baselines (owner 2026-11-22: every training of every model measures it while
|
| 2 |
+
it trains; HumanWAM `hb_training/REPRODUCIBILITY.md` section 6).
|
| 3 |
+
|
| 4 |
+
The protocol code is HumanWAM's `hb_training/eval-action-mse` (`hb_inloop_core.InLoop` and `hb_eval_common`), used
|
| 5 |
+
unmodified from the directory given to train.py as --inloop-code; its cache lives under $HB_EVAL_CACHE (default
|
| 6 |
+
$G/eval-action-mse/cache) and is built by its `build_cache.py <task> train10`. Per evaluation: the queries every 16
|
| 7 |
+
frames of the task's `heldout` episodes (`train10` when it has none), the first 16 predicted rows against the
|
| 8 |
+
recorded ones, nMSE over the training-frame std (constant dims excluded), batches of 8 queries seeded
|
| 9 |
+
1234 + 1000 rank + batch index, every HB_INLOOP_EVERY (250) steps; one json line per evaluation in
|
| 10 |
+
<run>/logs/inloop-mse.jsonl and `HB_INLOOP` lines in the log. Training RNG and module modes are restored after each.
|
| 11 |
+
|
| 12 |
+
The evaluated weights are the ones the run saves (the EMA). Inputs as at deployment: each camera resized like the
|
| 13 |
+
training cache (data.resize_frame), state44, and for FLASH the cached past actions (the up to 16 recorded rows before
|
| 14 |
+
the query: the eval protocol's `past_action`) through the same history rule as the adapter (runtime.BaselinePolicy).
|
| 15 |
+
Before the first step the cache is checked against the run's data: the cached state and action rows of every cached
|
| 16 |
+
episode that the run loaded must equal the run's rows bit for bit.
|
| 17 |
+
"""
|
| 18 |
+
from __future__ import annotations
|
| 19 |
+
|
| 20 |
+
import os
|
| 21 |
+
from pathlib import Path
|
| 22 |
+
import sys
|
| 23 |
+
|
| 24 |
+
import numpy as np
|
| 25 |
+
|
| 26 |
+
from .data import resize_frame
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def install(code_dir, task, run_dir, get_model, contract, cameras, hw, lowdim, policy_name):
|
| 30 |
+
"""The InLoop object of this run (its evaluate(step, model) is called by train.py), after the cache check."""
|
| 31 |
+
code_dir = Path(code_dir).expanduser().resolve()
|
| 32 |
+
if not (code_dir / 'hb_inloop_core.py').exists():
|
| 33 |
+
raise FileNotFoundError(f'{code_dir}: no hb_inloop_core.py (HumanWAM hb_training/eval-action-mse)')
|
| 34 |
+
if str(code_dir) not in sys.path:
|
| 35 |
+
sys.path.insert(0, str(code_dir))
|
| 36 |
+
import hb_inloop_core as core
|
| 37 |
+
E = core.E
|
| 38 |
+
if core.EVERY <= 0:
|
| 39 |
+
print(f'HB_INLOOP {policy_name} disabled: HB_INLOOP_EVERY={core.EVERY}', flush=True)
|
| 40 |
+
return None
|
| 41 |
+
if task not in E.TASKS:
|
| 42 |
+
raise KeyError(f'task {task!r} is not registered in {code_dir}/hb_eval_common.py TASKS')
|
| 43 |
+
split = core.pick_split(task)
|
| 44 |
+
meta = E.load_meta(task, split)
|
| 45 |
+
lay = E.LAYOUTS[meta['layout']]
|
| 46 |
+
if (lay['state_dim'], lay['action_dim']) != (contract.state_dim, contract.action_dim):
|
| 47 |
+
raise ValueError(f"eval layout {meta['layout']} {lay['state_dim']}/{lay['action_dim']} vs contract "
|
| 48 |
+
f'{contract.name} {contract.state_dim}/{contract.action_dim}')
|
| 49 |
+
missing = [c for c in cameras if c not in meta['cams']]
|
| 50 |
+
if missing:
|
| 51 |
+
raise KeyError(f"cameras {missing} not in the eval cache {meta['cams']}")
|
| 52 |
+
checked = []
|
| 53 |
+
for ep in meta['episodes']: # the cache holds this run's data
|
| 54 |
+
if ep not in lowdim['episodes']:
|
| 55 |
+
continue
|
| 56 |
+
p = lowdim['episodes'].index(ep)
|
| 57 |
+
s, n = int(lowdim['starts'][p]), int(lowdim['lengths'][p])
|
| 58 |
+
with np.load(E.split_dir(task, split) / f'ep_{ep:06d}.npz') as z:
|
| 59 |
+
same = (np.array_equal(z['state'], lowdim['state'][s:s + n])
|
| 60 |
+
and np.array_equal(z['action'], lowdim['action'][s:s + n]))
|
| 61 |
+
if not same:
|
| 62 |
+
raise ValueError(f'eval cache {task}/{split} episode {ep} differs from the training data '
|
| 63 |
+
f'(cache source {meta.get("source")})')
|
| 64 |
+
checked.append(ep)
|
| 65 |
+
if not checked:
|
| 66 |
+
raise ValueError(f'no cached episode of {task}/{split} is in this run\'s data: cannot check the cache')
|
| 67 |
+
|
| 68 |
+
import torch
|
| 69 |
+
|
| 70 |
+
def predict(batch, seed):
|
| 71 |
+
model = get_model()
|
| 72 |
+
device = next(model.parameters()).device
|
| 73 |
+
frames = np.stack([np.stack([resize_frame(q['images'][c], hw) for c in cameras]) for q in batch])
|
| 74 |
+
images = torch.from_numpy(frames).to(device).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 75 |
+
state = torch.from_numpy(np.stack([q['state'] for q in batch]).astype(np.float32)).to(device)
|
| 76 |
+
generator = torch.Generator(device=device)
|
| 77 |
+
generator.manual_seed(int(seed))
|
| 78 |
+
extra = ()
|
| 79 |
+
if policy_name == 'flash':
|
| 80 |
+
from .flash import history_rows
|
| 81 |
+
span, hist, has = model.history_span, [], []
|
| 82 |
+
for q in batch:
|
| 83 |
+
past = np.asarray(q['past_action'], np.float32).reshape(-1, contract.action_dim)
|
| 84 |
+
rows = np.zeros((max(span, len(past)), contract.action_dim), np.float32)
|
| 85 |
+
valid = np.zeros(len(rows), bool)
|
| 86 |
+
if len(past):
|
| 87 |
+
rows[-len(past):], valid[-len(past):] = past, True
|
| 88 |
+
h, ok = history_rows(rows[-span:], valid[-span:], model.stride, model.n_history)
|
| 89 |
+
hist.append(h)
|
| 90 |
+
has.append(ok)
|
| 91 |
+
extra = (torch.from_numpy(np.stack(hist)).to(device), torch.tensor(has, device=device))
|
| 92 |
+
pred, _ = model.predict(images, state, *extra, generator=generator)
|
| 93 |
+
return pred.float().cpu().numpy()
|
| 94 |
+
|
| 95 |
+
info = dict(weights='ema', policy=policy_name, cache_checked_episodes=checked,
|
| 96 |
+
inloop_code=str(code_dir), cache=str(E.split_dir(task, split)))
|
| 97 |
+
loop = core.InLoop(policy_name, task, split, Path(run_dir) / 'logs' / 'inloop-mse.jsonl', predict,
|
| 98 |
+
cams=list(cameras), info=info)
|
| 99 |
+
loop.every = core.EVERY
|
| 100 |
+
loop.say(f'{policy_name} installed: task {task} split {split}, every {core.EVERY} steps, cache checked on '
|
| 101 |
+
f'episodes {checked}, code {code_dir}, G={os.environ.get("G", "<default>")}')
|
| 102 |
+
return loop
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Networks of the FM-DiT and DP (DDPM-DiT) baselines: the AdaLN DiT action backbone and the camera + state encoder.
|
| 2 |
+
|
| 3 |
+
Ported from DextraVerse's imitation-learning core (`dextraverse/algorithms/il/models/nets/dit.py`, `layers.py`,
|
| 4 |
+
`positional_embedding.py`, `vision/backbones.py`, `vision/encoder.py`), unchanged in architecture and initialization.
|
| 5 |
+
Left out: the ROVE improvement embedding, the spatial-softmax / R3M / tactile options and the inpainting path (the
|
| 6 |
+
baselines always condition through the global observation feature). Added: the ResNet's normalization choice
|
| 7 |
+
(`get_resnet`): DextraVerse's GroupNorm for a backbone trained from scratch, or BatchNorm frozen at the pretrained
|
| 8 |
+
statistics (the DETR / ACT practice) for an ImageNet-initialized backbone that is fine-tuned with the policy.
|
| 9 |
+
"""
|
| 10 |
+
from __future__ import annotations
|
| 11 |
+
|
| 12 |
+
import math
|
| 13 |
+
|
| 14 |
+
import torch
|
| 15 |
+
import torch.nn as nn
|
| 16 |
+
import torch.nn.functional as F
|
| 17 |
+
import torchvision
|
| 18 |
+
|
| 19 |
+
IMAGENET_MEAN = (0.485, 0.456, 0.406)
|
| 20 |
+
IMAGENET_STD = (0.229, 0.224, 0.225)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class SinusoidalPosEmb(nn.Module):
|
| 24 |
+
def __init__(self, dim):
|
| 25 |
+
super().__init__()
|
| 26 |
+
self.dim = dim
|
| 27 |
+
|
| 28 |
+
def forward(self, x):
|
| 29 |
+
half_dim = self.dim // 2
|
| 30 |
+
emb = math.log(10000) / (half_dim - 1)
|
| 31 |
+
emb = torch.exp(torch.arange(half_dim, device=x.device) * -emb)
|
| 32 |
+
emb = x[:, None] * emb[None, :]
|
| 33 |
+
return torch.cat((emb.sin(), emb.cos()), dim=-1)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class RotaryPosEmb(nn.Module):
|
| 37 |
+
"""Rotary position embedding over each attention head's (S, head_dim) slice."""
|
| 38 |
+
|
| 39 |
+
def __init__(self, dim):
|
| 40 |
+
super().__init__()
|
| 41 |
+
self.dim = dim
|
| 42 |
+
self.register_buffer('inv_freq', 1.0 / (10000 ** (torch.arange(0, dim, 2).float() / dim)))
|
| 43 |
+
|
| 44 |
+
def forward(self, x): # x: (B, heads, S, head_dim)
|
| 45 |
+
t = torch.arange(x.shape[-2], device=x.device, dtype=self.inv_freq.dtype)
|
| 46 |
+
freqs = torch.outer(t, self.inv_freq.to(x.device))
|
| 47 |
+
emb = torch.cat([freqs, freqs], dim=-1)
|
| 48 |
+
cos, sin = emb.cos()[None, None], emb.sin()[None, None]
|
| 49 |
+
x1, x2 = x[..., : x.shape[-1] // 2], x[..., x.shape[-1] // 2:]
|
| 50 |
+
return x * cos + torch.cat([-x2, x1], dim=-1) * sin
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
class Mlp(nn.Module):
|
| 54 |
+
"""The ViT MLP (timm.layers.Mlp) as DextraVerse's nets/layers.py."""
|
| 55 |
+
|
| 56 |
+
def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0):
|
| 57 |
+
super().__init__()
|
| 58 |
+
out_features = out_features or in_features
|
| 59 |
+
hidden_features = hidden_features or in_features
|
| 60 |
+
self.fc1 = nn.Linear(in_features, hidden_features)
|
| 61 |
+
self.act = act_layer()
|
| 62 |
+
self.drop1 = nn.Dropout(drop)
|
| 63 |
+
self.norm = nn.Identity()
|
| 64 |
+
self.fc2 = nn.Linear(hidden_features, out_features)
|
| 65 |
+
self.drop2 = nn.Dropout(drop)
|
| 66 |
+
|
| 67 |
+
def forward(self, x):
|
| 68 |
+
return self.drop2(self.fc2(self.norm(self.drop1(self.act(self.fc1(x))))))
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
class Attention(nn.Module):
|
| 72 |
+
def __init__(self, dim, num_heads=8, qkv_bias=True, attn_drop=0.0, proj_drop=0.0, qk_norm=True):
|
| 73 |
+
super().__init__()
|
| 74 |
+
assert dim % num_heads == 0, 'dim should be divisible by num_heads'
|
| 75 |
+
self.num_heads = num_heads
|
| 76 |
+
self.head_dim = dim // num_heads
|
| 77 |
+
self.attn_drop = attn_drop
|
| 78 |
+
self.proj_drop = nn.Dropout(proj_drop)
|
| 79 |
+
self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
|
| 80 |
+
self.q_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 81 |
+
self.k_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 82 |
+
self.proj = nn.Linear(dim, dim)
|
| 83 |
+
self.rope = RotaryPosEmb(self.head_dim)
|
| 84 |
+
|
| 85 |
+
def forward(self, x):
|
| 86 |
+
B, S, C = x.shape
|
| 87 |
+
qkv = self.qkv(x).reshape(B, S, 3, self.num_heads, self.head_dim).permute(2, 0, 3, 1, 4)
|
| 88 |
+
q, k, v = qkv.unbind(0)
|
| 89 |
+
q, k = self.rope(self.q_norm(q)), self.rope(self.k_norm(k))
|
| 90 |
+
x = F.scaled_dot_product_attention(q, k, v, dropout_p=self.attn_drop if self.training else 0.0)
|
| 91 |
+
return self.proj_drop(self.proj(x.transpose(1, 2).reshape(B, S, C)))
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
class AdaLNBlock(nn.Module):
|
| 95 |
+
"""Adaptive-LayerNorm transformer block as in DiT (Peebles et al. 2022)."""
|
| 96 |
+
|
| 97 |
+
def __init__(self, dim, num_heads, mlp_ratio=4.0, dropout=0.0):
|
| 98 |
+
super().__init__()
|
| 99 |
+
self.norm1 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 100 |
+
self.attn = Attention(dim, num_heads=num_heads, attn_drop=dropout, proj_drop=dropout)
|
| 101 |
+
self.norm2 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 102 |
+
self.mlp = Mlp(in_features=dim, hidden_features=int(dim * mlp_ratio),
|
| 103 |
+
act_layer=lambda: nn.GELU(approximate='tanh'), drop=0)
|
| 104 |
+
self.ada_ln = nn.Sequential(nn.SiLU(), nn.Linear(dim, 6 * dim))
|
| 105 |
+
self.dim = dim
|
| 106 |
+
nn.init.constant_(self.ada_ln[-1].weight, 0)
|
| 107 |
+
nn.init.constant_(self.ada_ln[-1].bias, 0)
|
| 108 |
+
|
| 109 |
+
def forward(self, x, t, c):
|
| 110 |
+
B = x.shape[0]
|
| 111 |
+
gamma1, gamma2, scale1, scale2, shift1, shift2 = self.ada_ln(F.silu(t + c)).view(B, 6, 1, self.dim).unbind(1)
|
| 112 |
+
x = x + self.attn(self.norm1(x).mul(scale1.add(1)).add_(shift1)).mul_(gamma1)
|
| 113 |
+
return x + self.mlp(self.norm2(x).mul(scale2.add(1)).add_(shift2)).mul_(gamma2)
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
class FlowTransformer(nn.Module):
|
| 117 |
+
"""DiT action backbone: AdaLN blocks over the H action tokens, conditioned on time_embed(t) + cond_embed(obs).
|
| 118 |
+
|
| 119 |
+
As DextraVerse, the generic Xavier initialization runs after the blocks' zero init of their AdaLN projection, so
|
| 120 |
+
it is not the full AdaLN-Zero recipe (kept: it is the reference's training behaviour)."""
|
| 121 |
+
|
| 122 |
+
def __init__(self, input_dim, condition_dim, hidden_dim, output_dim, num_layers, num_heads, mlp_ratio=4.0,
|
| 123 |
+
dropout=0.1, time_embed_dim=256):
|
| 124 |
+
super().__init__()
|
| 125 |
+
self.input_proj = nn.Linear(input_dim, hidden_dim)
|
| 126 |
+
self.time_embed = nn.Sequential(SinusoidalPosEmb(time_embed_dim), nn.Linear(time_embed_dim, time_embed_dim * 4),
|
| 127 |
+
nn.Mish(), nn.Linear(time_embed_dim * 4, hidden_dim))
|
| 128 |
+
self.cond_embed = nn.Linear(condition_dim, hidden_dim)
|
| 129 |
+
self.transformer_blocks = nn.ModuleList(
|
| 130 |
+
[AdaLNBlock(hidden_dim, num_heads, mlp_ratio=mlp_ratio, dropout=dropout) for _ in range(num_layers)])
|
| 131 |
+
self.norm = nn.LayerNorm(hidden_dim)
|
| 132 |
+
self.out_proj = nn.Linear(hidden_dim, output_dim)
|
| 133 |
+
|
| 134 |
+
def basic_init(module):
|
| 135 |
+
if isinstance(module, nn.Linear):
|
| 136 |
+
nn.init.xavier_uniform_(module.weight)
|
| 137 |
+
if module.bias is not None:
|
| 138 |
+
nn.init.constant_(module.bias, 0)
|
| 139 |
+
|
| 140 |
+
self.apply(basic_init)
|
| 141 |
+
nn.init.normal_(self.time_embed[1].weight, std=0.02)
|
| 142 |
+
nn.init.normal_(self.time_embed[3].weight, std=0.02)
|
| 143 |
+
|
| 144 |
+
def forward(self, x, t, global_cond):
|
| 145 |
+
if not torch.is_tensor(t):
|
| 146 |
+
t = torch.tensor(t, device=x.device)
|
| 147 |
+
if t.ndim == 0:
|
| 148 |
+
t = t.expand(x.shape[0])
|
| 149 |
+
x = self.input_proj(x)
|
| 150 |
+
t = self.time_embed(t)
|
| 151 |
+
c = self.cond_embed(global_cond)
|
| 152 |
+
for block in self.transformer_blocks:
|
| 153 |
+
x = block(x, t, c)
|
| 154 |
+
return self.out_proj(self.norm(x))
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
def replace_batchnorm_with_groupnorm(module: nn.Module) -> nn.Module:
|
| 158 |
+
"""DextraVerse's use_group_norm: every BatchNorm2d becomes GroupNorm(num_features // 16 groups)."""
|
| 159 |
+
for name, child in module.named_children():
|
| 160 |
+
if isinstance(child, nn.BatchNorm2d):
|
| 161 |
+
setattr(module, name, nn.GroupNorm(num_groups=child.num_features // 16, num_channels=child.num_features))
|
| 162 |
+
else:
|
| 163 |
+
replace_batchnorm_with_groupnorm(child)
|
| 164 |
+
return module
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
NORMS = ('group', 'frozen_bn')
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def get_resnet(name='resnet18', weights=None, norm='group') -> nn.Module:
|
| 171 |
+
"""A torchvision ResNet with its classifier removed: (N, 3, H, W) -> (N, 512) globally pooled.
|
| 172 |
+
|
| 173 |
+
weights: torchvision weights name (e.g. 'IMAGENET1K_V1') to initialize from, or None (random initialization;
|
| 174 |
+
a checkpoint load supplies every weight). norm: 'group' replaces every BatchNorm with GroupNorm (DextraVerse's
|
| 175 |
+
use_group_norm, for training from scratch: pretrained BatchNorm statistics and affine are dropped); 'frozen_bn'
|
| 176 |
+
keeps BatchNorm frozen at its (pretrained) running statistics and affine, the convolutions fine-tune."""
|
| 177 |
+
if norm == 'frozen_bn':
|
| 178 |
+
from .act_nets import FrozenBatchNorm2d
|
| 179 |
+
resnet = getattr(torchvision.models, name)(weights=weights, norm_layer=FrozenBatchNorm2d)
|
| 180 |
+
elif norm == 'group':
|
| 181 |
+
resnet = replace_batchnorm_with_groupnorm(getattr(torchvision.models, name)(weights=weights))
|
| 182 |
+
else:
|
| 183 |
+
raise ValueError(f'norm must be one of {NORMS}, got {norm!r}')
|
| 184 |
+
resnet.fc = nn.Identity()
|
| 185 |
+
return resnet
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
class ImageStateEncoder(nn.Module):
|
| 189 |
+
"""DextraVerse MultiImageObsEncoder as configured for FM-DiT / DDPM-DiT: one ResNet shared by every camera
|
| 190 |
+
(share_rgb_model; `get_resnet` weights and norm), ImageNet normalization of the [0, 1] images, the pooled features
|
| 191 |
+
of each camera in the contract's camera order, then the normalized state.
|
| 192 |
+
Output (B, n_cameras * 512 + state_dim)."""
|
| 193 |
+
|
| 194 |
+
def __init__(self, n_cameras, state_dim, backbone='resnet18', weights=None, norm='group'):
|
| 195 |
+
super().__init__()
|
| 196 |
+
self.rgb = get_resnet(backbone, weights=weights, norm=norm)
|
| 197 |
+
self.n_cameras, self.state_dim = int(n_cameras), int(state_dim)
|
| 198 |
+
self.register_buffer('mean', torch.tensor(IMAGENET_MEAN).view(1, 3, 1, 1), persistent=False)
|
| 199 |
+
self.register_buffer('std', torch.tensor(IMAGENET_STD).view(1, 3, 1, 1), persistent=False)
|
| 200 |
+
self.feature_dim = self.n_cameras * (512 if backbone in ('resnet18', 'resnet34') else 2048) + self.state_dim
|
| 201 |
+
|
| 202 |
+
def forward(self, images, state):
|
| 203 |
+
"""images (B, n_cameras, 3, H, W) in [0, 1]; state (B, state_dim) normalized."""
|
| 204 |
+
B = images.shape[0]
|
| 205 |
+
x = (images.flatten(0, 1) - self.mean) / self.std
|
| 206 |
+
features = self.rgb(x).reshape(B, -1) # camera features side by side, in camera order
|
| 207 |
+
return torch.cat([features, state], dim=-1)
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/policies.py
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""The baseline policies behind one contract; the first three ported from DextraVerse's imitation-learning core:
|
| 2 |
+
|
| 3 |
+
- `fm_dit`, `FMDiTPolicy` (reference: dextraverse/algorithms/il/models/fm_dit.py + fm_base.py): flow matching, MSE on
|
| 4 |
+
the velocity `a - noise`; sampled with 10 midpoint steps from noise (20 DiT calls);
|
| 5 |
+
- `dp`, `DPPolicy` (ddpm_dit.py + ddpm_base.py: Diffusion Policy with a DiT backbone): DDPM epsilon MSE over 100
|
| 6 |
+
steps; sampled with the 100 DDPM steps;
|
| 7 |
+
- `act`, `ACTPolicy` (act.py + nets/act/): L1 + `kl_weight` x KL of the CVAE; decoded from the zero latent in one pass;
|
| 8 |
+
- `flash`, `flash.FlashPolicy` (NTUMARS/FLASH-Policy @ f47e490): polynomial-coefficient flow from the fitted history
|
| 9 |
+
of the executed actions to the future, one Euler step; its contract adds the history (flash.py's docstring).
|
| 10 |
+
|
| 11 |
+
Contract (every policy): `compute_loss(images, state, action) -> (loss, metrics)` and
|
| 12 |
+
`predict(images, state, generator) -> (action, normalized action)`; images (B, n_cameras, 3, H, W) float in [0, 1],
|
| 13 |
+
state (B, state_dim) and action (B, horizon, action_dim) in physical units. Each policy owns its `Normalizer`
|
| 14 |
+
(DextraVerse's LinearNormalizer 'limits' mode: state and action to [-1, 1] per dimension, constant dimensions shifted
|
| 15 |
+
to 0), saved in its state dict. One observation frame (n_obs_steps 1: the current images and state); the chunk's row 0
|
| 16 |
+
is the action of the observation's own frame (the LeRobot rows t..t+horizon-1). The configuration that builds a
|
| 17 |
+
policy is a plain dict (`PolicyConfig` fields), stored in the checkpoint.
|
| 18 |
+
|
| 19 |
+
The ResNet18 starts from torchvision's ImageNet-1k weights (`backbone_weights` 'IMAGENET1K_V1', the default since
|
| 20 |
+
2026-11-16) and is fine-tuned with the policy, its BatchNorm frozen at the pretrained statistics (`backbone_norm`
|
| 21 |
+
'frozen_bn', as ACT always does); `backbone_weights` None trains from scratch with DextraVerse's GroupNorm encoder
|
| 22 |
+
(FM-DiT, DP) or ACT's frozen-BatchNorm one. A checkpoint load builds the structure without fetching any weights.
|
| 23 |
+
"""
|
| 24 |
+
from __future__ import annotations
|
| 25 |
+
|
| 26 |
+
from dataclasses import asdict, dataclass, field, replace
|
| 27 |
+
|
| 28 |
+
import torch
|
| 29 |
+
import torch.nn as nn
|
| 30 |
+
import torch.nn.functional as F
|
| 31 |
+
|
| 32 |
+
from .act_nets import DETRVAE, Transformer, build_backbone, build_style_encoder, kl_divergence
|
| 33 |
+
from .nets import IMAGENET_MEAN, IMAGENET_STD, FlowTransformer, ImageStateEncoder
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
@dataclass
|
| 37 |
+
class PolicyConfig:
|
| 38 |
+
"""Everything that builds a policy (stored in the checkpoint's config.json). Model defaults are DextraVerse's
|
| 39 |
+
configs/algorithm/il/model/{fm_dit,ddpm_dit,act}.yaml."""
|
| 40 |
+
policy: str
|
| 41 |
+
n_cameras: int
|
| 42 |
+
state_dim: int
|
| 43 |
+
action_dim: int
|
| 44 |
+
horizon: int = 16
|
| 45 |
+
backbone: str = 'resnet18'
|
| 46 |
+
backbone_weights: str | None = 'IMAGENET1K_V1' # torchvision weights to initialize from; None = from scratch
|
| 47 |
+
backbone_norm: str | None = None # 'frozen_bn' or 'group'; None: frozen_bn when pretrained or ACT, else group
|
| 48 |
+
# FM-DiT / DP (DiT backbone)
|
| 49 |
+
hidden_dim: int = 384
|
| 50 |
+
num_layers: int = 4
|
| 51 |
+
num_heads: int = 8
|
| 52 |
+
mlp_ratio: float = 4.0
|
| 53 |
+
dropout: float = 0.1
|
| 54 |
+
time_embed_dim: int = 128
|
| 55 |
+
num_inference_steps: int | None = None # None: FM-DiT 10 midpoint steps, DP every training timestep (100)
|
| 56 |
+
# DP noise schedule (diffusers DDPMScheduler)
|
| 57 |
+
num_train_timesteps: int = 100
|
| 58 |
+
beta_schedule: str = 'squaredcos_cap_v2'
|
| 59 |
+
prediction_type: str = 'epsilon'
|
| 60 |
+
clip_sample: bool = True
|
| 61 |
+
# ACT
|
| 62 |
+
act_hidden_dim: int = 512
|
| 63 |
+
dim_feedforward: int = 3200
|
| 64 |
+
enc_layers: int = 4
|
| 65 |
+
dec_layers: int = 7
|
| 66 |
+
nheads: int = 8
|
| 67 |
+
latent_dim: int = 32
|
| 68 |
+
kl_weight: float = 10.0
|
| 69 |
+
extra: dict = field(default_factory=dict)
|
| 70 |
+
|
| 71 |
+
def __post_init__(self):
|
| 72 |
+
if self.backbone_norm is None:
|
| 73 |
+
self.backbone_norm = 'frozen_bn' if self.backbone_weights or self.policy == 'act' else 'group'
|
| 74 |
+
if self.policy == 'act' and self.backbone_norm != 'frozen_bn':
|
| 75 |
+
raise ValueError("ACT's backbone keeps frozen BatchNorm (backbone_norm 'frozen_bn')")
|
| 76 |
+
|
| 77 |
+
@classmethod
|
| 78 |
+
def from_dict(cls, data: dict) -> PolicyConfig:
|
| 79 |
+
known = {k: v for k, v in data.items() if k in cls.__dataclass_fields__}
|
| 80 |
+
return cls(**known)
|
| 81 |
+
|
| 82 |
+
def to_dict(self) -> dict:
|
| 83 |
+
return asdict(self)
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
class Normalizer(nn.Module):
|
| 87 |
+
"""Per-dimension affine map to [-1, 1] from the training data's min/max (DextraVerse LinearNormalizer, mode
|
| 88 |
+
'limits', fit_offset, range_eps 1e-4): x_n = x * scale + offset; a dimension whose range is below range_eps gets
|
| 89 |
+
scale 1 and maps its value to 0."""
|
| 90 |
+
|
| 91 |
+
def __init__(self, dim: int):
|
| 92 |
+
super().__init__()
|
| 93 |
+
self.register_buffer('scale', torch.ones(dim))
|
| 94 |
+
self.register_buffer('offset', torch.zeros(dim))
|
| 95 |
+
|
| 96 |
+
@torch.no_grad()
|
| 97 |
+
def fit(self, minimum, maximum, range_eps=1e-4):
|
| 98 |
+
lo = torch.as_tensor(minimum, dtype=torch.float32)
|
| 99 |
+
hi = torch.as_tensor(maximum, dtype=torch.float32)
|
| 100 |
+
span = hi - lo
|
| 101 |
+
ignore = span < range_eps
|
| 102 |
+
span[ignore] = 2.0
|
| 103 |
+
scale = 2.0 / span
|
| 104 |
+
offset = -1.0 - scale * lo
|
| 105 |
+
offset[ignore] = -lo[ignore]
|
| 106 |
+
self.scale.copy_(scale)
|
| 107 |
+
self.offset.copy_(offset)
|
| 108 |
+
|
| 109 |
+
def normalize(self, x):
|
| 110 |
+
return x * self.scale + self.offset
|
| 111 |
+
|
| 112 |
+
def unnormalize(self, x):
|
| 113 |
+
return (x - self.offset) / self.scale
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
class BasePolicy(nn.Module):
|
| 117 |
+
name = ''
|
| 118 |
+
backbone_prefix = '' # state-dict prefix of the image backbone (its own learning rate in training)
|
| 119 |
+
|
| 120 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 121 |
+
super().__init__()
|
| 122 |
+
self.cfg = cfg
|
| 123 |
+
self.state_norm = Normalizer(cfg.state_dim)
|
| 124 |
+
self.action_norm = Normalizer(cfg.action_dim)
|
| 125 |
+
|
| 126 |
+
def fit_normalizers(self, stats: dict):
|
| 127 |
+
self.state_norm.fit(stats['state']['min'], stats['state']['max'])
|
| 128 |
+
self.action_norm.fit(stats['action']['min'], stats['action']['max'])
|
| 129 |
+
|
| 130 |
+
@property
|
| 131 |
+
def sampling_steps(self) -> int:
|
| 132 |
+
return 1
|
| 133 |
+
|
| 134 |
+
def compute_loss(self, images, state, action):
|
| 135 |
+
raise NotImplementedError
|
| 136 |
+
|
| 137 |
+
def predict(self, images, state, generator=None):
|
| 138 |
+
raise NotImplementedError
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
class DiTPolicy(BasePolicy):
|
| 142 |
+
"""Shared by FM-DiT and DP: the shared-ResNet image + state encoder and the AdaLN DiT over the action chunk
|
| 143 |
+
(global observation conditioning, DextraVerse obs_as_global_cond)."""
|
| 144 |
+
backbone_prefix = 'obs_encoder.rgb.'
|
| 145 |
+
|
| 146 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 147 |
+
super().__init__(cfg)
|
| 148 |
+
self.obs_encoder = ImageStateEncoder(cfg.n_cameras, cfg.state_dim, backbone=cfg.backbone,
|
| 149 |
+
weights=init_weights, norm=cfg.backbone_norm)
|
| 150 |
+
self.model = FlowTransformer(input_dim=cfg.action_dim, condition_dim=self.obs_encoder.feature_dim,
|
| 151 |
+
hidden_dim=cfg.hidden_dim, output_dim=cfg.action_dim, num_layers=cfg.num_layers,
|
| 152 |
+
num_heads=cfg.num_heads, mlp_ratio=cfg.mlp_ratio, dropout=cfg.dropout,
|
| 153 |
+
time_embed_dim=cfg.time_embed_dim)
|
| 154 |
+
|
| 155 |
+
def condition(self, images, state):
|
| 156 |
+
return self.obs_encoder(images, self.state_norm.normalize(state))
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
class FMDiTPolicy(DiTPolicy):
|
| 160 |
+
"""Flow-matching DiT (DextraVerse FlowMatchingDiTImagePolicy): x_t = (1 - t) noise + t a, t ~ U(0, 1), the DiT
|
| 161 |
+
regresses the velocity a - noise; sampling integrates t = 0 -> 1 with the midpoint rule."""
|
| 162 |
+
name = 'fm_dit'
|
| 163 |
+
|
| 164 |
+
@property
|
| 165 |
+
def sampling_steps(self) -> int:
|
| 166 |
+
return int(self.cfg.num_inference_steps or 10)
|
| 167 |
+
|
| 168 |
+
def compute_loss(self, images, state, action):
|
| 169 |
+
cond = self.condition(images, state)
|
| 170 |
+
target = self.action_norm.normalize(action)
|
| 171 |
+
noise = torch.randn_like(target)
|
| 172 |
+
t = torch.rand(target.shape[0], device=target.device)
|
| 173 |
+
te = t.view(-1, 1, 1)
|
| 174 |
+
x_t = (1 - te) * noise + te * target
|
| 175 |
+
loss = F.mse_loss(self.model(x_t, t, cond), target - noise)
|
| 176 |
+
return loss, dict(fm=float(loss.detach()))
|
| 177 |
+
|
| 178 |
+
@torch.no_grad()
|
| 179 |
+
def predict(self, images, state, generator=None):
|
| 180 |
+
cond = self.condition(images, state)
|
| 181 |
+
B, steps = images.shape[0], self.sampling_steps
|
| 182 |
+
x = torch.randn((B, self.cfg.horizon, self.cfg.action_dim), device=cond.device, dtype=cond.dtype,
|
| 183 |
+
generator=generator)
|
| 184 |
+
times = torch.linspace(0, 1.0, steps + 1, device=cond.device)
|
| 185 |
+
for i in range(steps):
|
| 186 |
+
t0 = times[i].view(1).expand(B)
|
| 187 |
+
t1 = times[i + 1].view(1).expand(B)
|
| 188 |
+
dt = (t1 - t0).view(-1, 1, 1)
|
| 189 |
+
x_mid = x + self.model(x, t0, cond) * dt / 2
|
| 190 |
+
x = x + dt * self.model(x_mid, t0 + (t1 - t0) / 2, cond)
|
| 191 |
+
return self.action_norm.unnormalize(x), x
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
class DPPolicy(DiTPolicy):
|
| 195 |
+
"""Diffusion Policy with the DiT backbone (DextraVerse DiffusionDiTImagePolicy, ddpm_dit.yaml): DDPM with 100
|
| 196 |
+
training steps, squaredcos_cap_v2 betas, fixed_small variance, clipped samples, epsilon prediction; sampled with
|
| 197 |
+
every training step (100 DiT calls)."""
|
| 198 |
+
name = 'dp'
|
| 199 |
+
|
| 200 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 201 |
+
super().__init__(cfg, init_weights)
|
| 202 |
+
from diffusers.schedulers.scheduling_ddpm import DDPMScheduler
|
| 203 |
+
self.noise_scheduler = DDPMScheduler(num_train_timesteps=cfg.num_train_timesteps, beta_start=0.0001,
|
| 204 |
+
beta_end=0.02, beta_schedule=cfg.beta_schedule,
|
| 205 |
+
variance_type='fixed_small', clip_sample=cfg.clip_sample,
|
| 206 |
+
prediction_type=cfg.prediction_type)
|
| 207 |
+
|
| 208 |
+
@property
|
| 209 |
+
def sampling_steps(self) -> int:
|
| 210 |
+
return int(self.cfg.num_inference_steps or self.cfg.num_train_timesteps)
|
| 211 |
+
|
| 212 |
+
def compute_loss(self, images, state, action):
|
| 213 |
+
cond = self.condition(images, state)
|
| 214 |
+
target = self.action_norm.normalize(action)
|
| 215 |
+
noise = torch.randn_like(target)
|
| 216 |
+
t = torch.randint(0, self.noise_scheduler.config.num_train_timesteps, (target.shape[0],),
|
| 217 |
+
device=target.device).long()
|
| 218 |
+
noisy = self.noise_scheduler.add_noise(target, noise, t)
|
| 219 |
+
pred = self.model(noisy, t, cond)
|
| 220 |
+
goal = noise if self.cfg.prediction_type == 'epsilon' else target
|
| 221 |
+
loss = F.mse_loss(pred, goal)
|
| 222 |
+
return loss, dict(ddpm=float(loss.detach()))
|
| 223 |
+
|
| 224 |
+
@torch.no_grad()
|
| 225 |
+
def predict(self, images, state, generator=None):
|
| 226 |
+
cond = self.condition(images, state)
|
| 227 |
+
scheduler = self.noise_scheduler
|
| 228 |
+
x = torch.randn((images.shape[0], self.cfg.horizon, self.cfg.action_dim), device=cond.device,
|
| 229 |
+
dtype=cond.dtype, generator=generator)
|
| 230 |
+
scheduler.set_timesteps(self.sampling_steps, device=cond.device)
|
| 231 |
+
for t in scheduler.timesteps:
|
| 232 |
+
x = scheduler.step(self.model(x, t.to(cond.device), cond), t, x, generator=generator).prev_sample
|
| 233 |
+
return self.action_norm.unnormalize(x), x
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
class ACTPolicy(BasePolicy):
|
| 237 |
+
"""ACT (DextraVerse ACTImagePolicy, act.yaml): ImageNet-normalized cameras through one ResNet with frozen
|
| 238 |
+
BatchNorm (spatial tokens, no pooling), the normalized state as qpos, a CVAE style encoder over the action chunk in
|
| 239 |
+
training, the DETR decoder with `horizon` queries; loss L1 + kl_weight x KL; inference decodes from the zero
|
| 240 |
+
latent (deterministic)."""
|
| 241 |
+
name = 'act'
|
| 242 |
+
backbone_prefix = 'model.backbone.'
|
| 243 |
+
|
| 244 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 245 |
+
super().__init__(cfg)
|
| 246 |
+
transformer = Transformer(d_model=cfg.act_hidden_dim, nhead=cfg.nheads, num_encoder_layers=cfg.enc_layers,
|
| 247 |
+
num_decoder_layers=cfg.dec_layers, dim_feedforward=cfg.dim_feedforward,
|
| 248 |
+
dropout=cfg.dropout, return_intermediate_dec=False)
|
| 249 |
+
self.model = DETRVAE(build_backbone(cfg.backbone, hidden_dim=cfg.act_hidden_dim, weights=init_weights),
|
| 250 |
+
transformer,
|
| 251 |
+
build_style_encoder(cfg.act_hidden_dim, cfg.nheads, cfg.dim_feedforward, cfg.enc_layers,
|
| 252 |
+
cfg.dropout),
|
| 253 |
+
qpos_dim=cfg.state_dim, action_dim=cfg.action_dim, num_queries=cfg.horizon,
|
| 254 |
+
latent_dim=cfg.latent_dim)
|
| 255 |
+
self.register_buffer('mean', torch.tensor(IMAGENET_MEAN).view(1, 1, 3, 1, 1), persistent=False)
|
| 256 |
+
self.register_buffer('std', torch.tensor(IMAGENET_STD).view(1, 1, 3, 1, 1), persistent=False)
|
| 257 |
+
|
| 258 |
+
def compute_loss(self, images, state, action):
|
| 259 |
+
target = self.action_norm.normalize(action)
|
| 260 |
+
a_hat, (mu, logvar) = self.model(self.state_norm.normalize(state), (images - self.mean) / self.std,
|
| 261 |
+
actions=target)
|
| 262 |
+
l1 = F.l1_loss(a_hat, target)
|
| 263 |
+
kl = kl_divergence(mu, logvar)
|
| 264 |
+
return l1 + self.cfg.kl_weight * kl, dict(l1=float(l1.detach()), kl=float(kl.detach()))
|
| 265 |
+
|
| 266 |
+
@torch.no_grad()
|
| 267 |
+
def predict(self, images, state, generator=None): # noqa: ARG002 - deterministic (zero latent)
|
| 268 |
+
a_hat, _ = self.model(self.state_norm.normalize(state), (images - self.mean) / self.std)
|
| 269 |
+
return self.action_norm.unnormalize(a_hat), a_hat
|
| 270 |
+
|
| 271 |
+
|
| 272 |
+
from .flash import FlashPolicy # noqa: E402 - FLASH (flash.py) builds on this module's Normalizer and nets.py
|
| 273 |
+
|
| 274 |
+
POLICIES = {cls.name: cls for cls in (FMDiTPolicy, DPPolicy, ACTPolicy, FlashPolicy)}
|
| 275 |
+
LABELS = {'fm_dit': 'FM-DiT', 'dp': 'DP (DDPM-DiT)', 'act': 'ACT', 'flash': 'FLASH'}
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
def build_policy(cfg: PolicyConfig | dict, pretrained: bool = True) -> BasePolicy:
|
| 279 |
+
"""The policy of `cfg`; pretrained=True initializes the backbone from cfg.backbone_weights (training),
|
| 280 |
+
False builds the same structure with random weights (a checkpoint load, which must not download anything)."""
|
| 281 |
+
cfg = cfg if isinstance(cfg, PolicyConfig) else PolicyConfig.from_dict(cfg)
|
| 282 |
+
if cfg.policy not in POLICIES:
|
| 283 |
+
raise KeyError(f'unknown baseline {cfg.policy!r}; one of {sorted(POLICIES)}')
|
| 284 |
+
cfg = replace(cfg) # a copy (resolved backbone_norm)
|
| 285 |
+
return POLICIES[cfg.policy](cfg, init_weights=cfg.backbone_weights if pretrained else None)
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/requirements.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Environment of the FM-DiT / DP / ACT baselines (training and the policy server), Python 3.12, CUDA 12.8 wheels:
|
| 2 |
+
# uv venv <env> --python 3.12
|
| 3 |
+
# uv pip install --python <env>/bin/python -r evaluation/baselines/requirements.txt \
|
| 4 |
+
# --extra-index-url https://download.pytorch.org/whl/cu128 --index-strategy unsafe-best-match
|
| 5 |
+
torch==2.9.0+cu128
|
| 6 |
+
torchvision==0.24.0+cu128
|
| 7 |
+
diffusers==0.35.1
|
| 8 |
+
av==15.1.0
|
| 9 |
+
pyarrow==23.0.1
|
| 10 |
+
numpy==2.2.6
|
| 11 |
+
opencv-python-headless==4.11.0.86
|
| 12 |
+
pytest==8.4.2
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/runtime.py
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Checkpoints and inference of the baselines.
|
| 2 |
+
|
| 3 |
+
A checkpoint is a directory written by train.py (`<run>/checkpoints/step-NNNNNN/`, `final` links the last one):
|
| 4 |
+
|
| 5 |
+
- `model.pt`: torch.save of {format, config (the config.json text), state_dict}: the EMA weights (or the raw ones when
|
| 6 |
+
EMA is off) with the policy's state and action normalizers, loaded strictly with `weights_only=True`;
|
| 7 |
+
- `config.json`: the policy configuration, the contract (robot, cameras, state and action columns), the image size,
|
| 8 |
+
the training task text, dataset, episodes, recipe and statistics;
|
| 9 |
+
- `protocol.json`: model.pt's size and SHA-256.
|
| 10 |
+
|
| 11 |
+
`BaselinePolicy.predict` takes the live frames of the checkpoint's cameras (any size; resized with data.resize_frame,
|
| 12 |
+
as the training cache), the physical state of the contract and a seed, and returns the physical (horizon,
|
| 13 |
+
action_dim) chunk with its normalized form; row 0 is the action of the observation's frame.
|
| 14 |
+
"""
|
| 15 |
+
from __future__ import annotations
|
| 16 |
+
|
| 17 |
+
import hashlib
|
| 18 |
+
import json
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
import numpy as np
|
| 22 |
+
|
| 23 |
+
FORMAT = 'hb_baselines/1'
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def sha256(path) -> str:
|
| 27 |
+
digest = hashlib.sha256()
|
| 28 |
+
with Path(path).open('rb') as stream:
|
| 29 |
+
for block in iter(lambda: stream.read(16 << 20), b''):
|
| 30 |
+
digest.update(block)
|
| 31 |
+
return digest.hexdigest()
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def save_checkpoint(folder, policy, config: dict):
|
| 35 |
+
"""Write model.pt, config.json and protocol.json of `policy` (an nn.Module) into `folder`."""
|
| 36 |
+
import torch
|
| 37 |
+
folder = Path(folder)
|
| 38 |
+
folder.mkdir(parents=True, exist_ok=True)
|
| 39 |
+
text = json.dumps(dict(config, format=FORMAT), indent=1)
|
| 40 |
+
state = {k: v.detach().cpu().contiguous() for k, v in policy.state_dict().items()}
|
| 41 |
+
torch.save(dict(format=FORMAT, config=text, state_dict=state), folder / 'model.pt.tmp')
|
| 42 |
+
(folder / 'model.pt.tmp').replace(folder / 'model.pt')
|
| 43 |
+
(folder / 'config.json').write_text(text)
|
| 44 |
+
(folder / 'protocol.json').write_text(json.dumps(dict(
|
| 45 |
+
format=FORMAT, step=config.get('step'), policy=config['policy']['policy'],
|
| 46 |
+
files={'model.pt': dict(bytes=(folder / 'model.pt').stat().st_size, sha256=sha256(folder / 'model.pt'))}),
|
| 47 |
+
indent=1))
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def load_checkpoint(folder, device='cpu', verify=True):
|
| 51 |
+
"""(policy in eval mode on `device`, config dict) of a checkpoint directory."""
|
| 52 |
+
import torch
|
| 53 |
+
from .policies import build_policy
|
| 54 |
+
folder = Path(folder)
|
| 55 |
+
if verify:
|
| 56 |
+
protocol = json.loads((folder / 'protocol.json').read_text())
|
| 57 |
+
entry = protocol['files']['model.pt']
|
| 58 |
+
if (folder / 'model.pt').stat().st_size != entry['bytes']:
|
| 59 |
+
raise ValueError(f'{folder}/model.pt differs from protocol.json')
|
| 60 |
+
payload = torch.load(folder / 'model.pt', map_location='cpu', weights_only=True)
|
| 61 |
+
if payload.get('format') != FORMAT:
|
| 62 |
+
raise ValueError(f"{folder}: format {payload.get('format')!r}, expected {FORMAT}")
|
| 63 |
+
config = json.loads(payload['config'])
|
| 64 |
+
if json.loads((folder / 'config.json').read_text()) != config:
|
| 65 |
+
raise ValueError(f'{folder}: config.json differs from the one inside model.pt')
|
| 66 |
+
policy = build_policy(config['policy'], pretrained=False) # every weight comes from model.pt
|
| 67 |
+
policy.load_state_dict(payload['state_dict'], strict=True)
|
| 68 |
+
return policy.to(device).eval(), config
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
class BaselinePolicy:
|
| 72 |
+
"""A loaded checkpoint for closed-loop inference (one request at a time)."""
|
| 73 |
+
|
| 74 |
+
def __init__(self, checkpoint, device='cuda:0', policy: str | None = None, robot: str | None = None):
|
| 75 |
+
import torch
|
| 76 |
+
self.torch = torch
|
| 77 |
+
self.device = torch.device(device)
|
| 78 |
+
self.model, self.config = load_checkpoint(checkpoint, device=self.device)
|
| 79 |
+
self.checkpoint = str(Path(checkpoint).resolve())
|
| 80 |
+
name, contract = self.config['policy']['policy'], self.config['contract']
|
| 81 |
+
if policy is not None and name != policy:
|
| 82 |
+
raise ValueError(f'{checkpoint} is a {name!r} checkpoint, not {policy!r}')
|
| 83 |
+
if robot is not None and contract['robot'] != robot:
|
| 84 |
+
raise ValueError(f"{checkpoint} was trained for {contract['robot']!r} ({contract['name']}), not {robot!r}")
|
| 85 |
+
self.name, self.contract = name, contract
|
| 86 |
+
self.cameras = tuple(contract['cameras'])
|
| 87 |
+
self.image_hw = tuple(self.config['image_hw'])
|
| 88 |
+
self.horizon = int(self.config['policy']['horizon'])
|
| 89 |
+
self.state_dim, self.action_dim = int(contract['state_dim']), int(contract['action_dim'])
|
| 90 |
+
self.sampling_steps = int(self.model.sampling_steps)
|
| 91 |
+
self.task_text = self.config.get('task_text')
|
| 92 |
+
|
| 93 |
+
def info(self) -> dict:
|
| 94 |
+
out = dict(model=self.name, checkpoint=self.checkpoint, step=self.config.get('step'),
|
| 95 |
+
contract=self.contract['name'], views=list(self.cameras), image_hw=list(self.image_hw),
|
| 96 |
+
action_chunk=self.horizon, action_dim=self.action_dim, state_dim=self.state_dim,
|
| 97 |
+
sampling_steps=self.sampling_steps, task_text=self.task_text,
|
| 98 |
+
training_data=self.config.get('dataset', {}).get('name'))
|
| 99 |
+
if self.name == 'flash':
|
| 100 |
+
out['flash'] = dict(self.model.flash, history_rows=self.model.history_span)
|
| 101 |
+
return out
|
| 102 |
+
|
| 103 |
+
def history(self, past_actions, history_valid):
|
| 104 |
+
"""FLASH: (history (1, n_history, Da), has_history (1,)) tensors from the executed rows before the query
|
| 105 |
+
(past_actions (N, Da) oldest first, row N-1 = frame t-1; history_valid (N,) a contiguous valid suffix)."""
|
| 106 |
+
from .flash import history_rows
|
| 107 |
+
torch, span = self.torch, self.model.history_span
|
| 108 |
+
rows = np.asarray(past_actions, np.float32)
|
| 109 |
+
valid = np.asarray(history_valid, np.float32).reshape(-1) > 0.5
|
| 110 |
+
if rows.ndim != 2 or rows.shape[1] != self.action_dim or len(valid) != len(rows):
|
| 111 |
+
raise ValueError(f'past_actions {rows.shape} / history_valid {valid.shape}: '
|
| 112 |
+
f'expected (N, {self.action_dim})')
|
| 113 |
+
if len(rows) < span: # fewer rows than the history reaches back: the missing older rows are invalid
|
| 114 |
+
pad = span - len(rows)
|
| 115 |
+
rows = np.concatenate([np.zeros((pad, rows.shape[1]), np.float32), rows])
|
| 116 |
+
valid = np.concatenate([np.zeros(pad, bool), valid])
|
| 117 |
+
hist, has = history_rows(rows[-span:], valid[-span:], self.model.stride, self.model.n_history)
|
| 118 |
+
return (torch.from_numpy(hist)[None].to(self.device),
|
| 119 |
+
torch.tensor([bool(has)], device=self.device))
|
| 120 |
+
|
| 121 |
+
def images_tensor(self, images: dict):
|
| 122 |
+
from .data import resize_frame
|
| 123 |
+
missing = [c for c in self.cameras if c not in images]
|
| 124 |
+
if missing:
|
| 125 |
+
raise KeyError(f'missing cameras {missing}; the checkpoint reads {list(self.cameras)}')
|
| 126 |
+
frames = np.stack([resize_frame(np.asarray(images[c]), self.image_hw) for c in self.cameras])
|
| 127 |
+
x = self.torch.from_numpy(frames).to(self.device).permute(0, 3, 1, 2).float().div_(255.)
|
| 128 |
+
return x.unsqueeze(0) # (1, n_cameras, 3, h, w)
|
| 129 |
+
|
| 130 |
+
def predict(self, images: dict, state, seed: int = 0, past_actions=None, history_valid=None):
|
| 131 |
+
"""(action (horizon, action_dim) float32 physical, normalized form (FLASH: the polynomial coefficients)).
|
| 132 |
+
FLASH also needs past_actions / history_valid (the interface's executed rows before the query)."""
|
| 133 |
+
torch = self.torch
|
| 134 |
+
state = np.asarray(state, np.float32).reshape(-1)
|
| 135 |
+
if state.shape != (self.state_dim,) or not np.isfinite(state).all():
|
| 136 |
+
raise ValueError(f'expected a finite state of {self.state_dim} values, got {state.shape}')
|
| 137 |
+
generator = torch.Generator(device=self.device)
|
| 138 |
+
generator.manual_seed(int(seed) % (2 ** 63 - 1))
|
| 139 |
+
extra = ()
|
| 140 |
+
if self.name == 'flash':
|
| 141 |
+
if past_actions is None or history_valid is None:
|
| 142 |
+
raise ValueError('FLASH needs past_actions and history_valid (the executed rows before the query)')
|
| 143 |
+
extra = self.history(past_actions, history_valid)
|
| 144 |
+
with torch.inference_mode():
|
| 145 |
+
action, raw = self.model.predict(self.images_tensor(images),
|
| 146 |
+
torch.from_numpy(state)[None].to(self.device), *extra,
|
| 147 |
+
generator=generator)
|
| 148 |
+
action = action[0].float().cpu().numpy()
|
| 149 |
+
if action.shape != (self.horizon, self.action_dim) or not np.isfinite(action).all():
|
| 150 |
+
raise ValueError(f'invalid prediction {action.shape}')
|
| 151 |
+
return np.ascontiguousarray(action, np.float32), raw[0].float().cpu().numpy().astype(np.float32)
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/baselines/train.py
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Train an FM-DiT, DP (DDPM-DiT), ACT or FLASH baseline on a task's LeRobot v2.1 expert dataset.
|
| 2 |
+
|
| 3 |
+
<baselines env>/bin/python -I evaluation/baselines/train.py --policy fm_dit --contract h2_sharpa \\
|
| 4 |
+
--dataset data/h2_pour_water/h2_pour_water_r1/lerobot --out <run dir> --steps 60000
|
| 5 |
+
|
| 6 |
+
The recipe is DextraVerse's shared IL recipe (configs/algorithm/il/train.yaml; runners/train_dex_flow_matching.py):
|
| 7 |
+
AdamW (lr 1e-4, betas 0.95/0.999, weight decay 1e-6), cosine decay (here after a 500-step linear warm-up, as
|
| 8 |
+
Diffusion Policy), whole-policy EMA (Diffusion Policy's warm-up schedule, max decay 0.9999) whose weights are the
|
| 9 |
+
saved checkpoint, batch 64, one observation frame and 16-row chunks. Added for the humanoid views: frames resized
|
| 10 |
+
to 168x224 (the 480x640 aspect). bf16 autocast on CUDA.
|
| 11 |
+
|
| 12 |
+
FLASH (--policy flash, evaluation/baselines/flash.py) keeps its upstream recipe (FLASH-Policy f47e490,
|
| 13 |
+
default_train.yaml + flash.yaml) where the defaults differ: seed 42 (upstream's; the protocol keeps each model's
|
| 14 |
+
official seed), ResNet18 from scratch with GroupNorm trained at the full learning rate (--backbone-weights none,
|
| 15 |
+
--backbone-lr-scale 1), diffusers' cosine schedule with a 500-step warm-up, Diffusion Policy's EMAModel decay as
|
| 16 |
+
upstream counts it, and its own items (FlashChunkDataset: the polynomial targets at the sampling stride, the executed
|
| 17 |
+
history). --flash KEY=VALUE changes a FLASH setting (flash.FLASH_DEFAULTS: stride, n_history, ...). Its augmentation
|
| 18 |
+
stream is seeded from the training seed (FlashChunkDataset aug_seed; logged as HB_AUG_SEED=<seed>).
|
| 19 |
+
|
| 20 |
+
Augmentation (2026-11-16): the Humanoid Benchmark spec v2 (docs/augmentation_v2.md, evaluation/augmentation), the
|
| 21 |
+
same for every model of the benchmark, is on by default (--augmentation hb-v2): per training item one hb_aug_v2 call
|
| 22 |
+
on the cached 168x224 frames of all cameras (colour shared, geometry / light patches / white balance per camera, one
|
| 23 |
+
of the 15 effects boosted 1.5 x) and the per-sample joint bias (+-2 deg) + noise (0.25 deg, clipped 3 sigma) on the
|
| 24 |
+
body joint angles of the raw state (G1 29, H2 31), before the policy's normalizers; actions untouched. The native
|
| 25 |
+
random shift is off (--shift 0; a shift with hb-v2 is refused). Before the first step a preflight reads training items
|
| 26 |
+
through the augmented and the plain path and checks the state width (G1 44 / H2 78, no velocity), that only the body
|
| 27 |
+
joints move and by at most 2.75 deg, that the action rows (and FLASH's history) are bit-identical, that the images
|
| 28 |
+
change, and that the offline-check items are deterministic; it is stored in run.json (--preflight-only stops after it).
|
| 29 |
+
--augmentation none is an explicit exception to the spec, recorded in run.json and the checkpoints. The ResNet18
|
| 30 |
+
starts from torchvision's ImageNet-1k weights (--backbone-weights IMAGENET1K_V1, downloaded once to the torch hub
|
| 31 |
+
cache) and is fine-tuned at 0.1 x the learning rate (--backbone-lr-scale, the DETR practice) with its BatchNorm
|
| 32 |
+
frozen; --backbone-weights none trains it from scratch (DextraVerse's GroupNorm encoder for FM-DiT and DP).
|
| 33 |
+
|
| 34 |
+
In-training MSE (owner 2026-11-22, HumanWAM hb_training/REPRODUCIBILITY.md section 6): --inloop-task <key> with
|
| 35 |
+
--inloop-code <HumanWAM hb_training/eval-action-mse> evaluates the saved (EMA) weights every HB_INLOOP_EVERY (250)
|
| 36 |
+
steps on the protocol's cached episodes (inloop.py) into <out>/logs/inloop-mse.jsonl. FLASH refuses to train without
|
| 37 |
+
it unless --allow-no-inloop (an exception to the protocol, recorded in run.json).
|
| 38 |
+
|
| 39 |
+
Writes into --out: run.json (arguments), train_log.jsonl, checkpoints/step-NNNNNN/ every --save-every steps and at the
|
| 40 |
+
end (runtime.py format), checkpoints/final -> the last one, and train_state.pt (optimizer, schedule, EMA, step) that
|
| 41 |
+
--resume continues from. Each save also measures the EMA policy offline on fixed frames (held-out episodes with
|
| 42 |
+
--val-episodes, else training frames): normalized-action MSE overall and per action group.
|
| 43 |
+
"""
|
| 44 |
+
from __future__ import annotations
|
| 45 |
+
|
| 46 |
+
import argparse
|
| 47 |
+
import copy
|
| 48 |
+
from datetime import datetime
|
| 49 |
+
import json
|
| 50 |
+
import math
|
| 51 |
+
import os
|
| 52 |
+
from pathlib import Path
|
| 53 |
+
import subprocess
|
| 54 |
+
import sys
|
| 55 |
+
import time
|
| 56 |
+
|
| 57 |
+
import numpy as np
|
| 58 |
+
|
| 59 |
+
HERE = Path(__file__).resolve().parent
|
| 60 |
+
REPO = HERE.parents[1]
|
| 61 |
+
if str(HERE.parent) not in sys.path:
|
| 62 |
+
sys.path.insert(0, str(HERE.parent))
|
| 63 |
+
|
| 64 |
+
from baselines.data import (CONTRACTS, ChunkDataset, FlashChunkDataset, LeRobotDataset, # noqa: E402
|
| 65 |
+
augmentation_module, frame_cache, load_lowdim, parse_episodes, statistics)
|
| 66 |
+
from baselines.flash import FLASH_DEFAULTS, FLASH_POLICY_FIELDS # noqa: E402
|
| 67 |
+
from baselines.policies import POLICIES, PolicyConfig, build_policy # noqa: E402
|
| 68 |
+
from baselines.runtime import save_checkpoint # noqa: E402
|
| 69 |
+
|
| 70 |
+
DEFAULTS = dict(lr=1e-4, betas=(0.95, 0.999), weight_decay=1e-6, warmup=500, ema=0.9999, batch_size=64,
|
| 71 |
+
backbone_weights='IMAGENET1K_V1', backbone_lr_scale=0.1, seed=0)
|
| 72 |
+
# FLASH-Policy f47e490 default_train.yaml / flash.yaml where they differ from DEFAULTS
|
| 73 |
+
FLASH_TRAINING = dict(seed=42, backbone_weights=None, backbone_lr_scale=1.0, schedule='diffusers_cosine',
|
| 74 |
+
ema_schedule='diffusion_policy_emamodel')
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def git_commit():
|
| 78 |
+
try:
|
| 79 |
+
return subprocess.run(['git', '-C', str(REPO), 'rev-parse', 'HEAD'], capture_output=True, text=True,
|
| 80 |
+
check=True).stdout.strip()
|
| 81 |
+
except Exception: # noqa: BLE001 - outside a checkout
|
| 82 |
+
return None
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def parse_hw(text):
|
| 86 |
+
h, w = text.lower().split('x')
|
| 87 |
+
return int(h), int(w)
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
def random_shift(images, pad):
|
| 91 |
+
"""DrQ random shift: replicate-pad by `pad` pixels and crop back at a random offset per sample.
|
| 92 |
+
images (B, N, 3, H, W) float."""
|
| 93 |
+
import torch
|
| 94 |
+
import torch.nn.functional as F
|
| 95 |
+
if pad <= 0:
|
| 96 |
+
return images
|
| 97 |
+
B, N, C, H, W = images.shape
|
| 98 |
+
x = F.pad(images.reshape(B * N, C, H, W), (pad,) * 4, mode='replicate')
|
| 99 |
+
oy = torch.randint(0, 2 * pad + 1, (B * N,), device=images.device)
|
| 100 |
+
ox = torch.randint(0, 2 * pad + 1, (B * N,), device=images.device)
|
| 101 |
+
rows = (oy[:, None] + torch.arange(H, device=images.device)[None])[:, None, :, None].expand(-1, C, -1, W + 2 * pad)
|
| 102 |
+
x = x.gather(2, rows)
|
| 103 |
+
cols = (ox[:, None] + torch.arange(W, device=images.device)[None])[:, None, None, :].expand(-1, C, H, -1)
|
| 104 |
+
return x.gather(3, cols).reshape(B, N, C, H, W)
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
class EMA:
|
| 108 |
+
"""Diffusion Policy's EMAModel schedule: decay = min(max_decay, 1 - (1 + step) ** -0.75), parameters averaged,
|
| 109 |
+
buffers (normalizers) copied. schedule 'diffusion_policy_emamodel' counts the steps as upstream's EMAModel does
|
| 110 |
+
(decay 0 for the first two updates, then 1 - (step - 1) ** -0.75; FLASH)."""
|
| 111 |
+
|
| 112 |
+
def __init__(self, model, max_decay, schedule='hb'):
|
| 113 |
+
self.model = copy.deepcopy(model).eval().requires_grad_(False)
|
| 114 |
+
self.max_decay = float(max_decay)
|
| 115 |
+
self.schedule = schedule
|
| 116 |
+
|
| 117 |
+
def decay(self, step):
|
| 118 |
+
if self.schedule == 'diffusion_policy_emamodel':
|
| 119 |
+
return 0.0 if step <= 2 else min(self.max_decay, max(0.0, 1 - (step - 1) ** -0.75))
|
| 120 |
+
return 0.0 if step <= 0 else min(self.max_decay, max(0.0, 1 - (1 + step) ** -0.75))
|
| 121 |
+
|
| 122 |
+
def update(self, model, step):
|
| 123 |
+
import torch
|
| 124 |
+
decay = self.decay(step)
|
| 125 |
+
with torch.no_grad():
|
| 126 |
+
for e, p in zip(self.model.parameters(), model.parameters()):
|
| 127 |
+
e.mul_(decay).add_(p.detach(), alpha=1 - decay)
|
| 128 |
+
for e, b in zip(self.model.buffers(), model.buffers()):
|
| 129 |
+
e.copy_(b)
|
| 130 |
+
return decay
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def preflight(train_set, eval_set, contract, samples=64, seed=0) -> dict:
|
| 134 |
+
"""Training items of `train_set` (augmented unless its body_dims is 0) against the same frames read without
|
| 135 |
+
augmentation, and two reads of the offline-check items; raises on any violation of docs/augmentation_v2.md.
|
| 136 |
+
Items are (images, state, *labels): every label (action rows; FLASH's polynomial rows and history) must be
|
| 137 |
+
bit-identical to the plain read."""
|
| 138 |
+
import torch
|
| 139 |
+
plain = train_set.plain() # the same frames without augmentation
|
| 140 |
+
picks = np.random.default_rng(seed).choice(len(plain), size=min(samples, len(plain)), replace=False)
|
| 141 |
+
nb, sd = train_set.body_dims, contract.state_dim
|
| 142 |
+
limit = augmentation_module().max_body_offset_rad() * (1 + 1e-5)
|
| 143 |
+
images_changed = body_moved = 0
|
| 144 |
+
worst = 0.0
|
| 145 |
+
for k in picks:
|
| 146 |
+
(im, st, *lab), (im0, st0, *lab0) = train_set[int(k)], plain[int(k)]
|
| 147 |
+
if st.shape != (sd,) or st0.shape != (sd,) or [x.shape for x in lab] != [x.shape for x in lab0]:
|
| 148 |
+
raise SystemExit(f'preflight: state {tuple(st.shape)} / labels {[tuple(x.shape) for x in lab]}, '
|
| 149 |
+
f'expected ({sd},)')
|
| 150 |
+
if not all(torch.equal(a, b) for a, b in zip(lab, lab0)):
|
| 151 |
+
raise SystemExit('preflight: an action label differs from the recorded data')
|
| 152 |
+
if not torch.equal(st[nb:], st0[nb:]):
|
| 153 |
+
raise SystemExit(f'preflight: a state value past the {nb} body joints changed')
|
| 154 |
+
delta = (st[:nb].double() - st0[:nb].double()).abs()
|
| 155 |
+
if nb:
|
| 156 |
+
worst = max(worst, float(delta.max()))
|
| 157 |
+
if worst > limit:
|
| 158 |
+
raise SystemExit(f'preflight: a body joint moved {math.degrees(worst):.3f} deg (> 2.75)')
|
| 159 |
+
body_moved += int((delta > 0).sum())
|
| 160 |
+
images_changed += int(not torch.equal(im, im0))
|
| 161 |
+
n = len(picks)
|
| 162 |
+
moved = body_moved / max(1, n * nb)
|
| 163 |
+
if nb and (images_changed < 0.9 * n or moved < 0.95):
|
| 164 |
+
raise SystemExit(f'preflight: augmentation inactive ({images_changed}/{n} images changed, {moved:.3f} of the '
|
| 165 |
+
'body joint values moved)')
|
| 166 |
+
if not nb and (images_changed or worst):
|
| 167 |
+
raise SystemExit('preflight: items changed with the augmentation off')
|
| 168 |
+
eval_picks = np.random.default_rng(seed + 1).choice(len(eval_set), size=min(8, len(eval_set)), replace=False)
|
| 169 |
+
for k in eval_picks:
|
| 170 |
+
a, b = eval_set[int(k)], eval_set[int(k)]
|
| 171 |
+
if eval_set.body_dims or not all(torch.equal(x, y) for x, y in zip(a, b)):
|
| 172 |
+
raise SystemExit('preflight: the offline-check items are not deterministic')
|
| 173 |
+
return dict(samples=n, state_dim=sd, body_dims=nb, images_changed=images_changed,
|
| 174 |
+
body_values_moved=round(moved, 4),
|
| 175 |
+
max_body_offset_deg=round(math.degrees(worst), 4), actions_bit_identical=True,
|
| 176 |
+
non_body_state_bit_identical=True, eval_items_deterministic=len(eval_picks))
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def offline_eval(policy, dataset, samples, device, groups):
|
| 180 |
+
"""Normalized-action MSE of policy.predict on fixed dataset items (seeded), overall and per action group. FLASH:
|
| 181 |
+
its 30 Hz output rows against the recorded rows from the anchor (rows past the episode's end left out)."""
|
| 182 |
+
import torch
|
| 183 |
+
policy.eval()
|
| 184 |
+
errs, masks = [], []
|
| 185 |
+
generator = torch.Generator(device=device)
|
| 186 |
+
generator.manual_seed(0)
|
| 187 |
+
for start in range(0, len(samples), 32):
|
| 188 |
+
batch = [dataset[int(k)] for k in samples[start:start + 32]]
|
| 189 |
+
images = torch.stack([b[0] for b in batch]).to(device).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 190 |
+
state = torch.stack([b[1] for b in batch]).to(device)
|
| 191 |
+
if policy.name == 'flash':
|
| 192 |
+
hist = torch.stack([b[3] for b in batch]).to(device)
|
| 193 |
+
has = torch.stack([b[4] for b in batch]).to(device)
|
| 194 |
+
target = torch.stack([b[5] for b in batch]).to(device)
|
| 195 |
+
valid = torch.stack([b[6] for b in batch]).numpy()
|
| 196 |
+
pred, _ = policy.predict(images, state, hist, has, generator=generator)
|
| 197 |
+
raw = policy.action_norm.normalize(pred.float())
|
| 198 |
+
else:
|
| 199 |
+
target = torch.stack([b[2] for b in batch]).to(device)
|
| 200 |
+
valid = np.ones(target.shape[:2], bool)
|
| 201 |
+
_, raw = policy.predict(images, state, generator=generator)
|
| 202 |
+
errs.append((raw.float() - policy.action_norm.normalize(target)).pow(2).cpu().numpy())
|
| 203 |
+
masks.append(valid)
|
| 204 |
+
err, mask = np.concatenate(errs), np.concatenate(masks) # (S, horizon, action_dim), (S, horizon)
|
| 205 |
+
rows = err[mask]
|
| 206 |
+
out = dict(mse=float(rows.mean()), mse_row0=float(err[:, 0][mask[:, 0]].mean()))
|
| 207 |
+
offset = 0
|
| 208 |
+
for column, start, end in groups:
|
| 209 |
+
out[f'mse_{column.split(".")[-1]}'] = float(rows[:, offset:offset + end - start].mean())
|
| 210 |
+
offset += end - start
|
| 211 |
+
return out
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
def main():
|
| 215 |
+
p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 216 |
+
p.add_argument('--policy', choices=sorted(POLICIES), required=True)
|
| 217 |
+
p.add_argument('--dataset', type=Path, required=True, help='LeRobot v2.1 dataset directory')
|
| 218 |
+
p.add_argument('--contract', choices=sorted(CONTRACTS), required=True)
|
| 219 |
+
p.add_argument('--cameras', help='comma-separated cameras (default: the contract\'s)')
|
| 220 |
+
p.add_argument('--episodes', help="episodes to use, e.g. '0:100' (default: all)")
|
| 221 |
+
p.add_argument('--val-episodes', type=int, default=0, help='hold out the last N of them for the offline check')
|
| 222 |
+
p.add_argument('--out', type=Path, required=True)
|
| 223 |
+
p.add_argument('--steps', type=int, default=60000)
|
| 224 |
+
p.add_argument('--batch-size', type=int, default=DEFAULTS['batch_size'])
|
| 225 |
+
p.add_argument('--lr', type=float, default=DEFAULTS['lr'])
|
| 226 |
+
p.add_argument('--weight-decay', type=float, default=DEFAULTS['weight_decay'])
|
| 227 |
+
p.add_argument('--warmup', type=int, default=DEFAULTS['warmup'])
|
| 228 |
+
p.add_argument('--ema', type=float, default=DEFAULTS['ema'], help='max EMA decay; 0 saves the raw weights')
|
| 229 |
+
p.add_argument('--horizon', type=int, default=16)
|
| 230 |
+
p.add_argument('--image-size', default='168x224', help='HxW of the policy images')
|
| 231 |
+
p.add_argument('--augmentation', choices=['hb-v2', 'none'], default='hb-v2',
|
| 232 |
+
help='training augmentation: the benchmark spec v2 (default; docs/augmentation_v2.md) or none '
|
| 233 |
+
'(an explicit exception, recorded in run.json)')
|
| 234 |
+
p.add_argument('--shift', type=int, default=0,
|
| 235 |
+
help='native random-shift augmentation in pixels (default 0: off; only with --augmentation none)')
|
| 236 |
+
p.add_argument('--preflight-only', action='store_true', help='run the data preflight, write run.json and stop')
|
| 237 |
+
p.add_argument('--backbone-weights', default=None,
|
| 238 |
+
help="torchvision weights the ResNet18 starts from (default IMAGENET1K_V1; FLASH: none); "
|
| 239 |
+
"'none': from scratch")
|
| 240 |
+
p.add_argument('--backbone-lr-scale', type=float, default=None,
|
| 241 |
+
help='learning rate of the image backbone relative to --lr (default 0.1; FLASH: 1)')
|
| 242 |
+
p.add_argument('--model', action='append', default=[], metavar='KEY=VALUE',
|
| 243 |
+
help='override a PolicyConfig field (JSON value), e.g. num_layers=6; repeatable')
|
| 244 |
+
p.add_argument('--flash', action='append', default=[], metavar='KEY=VALUE',
|
| 245 |
+
help='FLASH setting (JSON value), e.g. stride=2; repeatable (flash.FLASH_DEFAULTS)')
|
| 246 |
+
p.add_argument('--cache-dir', type=Path, default=Path('~/hb_models/baselines/cache'))
|
| 247 |
+
p.add_argument('--workers', type=int, default=32,
|
| 248 |
+
help='DataLoader workers (and frame-cache decoders); the v2 augmentation costs ~17 ms of one CPU '
|
| 249 |
+
'core per item, so 8 workers feed only ~6 steps/s at batch 64')
|
| 250 |
+
p.add_argument('--prefetch', type=int, default=2, help='batches prefetched per worker')
|
| 251 |
+
p.add_argument('--save-every', type=int, default=10000)
|
| 252 |
+
p.add_argument('--log-every', type=int, default=100)
|
| 253 |
+
p.add_argument('--eval-samples', type=int, default=256)
|
| 254 |
+
p.add_argument('--seed', type=int, default=None, help='training seed (default 0; FLASH: 42, upstream\'s)')
|
| 255 |
+
p.add_argument('--device', default='cuda:0')
|
| 256 |
+
p.add_argument('--no-amp', action='store_true')
|
| 257 |
+
p.add_argument('--resume', action='store_true', help='continue from <out>/train_state.pt')
|
| 258 |
+
p.add_argument('--inloop-task', help='in-training MSE: the task key of HumanWAM eval-action-mse hb_eval_common')
|
| 259 |
+
p.add_argument('--inloop-code', type=Path, help='in-training MSE: HumanWAM hb_training/eval-action-mse')
|
| 260 |
+
p.add_argument('--allow-no-inloop', action='store_true',
|
| 261 |
+
help='FLASH: train without the in-training MSE (an exception to the protocol, recorded)')
|
| 262 |
+
args = p.parse_args()
|
| 263 |
+
|
| 264 |
+
flash = args.policy == 'flash'
|
| 265 |
+
defaults = dict(DEFAULTS, **(FLASH_TRAINING if flash else {}))
|
| 266 |
+
seed = defaults['seed'] if args.seed is None else args.seed
|
| 267 |
+
backbone_weights = defaults['backbone_weights'] if args.backbone_weights is None else args.backbone_weights
|
| 268 |
+
backbone_lr_scale = defaults['backbone_lr_scale'] if args.backbone_lr_scale is None else args.backbone_lr_scale
|
| 269 |
+
if flash and not args.inloop_task and not args.allow_no_inloop:
|
| 270 |
+
raise SystemExit('FLASH: the protocol requires the in-training MSE (--inloop-task, --inloop-code), or '
|
| 271 |
+
'--allow-no-inloop as a recorded exception')
|
| 272 |
+
if bool(args.inloop_task) != bool(args.inloop_code):
|
| 273 |
+
raise SystemExit('--inloop-task and --inloop-code go together')
|
| 274 |
+
|
| 275 |
+
out = args.out.expanduser().resolve()
|
| 276 |
+
out.mkdir(parents=True, exist_ok=True)
|
| 277 |
+
contract = CONTRACTS[args.contract]
|
| 278 |
+
aug = augmentation_module()
|
| 279 |
+
aug.check_state_layout(contract.robot, contract.state_dim, [column for column, _, _ in contract.state])
|
| 280 |
+
hb_aug = args.augmentation == 'hb-v2'
|
| 281 |
+
if hb_aug and args.shift:
|
| 282 |
+
raise SystemExit('--shift is the native random shift, which the augmentation spec v2 turns off '
|
| 283 |
+
'(docs/augmentation_v2.md); use it only with --augmentation none')
|
| 284 |
+
if contract.body_dims != aug.BODY_JOINTS[contract.robot]:
|
| 285 |
+
raise SystemExit(f'contract {contract.name}: body_dims {contract.body_dims}, the spec perturbs '
|
| 286 |
+
f'{aug.BODY_JOINTS[contract.robot]} body joints')
|
| 287 |
+
augmentation = (aug.describe(contract.robot, contract.body_dims) if hb_aug else
|
| 288 |
+
dict(version=None, exception='--augmentation none (not the benchmark default)'))
|
| 289 |
+
cameras = tuple(args.cameras.split(',')) if args.cameras else contract.cameras
|
| 290 |
+
hw = parse_hw(args.image_size)
|
| 291 |
+
dataset = LeRobotDataset(args.dataset)
|
| 292 |
+
dataset.check_contract(contract, cameras)
|
| 293 |
+
episodes = parse_episodes(args.episodes, dataset.lengths)
|
| 294 |
+
if not 0 <= args.val_episodes < len(episodes):
|
| 295 |
+
raise SystemExit('--val-episodes must leave training episodes')
|
| 296 |
+
lowdim = load_lowdim(dataset, contract, episodes)
|
| 297 |
+
if len(lowdim['tasks']) != 1:
|
| 298 |
+
raise SystemExit(f"the baselines take no language: one task per dataset, found {lowdim['tasks']}")
|
| 299 |
+
n_train = len(episodes) - args.val_episodes
|
| 300 |
+
train_pos, val_pos = list(range(n_train)), list(range(n_train, len(episodes)))
|
| 301 |
+
train_rows = np.concatenate([np.arange(s, s + n) for s, n in
|
| 302 |
+
zip(lowdim['starts'][:n_train], lowdim['lengths'][:n_train])])
|
| 303 |
+
stats = statistics(lowdim, train_rows)
|
| 304 |
+
frames = frame_cache(dataset, lowdim, cameras, hw, args.cache_dir, workers=args.workers)
|
| 305 |
+
|
| 306 |
+
overrides = {k: json.loads(v) for k, v in (item.split('=', 1) for item in args.model)}
|
| 307 |
+
base = dict(policy=args.policy, n_cameras=len(cameras), state_dim=contract.state_dim,
|
| 308 |
+
action_dim=contract.action_dim, horizon=args.horizon)
|
| 309 |
+
if flash:
|
| 310 |
+
settings = dict(FLASH_DEFAULTS, **{k: json.loads(v) for k, v in (i.split('=', 1) for i in args.flash)})
|
| 311 |
+
if args.horizon != 16 and args.horizon != settings['rows']:
|
| 312 |
+
raise SystemExit('FLASH: the output rows are --flash rows=N, not --horizon')
|
| 313 |
+
base.update(FLASH_POLICY_FIELDS, horizon=int(settings['rows']), extra=dict(flash=settings))
|
| 314 |
+
elif args.flash:
|
| 315 |
+
raise SystemExit('--flash applies to --policy flash only')
|
| 316 |
+
weights = None if str(backbone_weights).lower() in ('none', '') else backbone_weights
|
| 317 |
+
pcfg = PolicyConfig.from_dict({**base, 'backbone_weights': weights, **overrides})
|
| 318 |
+
aug_seed = seed if (flash and hb_aug) else None
|
| 319 |
+
if flash:
|
| 320 |
+
from baselines.flash import FlashPolicy, flash_settings
|
| 321 |
+
fs = flash_settings(pcfg)
|
| 322 |
+
H_ext = fs['poly_prefix'] + fs['n_action'] + fs['poly_suffix'] + 2 * fs['fit_pad']
|
| 323 |
+
offsets = (np.arange(H_ext) - (fs['fit_pad'] + fs['poly_prefix'])) * fs['stride']
|
| 324 |
+
kw = dict(offsets=offsets, stride=fs['stride'], n_history=fs['n_history'], rows=fs['rows'])
|
| 325 |
+
train_set = FlashChunkDataset(lowdim, frames, cameras, hw, train_pos,
|
| 326 |
+
body_dims=contract.body_dims if hb_aug else 0, aug_seed=aug_seed, **kw)
|
| 327 |
+
eval_set = FlashChunkDataset(lowdim, frames, cameras, hw, val_pos or train_pos, with_dense=True, **kw)
|
| 328 |
+
assert FlashPolicy.name == 'flash'
|
| 329 |
+
print(f'HB_AUG_SEED={aug_seed}', file=sys.stderr, flush=True)
|
| 330 |
+
else:
|
| 331 |
+
train_set = ChunkDataset(lowdim, frames, cameras, hw, args.horizon, train_pos,
|
| 332 |
+
body_dims=contract.body_dims if hb_aug else 0)
|
| 333 |
+
eval_set = ChunkDataset(lowdim, frames, cameras, hw, args.horizon, val_pos or train_pos) # never augmented
|
| 334 |
+
checks = preflight(train_set, eval_set, contract, seed=seed)
|
| 335 |
+
print(json.dumps(dict(event='preflight', augmentation=augmentation.get('version'), **checks)), flush=True)
|
| 336 |
+
layout = dict(nodes=1, gpus=1, per_gpu_batch=args.batch_size, global_batch=args.batch_size,
|
| 337 |
+
gradient_accumulation=1, num_workers=args.workers, prefetch=args.prefetch)
|
| 338 |
+
if args.preflight_only:
|
| 339 |
+
(out / 'run.json').write_text(json.dumps(dict(
|
| 340 |
+
argv=sys.argv, started=datetime.now().isoformat(timespec='seconds'), host=os.uname().nodename,
|
| 341 |
+
contract=contract.to_dict(cameras), image_hw=list(hw), augmentation=augmentation, preflight=checks,
|
| 342 |
+
shift_px=args.shift, seed=seed, aug_seed=aug_seed, layout=layout, policy=pcfg.to_dict(),
|
| 343 |
+
code_commit=git_commit()), indent=1, default=str))
|
| 344 |
+
return
|
| 345 |
+
|
| 346 |
+
import torch
|
| 347 |
+
torch.manual_seed(seed)
|
| 348 |
+
np.random.seed(seed)
|
| 349 |
+
device = torch.device(args.device)
|
| 350 |
+
policy = build_policy(pcfg)
|
| 351 |
+
policy.fit_normalizers(stats)
|
| 352 |
+
policy.to(device)
|
| 353 |
+
ema = EMA(policy, args.ema, defaults.get('ema_schedule', 'hb')) if args.ema > 0 else None
|
| 354 |
+
named = list(policy.named_parameters())
|
| 355 |
+
backbone = [p for n, p in named if n.startswith(policy.backbone_prefix)]
|
| 356 |
+
rest = [p for n, p in named if not n.startswith(policy.backbone_prefix)]
|
| 357 |
+
if not backbone:
|
| 358 |
+
raise SystemExit(f'no backbone parameters under {policy.backbone_prefix!r}')
|
| 359 |
+
optimizer = torch.optim.AdamW([dict(params=rest), dict(params=backbone, lr=args.lr * backbone_lr_scale)],
|
| 360 |
+
lr=args.lr, betas=DEFAULTS['betas'], weight_decay=args.weight_decay)
|
| 361 |
+
schedule = defaults.get('schedule', 'hb')
|
| 362 |
+
|
| 363 |
+
def lr_lambda(step):
|
| 364 |
+
if schedule == 'diffusers_cosine': # diffusers get_cosine_schedule_with_warmup (FLASH's lr_scheduler)
|
| 365 |
+
if step < args.warmup:
|
| 366 |
+
return step / max(1, args.warmup)
|
| 367 |
+
progress = (step - args.warmup) / max(1, args.steps - args.warmup)
|
| 368 |
+
return max(0.0, 0.5 * (1.0 + math.cos(math.pi * progress)))
|
| 369 |
+
if step < args.warmup:
|
| 370 |
+
return (step + 1) / max(1, args.warmup)
|
| 371 |
+
return 0.5 * (1 + math.cos(math.pi * min(1.0, (step - args.warmup) / max(1, args.steps - args.warmup))))
|
| 372 |
+
|
| 373 |
+
scheduler = torch.optim.lr_scheduler.LambdaLR(optimizer, lr_lambda)
|
| 374 |
+
step = 0
|
| 375 |
+
state_path = out / 'train_state.pt'
|
| 376 |
+
if args.resume and state_path.exists():
|
| 377 |
+
saved = torch.load(state_path, map_location='cpu', weights_only=False)
|
| 378 |
+
if saved['config']['policy'] != pcfg.to_dict():
|
| 379 |
+
raise SystemExit('train_state.pt was written for another policy configuration')
|
| 380 |
+
before = saved['config'].get('training', {})
|
| 381 |
+
if (before.get('augmentation') or {}).get('version') != augmentation.get('version') \
|
| 382 |
+
or before.get('shift_px') != args.shift:
|
| 383 |
+
raise SystemExit('train_state.pt was trained with another augmentation (version / --shift); resuming '
|
| 384 |
+
'would change it mid-run')
|
| 385 |
+
policy.load_state_dict(saved['policy'])
|
| 386 |
+
optimizer.load_state_dict(saved['optimizer'])
|
| 387 |
+
scheduler.load_state_dict(saved['scheduler'])
|
| 388 |
+
if ema is not None:
|
| 389 |
+
ema.model.load_state_dict(saved['ema'])
|
| 390 |
+
step = int(saved['step'])
|
| 391 |
+
print(json.dumps(dict(event='resumed', step=step)), flush=True)
|
| 392 |
+
|
| 393 |
+
inloop = None
|
| 394 |
+
if args.inloop_task:
|
| 395 |
+
from baselines import inloop as inloop_mod
|
| 396 |
+
inloop = inloop_mod.install(args.inloop_code, args.inloop_task, out,
|
| 397 |
+
lambda: ema.model if ema is not None else policy, contract, cameras, hw, lowdim,
|
| 398 |
+
args.policy)
|
| 399 |
+
else:
|
| 400 |
+
print(f'HB_INLOOP {args.policy} disabled: no --inloop-task', flush=True)
|
| 401 |
+
|
| 402 |
+
samples = np.random.default_rng(1).choice(len(eval_set), size=min(args.eval_samples, len(eval_set)), replace=False)
|
| 403 |
+
training = dict(steps=args.steps, batch_size=args.batch_size, lr=args.lr, betas=list(DEFAULTS['betas']),
|
| 404 |
+
weight_decay=args.weight_decay, warmup=args.warmup,
|
| 405 |
+
schedule='linear warm-up + cosine' if schedule == 'hb' else schedule,
|
| 406 |
+
backbone_lr_scale=backbone_lr_scale,
|
| 407 |
+
ema=args.ema, shift_px=args.shift, amp=not args.no_amp, seed=seed,
|
| 408 |
+
augmentation=augmentation, preflight=checks)
|
| 409 |
+
if flash:
|
| 410 |
+
training.update(aug_seed=aug_seed, ema_schedule=defaults['ema_schedule'], layout=layout,
|
| 411 |
+
upstream='NTUMARS/FLASH-Policy@f47e490',
|
| 412 |
+
inloop=dict(task=args.inloop_task, code=str(args.inloop_code) if args.inloop_code else None,
|
| 413 |
+
every=int(os.environ.get('HB_INLOOP_EVERY', '250')) if args.inloop_task else 0,
|
| 414 |
+
exception=None if args.inloop_task else '--allow-no-inloop'))
|
| 415 |
+
config = dict(
|
| 416 |
+
policy=pcfg.to_dict(), contract=contract.to_dict(cameras), image_hw=list(hw), task_text=lowdim['tasks'][0],
|
| 417 |
+
dataset=dict(name=dataset.name,
|
| 418 |
+
root=str(dataset.root), robot_type=dataset.info.get('robot_type'), fps=dataset.fps,
|
| 419 |
+
episodes=episodes, train_episodes=episodes[:n_train], val_episodes=episodes[n_train:],
|
| 420 |
+
train_frames=int(len(train_set)),
|
| 421 |
+
git_commit=dataset.info.get('script_config', {}).get('git_commit')),
|
| 422 |
+
training=training, stats=stats, code_commit=git_commit())
|
| 423 |
+
run = dict(argv=sys.argv, started=datetime.now().isoformat(timespec='seconds'), host=os.uname().nodename,
|
| 424 |
+
torch=torch.__version__, **config)
|
| 425 |
+
(out / 'run.json').write_text(json.dumps(run, indent=1, default=str))
|
| 426 |
+
loader = torch.utils.data.DataLoader(train_set, batch_size=args.batch_size, shuffle=True, drop_last=True,
|
| 427 |
+
num_workers=args.workers, pin_memory=True, persistent_workers=True,
|
| 428 |
+
prefetch_factor=args.prefetch)
|
| 429 |
+
params = sum(x.numel() for x in policy.parameters())
|
| 430 |
+
print(json.dumps(dict(event='start', policy=args.policy, params=params,
|
| 431 |
+
backbone_params=sum(x.numel() for x in backbone), backbone_weights=pcfg.backbone_weights,
|
| 432 |
+
backbone_norm=pcfg.backbone_norm, train_frames=len(train_set), steps=args.steps,
|
| 433 |
+
from_step=step, cameras=list(cameras), hw=list(hw), seed=seed)), flush=True)
|
| 434 |
+
log = (out / 'train_log.jsonl').open('a')
|
| 435 |
+
amp = (not args.no_amp) and device.type == 'cuda'
|
| 436 |
+
|
| 437 |
+
def save(step):
|
| 438 |
+
folder = out / f'checkpoints/step-{step:06d}'
|
| 439 |
+
model = ema.model if ema is not None else policy
|
| 440 |
+
metrics = offline_eval(model, eval_set, samples, device, contract.action)
|
| 441 |
+
save_checkpoint(folder, model, dict(config, step=step, weights='ema' if ema is not None else 'raw',
|
| 442 |
+
offline_eval=dict(metrics, samples=len(samples),
|
| 443 |
+
frames='val' if val_pos else 'train')))
|
| 444 |
+
final = out / 'checkpoints/final'
|
| 445 |
+
if final.is_symlink() or final.exists():
|
| 446 |
+
final.unlink()
|
| 447 |
+
final.symlink_to(folder.name)
|
| 448 |
+
torch.save(dict(policy=policy.state_dict(), optimizer=optimizer.state_dict(), scheduler=scheduler.state_dict(),
|
| 449 |
+
ema=None if ema is None else ema.model.state_dict(), step=step, config=config),
|
| 450 |
+
out / 'train_state.pt.tmp')
|
| 451 |
+
(out / 'train_state.pt.tmp').replace(state_path)
|
| 452 |
+
record = dict(event='save', step=step, checkpoint=str(folder), **metrics)
|
| 453 |
+
print(json.dumps(record), flush=True)
|
| 454 |
+
log.write(json.dumps(record) + '\n')
|
| 455 |
+
log.flush()
|
| 456 |
+
policy.train()
|
| 457 |
+
|
| 458 |
+
policy.train()
|
| 459 |
+
t0, data_s, acc = time.monotonic(), 0.0, {}
|
| 460 |
+
while step < args.steps:
|
| 461 |
+
tick = time.monotonic()
|
| 462 |
+
for images, *labels in loader:
|
| 463 |
+
data_s += time.monotonic() - tick
|
| 464 |
+
images = images.to(device, non_blocking=True).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 465 |
+
images = random_shift(images, args.shift)
|
| 466 |
+
labels = [x.to(device, non_blocking=True) for x in labels]
|
| 467 |
+
with torch.autocast(device.type, dtype=torch.bfloat16, enabled=amp):
|
| 468 |
+
loss, metrics = policy.compute_loss(images, *labels)
|
| 469 |
+
optimizer.zero_grad(set_to_none=True)
|
| 470 |
+
loss.backward()
|
| 471 |
+
optimizer.step()
|
| 472 |
+
scheduler.step()
|
| 473 |
+
step += 1
|
| 474 |
+
decay = ema.update(policy, step) if ema is not None else 0.0
|
| 475 |
+
for k, v in dict(metrics, loss=float(loss.detach())).items():
|
| 476 |
+
acc[k] = acc.get(k, 0.0) + v
|
| 477 |
+
if step % args.log_every == 0:
|
| 478 |
+
elapsed = time.monotonic() - t0
|
| 479 |
+
record = dict(event='train', step=step, lr=scheduler.get_last_lr()[0],
|
| 480 |
+
backbone_lr=scheduler.get_last_lr()[1], ema_decay=round(decay, 6),
|
| 481 |
+
it_s=round(args.log_every / elapsed, 2), data_frac=round(data_s / elapsed, 3),
|
| 482 |
+
**{k: v / args.log_every for k, v in acc.items()})
|
| 483 |
+
print(json.dumps(record), flush=True)
|
| 484 |
+
log.write(json.dumps(record) + '\n')
|
| 485 |
+
log.flush()
|
| 486 |
+
t0, data_s, acc = time.monotonic(), 0.0, {}
|
| 487 |
+
if inloop is not None and step % inloop.every == 0:
|
| 488 |
+
inloop.evaluate(step, ema.model if ema is not None else policy)
|
| 489 |
+
policy.train()
|
| 490 |
+
if step % args.save_every == 0 or step == args.steps:
|
| 491 |
+
save(step)
|
| 492 |
+
if step >= args.steps:
|
| 493 |
+
break
|
| 494 |
+
tick = time.monotonic()
|
| 495 |
+
log.close()
|
| 496 |
+
print(json.dumps(dict(event='done', step=step, checkpoint=str(out / 'checkpoints/final'))), flush=True)
|
| 497 |
+
|
| 498 |
+
|
| 499 |
+
if __name__ == '__main__':
|
| 500 |
+
main()
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_8c3b88d2/evaluation/policy/ACT/model.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""ACT (action chunking with transformers) baseline of the Humanoid Benchmark (evaluation/baselines, ported from
|
| 2 |
+
DextraVerse's IL core): one checkpoint of evaluation/baselines/train.py with the g1_sonic_dfx6 contract, served by
|
| 3 |
+
the shared adapter evaluation/baselines/adapters.py (current ego_view + chest frames and state44 -> 16 rows of
|
| 4 |
+
action76).
|
| 5 |
+
"""
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
import sys
|
| 8 |
+
|
| 9 |
+
sys.path.insert(0, str(Path(__file__).resolve().parents[2])) # evaluation/: the baselines package
|
| 10 |
+
from baselines.adapters import make_model # noqa: E402
|
| 11 |
+
|
| 12 |
+
Model = make_model('act')
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/code_commit.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
8c3b88d2a04b515650d446c391a067cde31407f6
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/inloop-mse.jsonl
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"step": 250, "utc": "2026-11-24T11:07:56Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 11.7, "infer_s_per_query": 0.0125, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0034760517506248582, "mae_raw": 0.0394155722315645, "nmse": 0.2572267320006374, "groups": {"motion_token": {"mse_raw": 0.003960040557938956, "nmse": 0.2966343832686746}, "hands": {"mse_raw": 0.0008947781116163366, "nmse": 0.04705259190443925}}, "nmse_by_step": [0.25173118608216755, 0.24356114352097427, 0.23948987165682814, 0.23426888786003186, 0.2331182181485018, 0.23165508170288346, 0.2345380448137341, 0.23983787325951714, 0.2427663236738698, 0.24794377818340044, 0.2570662644797153, 0.2664705449072941, 0.27948853569962234, 0.2902998945230422, 0.3048293459422623, 0.3211466061089578], "nmse_per_episode": {"0": 0.22691009648980967, "60": 0.25961418068002623, "120": 0.25919244764277144, "180": 0.23914333269351684, "240": 0.2551681954874635, "301": 0.314130400338578, "361": 0.2687990114812867, "421": 0.2632367457964612, "481": 0.2265367621291202, "541": 0.26132469342375025}, "nmse_episode_sem": 0.007906623298278228}
|
| 2 |
+
{"step": 500, "utc": "2026-11-24T11:09:53Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 1.7, "infer_s_per_query": 0.0043, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0024162213758881263, "mae_raw": 0.032720909252568105, "nmse": 0.17857794383724396, "groups": {"motion_token": {"mse_raw": 0.002718569826954691, "nmse": 0.20446199649303937}, "hands": {"mse_raw": 0.0008036963035331156, "nmse": 0.04052966300633519}}, "nmse_by_step": [0.21782370734173503, 0.19352899820449082, 0.17606065359363696, 0.1591464119323069, 0.14733818381408062, 0.13980744076594676, 0.1382034061062257, 0.13866282641845915, 0.14055439164299033, 0.14748653837325545, 0.15947958642564952, 0.17442828436702063, 0.19576369474881605, 0.21699199064048624, 0.24254143292948008, 0.27132488973545704], "nmse_per_episode": {"0": 0.15956346789612888, "60": 0.17161780702440196, "120": 0.1677058464021876, "180": 0.1712540402015834, "240": 0.1772580172794238, "301": 0.20487347044779577, "361": 0.1906491238125718, "421": 0.19608524427735238, "481": 0.1635363640672477, "541": 0.18414773635583562}, "nmse_episode_sem": 0.004695672170742499}
|
| 3 |
+
{"step": 750, "utc": "2026-11-24T11:12:07Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 1.7, "infer_s_per_query": 0.0042, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0018283566989229505, "mae_raw": 0.028590311699226646, "nmse": 0.1365868801828735, "groups": {"motion_token": {"mse_raw": 0.0020380411034377137, "nmse": 0.15589108594589773}, "hands": {"mse_raw": 0.0007100398748442127, "nmse": 0.033631116113410936}}, "nmse_by_step": [0.1552546953613763, 0.13588979083933544, 0.12383783543054479, 0.11354689104324753, 0.10775839905804031, 0.10551337496226709, 0.10805845626396508, 0.11049358321606784, 0.11369170547018624, 0.12001736021722062, 0.12858172884524527, 0.13905581276429374, 0.15485909233250056, 0.17024338598757568, 0.18897991142262194, 0.2117761595700224], "nmse_per_episode": {"0": 0.12376290410944045, "60": 0.12667377370438151, "120": 0.1297501656407444, "180": 0.1298615184767416, "240": 0.13211742923836056, "301": 0.16102865586799447, "361": 0.14409820087841327, "421": 0.16127526776358184, "481": 0.13087180841481472, "541": 0.12776970067176346}, "nmse_episode_sem": 0.004407358721965408}
|
| 4 |
+
{"step": 1000, "utc": "2026-11-24T11:17:05Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 2.7, "infer_s_per_query": 0.0068, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.001354008590319298, "mae_raw": 0.024750328908286177, "nmse": 0.1019870678530553, "groups": {"motion_token": {"mse_raw": 0.001492357545626567, "nmse": 0.11572785898802679}, "hands": {"mse_raw": 0.0006161474953471976, "nmse": 0.02870284846654057}}, "nmse_by_step": [0.09461990017424808, 0.08697135802301244, 0.08352633769526233, 0.08102758854834823, 0.08217768179018986, 0.08434565317324615, 0.09039202098523288, 0.09470148131926416, 0.09785577274838038, 0.10158819327029343, 0.10568824592861971, 0.11033126085705136, 0.11627606825258943, 0.12463465291771265, 0.13358780188869945, 0.14607893354811752], "nmse_per_episode": {"0": 0.08796676233520193, "60": 0.0885250871012706, "120": 0.09446638767425494, "180": 0.1039100208721148, "240": 0.09971630861726129, "301": 0.12178110722178474, "361": 0.10192314917479874, "421": 0.13285102227822074, "481": 0.09786308947986304, "541": 0.09148723649846327}, "nmse_episode_sem": 0.004612562147258099}
|
| 5 |
+
{"step": 1250, "utc": "2026-11-24T11:19:04Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 3.6, "infer_s_per_query": 0.0091, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0011904681605476937, "mae_raw": 0.02307674572189133, "nmse": 0.09017665860585938, "groups": {"motion_token": {"mse_raw": 0.0013117687910267001, "nmse": 0.10232836068389387}, "hands": {"mse_raw": 0.0005435314646596607, "nmse": 0.02536758085634218}}, "nmse_by_step": [0.07593841889683495, 0.07281667168563075, 0.07130043345632785, 0.07026827928142017, 0.07254432067138876, 0.0750120873946053, 0.0811808816878566, 0.08566037930386694, 0.08913762726714676, 0.09255550333155425, 0.09657861990918164, 0.10031887821199012, 0.10447201676106223, 0.111829054377615, 0.11824623479682728, 0.12696915409307782], "nmse_per_episode": {"0": 0.07460493539443065, "60": 0.07517107731853508, "120": 0.08355772146455405, "180": 0.09587511232566168, "240": 0.08867253529234437, "301": 0.10787595187550447, "361": 0.0876035957568805, "421": 0.1249495476982437, "481": 0.08455089031930665, "541": 0.07923957995107767}, "nmse_episode_sem": 0.00497380734250129}
|
| 6 |
+
{"step": 1500, "utc": "2026-11-24T11:24:12Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 1.4, "infer_s_per_query": 0.0034, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0011118090630112287, "mae_raw": 0.022167931556098558, "nmse": 0.08473193154616826, "groups": {"motion_token": {"mse_raw": 0.001229399947676458, "nmse": 0.0963542745356399}, "hands": {"mse_raw": 0.0004846576781300053, "nmse": 0.02274610226898604}}, "nmse_by_step": [0.06840514733842404, 0.06675060180800908, 0.0657507155751375, 0.06520139798760909, 0.06777329295330445, 0.07031309917852412, 0.07626735868167984, 0.08078810951081956, 0.08417256937114635, 0.08759728497822977, 0.09155193434162916, 0.09512940140511002, 0.09911240070489392, 0.1064472613573996, 0.11233991006619963, 0.12012459431385325], "nmse_per_episode": {"0": 0.06927365860830895, "60": 0.06926477116123751, "120": 0.07837015019574711, "180": 0.09396731284691572, "240": 0.08215983176605314, "301": 0.10115581759121843, "361": 0.08037784564183788, "421": 0.12082165685899687, "481": 0.07856853687279453, "541": 0.0735137814331545}, "nmse_episode_sem": 0.00512680732623126}
|
| 7 |
+
{"step": 1750, "utc": "2026-11-24T11:26:21Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 3.8, "infer_s_per_query": 0.0095, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.001054612627238891, "mae_raw": 0.02149158549786862, "nmse": 0.08079816039582953, "groups": {"motion_token": {"mse_raw": 0.0011705926476270436, "nmse": 0.09209060248304166}, "hands": {"mse_raw": 0.0004360525185020777, "nmse": 0.020571802597364883}}, "nmse_by_step": [0.06395316526928141, 0.06271249042314993, 0.06208099838962845, 0.06177543642538184, 0.06454932012924273, 0.06711184366528213, 0.0726489477859925, 0.07724680363455887, 0.08055921376053105, 0.08384261276624409, 0.08767143069363113, 0.09099587178900126, 0.09462887848686764, 0.10205608495949241, 0.10776224131458616, 0.11515665126840302], "nmse_per_episode": {"0": 0.065549810718587, "60": 0.0648922319053658, "120": 0.0748347256663311, "180": 0.09071982680634368, "240": 0.07774888557738877, "301": 0.09625127102191255, "361": 0.07567912803737877, "421": 0.11799024427838373, "481": 0.0747955204530801, "541": 0.06966878788502061}, "nmse_episode_sem": 0.0052035857847038715}
|
| 8 |
+
{"step": 2000, "utc": "2026-11-24T11:30:10Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 1.9, "infer_s_per_query": 0.0048, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0009983091918779625, "mae_raw": 0.020915906248951534, "nmse": 0.07710160644671586, "groups": {"motion_token": {"mse_raw": 0.0011219178846151477, "nmse": 0.0885236414722612}, "hands": {"mse_raw": 0.00033906283061297554, "nmse": 0.01618408631047402}}, "nmse_by_step": [0.06091856830645575, 0.05984850143663065, 0.05929621887899492, 0.059143048270167586, 0.06188621341548896, 0.06430149402713745, 0.06939501430816239, 0.07391083441886326, 0.07699283055282644, 0.08004905297851271, 0.08345295423355316, 0.08634788039619205, 0.08981308326827696, 0.09729523865782648, 0.10282050998124793, 0.11003481886411376], "nmse_per_episode": {"0": 0.06217196085505439, "60": 0.06258540571156401, "120": 0.07089671314416295, "180": 0.08664807229915195, "240": 0.07282139536235499, "301": 0.09282887685675349, "361": 0.07217953716796248, "421": 0.11383907206265188, "481": 0.07082828704998236, "541": 0.06652424854906662}, "nmse_episode_sem": 0.005114262280056417}
|
| 9 |
+
{"step": 2250, "utc": "2026-11-24T11:32:55Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0063, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.000946671930776556, "mae_raw": 0.020431992140858588, "nmse": 0.07392160901566747, "groups": {"motion_token": {"mse_raw": 0.0010842811890992383, "nmse": 0.08583762090738344}, "hands": {"mse_raw": 0.00021275588638891847, "nmse": 0.010369545593182317}}, "nmse_by_step": [0.058534497725043606, 0.057631568730520326, 0.057298328264259624, 0.05734138132327019, 0.060014741099310646, 0.06235914876187494, 0.06694522081922841, 0.07124193912535215, 0.0739394221338217, 0.07608047169384832, 0.07920917640406304, 0.08193104174620178, 0.08531876702486066, 0.09281729511944048, 0.09841252200290823, 0.10543092300026631], "nmse_per_episode": {"0": 0.059401194940223064, "60": 0.059127299905368885, "120": 0.06697356823597464, "180": 0.08357117454730556, "240": 0.0701550529654647, "301": 0.09011216049713854, "361": 0.0693364056260932, "421": 0.11132161801820546, "481": 0.06640950641245764, "541": 0.06299417552328361}, "nmse_episode_sem": 0.005210082196027963}
|
| 10 |
+
{"step": 2500, "utc": "2026-11-24T11:38:27Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 2.2, "infer_s_per_query": 0.0055, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0009188725898226399, "mae_raw": 0.020074909350246337, "nmse": 0.07192785466582156, "groups": {"motion_token": {"mse_raw": 0.0010525641197831254, "nmse": 0.08354055053428033}, "hands": {"mse_raw": 0.00020585109670005, "nmse": 0.0099934767007082}}, "nmse_by_step": [0.05681763399359513, 0.056122647012295745, 0.055794010044661516, 0.05590909014240006, 0.05855018097205391, 0.0608347201967821, 0.06509016918893587, 0.0691888253209618, 0.07178929163851311, 0.07367901655936906, 0.07681149770243387, 0.07956255175437704, 0.08291279378465292, 0.09040484491316712, 0.0960408508210087, 0.10305538809862251], "nmse_per_episode": {"0": 0.05810418032600727, "60": 0.05783960380048344, "120": 0.06565412569325083, "180": 0.08103256963657375, "240": 0.06817209034067323, "301": 0.0878719648465634, "361": 0.06659017211165076, "421": 0.10827795382128197, "481": 0.06432577619238776, "541": 0.061598360781393885}, "nmse_episode_sem": 0.0050491536921055576}
|
| 11 |
+
{"step": 2750, "utc": "2026-11-24T11:40:29Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 1.4, "infer_s_per_query": 0.0034, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0008982135310824924, "mae_raw": 0.01980978313637927, "nmse": 0.07044444149110611, "groups": {"motion_token": {"mse_raw": 0.001028998540919534, "nmse": 0.08183426991219452}, "hands": {"mse_raw": 0.00020069347861826963, "nmse": 0.009698689911967822}}, "nmse_by_step": [0.055653361864148654, 0.05506661467960205, 0.05477979731275802, 0.05494809347011942, 0.05748603639014336, 0.0596639581088464, 0.06339193292177203, 0.06755533909786306, 0.07047894327687572, 0.07207240597079675, 0.07518645926947524, 0.07795731971040037, 0.08142560834085981, 0.08844671938047498, 0.09387591921293666, 0.1007981782235067], "nmse_per_episode": {"0": 0.05666245023417323, "60": 0.05741973541469308, "120": 0.06434339631401242, "180": 0.07925219797896266, "240": 0.06723929124989919, "301": 0.08583654140686085, "361": 0.06476744528159849, "421": 0.1053802094880634, "481": 0.06274223518910832, "541": 0.06097244104437866}, "nmse_episode_sem": 0.0048572412260720855}
|
| 12 |
+
{"step": 3000, "utc": "2026-11-24T11:42:46Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 5.0, "infer_s_per_query": 0.0124, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0008832322934519772, "mae_raw": 0.019611800928647075, "nmse": 0.0693861415995419, "groups": {"motion_token": {"mse_raw": 0.001013424971497522, "nmse": 0.08068384856951857}, "hands": {"mse_raw": 0.00018887134387573956, "nmse": 0.009131704426332966}}, "nmse_by_step": [0.05461814029393835, 0.05408894939087832, 0.05386592219543228, 0.054089477544696694, 0.05657166404000781, 0.058746402705634956, 0.06222864856694393, 0.0666282043528701, 0.06954446041627178, 0.0710689429467855, 0.07416199602986731, 0.07689982845437059, 0.08034968121189183, 0.08698065102444753, 0.09252823393324079, 0.09946804016393798], "nmse_per_episode": {"0": 0.055511530362262244, "60": 0.05664581171400185, "120": 0.06338598673232025, "180": 0.07818838789869823, "240": 0.06648727162299962, "301": 0.08461224131162172, "361": 0.06339762519561322, "421": 0.10413936139110296, "481": 0.06163901049814728, "541": 0.0600124345434785}, "nmse_episode_sem": 0.004830539807909491}
|
| 13 |
+
{"step": 3250, "utc": "2026-11-24T11:46:51Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 1.4, "infer_s_per_query": 0.0036, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0008707715010829208, "mae_raw": 0.019458438678310864, "nmse": 0.068496533166605, "groups": {"motion_token": {"mse_raw": 0.000999705150488734, "nmse": 0.07968142844048863}, "hands": {"mse_raw": 0.0001831253709185837, "nmse": 0.008843758372559069}}, "nmse_by_step": [0.05383150322991064, 0.0533284801298443, 0.05317611105619676, 0.053421533444888085, 0.05582187865972737, 0.05792415705789857, 0.06132133991179079, 0.06578531220755973, 0.0686773277474315, 0.07018797027467749, 0.07321711673198247, 0.07586845000085556, 0.07931682870422908, 0.08567294247716824, 0.09150404572733115, 0.09853553122028497], "nmse_per_episode": {"0": 0.05485777994130561, "60": 0.05577937428251901, "120": 0.06265504248073359, "180": 0.07706128647934997, "240": 0.06599409568939849, "301": 0.08340816720511603, "361": 0.06219668675568844, "421": 0.10285400064909579, "481": 0.06105075181372494, "541": 0.05923978814227811}, "nmse_episode_sem": 0.00476688536496784}
|
| 14 |
+
{"step": 3500, "utc": "2026-11-24T11:49:20Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 12.1, "infer_s_per_query": 0.0301, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0008632506468183258, "mae_raw": 0.019352709649061647, "nmse": 0.06795599583177317, "groups": {"motion_token": {"mse_raw": 0.0009911564183348255, "nmse": 0.07906099601729832}, "hands": {"mse_raw": 0.00018108653206366023, "nmse": 0.008729328175639093}}, "nmse_by_step": [0.053330434283316436, 0.05284739294680609, 0.05273071507330366, 0.053010300007067086, 0.05534104174545588, 0.05737584194777625, 0.060859964033183264, 0.06532851071134896, 0.06817043178638202, 0.06969481580144231, 0.0726570975212607, 0.07529941601894659, 0.07870867768804923, 0.08488359057888202, 0.0908347946691924, 0.09785978090632635], "nmse_per_episode": {"0": 0.0543777464427366, "60": 0.05543490329236804, "120": 0.06213172402422009, "180": 0.07662530723912159, "240": 0.0652666628847532, "301": 0.08274677084002677, "361": 0.06123955447304819, "421": 0.10266063510419472, "481": 0.06061718930593483, "541": 0.05861844967383702}, "nmse_episode_sem": 0.004792115222679512}
|
| 15 |
+
{"step": 3750, "utc": "2026-11-24T11:52:33Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 3.8, "infer_s_per_query": 0.0095, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.000856879289114439, "mae_raw": 0.019274620650562537, "nmse": 0.06753361728184641, "groups": {"motion_token": {"mse_raw": 0.0009853315841212144, "nmse": 0.0786379094262911}, "hands": {"mse_raw": 0.00017180038241163779, "nmse": 0.00831072584480813}}, "nmse_by_step": [0.052981485720946485, 0.05251058233982605, 0.05241518870079239, 0.052711238989564826, 0.05501398907110016, 0.05709138031932794, 0.060547738692705445, 0.06502839199674149, 0.06784546924060786, 0.06932762458795243, 0.07224056219903821, 0.07486263998423688, 0.07813049107566847, 0.0841786949528598, 0.09013468898671972, 0.09713940971113151], "nmse_per_episode": {"0": 0.05390728753084882, "60": 0.054844311555611064, "120": 0.061694294302474834, "180": 0.07629417480404639, "240": 0.0648334794234948, "301": 0.0823291685861861, "361": 0.06066745616160754, "421": 0.10229177092934685, "481": 0.06029179425470691, "541": 0.058331842325323485}, "nmse_episode_sem": 0.00480292426025813}
|
| 16 |
+
{"step": 4000, "utc": "2026-11-24T11:54:39Z", "model": "act", "task": "b6v6", "split": "train10", "queries": 393, "ranks": 1, "wall_s": 2.4, "infer_s_per_query": 0.0059, "seed": 1234, "weights": "ema", "policy": "act", "cache_checked_episodes": [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], "inloop_code": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse", "cache": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse/cache/b6v6/train10", "rows": 6198, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 76, "mse_raw": 0.0008535944021074209, "mae_raw": 0.019232296810869638, "nmse": 0.06730569270037576, "groups": {"motion_token": {"mse_raw": 0.0009819184915867152, "nmse": 0.07839145735435106}, "hands": {"mse_raw": 0.00016919925821785105, "nmse": 0.00818161454584077}}, "nmse_by_step": [0.0527725639416053, 0.052308186069545244, 0.052227723180941495, 0.052537875184569115, 0.054822278930761185, 0.056894686118108585, 0.06036077565017131, 0.06481106711515396, 0.0675979211173566, 0.06906763942537805, 0.07193702917334363, 0.0746889659870341, 0.07789351101137904, 0.08387977903724242, 0.08985690394286984, 0.09685230582910735], "nmse_per_episode": {"0": 0.053862426216042585, "60": 0.054540256419875074, "120": 0.06148556280367197, "180": 0.07619655629657171, "240": 0.06468667274263619, "301": 0.0819977076965655, "361": 0.060254691242498104, "421": 0.10194631984744136, "481": 0.06001526980806181, "541": 0.0581844463368394}, "nmse_episode_sem": 0.004790441304491435}
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/pip_freeze_hb-baselines.txt
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
anyio==4.16.0
|
| 2 |
+
av==15.1.0
|
| 3 |
+
certifi==2026.11.20
|
| 4 |
+
charset-normalizer==3.5.3
|
| 5 |
+
click==8.5.1
|
| 6 |
+
diffusers==0.35.1
|
| 7 |
+
filelock==4.3.1
|
| 8 |
+
fsspec==2026.9.0
|
| 9 |
+
h11==0.16.0
|
| 10 |
+
hf-xet==1.8.0
|
| 11 |
+
httpcore2==2.16.2
|
| 12 |
+
httpx2==2.16.2
|
| 13 |
+
huggingface_hub==2.4.0
|
| 14 |
+
idna==3.20
|
| 15 |
+
importlib_metadata==10.2.0
|
| 16 |
+
iniconfig==2.3.1
|
| 17 |
+
Jinja2==3.1.6
|
| 18 |
+
lazy-importer==0.1.0
|
| 19 |
+
MarkupSafe==3.0.4
|
| 20 |
+
mpmath==1.3.0
|
| 21 |
+
networkx==3.7
|
| 22 |
+
numpy==2.2.6
|
| 23 |
+
nvidia-cublas-cu12==12.8.4.1
|
| 24 |
+
nvidia-cuda-cupti-cu12==12.8.90
|
| 25 |
+
nvidia-cuda-nvrtc-cu12==12.8.93
|
| 26 |
+
nvidia-cuda-runtime-cu12==12.8.90
|
| 27 |
+
nvidia-cudnn-cu12==9.10.2.21
|
| 28 |
+
nvidia-cufft-cu12==11.3.3.83
|
| 29 |
+
nvidia-cufile-cu12==1.13.1.3
|
| 30 |
+
nvidia-curand-cu12==10.3.9.90
|
| 31 |
+
nvidia-cusolver-cu12==11.7.3.90
|
| 32 |
+
nvidia-cusparse-cu12==12.5.8.93
|
| 33 |
+
nvidia-cusparselt-cu12==0.7.1
|
| 34 |
+
nvidia-nccl-cu12==2.27.5
|
| 35 |
+
nvidia-nvjitlink-cu12==12.8.93
|
| 36 |
+
nvidia-nvshmem-cu12==3.3.20
|
| 37 |
+
nvidia-nvtx-cu12==12.8.90
|
| 38 |
+
opencv-python-headless==4.11.0.86
|
| 39 |
+
packaging==26.4
|
| 40 |
+
pillow==13.0.0
|
| 41 |
+
pluggy==1.7.0
|
| 42 |
+
pyarrow==23.0.1
|
| 43 |
+
Pygments==2.21.0
|
| 44 |
+
pytest==8.4.2
|
| 45 |
+
PyYAML==6.0.4
|
| 46 |
+
regex==2026.11.19
|
| 47 |
+
requests==2.34.2
|
| 48 |
+
safetensors==0.8.0
|
| 49 |
+
setuptools==84.2.1
|
| 50 |
+
sympy==1.14.0
|
| 51 |
+
torch==2.9.0+cu128
|
| 52 |
+
torchvision==0.24.0+cu128
|
| 53 |
+
tqdm==4.70.1
|
| 54 |
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"argv": [
|
| 3 |
+
"evaluation/baselines/train.py",
|
| 4 |
+
"--policy",
|
| 5 |
+
"act",
|
| 6 |
+
"--contract",
|
| 7 |
+
"g1_sonic_dfx6",
|
| 8 |
+
"--dataset",
|
| 9 |
+
"/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/b6-pedal-bin-v6-ad2f5bf/data",
|
| 10 |
+
"--episodes",
|
| 11 |
+
"0:542",
|
| 12 |
+
"--out",
|
| 13 |
+
"/root/hb_act/preflight",
|
| 14 |
+
"--steps",
|
| 15 |
+
"4000",
|
| 16 |
+
"--batch-size",
|
| 17 |
+
"512",
|
| 18 |
+
"--warmup",
|
| 19 |
+
"200",
|
| 20 |
+
"--seed",
|
| 21 |
+
"0",
|
| 22 |
+
"--workers",
|
| 23 |
+
"32",
|
| 24 |
+
"--save-every",
|
| 25 |
+
"2000",
|
| 26 |
+
"--log-every",
|
| 27 |
+
"50",
|
| 28 |
+
"--cache-dir",
|
| 29 |
+
"/dev/shm/hb_act_cache",
|
| 30 |
+
"--inloop-task",
|
| 31 |
+
"b6v6",
|
| 32 |
+
"--inloop-code",
|
| 33 |
+
"/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse",
|
| 34 |
+
"--preflight-only"
|
| 35 |
+
],
|
| 36 |
+
"started": "2026-11-24T18:59:48",
|
| 37 |
+
"host": "dsw-1191449-7dd898ff8d-578hl",
|
| 38 |
+
"contract": {
|
| 39 |
+
"name": "g1_sonic_dfx6",
|
| 40 |
+
"robot": "g1",
|
| 41 |
+
"cameras": [
|
| 42 |
+
"ego_view",
|
| 43 |
+
"chest"
|
| 44 |
+
],
|
| 45 |
+
"state": [
|
| 46 |
+
[
|
| 47 |
+
"observation.state",
|
| 48 |
+
0,
|
| 49 |
+
29
|
| 50 |
+
],
|
| 51 |
+
[
|
| 52 |
+
"observation.inspire_left_hand_state",
|
| 53 |
+
0,
|
| 54 |
+
6
|
| 55 |
+
],
|
| 56 |
+
[
|
| 57 |
+
"observation.inspire_right_hand_state",
|
| 58 |
+
0,
|
| 59 |
+
6
|
| 60 |
+
],
|
| 61 |
+
[
|
| 62 |
+
"observation.projected_gravity",
|
| 63 |
+
0,
|
| 64 |
+
3
|
| 65 |
+
]
|
| 66 |
+
],
|
| 67 |
+
"action": [
|
| 68 |
+
[
|
| 69 |
+
"action.motion_token",
|
| 70 |
+
0,
|
| 71 |
+
64
|
| 72 |
+
],
|
| 73 |
+
[
|
| 74 |
+
"observation.inspire_left_hand_state",
|
| 75 |
+
0,
|
| 76 |
+
6
|
| 77 |
+
],
|
| 78 |
+
[
|
| 79 |
+
"observation.inspire_right_hand_state",
|
| 80 |
+
0,
|
| 81 |
+
6
|
| 82 |
+
]
|
| 83 |
+
],
|
| 84 |
+
"state_dim": 44,
|
| 85 |
+
"action_dim": 76,
|
| 86 |
+
"action_space": "sonic_dfx6",
|
| 87 |
+
"body_dims": 29
|
| 88 |
+
},
|
| 89 |
+
"image_hw": [
|
| 90 |
+
168,
|
| 91 |
+
224
|
| 92 |
+
],
|
| 93 |
+
"augmentation": {
|
| 94 |
+
"spec": "docs/augmentation_v2.md",
|
| 95 |
+
"version": "hb-aug-v2-20261109",
|
| 96 |
+
"implementation": "evaluation/augmentation/hb_aug_v2.py",
|
| 97 |
+
"visual": {
|
| 98 |
+
"effects": [
|
| 99 |
+
"exposure",
|
| 100 |
+
"contrast",
|
| 101 |
+
"saturation",
|
| 102 |
+
"hue",
|
| 103 |
+
"gamma",
|
| 104 |
+
"temperature",
|
| 105 |
+
"rotation_crop",
|
| 106 |
+
"noise",
|
| 107 |
+
"gaussian_blur",
|
| 108 |
+
"jpeg",
|
| 109 |
+
"motion_blur",
|
| 110 |
+
"sharpen",
|
| 111 |
+
"defocus",
|
| 112 |
+
"light_shadow",
|
| 113 |
+
"wb_channel"
|
| 114 |
+
],
|
| 115 |
+
"boosted_per_sample": 1,
|
| 116 |
+
"boost": 1.5,
|
| 117 |
+
"pixel_scale": "H / 224",
|
| 118 |
+
"future_targets": "none (one observation frame)"
|
| 119 |
+
},
|
| 120 |
+
"proprio": {
|
| 121 |
+
"robot": "g1",
|
| 122 |
+
"body_dims": 29,
|
| 123 |
+
"bias_deg": 2.0,
|
| 124 |
+
"bias_scope": "per_sample",
|
| 125 |
+
"noise_deg": 0.25,
|
| 126 |
+
"noise_clip_sigma": 3,
|
| 127 |
+
"delay_probability": 0.0,
|
| 128 |
+
"history_drop_probability": 0.0,
|
| 129 |
+
"velocity": false
|
| 130 |
+
},
|
| 131 |
+
"native_image_augmentation": "off",
|
| 132 |
+
"evaluation": "off"
|
| 133 |
+
},
|
| 134 |
+
"preflight": {
|
| 135 |
+
"samples": 64,
|
| 136 |
+
"state_dim": 44,
|
| 137 |
+
"body_dims": 29,
|
| 138 |
+
"images_changed": 64,
|
| 139 |
+
"body_values_moved": 1.0,
|
| 140 |
+
"max_body_offset_deg": 2.5433,
|
| 141 |
+
"actions_bit_identical": true,
|
| 142 |
+
"non_body_state_bit_identical": true,
|
| 143 |
+
"eval_items_deterministic": 8
|
| 144 |
+
},
|
| 145 |
+
"shift_px": 0,
|
| 146 |
+
"seed": 0,
|
| 147 |
+
"aug_seed": null,
|
| 148 |
+
"layout": {
|
| 149 |
+
"nodes": 1,
|
| 150 |
+
"gpus": 1,
|
| 151 |
+
"per_gpu_batch": 512,
|
| 152 |
+
"global_batch": 512,
|
| 153 |
+
"gradient_accumulation": 1,
|
| 154 |
+
"num_workers": 32,
|
| 155 |
+
"prefetch": 2
|
| 156 |
+
},
|
| 157 |
+
"policy": {
|
| 158 |
+
"policy": "act",
|
| 159 |
+
"n_cameras": 2,
|
| 160 |
+
"state_dim": 44,
|
| 161 |
+
"action_dim": 76,
|
| 162 |
+
"horizon": 16,
|
| 163 |
+
"backbone": "resnet18",
|
| 164 |
+
"backbone_weights": "IMAGENET1K_V1",
|
| 165 |
+
"backbone_norm": "frozen_bn",
|
| 166 |
+
"hidden_dim": 384,
|
| 167 |
+
"num_layers": 4,
|
| 168 |
+
"num_heads": 8,
|
| 169 |
+
"mlp_ratio": 4.0,
|
| 170 |
+
"dropout": 0.1,
|
| 171 |
+
"time_embed_dim": 128,
|
| 172 |
+
"num_inference_steps": null,
|
| 173 |
+
"num_train_timesteps": 100,
|
| 174 |
+
"beta_schedule": "squaredcos_cap_v2",
|
| 175 |
+
"prediction_type": "epsilon",
|
| 176 |
+
"clip_sample": true,
|
| 177 |
+
"act_hidden_dim": 512,
|
| 178 |
+
"dim_feedforward": 3200,
|
| 179 |
+
"enc_layers": 4,
|
| 180 |
+
"dec_layers": 7,
|
| 181 |
+
"nheads": 8,
|
| 182 |
+
"latent_dim": 32,
|
| 183 |
+
"kl_weight": 10.0,
|
| 184 |
+
"extra": {}
|
| 185 |
+
},
|
| 186 |
+
"code_commit": "8c3b88d2a04b515650d446c391a067cde31407f6"
|
| 187 |
+
}
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/run.json
ADDED
|
@@ -0,0 +1,1792 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"argv": [
|
| 3 |
+
"evaluation/baselines/train.py",
|
| 4 |
+
"--policy",
|
| 5 |
+
"act",
|
| 6 |
+
"--contract",
|
| 7 |
+
"g1_sonic_dfx6",
|
| 8 |
+
"--dataset",
|
| 9 |
+
"/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/b6-pedal-bin-v6-ad2f5bf/data",
|
| 10 |
+
"--episodes",
|
| 11 |
+
"0:542",
|
| 12 |
+
"--out",
|
| 13 |
+
"/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/act-runs/b6v6p-b512-s4000",
|
| 14 |
+
"--steps",
|
| 15 |
+
"4000",
|
| 16 |
+
"--batch-size",
|
| 17 |
+
"512",
|
| 18 |
+
"--warmup",
|
| 19 |
+
"200",
|
| 20 |
+
"--seed",
|
| 21 |
+
"0",
|
| 22 |
+
"--workers",
|
| 23 |
+
"32",
|
| 24 |
+
"--save-every",
|
| 25 |
+
"2000",
|
| 26 |
+
"--log-every",
|
| 27 |
+
"50",
|
| 28 |
+
"--cache-dir",
|
| 29 |
+
"/dev/shm/hb_act_cache",
|
| 30 |
+
"--inloop-task",
|
| 31 |
+
"b6v6",
|
| 32 |
+
"--inloop-code",
|
| 33 |
+
"/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse"
|
| 34 |
+
],
|
| 35 |
+
"started": "2026-11-24T19:02:09",
|
| 36 |
+
"host": "dsw-1191449-7dd898ff8d-578hl",
|
| 37 |
+
"torch": "2.9.0+cu128",
|
| 38 |
+
"policy": {
|
| 39 |
+
"policy": "act",
|
| 40 |
+
"n_cameras": 2,
|
| 41 |
+
"state_dim": 44,
|
| 42 |
+
"action_dim": 76,
|
| 43 |
+
"horizon": 16,
|
| 44 |
+
"backbone": "resnet18",
|
| 45 |
+
"backbone_weights": "IMAGENET1K_V1",
|
| 46 |
+
"backbone_norm": "frozen_bn",
|
| 47 |
+
"hidden_dim": 384,
|
| 48 |
+
"num_layers": 4,
|
| 49 |
+
"num_heads": 8,
|
| 50 |
+
"mlp_ratio": 4.0,
|
| 51 |
+
"dropout": 0.1,
|
| 52 |
+
"time_embed_dim": 128,
|
| 53 |
+
"num_inference_steps": null,
|
| 54 |
+
"num_train_timesteps": 100,
|
| 55 |
+
"beta_schedule": "squaredcos_cap_v2",
|
| 56 |
+
"prediction_type": "epsilon",
|
| 57 |
+
"clip_sample": true,
|
| 58 |
+
"act_hidden_dim": 512,
|
| 59 |
+
"dim_feedforward": 3200,
|
| 60 |
+
"enc_layers": 4,
|
| 61 |
+
"dec_layers": 7,
|
| 62 |
+
"nheads": 8,
|
| 63 |
+
"latent_dim": 32,
|
| 64 |
+
"kl_weight": 10.0,
|
| 65 |
+
"extra": {}
|
| 66 |
+
},
|
| 67 |
+
"contract": {
|
| 68 |
+
"name": "g1_sonic_dfx6",
|
| 69 |
+
"robot": "g1",
|
| 70 |
+
"cameras": [
|
| 71 |
+
"ego_view",
|
| 72 |
+
"chest"
|
| 73 |
+
],
|
| 74 |
+
"state": [
|
| 75 |
+
[
|
| 76 |
+
"observation.state",
|
| 77 |
+
0,
|
| 78 |
+
29
|
| 79 |
+
],
|
| 80 |
+
[
|
| 81 |
+
"observation.inspire_left_hand_state",
|
| 82 |
+
0,
|
| 83 |
+
6
|
| 84 |
+
],
|
| 85 |
+
[
|
| 86 |
+
"observation.inspire_right_hand_state",
|
| 87 |
+
0,
|
| 88 |
+
6
|
| 89 |
+
],
|
| 90 |
+
[
|
| 91 |
+
"observation.projected_gravity",
|
| 92 |
+
0,
|
| 93 |
+
3
|
| 94 |
+
]
|
| 95 |
+
],
|
| 96 |
+
"action": [
|
| 97 |
+
[
|
| 98 |
+
"action.motion_token",
|
| 99 |
+
0,
|
| 100 |
+
64
|
| 101 |
+
],
|
| 102 |
+
[
|
| 103 |
+
"observation.inspire_left_hand_state",
|
| 104 |
+
0,
|
| 105 |
+
6
|
| 106 |
+
],
|
| 107 |
+
[
|
| 108 |
+
"observation.inspire_right_hand_state",
|
| 109 |
+
0,
|
| 110 |
+
6
|
| 111 |
+
]
|
| 112 |
+
],
|
| 113 |
+
"state_dim": 44,
|
| 114 |
+
"action_dim": 76,
|
| 115 |
+
"action_space": "sonic_dfx6",
|
| 116 |
+
"body_dims": 29
|
| 117 |
+
},
|
| 118 |
+
"image_hw": [
|
| 119 |
+
168,
|
| 120 |
+
224
|
| 121 |
+
],
|
| 122 |
+
"task_text": "Pick up the chip barrel from the cart, walk to the pedal bin, step on its pedal and drop it in.",
|
| 123 |
+
"dataset": {
|
| 124 |
+
"name": "data",
|
| 125 |
+
"root": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/b6-pedal-bin-v6-ad2f5bf/data",
|
| 126 |
+
"robot_type": null,
|
| 127 |
+
"fps": 30.0,
|
| 128 |
+
"episodes": [
|
| 129 |
+
0,
|
| 130 |
+
1,
|
| 131 |
+
2,
|
| 132 |
+
3,
|
| 133 |
+
4,
|
| 134 |
+
5,
|
| 135 |
+
6,
|
| 136 |
+
7,
|
| 137 |
+
8,
|
| 138 |
+
9,
|
| 139 |
+
10,
|
| 140 |
+
11,
|
| 141 |
+
12,
|
| 142 |
+
13,
|
| 143 |
+
14,
|
| 144 |
+
15,
|
| 145 |
+
16,
|
| 146 |
+
17,
|
| 147 |
+
18,
|
| 148 |
+
19,
|
| 149 |
+
20,
|
| 150 |
+
21,
|
| 151 |
+
22,
|
| 152 |
+
23,
|
| 153 |
+
24,
|
| 154 |
+
25,
|
| 155 |
+
26,
|
| 156 |
+
27,
|
| 157 |
+
28,
|
| 158 |
+
29,
|
| 159 |
+
30,
|
| 160 |
+
31,
|
| 161 |
+
32,
|
| 162 |
+
33,
|
| 163 |
+
34,
|
| 164 |
+
35,
|
| 165 |
+
36,
|
| 166 |
+
37,
|
| 167 |
+
38,
|
| 168 |
+
39,
|
| 169 |
+
40,
|
| 170 |
+
41,
|
| 171 |
+
42,
|
| 172 |
+
43,
|
| 173 |
+
44,
|
| 174 |
+
45,
|
| 175 |
+
46,
|
| 176 |
+
47,
|
| 177 |
+
48,
|
| 178 |
+
49,
|
| 179 |
+
50,
|
| 180 |
+
51,
|
| 181 |
+
52,
|
| 182 |
+
53,
|
| 183 |
+
54,
|
| 184 |
+
55,
|
| 185 |
+
56,
|
| 186 |
+
57,
|
| 187 |
+
58,
|
| 188 |
+
59,
|
| 189 |
+
60,
|
| 190 |
+
61,
|
| 191 |
+
62,
|
| 192 |
+
63,
|
| 193 |
+
64,
|
| 194 |
+
65,
|
| 195 |
+
66,
|
| 196 |
+
67,
|
| 197 |
+
68,
|
| 198 |
+
69,
|
| 199 |
+
70,
|
| 200 |
+
71,
|
| 201 |
+
72,
|
| 202 |
+
73,
|
| 203 |
+
74,
|
| 204 |
+
75,
|
| 205 |
+
76,
|
| 206 |
+
77,
|
| 207 |
+
78,
|
| 208 |
+
79,
|
| 209 |
+
80,
|
| 210 |
+
81,
|
| 211 |
+
82,
|
| 212 |
+
83,
|
| 213 |
+
84,
|
| 214 |
+
85,
|
| 215 |
+
86,
|
| 216 |
+
87,
|
| 217 |
+
88,
|
| 218 |
+
89,
|
| 219 |
+
90,
|
| 220 |
+
91,
|
| 221 |
+
92,
|
| 222 |
+
93,
|
| 223 |
+
94,
|
| 224 |
+
95,
|
| 225 |
+
96,
|
| 226 |
+
97,
|
| 227 |
+
98,
|
| 228 |
+
99,
|
| 229 |
+
100,
|
| 230 |
+
101,
|
| 231 |
+
102,
|
| 232 |
+
103,
|
| 233 |
+
104,
|
| 234 |
+
105,
|
| 235 |
+
106,
|
| 236 |
+
107,
|
| 237 |
+
108,
|
| 238 |
+
109,
|
| 239 |
+
110,
|
| 240 |
+
111,
|
| 241 |
+
112,
|
| 242 |
+
113,
|
| 243 |
+
114,
|
| 244 |
+
115,
|
| 245 |
+
116,
|
| 246 |
+
117,
|
| 247 |
+
118,
|
| 248 |
+
119,
|
| 249 |
+
120,
|
| 250 |
+
121,
|
| 251 |
+
122,
|
| 252 |
+
123,
|
| 253 |
+
124,
|
| 254 |
+
125,
|
| 255 |
+
126,
|
| 256 |
+
127,
|
| 257 |
+
128,
|
| 258 |
+
129,
|
| 259 |
+
130,
|
| 260 |
+
131,
|
| 261 |
+
132,
|
| 262 |
+
133,
|
| 263 |
+
134,
|
| 264 |
+
135,
|
| 265 |
+
136,
|
| 266 |
+
137,
|
| 267 |
+
138,
|
| 268 |
+
139,
|
| 269 |
+
140,
|
| 270 |
+
141,
|
| 271 |
+
142,
|
| 272 |
+
143,
|
| 273 |
+
144,
|
| 274 |
+
145,
|
| 275 |
+
146,
|
| 276 |
+
147,
|
| 277 |
+
148,
|
| 278 |
+
149,
|
| 279 |
+
150,
|
| 280 |
+
151,
|
| 281 |
+
152,
|
| 282 |
+
153,
|
| 283 |
+
154,
|
| 284 |
+
155,
|
| 285 |
+
156,
|
| 286 |
+
157,
|
| 287 |
+
158,
|
| 288 |
+
159,
|
| 289 |
+
160,
|
| 290 |
+
161,
|
| 291 |
+
162,
|
| 292 |
+
163,
|
| 293 |
+
164,
|
| 294 |
+
165,
|
| 295 |
+
166,
|
| 296 |
+
167,
|
| 297 |
+
168,
|
| 298 |
+
169,
|
| 299 |
+
170,
|
| 300 |
+
171,
|
| 301 |
+
172,
|
| 302 |
+
173,
|
| 303 |
+
174,
|
| 304 |
+
175,
|
| 305 |
+
176,
|
| 306 |
+
177,
|
| 307 |
+
178,
|
| 308 |
+
179,
|
| 309 |
+
180,
|
| 310 |
+
181,
|
| 311 |
+
182,
|
| 312 |
+
183,
|
| 313 |
+
184,
|
| 314 |
+
185,
|
| 315 |
+
186,
|
| 316 |
+
187,
|
| 317 |
+
188,
|
| 318 |
+
189,
|
| 319 |
+
190,
|
| 320 |
+
191,
|
| 321 |
+
192,
|
| 322 |
+
193,
|
| 323 |
+
194,
|
| 324 |
+
195,
|
| 325 |
+
196,
|
| 326 |
+
197,
|
| 327 |
+
198,
|
| 328 |
+
199,
|
| 329 |
+
200,
|
| 330 |
+
201,
|
| 331 |
+
202,
|
| 332 |
+
203,
|
| 333 |
+
204,
|
| 334 |
+
205,
|
| 335 |
+
206,
|
| 336 |
+
207,
|
| 337 |
+
208,
|
| 338 |
+
209,
|
| 339 |
+
210,
|
| 340 |
+
211,
|
| 341 |
+
212,
|
| 342 |
+
213,
|
| 343 |
+
214,
|
| 344 |
+
215,
|
| 345 |
+
216,
|
| 346 |
+
217,
|
| 347 |
+
218,
|
| 348 |
+
219,
|
| 349 |
+
220,
|
| 350 |
+
221,
|
| 351 |
+
222,
|
| 352 |
+
223,
|
| 353 |
+
224,
|
| 354 |
+
225,
|
| 355 |
+
226,
|
| 356 |
+
227,
|
| 357 |
+
228,
|
| 358 |
+
229,
|
| 359 |
+
230,
|
| 360 |
+
231,
|
| 361 |
+
232,
|
| 362 |
+
233,
|
| 363 |
+
234,
|
| 364 |
+
235,
|
| 365 |
+
236,
|
| 366 |
+
237,
|
| 367 |
+
238,
|
| 368 |
+
239,
|
| 369 |
+
240,
|
| 370 |
+
241,
|
| 371 |
+
242,
|
| 372 |
+
243,
|
| 373 |
+
244,
|
| 374 |
+
245,
|
| 375 |
+
246,
|
| 376 |
+
247,
|
| 377 |
+
248,
|
| 378 |
+
249,
|
| 379 |
+
250,
|
| 380 |
+
251,
|
| 381 |
+
252,
|
| 382 |
+
253,
|
| 383 |
+
254,
|
| 384 |
+
255,
|
| 385 |
+
256,
|
| 386 |
+
257,
|
| 387 |
+
258,
|
| 388 |
+
259,
|
| 389 |
+
260,
|
| 390 |
+
261,
|
| 391 |
+
262,
|
| 392 |
+
263,
|
| 393 |
+
264,
|
| 394 |
+
265,
|
| 395 |
+
266,
|
| 396 |
+
267,
|
| 397 |
+
268,
|
| 398 |
+
269,
|
| 399 |
+
270,
|
| 400 |
+
271,
|
| 401 |
+
272,
|
| 402 |
+
273,
|
| 403 |
+
274,
|
| 404 |
+
275,
|
| 405 |
+
276,
|
| 406 |
+
277,
|
| 407 |
+
278,
|
| 408 |
+
279,
|
| 409 |
+
280,
|
| 410 |
+
281,
|
| 411 |
+
282,
|
| 412 |
+
283,
|
| 413 |
+
284,
|
| 414 |
+
285,
|
| 415 |
+
286,
|
| 416 |
+
287,
|
| 417 |
+
288,
|
| 418 |
+
289,
|
| 419 |
+
290,
|
| 420 |
+
291,
|
| 421 |
+
292,
|
| 422 |
+
293,
|
| 423 |
+
294,
|
| 424 |
+
295,
|
| 425 |
+
296,
|
| 426 |
+
297,
|
| 427 |
+
298,
|
| 428 |
+
299,
|
| 429 |
+
300,
|
| 430 |
+
301,
|
| 431 |
+
302,
|
| 432 |
+
303,
|
| 433 |
+
304,
|
| 434 |
+
305,
|
| 435 |
+
306,
|
| 436 |
+
307,
|
| 437 |
+
308,
|
| 438 |
+
309,
|
| 439 |
+
310,
|
| 440 |
+
311,
|
| 441 |
+
312,
|
| 442 |
+
313,
|
| 443 |
+
314,
|
| 444 |
+
315,
|
| 445 |
+
316,
|
| 446 |
+
317,
|
| 447 |
+
318,
|
| 448 |
+
319,
|
| 449 |
+
320,
|
| 450 |
+
321,
|
| 451 |
+
322,
|
| 452 |
+
323,
|
| 453 |
+
324,
|
| 454 |
+
325,
|
| 455 |
+
326,
|
| 456 |
+
327,
|
| 457 |
+
328,
|
| 458 |
+
329,
|
| 459 |
+
330,
|
| 460 |
+
331,
|
| 461 |
+
332,
|
| 462 |
+
333,
|
| 463 |
+
334,
|
| 464 |
+
335,
|
| 465 |
+
336,
|
| 466 |
+
337,
|
| 467 |
+
338,
|
| 468 |
+
339,
|
| 469 |
+
340,
|
| 470 |
+
341,
|
| 471 |
+
342,
|
| 472 |
+
343,
|
| 473 |
+
344,
|
| 474 |
+
345,
|
| 475 |
+
346,
|
| 476 |
+
347,
|
| 477 |
+
348,
|
| 478 |
+
349,
|
| 479 |
+
350,
|
| 480 |
+
351,
|
| 481 |
+
352,
|
| 482 |
+
353,
|
| 483 |
+
354,
|
| 484 |
+
355,
|
| 485 |
+
356,
|
| 486 |
+
357,
|
| 487 |
+
358,
|
| 488 |
+
359,
|
| 489 |
+
360,
|
| 490 |
+
361,
|
| 491 |
+
362,
|
| 492 |
+
363,
|
| 493 |
+
364,
|
| 494 |
+
365,
|
| 495 |
+
366,
|
| 496 |
+
367,
|
| 497 |
+
368,
|
| 498 |
+
369,
|
| 499 |
+
370,
|
| 500 |
+
371,
|
| 501 |
+
372,
|
| 502 |
+
373,
|
| 503 |
+
374,
|
| 504 |
+
375,
|
| 505 |
+
376,
|
| 506 |
+
377,
|
| 507 |
+
378,
|
| 508 |
+
379,
|
| 509 |
+
380,
|
| 510 |
+
381,
|
| 511 |
+
382,
|
| 512 |
+
383,
|
| 513 |
+
384,
|
| 514 |
+
385,
|
| 515 |
+
386,
|
| 516 |
+
387,
|
| 517 |
+
388,
|
| 518 |
+
389,
|
| 519 |
+
390,
|
| 520 |
+
391,
|
| 521 |
+
392,
|
| 522 |
+
393,
|
| 523 |
+
394,
|
| 524 |
+
395,
|
| 525 |
+
396,
|
| 526 |
+
397,
|
| 527 |
+
398,
|
| 528 |
+
399,
|
| 529 |
+
400,
|
| 530 |
+
401,
|
| 531 |
+
402,
|
| 532 |
+
403,
|
| 533 |
+
404,
|
| 534 |
+
405,
|
| 535 |
+
406,
|
| 536 |
+
407,
|
| 537 |
+
408,
|
| 538 |
+
409,
|
| 539 |
+
410,
|
| 540 |
+
411,
|
| 541 |
+
412,
|
| 542 |
+
413,
|
| 543 |
+
414,
|
| 544 |
+
415,
|
| 545 |
+
416,
|
| 546 |
+
417,
|
| 547 |
+
418,
|
| 548 |
+
419,
|
| 549 |
+
420,
|
| 550 |
+
421,
|
| 551 |
+
422,
|
| 552 |
+
423,
|
| 553 |
+
424,
|
| 554 |
+
425,
|
| 555 |
+
426,
|
| 556 |
+
427,
|
| 557 |
+
428,
|
| 558 |
+
429,
|
| 559 |
+
430,
|
| 560 |
+
431,
|
| 561 |
+
432,
|
| 562 |
+
433,
|
| 563 |
+
434,
|
| 564 |
+
435,
|
| 565 |
+
436,
|
| 566 |
+
437,
|
| 567 |
+
438,
|
| 568 |
+
439,
|
| 569 |
+
440,
|
| 570 |
+
441,
|
| 571 |
+
442,
|
| 572 |
+
443,
|
| 573 |
+
444,
|
| 574 |
+
445,
|
| 575 |
+
446,
|
| 576 |
+
447,
|
| 577 |
+
448,
|
| 578 |
+
449,
|
| 579 |
+
450,
|
| 580 |
+
451,
|
| 581 |
+
452,
|
| 582 |
+
453,
|
| 583 |
+
454,
|
| 584 |
+
455,
|
| 585 |
+
456,
|
| 586 |
+
457,
|
| 587 |
+
458,
|
| 588 |
+
459,
|
| 589 |
+
460,
|
| 590 |
+
461,
|
| 591 |
+
462,
|
| 592 |
+
463,
|
| 593 |
+
464,
|
| 594 |
+
465,
|
| 595 |
+
466,
|
| 596 |
+
467,
|
| 597 |
+
468,
|
| 598 |
+
469,
|
| 599 |
+
470,
|
| 600 |
+
471,
|
| 601 |
+
472,
|
| 602 |
+
473,
|
| 603 |
+
474,
|
| 604 |
+
475,
|
| 605 |
+
476,
|
| 606 |
+
477,
|
| 607 |
+
478,
|
| 608 |
+
479,
|
| 609 |
+
480,
|
| 610 |
+
481,
|
| 611 |
+
482,
|
| 612 |
+
483,
|
| 613 |
+
484,
|
| 614 |
+
485,
|
| 615 |
+
486,
|
| 616 |
+
487,
|
| 617 |
+
488,
|
| 618 |
+
489,
|
| 619 |
+
490,
|
| 620 |
+
491,
|
| 621 |
+
492,
|
| 622 |
+
493,
|
| 623 |
+
494,
|
| 624 |
+
495,
|
| 625 |
+
496,
|
| 626 |
+
497,
|
| 627 |
+
498,
|
| 628 |
+
499,
|
| 629 |
+
500,
|
| 630 |
+
501,
|
| 631 |
+
502,
|
| 632 |
+
503,
|
| 633 |
+
504,
|
| 634 |
+
505,
|
| 635 |
+
506,
|
| 636 |
+
507,
|
| 637 |
+
508,
|
| 638 |
+
509,
|
| 639 |
+
510,
|
| 640 |
+
511,
|
| 641 |
+
512,
|
| 642 |
+
513,
|
| 643 |
+
514,
|
| 644 |
+
515,
|
| 645 |
+
516,
|
| 646 |
+
517,
|
| 647 |
+
518,
|
| 648 |
+
519,
|
| 649 |
+
520,
|
| 650 |
+
521,
|
| 651 |
+
522,
|
| 652 |
+
523,
|
| 653 |
+
524,
|
| 654 |
+
525,
|
| 655 |
+
526,
|
| 656 |
+
527,
|
| 657 |
+
528,
|
| 658 |
+
529,
|
| 659 |
+
530,
|
| 660 |
+
531,
|
| 661 |
+
532,
|
| 662 |
+
533,
|
| 663 |
+
534,
|
| 664 |
+
535,
|
| 665 |
+
536,
|
| 666 |
+
537,
|
| 667 |
+
538,
|
| 668 |
+
539,
|
| 669 |
+
540,
|
| 670 |
+
541
|
| 671 |
+
],
|
| 672 |
+
"train_episodes": [
|
| 673 |
+
0,
|
| 674 |
+
1,
|
| 675 |
+
2,
|
| 676 |
+
3,
|
| 677 |
+
4,
|
| 678 |
+
5,
|
| 679 |
+
6,
|
| 680 |
+
7,
|
| 681 |
+
8,
|
| 682 |
+
9,
|
| 683 |
+
10,
|
| 684 |
+
11,
|
| 685 |
+
12,
|
| 686 |
+
13,
|
| 687 |
+
14,
|
| 688 |
+
15,
|
| 689 |
+
16,
|
| 690 |
+
17,
|
| 691 |
+
18,
|
| 692 |
+
19,
|
| 693 |
+
20,
|
| 694 |
+
21,
|
| 695 |
+
22,
|
| 696 |
+
23,
|
| 697 |
+
24,
|
| 698 |
+
25,
|
| 699 |
+
26,
|
| 700 |
+
27,
|
| 701 |
+
28,
|
| 702 |
+
29,
|
| 703 |
+
30,
|
| 704 |
+
31,
|
| 705 |
+
32,
|
| 706 |
+
33,
|
| 707 |
+
34,
|
| 708 |
+
35,
|
| 709 |
+
36,
|
| 710 |
+
37,
|
| 711 |
+
38,
|
| 712 |
+
39,
|
| 713 |
+
40,
|
| 714 |
+
41,
|
| 715 |
+
42,
|
| 716 |
+
43,
|
| 717 |
+
44,
|
| 718 |
+
45,
|
| 719 |
+
46,
|
| 720 |
+
47,
|
| 721 |
+
48,
|
| 722 |
+
49,
|
| 723 |
+
50,
|
| 724 |
+
51,
|
| 725 |
+
52,
|
| 726 |
+
53,
|
| 727 |
+
54,
|
| 728 |
+
55,
|
| 729 |
+
56,
|
| 730 |
+
57,
|
| 731 |
+
58,
|
| 732 |
+
59,
|
| 733 |
+
60,
|
| 734 |
+
61,
|
| 735 |
+
62,
|
| 736 |
+
63,
|
| 737 |
+
64,
|
| 738 |
+
65,
|
| 739 |
+
66,
|
| 740 |
+
67,
|
| 741 |
+
68,
|
| 742 |
+
69,
|
| 743 |
+
70,
|
| 744 |
+
71,
|
| 745 |
+
72,
|
| 746 |
+
73,
|
| 747 |
+
74,
|
| 748 |
+
75,
|
| 749 |
+
76,
|
| 750 |
+
77,
|
| 751 |
+
78,
|
| 752 |
+
79,
|
| 753 |
+
80,
|
| 754 |
+
81,
|
| 755 |
+
82,
|
| 756 |
+
83,
|
| 757 |
+
84,
|
| 758 |
+
85,
|
| 759 |
+
86,
|
| 760 |
+
87,
|
| 761 |
+
88,
|
| 762 |
+
89,
|
| 763 |
+
90,
|
| 764 |
+
91,
|
| 765 |
+
92,
|
| 766 |
+
93,
|
| 767 |
+
94,
|
| 768 |
+
95,
|
| 769 |
+
96,
|
| 770 |
+
97,
|
| 771 |
+
98,
|
| 772 |
+
99,
|
| 773 |
+
100,
|
| 774 |
+
101,
|
| 775 |
+
102,
|
| 776 |
+
103,
|
| 777 |
+
104,
|
| 778 |
+
105,
|
| 779 |
+
106,
|
| 780 |
+
107,
|
| 781 |
+
108,
|
| 782 |
+
109,
|
| 783 |
+
110,
|
| 784 |
+
111,
|
| 785 |
+
112,
|
| 786 |
+
113,
|
| 787 |
+
114,
|
| 788 |
+
115,
|
| 789 |
+
116,
|
| 790 |
+
117,
|
| 791 |
+
118,
|
| 792 |
+
119,
|
| 793 |
+
120,
|
| 794 |
+
121,
|
| 795 |
+
122,
|
| 796 |
+
123,
|
| 797 |
+
124,
|
| 798 |
+
125,
|
| 799 |
+
126,
|
| 800 |
+
127,
|
| 801 |
+
128,
|
| 802 |
+
129,
|
| 803 |
+
130,
|
| 804 |
+
131,
|
| 805 |
+
132,
|
| 806 |
+
133,
|
| 807 |
+
134,
|
| 808 |
+
135,
|
| 809 |
+
136,
|
| 810 |
+
137,
|
| 811 |
+
138,
|
| 812 |
+
139,
|
| 813 |
+
140,
|
| 814 |
+
141,
|
| 815 |
+
142,
|
| 816 |
+
143,
|
| 817 |
+
144,
|
| 818 |
+
145,
|
| 819 |
+
146,
|
| 820 |
+
147,
|
| 821 |
+
148,
|
| 822 |
+
149,
|
| 823 |
+
150,
|
| 824 |
+
151,
|
| 825 |
+
152,
|
| 826 |
+
153,
|
| 827 |
+
154,
|
| 828 |
+
155,
|
| 829 |
+
156,
|
| 830 |
+
157,
|
| 831 |
+
158,
|
| 832 |
+
159,
|
| 833 |
+
160,
|
| 834 |
+
161,
|
| 835 |
+
162,
|
| 836 |
+
163,
|
| 837 |
+
164,
|
| 838 |
+
165,
|
| 839 |
+
166,
|
| 840 |
+
167,
|
| 841 |
+
168,
|
| 842 |
+
169,
|
| 843 |
+
170,
|
| 844 |
+
171,
|
| 845 |
+
172,
|
| 846 |
+
173,
|
| 847 |
+
174,
|
| 848 |
+
175,
|
| 849 |
+
176,
|
| 850 |
+
177,
|
| 851 |
+
178,
|
| 852 |
+
179,
|
| 853 |
+
180,
|
| 854 |
+
181,
|
| 855 |
+
182,
|
| 856 |
+
183,
|
| 857 |
+
184,
|
| 858 |
+
185,
|
| 859 |
+
186,
|
| 860 |
+
187,
|
| 861 |
+
188,
|
| 862 |
+
189,
|
| 863 |
+
190,
|
| 864 |
+
191,
|
| 865 |
+
192,
|
| 866 |
+
193,
|
| 867 |
+
194,
|
| 868 |
+
195,
|
| 869 |
+
196,
|
| 870 |
+
197,
|
| 871 |
+
198,
|
| 872 |
+
199,
|
| 873 |
+
200,
|
| 874 |
+
201,
|
| 875 |
+
202,
|
| 876 |
+
203,
|
| 877 |
+
204,
|
| 878 |
+
205,
|
| 879 |
+
206,
|
| 880 |
+
207,
|
| 881 |
+
208,
|
| 882 |
+
209,
|
| 883 |
+
210,
|
| 884 |
+
211,
|
| 885 |
+
212,
|
| 886 |
+
213,
|
| 887 |
+
214,
|
| 888 |
+
215,
|
| 889 |
+
216,
|
| 890 |
+
217,
|
| 891 |
+
218,
|
| 892 |
+
219,
|
| 893 |
+
220,
|
| 894 |
+
221,
|
| 895 |
+
222,
|
| 896 |
+
223,
|
| 897 |
+
224,
|
| 898 |
+
225,
|
| 899 |
+
226,
|
| 900 |
+
227,
|
| 901 |
+
228,
|
| 902 |
+
229,
|
| 903 |
+
230,
|
| 904 |
+
231,
|
| 905 |
+
232,
|
| 906 |
+
233,
|
| 907 |
+
234,
|
| 908 |
+
235,
|
| 909 |
+
236,
|
| 910 |
+
237,
|
| 911 |
+
238,
|
| 912 |
+
239,
|
| 913 |
+
240,
|
| 914 |
+
241,
|
| 915 |
+
242,
|
| 916 |
+
243,
|
| 917 |
+
244,
|
| 918 |
+
245,
|
| 919 |
+
246,
|
| 920 |
+
247,
|
| 921 |
+
248,
|
| 922 |
+
249,
|
| 923 |
+
250,
|
| 924 |
+
251,
|
| 925 |
+
252,
|
| 926 |
+
253,
|
| 927 |
+
254,
|
| 928 |
+
255,
|
| 929 |
+
256,
|
| 930 |
+
257,
|
| 931 |
+
258,
|
| 932 |
+
259,
|
| 933 |
+
260,
|
| 934 |
+
261,
|
| 935 |
+
262,
|
| 936 |
+
263,
|
| 937 |
+
264,
|
| 938 |
+
265,
|
| 939 |
+
266,
|
| 940 |
+
267,
|
| 941 |
+
268,
|
| 942 |
+
269,
|
| 943 |
+
270,
|
| 944 |
+
271,
|
| 945 |
+
272,
|
| 946 |
+
273,
|
| 947 |
+
274,
|
| 948 |
+
275,
|
| 949 |
+
276,
|
| 950 |
+
277,
|
| 951 |
+
278,
|
| 952 |
+
279,
|
| 953 |
+
280,
|
| 954 |
+
281,
|
| 955 |
+
282,
|
| 956 |
+
283,
|
| 957 |
+
284,
|
| 958 |
+
285,
|
| 959 |
+
286,
|
| 960 |
+
287,
|
| 961 |
+
288,
|
| 962 |
+
289,
|
| 963 |
+
290,
|
| 964 |
+
291,
|
| 965 |
+
292,
|
| 966 |
+
293,
|
| 967 |
+
294,
|
| 968 |
+
295,
|
| 969 |
+
296,
|
| 970 |
+
297,
|
| 971 |
+
298,
|
| 972 |
+
299,
|
| 973 |
+
300,
|
| 974 |
+
301,
|
| 975 |
+
302,
|
| 976 |
+
303,
|
| 977 |
+
304,
|
| 978 |
+
305,
|
| 979 |
+
306,
|
| 980 |
+
307,
|
| 981 |
+
308,
|
| 982 |
+
309,
|
| 983 |
+
310,
|
| 984 |
+
311,
|
| 985 |
+
312,
|
| 986 |
+
313,
|
| 987 |
+
314,
|
| 988 |
+
315,
|
| 989 |
+
316,
|
| 990 |
+
317,
|
| 991 |
+
318,
|
| 992 |
+
319,
|
| 993 |
+
320,
|
| 994 |
+
321,
|
| 995 |
+
322,
|
| 996 |
+
323,
|
| 997 |
+
324,
|
| 998 |
+
325,
|
| 999 |
+
326,
|
| 1000 |
+
327,
|
| 1001 |
+
328,
|
| 1002 |
+
329,
|
| 1003 |
+
330,
|
| 1004 |
+
331,
|
| 1005 |
+
332,
|
| 1006 |
+
333,
|
| 1007 |
+
334,
|
| 1008 |
+
335,
|
| 1009 |
+
336,
|
| 1010 |
+
337,
|
| 1011 |
+
338,
|
| 1012 |
+
339,
|
| 1013 |
+
340,
|
| 1014 |
+
341,
|
| 1015 |
+
342,
|
| 1016 |
+
343,
|
| 1017 |
+
344,
|
| 1018 |
+
345,
|
| 1019 |
+
346,
|
| 1020 |
+
347,
|
| 1021 |
+
348,
|
| 1022 |
+
349,
|
| 1023 |
+
350,
|
| 1024 |
+
351,
|
| 1025 |
+
352,
|
| 1026 |
+
353,
|
| 1027 |
+
354,
|
| 1028 |
+
355,
|
| 1029 |
+
356,
|
| 1030 |
+
357,
|
| 1031 |
+
358,
|
| 1032 |
+
359,
|
| 1033 |
+
360,
|
| 1034 |
+
361,
|
| 1035 |
+
362,
|
| 1036 |
+
363,
|
| 1037 |
+
364,
|
| 1038 |
+
365,
|
| 1039 |
+
366,
|
| 1040 |
+
367,
|
| 1041 |
+
368,
|
| 1042 |
+
369,
|
| 1043 |
+
370,
|
| 1044 |
+
371,
|
| 1045 |
+
372,
|
| 1046 |
+
373,
|
| 1047 |
+
374,
|
| 1048 |
+
375,
|
| 1049 |
+
376,
|
| 1050 |
+
377,
|
| 1051 |
+
378,
|
| 1052 |
+
379,
|
| 1053 |
+
380,
|
| 1054 |
+
381,
|
| 1055 |
+
382,
|
| 1056 |
+
383,
|
| 1057 |
+
384,
|
| 1058 |
+
385,
|
| 1059 |
+
386,
|
| 1060 |
+
387,
|
| 1061 |
+
388,
|
| 1062 |
+
389,
|
| 1063 |
+
390,
|
| 1064 |
+
391,
|
| 1065 |
+
392,
|
| 1066 |
+
393,
|
| 1067 |
+
394,
|
| 1068 |
+
395,
|
| 1069 |
+
396,
|
| 1070 |
+
397,
|
| 1071 |
+
398,
|
| 1072 |
+
399,
|
| 1073 |
+
400,
|
| 1074 |
+
401,
|
| 1075 |
+
402,
|
| 1076 |
+
403,
|
| 1077 |
+
404,
|
| 1078 |
+
405,
|
| 1079 |
+
406,
|
| 1080 |
+
407,
|
| 1081 |
+
408,
|
| 1082 |
+
409,
|
| 1083 |
+
410,
|
| 1084 |
+
411,
|
| 1085 |
+
412,
|
| 1086 |
+
413,
|
| 1087 |
+
414,
|
| 1088 |
+
415,
|
| 1089 |
+
416,
|
| 1090 |
+
417,
|
| 1091 |
+
418,
|
| 1092 |
+
419,
|
| 1093 |
+
420,
|
| 1094 |
+
421,
|
| 1095 |
+
422,
|
| 1096 |
+
423,
|
| 1097 |
+
424,
|
| 1098 |
+
425,
|
| 1099 |
+
426,
|
| 1100 |
+
427,
|
| 1101 |
+
428,
|
| 1102 |
+
429,
|
| 1103 |
+
430,
|
| 1104 |
+
431,
|
| 1105 |
+
432,
|
| 1106 |
+
433,
|
| 1107 |
+
434,
|
| 1108 |
+
435,
|
| 1109 |
+
436,
|
| 1110 |
+
437,
|
| 1111 |
+
438,
|
| 1112 |
+
439,
|
| 1113 |
+
440,
|
| 1114 |
+
441,
|
| 1115 |
+
442,
|
| 1116 |
+
443,
|
| 1117 |
+
444,
|
| 1118 |
+
445,
|
| 1119 |
+
446,
|
| 1120 |
+
447,
|
| 1121 |
+
448,
|
| 1122 |
+
449,
|
| 1123 |
+
450,
|
| 1124 |
+
451,
|
| 1125 |
+
452,
|
| 1126 |
+
453,
|
| 1127 |
+
454,
|
| 1128 |
+
455,
|
| 1129 |
+
456,
|
| 1130 |
+
457,
|
| 1131 |
+
458,
|
| 1132 |
+
459,
|
| 1133 |
+
460,
|
| 1134 |
+
461,
|
| 1135 |
+
462,
|
| 1136 |
+
463,
|
| 1137 |
+
464,
|
| 1138 |
+
465,
|
| 1139 |
+
466,
|
| 1140 |
+
467,
|
| 1141 |
+
468,
|
| 1142 |
+
469,
|
| 1143 |
+
470,
|
| 1144 |
+
471,
|
| 1145 |
+
472,
|
| 1146 |
+
473,
|
| 1147 |
+
474,
|
| 1148 |
+
475,
|
| 1149 |
+
476,
|
| 1150 |
+
477,
|
| 1151 |
+
478,
|
| 1152 |
+
479,
|
| 1153 |
+
480,
|
| 1154 |
+
481,
|
| 1155 |
+
482,
|
| 1156 |
+
483,
|
| 1157 |
+
484,
|
| 1158 |
+
485,
|
| 1159 |
+
486,
|
| 1160 |
+
487,
|
| 1161 |
+
488,
|
| 1162 |
+
489,
|
| 1163 |
+
490,
|
| 1164 |
+
491,
|
| 1165 |
+
492,
|
| 1166 |
+
493,
|
| 1167 |
+
494,
|
| 1168 |
+
495,
|
| 1169 |
+
496,
|
| 1170 |
+
497,
|
| 1171 |
+
498,
|
| 1172 |
+
499,
|
| 1173 |
+
500,
|
| 1174 |
+
501,
|
| 1175 |
+
502,
|
| 1176 |
+
503,
|
| 1177 |
+
504,
|
| 1178 |
+
505,
|
| 1179 |
+
506,
|
| 1180 |
+
507,
|
| 1181 |
+
508,
|
| 1182 |
+
509,
|
| 1183 |
+
510,
|
| 1184 |
+
511,
|
| 1185 |
+
512,
|
| 1186 |
+
513,
|
| 1187 |
+
514,
|
| 1188 |
+
515,
|
| 1189 |
+
516,
|
| 1190 |
+
517,
|
| 1191 |
+
518,
|
| 1192 |
+
519,
|
| 1193 |
+
520,
|
| 1194 |
+
521,
|
| 1195 |
+
522,
|
| 1196 |
+
523,
|
| 1197 |
+
524,
|
| 1198 |
+
525,
|
| 1199 |
+
526,
|
| 1200 |
+
527,
|
| 1201 |
+
528,
|
| 1202 |
+
529,
|
| 1203 |
+
530,
|
| 1204 |
+
531,
|
| 1205 |
+
532,
|
| 1206 |
+
533,
|
| 1207 |
+
534,
|
| 1208 |
+
535,
|
| 1209 |
+
536,
|
| 1210 |
+
537,
|
| 1211 |
+
538,
|
| 1212 |
+
539,
|
| 1213 |
+
540,
|
| 1214 |
+
541
|
| 1215 |
+
],
|
| 1216 |
+
"val_episodes": [],
|
| 1217 |
+
"train_frames": 331577,
|
| 1218 |
+
"git_commit": "9bfeb4aec689c080b964f0dec10feec47d5b1741"
|
| 1219 |
+
},
|
| 1220 |
+
"training": {
|
| 1221 |
+
"steps": 4000,
|
| 1222 |
+
"batch_size": 512,
|
| 1223 |
+
"lr": 0.0001,
|
| 1224 |
+
"betas": [
|
| 1225 |
+
0.95,
|
| 1226 |
+
0.999
|
| 1227 |
+
],
|
| 1228 |
+
"weight_decay": 1e-06,
|
| 1229 |
+
"warmup": 200,
|
| 1230 |
+
"schedule": "linear warm-up + cosine",
|
| 1231 |
+
"backbone_lr_scale": 0.1,
|
| 1232 |
+
"ema": 0.9999,
|
| 1233 |
+
"shift_px": 0,
|
| 1234 |
+
"amp": true,
|
| 1235 |
+
"seed": 0,
|
| 1236 |
+
"augmentation": {
|
| 1237 |
+
"spec": "docs/augmentation_v2.md",
|
| 1238 |
+
"version": "hb-aug-v2-20261109",
|
| 1239 |
+
"implementation": "evaluation/augmentation/hb_aug_v2.py",
|
| 1240 |
+
"visual": {
|
| 1241 |
+
"effects": [
|
| 1242 |
+
"exposure",
|
| 1243 |
+
"contrast",
|
| 1244 |
+
"saturation",
|
| 1245 |
+
"hue",
|
| 1246 |
+
"gamma",
|
| 1247 |
+
"temperature",
|
| 1248 |
+
"rotation_crop",
|
| 1249 |
+
"noise",
|
| 1250 |
+
"gaussian_blur",
|
| 1251 |
+
"jpeg",
|
| 1252 |
+
"motion_blur",
|
| 1253 |
+
"sharpen",
|
| 1254 |
+
"defocus",
|
| 1255 |
+
"light_shadow",
|
| 1256 |
+
"wb_channel"
|
| 1257 |
+
],
|
| 1258 |
+
"boosted_per_sample": 1,
|
| 1259 |
+
"boost": 1.5,
|
| 1260 |
+
"pixel_scale": "H / 224",
|
| 1261 |
+
"future_targets": "none (one observation frame)"
|
| 1262 |
+
},
|
| 1263 |
+
"proprio": {
|
| 1264 |
+
"robot": "g1",
|
| 1265 |
+
"body_dims": 29,
|
| 1266 |
+
"bias_deg": 2.0,
|
| 1267 |
+
"bias_scope": "per_sample",
|
| 1268 |
+
"noise_deg": 0.25,
|
| 1269 |
+
"noise_clip_sigma": 3,
|
| 1270 |
+
"delay_probability": 0.0,
|
| 1271 |
+
"history_drop_probability": 0.0,
|
| 1272 |
+
"velocity": false
|
| 1273 |
+
},
|
| 1274 |
+
"native_image_augmentation": "off",
|
| 1275 |
+
"evaluation": "off"
|
| 1276 |
+
},
|
| 1277 |
+
"preflight": {
|
| 1278 |
+
"samples": 64,
|
| 1279 |
+
"state_dim": 44,
|
| 1280 |
+
"body_dims": 29,
|
| 1281 |
+
"images_changed": 64,
|
| 1282 |
+
"body_values_moved": 1.0,
|
| 1283 |
+
"max_body_offset_deg": 2.6335,
|
| 1284 |
+
"actions_bit_identical": true,
|
| 1285 |
+
"non_body_state_bit_identical": true,
|
| 1286 |
+
"eval_items_deterministic": 8
|
| 1287 |
+
}
|
| 1288 |
+
},
|
| 1289 |
+
"stats": {
|
| 1290 |
+
"state": {
|
| 1291 |
+
"min": [
|
| 1292 |
+
-1.037501573562622,
|
| 1293 |
+
-0.264034628868103,
|
| 1294 |
+
-0.4427748918533325,
|
| 1295 |
+
0.0667380765080452,
|
| 1296 |
+
-0.5215858817100525,
|
| 1297 |
+
-0.2416602224111557,
|
| 1298 |
+
-0.6867885589599609,
|
| 1299 |
+
-0.47648993134498596,
|
| 1300 |
+
-0.9344953298568726,
|
| 1301 |
+
0.10217262804508209,
|
| 1302 |
+
-0.6552681922912598,
|
| 1303 |
+
-0.21590328216552734,
|
| 1304 |
+
-0.15592412650585175,
|
| 1305 |
+
-0.1158304288983345,
|
| 1306 |
+
0.07265116274356842,
|
| 1307 |
+
0.022757036611437798,
|
| 1308 |
+
-0.02251558005809784,
|
| 1309 |
+
-0.44369247555732727,
|
| 1310 |
+
-0.5461236238479614,
|
| 1311 |
+
-0.5896561145782471,
|
| 1312 |
+
-0.26370522379875183,
|
| 1313 |
+
0.0013440968468785286,
|
| 1314 |
+
-0.9844546318054199,
|
| 1315 |
+
-1.5772571563720703,
|
| 1316 |
+
-1.0258455276489258,
|
| 1317 |
+
-0.8631634712219238,
|
| 1318 |
+
-0.5786121487617493,
|
| 1319 |
+
-1.024689793586731,
|
| 1320 |
+
-0.9216610789299011,
|
| 1321 |
+
0.9997360110282898,
|
| 1322 |
+
0.9988104701042175,
|
| 1323 |
+
0.9986811280250549,
|
| 1324 |
+
0.9989097118377686,
|
| 1325 |
+
0.9351540803909302,
|
| 1326 |
+
0.0,
|
| 1327 |
+
0.5493931770324707,
|
| 1328 |
+
0.5609477758407593,
|
| 1329 |
+
0.6044747233390808,
|
| 1330 |
+
0.6079143285751343,
|
| 1331 |
+
0.8139541745185852,
|
| 1332 |
+
0.0,
|
| 1333 |
+
-0.29203763604164124,
|
| 1334 |
+
-0.12108057737350464,
|
| 1335 |
+
-1.0
|
| 1336 |
+
],
|
| 1337 |
+
"max": [
|
| 1338 |
+
0.31642699241638184,
|
| 1339 |
+
0.32778802514076233,
|
| 1340 |
+
0.5025486946105957,
|
| 1341 |
+
1.8408095836639404,
|
| 1342 |
+
0.5323996543884277,
|
| 1343 |
+
0.23189055919647217,
|
| 1344 |
+
0.39967241883277893,
|
| 1345 |
+
0.18936435878276825,
|
| 1346 |
+
0.1610136777162552,
|
| 1347 |
+
1.3123230934143066,
|
| 1348 |
+
0.25517070293426514,
|
| 1349 |
+
0.21713340282440186,
|
| 1350 |
+
0.19809074699878693,
|
| 1351 |
+
0.11862942576408386,
|
| 1352 |
+
0.30983150005340576,
|
| 1353 |
+
0.4407850205898285,
|
| 1354 |
+
0.4915717840194702,
|
| 1355 |
+
0.1512441635131836,
|
| 1356 |
+
-0.14922617375850677,
|
| 1357 |
+
-0.20036308467388153,
|
| 1358 |
+
0.13975681364536285,
|
| 1359 |
+
0.4291156232357025,
|
| 1360 |
+
0.8944763541221619,
|
| 1361 |
+
0.1526746302843094,
|
| 1362 |
+
0.7923631072044373,
|
| 1363 |
+
1.1935943365097046,
|
| 1364 |
+
1.549551248550415,
|
| 1365 |
+
1.3240046501159668,
|
| 1366 |
+
1.1530930995941162,
|
| 1367 |
+
1.0,
|
| 1368 |
+
1.0,
|
| 1369 |
+
1.0,
|
| 1370 |
+
1.0,
|
| 1371 |
+
1.0,
|
| 1372 |
+
0.0036626288201659918,
|
| 1373 |
+
1.0,
|
| 1374 |
+
1.0,
|
| 1375 |
+
1.0,
|
| 1376 |
+
1.0,
|
| 1377 |
+
1.0,
|
| 1378 |
+
0.011179528199136257,
|
| 1379 |
+
0.08667038381099701,
|
| 1380 |
+
0.1206020638346672,
|
| 1381 |
+
-0.9563509225845337
|
| 1382 |
+
],
|
| 1383 |
+
"mean": [
|
| 1384 |
+
-0.11453739324440969,
|
| 1385 |
+
0.04011084241805277,
|
| 1386 |
+
0.042604342544257975,
|
| 1387 |
+
0.3101375482929991,
|
| 1388 |
+
-0.09883363973761503,
|
| 1389 |
+
-0.03264575295857167,
|
| 1390 |
+
-0.05904688190983114,
|
| 1391 |
+
-0.06457161075417515,
|
| 1392 |
+
-0.2835409265675875,
|
| 1393 |
+
0.3173361870458159,
|
| 1394 |
+
-0.17238908965674926,
|
| 1395 |
+
-0.022206056895898326,
|
| 1396 |
+
0.01720015949095758,
|
| 1397 |
+
0.010739354338715243,
|
| 1398 |
+
0.14542730844781557,
|
| 1399 |
+
0.23942305438226613,
|
| 1400 |
+
0.19775352569474616,
|
| 1401 |
+
-0.06352798202838195,
|
| 1402 |
+
-0.3432223755631105,
|
| 1403 |
+
-0.37103841771520646,
|
| 1404 |
+
-0.04449127923501375,
|
| 1405 |
+
0.18419998718936037,
|
| 1406 |
+
0.06295970191975703,
|
| 1407 |
+
-0.3409248401139509,
|
| 1408 |
+
-0.005028062842690194,
|
| 1409 |
+
-0.07113524459719395,
|
| 1410 |
+
0.35502965168391576,
|
| 1411 |
+
0.041413371540891426,
|
| 1412 |
+
-0.008045864253059339,
|
| 1413 |
+
0.9999993913050222,
|
| 1414 |
+
0.9999989068213664,
|
| 1415 |
+
0.9999985447814413,
|
| 1416 |
+
0.9999986399345618,
|
| 1417 |
+
0.9997595920880835,
|
| 1418 |
+
4.1432946030695356e-08,
|
| 1419 |
+
0.848720485038278,
|
| 1420 |
+
0.8478708518704877,
|
| 1421 |
+
0.8541396666476672,
|
| 1422 |
+
0.8627360528043341,
|
| 1423 |
+
0.9322875091376083,
|
| 1424 |
+
0.0013038922559370368,
|
| 1425 |
+
-0.07185684814001166,
|
| 1426 |
+
0.003796186879417613,
|
| 1427 |
+
-0.9959426704259458
|
| 1428 |
+
],
|
| 1429 |
+
"std": [
|
| 1430 |
+
0.22314642932157291,
|
| 1431 |
+
0.07865177014736555,
|
| 1432 |
+
0.13175734378126513,
|
| 1433 |
+
0.26774492089834084,
|
| 1434 |
+
0.138597724289319,
|
| 1435 |
+
0.05425034662016361,
|
| 1436 |
+
0.14586651661033237,
|
| 1437 |
+
0.06093383638045563,
|
| 1438 |
+
0.14535052480778932,
|
| 1439 |
+
0.16501149156409287,
|
| 1440 |
+
0.11795297516115227,
|
| 1441 |
+
0.05220902917773687,
|
| 1442 |
+
0.04589606128733729,
|
| 1443 |
+
0.02124229308479261,
|
| 1444 |
+
0.023465064820185715,
|
| 1445 |
+
0.06147598163079173,
|
| 1446 |
+
0.08019322209832842,
|
| 1447 |
+
0.10835271570424901,
|
| 1448 |
+
0.049692413539137906,
|
| 1449 |
+
0.04662608297189601,
|
| 1450 |
+
0.06414416688004776,
|
| 1451 |
+
0.06755100433487839,
|
| 1452 |
+
0.3112339885690449,
|
| 1453 |
+
0.24397518045868727,
|
| 1454 |
+
0.24187918334876668,
|
| 1455 |
+
0.5876198067006639,
|
| 1456 |
+
0.2545545751519334,
|
| 1457 |
+
0.2513222402223307,
|
| 1458 |
+
0.2206716966214715,
|
| 1459 |
+
3.0745450764358815e-06,
|
| 1460 |
+
1.0280418129053001e-05,
|
| 1461 |
+
1.3003933935428358e-05,
|
| 1462 |
+
1.0326645711325357e-05,
|
| 1463 |
+
0.0002625973205270167,
|
| 1464 |
+
1.1079706153857785e-05,
|
| 1465 |
+
0.1666589578526184,
|
| 1466 |
+
0.16783685131463846,
|
| 1467 |
+
0.16091359576221068,
|
| 1468 |
+
0.15173440996739748,
|
| 1469 |
+
0.07479574625351736,
|
| 1470 |
+
0.0016642108162531056,
|
| 1471 |
+
0.04762500188416354,
|
| 1472 |
+
0.025104825839366962,
|
| 1473 |
+
0.004688973726931697
|
| 1474 |
+
]
|
| 1475 |
+
},
|
| 1476 |
+
"action": {
|
| 1477 |
+
"min": [
|
| 1478 |
+
-0.5625,
|
| 1479 |
+
-0.4375,
|
| 1480 |
+
-0.4375,
|
| 1481 |
+
-0.4375,
|
| 1482 |
+
-0.5,
|
| 1483 |
+
-0.3125,
|
| 1484 |
+
-0.4375,
|
| 1485 |
+
-0.375,
|
| 1486 |
+
-0.5,
|
| 1487 |
+
-0.5,
|
| 1488 |
+
-0.5625,
|
| 1489 |
+
-0.5,
|
| 1490 |
+
-0.375,
|
| 1491 |
+
-0.375,
|
| 1492 |
+
-0.3125,
|
| 1493 |
+
-0.5625,
|
| 1494 |
+
-0.375,
|
| 1495 |
+
-0.4375,
|
| 1496 |
+
-0.5,
|
| 1497 |
+
-0.5,
|
| 1498 |
+
-0.375,
|
| 1499 |
+
-0.5625,
|
| 1500 |
+
-0.4375,
|
| 1501 |
+
-0.4375,
|
| 1502 |
+
-0.3125,
|
| 1503 |
+
-0.3125,
|
| 1504 |
+
-0.375,
|
| 1505 |
+
-0.5625,
|
| 1506 |
+
-0.4375,
|
| 1507 |
+
-0.375,
|
| 1508 |
+
-0.4375,
|
| 1509 |
+
-0.5625,
|
| 1510 |
+
-0.4375,
|
| 1511 |
+
-0.25,
|
| 1512 |
+
-0.1875,
|
| 1513 |
+
-0.3125,
|
| 1514 |
+
-0.5625,
|
| 1515 |
+
-0.5,
|
| 1516 |
+
-0.125,
|
| 1517 |
+
-0.375,
|
| 1518 |
+
-0.4375,
|
| 1519 |
+
-0.5,
|
| 1520 |
+
-0.3125,
|
| 1521 |
+
-0.375,
|
| 1522 |
+
-0.375,
|
| 1523 |
+
-0.3125,
|
| 1524 |
+
-0.375,
|
| 1525 |
+
-0.5,
|
| 1526 |
+
-0.625,
|
| 1527 |
+
-0.5625,
|
| 1528 |
+
-0.75,
|
| 1529 |
+
-0.375,
|
| 1530 |
+
-0.5625,
|
| 1531 |
+
-0.4375,
|
| 1532 |
+
-0.25,
|
| 1533 |
+
-0.5,
|
| 1534 |
+
-0.4375,
|
| 1535 |
+
-0.1875,
|
| 1536 |
+
-0.3125,
|
| 1537 |
+
-0.4375,
|
| 1538 |
+
-0.5625,
|
| 1539 |
+
-0.4375,
|
| 1540 |
+
-0.25,
|
| 1541 |
+
-0.5625,
|
| 1542 |
+
0.9997360110282898,
|
| 1543 |
+
0.9988104701042175,
|
| 1544 |
+
0.9986811280250549,
|
| 1545 |
+
0.9989097118377686,
|
| 1546 |
+
0.9351540803909302,
|
| 1547 |
+
0.0,
|
| 1548 |
+
0.5493931770324707,
|
| 1549 |
+
0.5609477758407593,
|
| 1550 |
+
0.6044747233390808,
|
| 1551 |
+
0.6079143285751343,
|
| 1552 |
+
0.8139541745185852,
|
| 1553 |
+
0.0
|
| 1554 |
+
],
|
| 1555 |
+
"max": [
|
| 1556 |
+
0.3125,
|
| 1557 |
+
0.375,
|
| 1558 |
+
0.5,
|
| 1559 |
+
0.3125,
|
| 1560 |
+
0.6875,
|
| 1561 |
+
0.5,
|
| 1562 |
+
0.5625,
|
| 1563 |
+
0.3125,
|
| 1564 |
+
0.3125,
|
| 1565 |
+
0.125,
|
| 1566 |
+
0.375,
|
| 1567 |
+
0.1875,
|
| 1568 |
+
0.375,
|
| 1569 |
+
0.4375,
|
| 1570 |
+
0.5,
|
| 1571 |
+
0.4375,
|
| 1572 |
+
0.25,
|
| 1573 |
+
0.3125,
|
| 1574 |
+
0.4375,
|
| 1575 |
+
0.1875,
|
| 1576 |
+
0.3125,
|
| 1577 |
+
0.25,
|
| 1578 |
+
0.3125,
|
| 1579 |
+
0.375,
|
| 1580 |
+
0.3125,
|
| 1581 |
+
0.375,
|
| 1582 |
+
0.0625,
|
| 1583 |
+
0.3125,
|
| 1584 |
+
0.3125,
|
| 1585 |
+
0.375,
|
| 1586 |
+
0.375,
|
| 1587 |
+
0.3125,
|
| 1588 |
+
0.375,
|
| 1589 |
+
0.5,
|
| 1590 |
+
0.1875,
|
| 1591 |
+
0.375,
|
| 1592 |
+
0.5,
|
| 1593 |
+
0.5,
|
| 1594 |
+
0.4375,
|
| 1595 |
+
0.3125,
|
| 1596 |
+
0.5,
|
| 1597 |
+
0.4375,
|
| 1598 |
+
0.5,
|
| 1599 |
+
0.25,
|
| 1600 |
+
0.4375,
|
| 1601 |
+
0.4375,
|
| 1602 |
+
0.3125,
|
| 1603 |
+
0.5625,
|
| 1604 |
+
0.1875,
|
| 1605 |
+
0.375,
|
| 1606 |
+
0.4375,
|
| 1607 |
+
0.3125,
|
| 1608 |
+
0.5625,
|
| 1609 |
+
0.5,
|
| 1610 |
+
0.3125,
|
| 1611 |
+
0.625,
|
| 1612 |
+
0.375,
|
| 1613 |
+
0.3125,
|
| 1614 |
+
0.4375,
|
| 1615 |
+
0.125,
|
| 1616 |
+
0.375,
|
| 1617 |
+
0.4375,
|
| 1618 |
+
0.5,
|
| 1619 |
+
0.375,
|
| 1620 |
+
1.0,
|
| 1621 |
+
1.0,
|
| 1622 |
+
1.0,
|
| 1623 |
+
1.0,
|
| 1624 |
+
1.0,
|
| 1625 |
+
0.0036626288201659918,
|
| 1626 |
+
1.0,
|
| 1627 |
+
1.0,
|
| 1628 |
+
1.0,
|
| 1629 |
+
1.0,
|
| 1630 |
+
1.0,
|
| 1631 |
+
0.011179528199136257
|
| 1632 |
+
],
|
| 1633 |
+
"mean": [
|
| 1634 |
+
0.035801073355510186,
|
| 1635 |
+
0.008993197658462439,
|
| 1636 |
+
-0.040684742910394874,
|
| 1637 |
+
-0.015219504066928647,
|
| 1638 |
+
0.06590757953657823,
|
| 1639 |
+
0.10679928794819907,
|
| 1640 |
+
0.07591468195924325,
|
| 1641 |
+
0.005018630664973747,
|
| 1642 |
+
0.02696074365833577,
|
| 1643 |
+
-0.21216018451219476,
|
| 1644 |
+
-0.1270698435054301,
|
| 1645 |
+
-0.20399956118789905,
|
| 1646 |
+
-0.038899524092443086,
|
| 1647 |
+
0.06899321273791607,
|
| 1648 |
+
0.17266030967166,
|
| 1649 |
+
-0.0748498840390015,
|
| 1650 |
+
0.0503489762558923,
|
| 1651 |
+
-0.06576507869966855,
|
| 1652 |
+
0.0027595400163461276,
|
| 1653 |
+
-0.08168671982676724,
|
| 1654 |
+
-0.0738222192733513,
|
| 1655 |
+
-0.1700281910385823,
|
| 1656 |
+
-0.09772541521275602,
|
| 1657 |
+
-0.10753158391565157,
|
| 1658 |
+
0.019795175781191096,
|
| 1659 |
+
-0.025940241633165148,
|
| 1660 |
+
-0.17703749807736965,
|
| 1661 |
+
-0.05779030964150107,
|
| 1662 |
+
0.025859755049355053,
|
| 1663 |
+
-0.010009175847540693,
|
| 1664 |
+
0.0017912505994082822,
|
| 1665 |
+
-0.15789281222762735,
|
| 1666 |
+
0.03512852972311107,
|
| 1667 |
+
0.12875553792934974,
|
| 1668 |
+
0.02877913727429828,
|
| 1669 |
+
0.08183280203391671,
|
| 1670 |
+
-0.08610895810023012,
|
| 1671 |
+
-0.05243861154422653,
|
| 1672 |
+
0.12698634103089176,
|
| 1673 |
+
-0.07630052747928837,
|
| 1674 |
+
-0.06368411409717803,
|
| 1675 |
+
-0.07644208585034547,
|
| 1676 |
+
0.10793175491665585,
|
| 1677 |
+
-0.11472240987764531,
|
| 1678 |
+
0.0446866414136083,
|
| 1679 |
+
-0.04013735874321801,
|
| 1680 |
+
-0.021028863582214688,
|
| 1681 |
+
-0.039761126374869185,
|
| 1682 |
+
-0.2875461431281422,
|
| 1683 |
+
-0.07881219897640669,
|
| 1684 |
+
0.023944852930088637,
|
| 1685 |
+
0.07625246172080694,
|
| 1686 |
+
0.028764434806998074,
|
| 1687 |
+
-0.06805847510532999,
|
| 1688 |
+
-0.0025467312268341894,
|
| 1689 |
+
0.10802901739264183,
|
| 1690 |
+
-0.05356523522439735,
|
| 1691 |
+
0.0780337221821779,
|
| 1692 |
+
0.13257554052301576,
|
| 1693 |
+
-0.16686659508952673,
|
| 1694 |
+
-0.044055377785552075,
|
| 1695 |
+
0.07334570853828824,
|
| 1696 |
+
0.17842857767577366,
|
| 1697 |
+
-0.05643768264988223,
|
| 1698 |
+
0.9999993913050222,
|
| 1699 |
+
0.9999989068213664,
|
| 1700 |
+
0.9999985447814413,
|
| 1701 |
+
0.9999986399345618,
|
| 1702 |
+
0.9997595920880835,
|
| 1703 |
+
4.1432946030695356e-08,
|
| 1704 |
+
0.848720485038278,
|
| 1705 |
+
0.8478708518704877,
|
| 1706 |
+
0.8541396666476672,
|
| 1707 |
+
0.8627360528043341,
|
| 1708 |
+
0.9322875091376083,
|
| 1709 |
+
0.0013038922559370368
|
| 1710 |
+
],
|
| 1711 |
+
"std": [
|
| 1712 |
+
0.11173244677940765,
|
| 1713 |
+
0.15194660980294933,
|
| 1714 |
+
0.1351430711515662,
|
| 1715 |
+
0.10484135405721283,
|
| 1716 |
+
0.1929176685503166,
|
| 1717 |
+
0.13755941559466697,
|
| 1718 |
+
0.17051900489315974,
|
| 1719 |
+
0.09179112225976728,
|
| 1720 |
+
0.09192408768656414,
|
| 1721 |
+
0.07671847366968917,
|
| 1722 |
+
0.13186630647447378,
|
| 1723 |
+
0.10839263606678452,
|
| 1724 |
+
0.12993358124861237,
|
| 1725 |
+
0.14329446957419215,
|
| 1726 |
+
0.10953734185200527,
|
| 1727 |
+
0.14750468461845972,
|
| 1728 |
+
0.08484062397807172,
|
| 1729 |
+
0.15093021798116624,
|
| 1730 |
+
0.15118011919576488,
|
| 1731 |
+
0.10079911766908481,
|
| 1732 |
+
0.10664686862803845,
|
| 1733 |
+
0.13285217338230945,
|
| 1734 |
+
0.09754221857903407,
|
| 1735 |
+
0.10789405672773242,
|
| 1736 |
+
0.08581448960575783,
|
| 1737 |
+
0.12451903338694055,
|
| 1738 |
+
0.06710254750165537,
|
| 1739 |
+
0.12620998029099512,
|
| 1740 |
+
0.1070435007690436,
|
| 1741 |
+
0.13340008187123648,
|
| 1742 |
+
0.13824680236385728,
|
| 1743 |
+
0.13209141989319176,
|
| 1744 |
+
0.09043010314064626,
|
| 1745 |
+
0.10448598825889968,
|
| 1746 |
+
0.05152826575928413,
|
| 1747 |
+
0.101548845386541,
|
| 1748 |
+
0.12231309853193433,
|
| 1749 |
+
0.15164600068096626,
|
| 1750 |
+
0.09056976406094214,
|
| 1751 |
+
0.10507904679337436,
|
| 1752 |
+
0.12492820977689113,
|
| 1753 |
+
0.14563987562071293,
|
| 1754 |
+
0.1485299613415581,
|
| 1755 |
+
0.07991123184450995,
|
| 1756 |
+
0.11136094888438179,
|
| 1757 |
+
0.14478875216432144,
|
| 1758 |
+
0.11837466954458266,
|
| 1759 |
+
0.15013454795740372,
|
| 1760 |
+
0.11021753863508399,
|
| 1761 |
+
0.13943847366018014,
|
| 1762 |
+
0.11837348053983793,
|
| 1763 |
+
0.08625441769459002,
|
| 1764 |
+
0.20280470849201804,
|
| 1765 |
+
0.14262414065572115,
|
| 1766 |
+
0.06812308254176133,
|
| 1767 |
+
0.16804197774588864,
|
| 1768 |
+
0.15184038871544758,
|
| 1769 |
+
0.06009853362212434,
|
| 1770 |
+
0.13033233324270047,
|
| 1771 |
+
0.08743776901836958,
|
| 1772 |
+
0.11568911736106861,
|
| 1773 |
+
0.10386805895710192,
|
| 1774 |
+
0.10887203688609184,
|
| 1775 |
+
0.14395784989811514,
|
| 1776 |
+
3.0745450764358815e-06,
|
| 1777 |
+
1.0280418129053001e-05,
|
| 1778 |
+
1.3003933935428358e-05,
|
| 1779 |
+
1.0326645711325357e-05,
|
| 1780 |
+
0.0002625973205270167,
|
| 1781 |
+
1.1079706153857785e-05,
|
| 1782 |
+
0.1666589578526184,
|
| 1783 |
+
0.16783685131463846,
|
| 1784 |
+
0.16091359576221068,
|
| 1785 |
+
0.15173440996739748,
|
| 1786 |
+
0.07479574625351736,
|
| 1787 |
+
0.0016642108162531056
|
| 1788 |
+
]
|
| 1789 |
+
}
|
| 1790 |
+
},
|
| 1791 |
+
"code_commit": "8c3b88d2a04b515650d446c391a067cde31407f6"
|
| 1792 |
+
}
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/train.log
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"event": "preflight", "augmentation": "hb-aug-v2-20261109", "samples": 64, "state_dim": 44, "body_dims": 29, "images_changed": 64, "body_values_moved": 1.0, "max_body_offset_deg": 2.6335, "actions_bit_identical": true, "non_body_state_bit_identical": true, "eval_items_deterministic": 8}
|
| 2 |
+
HB_INLOOP act installed: task b6v6 split train10, every 250 steps, cache checked on episodes [0, 60, 120, 180, 240, 301, 361, 421, 481, 541], code /mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109/eval-action-mse, G=/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/policies-20261109
|
| 3 |
+
{"event": "start", "policy": "act", "params": 83973836, "backbone_params": 11166912, "backbone_weights": "IMAGENET1K_V1", "backbone_norm": "frozen_bn", "train_frames": 331577, "steps": 4000, "from_step": 0, "cameras": ["ego_view", "chest"], "hw": [168, 224], "seed": 0}
|
| 4 |
+
{"event": "train", "step": 50, "lr": 2.5500000000000003e-05, "backbone_lr": 2.55e-06, "ema_decay": 0.947601, "it_s": 0.46, "data_frac": 0.637, "l1": 0.3540211492776871, "kl": 2.0823083758354186, "loss": 21.177104978561403}
|
| 5 |
+
{"event": "train", "step": 100, "lr": 5.05e-05, "backbone_lr": 5.050000000000001e-06, "ema_decay": 0.968612, "it_s": 1.08, "data_frac": 0.189, "l1": 0.24175845265388488, "kl": 0.3714331865310669, "loss": 3.9560903215408327}
|
| 6 |
+
{"event": "train", "step": 150, "lr": 7.55e-05, "backbone_lr": 7.5500000000000006e-06, "ema_decay": 0.976785, "it_s": 0.78, "data_frac": 0.185, "l1": 0.17631105422973634, "kl": 0.24465393751859665, "loss": 2.6228504180908203}
|
| 7 |
+
{"event": "train", "step": 200, "lr": 0.0001, "backbone_lr": 1e-05, "ema_decay": 0.981267, "it_s": 1.39, "data_frac": 0.236, "l1": 0.1467128574848175, "kl": 0.20172853469848634, "loss": 2.163998203277588}
|
| 8 |
+
{"event": "train", "step": 250, "lr": 9.995728791936504e-05, "backbone_lr": 9.995728791936505e-06, "ema_decay": 0.984142, "it_s": 0.61, "data_frac": 0.558, "l1": 0.13044738188385963, "kl": 0.1699364086985588, "loss": 1.8298114705085755}
|
| 9 |
+
HB_INLOOP act ready: task b6v6 split train10 queries 393 (rank 0/1: 393), every 250 steps, batch 8, cams ['ego_view', 'chest']
|
| 10 |
+
HB_INLOOP act step 250: b6v6/train10 nMSE 0.2572 (motion_token 0.2966 hands 0.0471) on 393 queries, 11.7 s
|
| 11 |
+
{"event": "train", "step": 300, "lr": 9.98292246503335e-05, "backbone_lr": 9.98292246503335e-06, "ema_decay": 0.986162, "it_s": 1.51, "data_frac": 0.001, "l1": 0.12080341815948487, "kl": 0.14394073992967604, "loss": 1.5602108311653138}
|
| 12 |
+
{"event": "train", "step": 350, "lr": 9.961602898685226e-05, "backbone_lr": 9.961602898685225e-06, "ema_decay": 0.987668, "it_s": 2.32, "data_frac": 0.001, "l1": 0.11401117831468582, "kl": 0.12219369858503341, "loss": 1.3359481692314148}
|
| 13 |
+
{"event": "train", "step": 400, "lr": 9.931806517013612e-05, "backbone_lr": 9.931806517013612e-06, "ema_decay": 0.988841, "it_s": 2.33, "data_frac": 0.001, "l1": 0.10809582471847534, "kl": 0.10256501644849778, "loss": 1.133745985031128}
|
| 14 |
+
{"event": "train", "step": 450, "lr": 9.893584226636772e-05, "backbone_lr": 9.893584226636773e-06, "ema_decay": 0.989782, "it_s": 2.24, "data_frac": 0.002, "l1": 0.10371263086795807, "kl": 0.0858610089123249, "loss": 0.9623227155208588}
|
| 15 |
+
{"event": "train", "step": 500, "lr": 9.847001329696653e-05, "backbone_lr": 9.847001329696653e-06, "ema_decay": 0.990557, "it_s": 1.78, "data_frac": 0.098, "l1": 0.09943497940897941, "kl": 0.07195570975542069, "loss": 0.8189920794963836}
|
| 16 |
+
HB_INLOOP act step 500: b6v6/train10 nMSE 0.1786 (motion_token 0.2045 hands 0.0405) on 393 queries, 1.7 s
|
| 17 |
+
{"event": "train", "step": 550, "lr": 9.792137412291265e-05, "backbone_lr": 9.792137412291265e-06, "ema_decay": 0.991207, "it_s": 2.12, "data_frac": 0.001, "l1": 0.0949722421169281, "kl": 0.05982836022973061, "loss": 0.6932558441162109}
|
| 18 |
+
{"event": "train", "step": 600, "lr": 9.729086208503174e-05, "backbone_lr": 9.729086208503174e-06, "ema_decay": 0.991762, "it_s": 2.32, "data_frac": 0.002, "l1": 0.09169756770133972, "kl": 0.05020237036049366, "loss": 0.5937212657928467}
|
| 19 |
+
{"event": "train", "step": 650, "lr": 9.657955440256395e-05, "backbone_lr": 9.657955440256396e-06, "ema_decay": 0.992241, "it_s": 1.07, "data_frac": 0.543, "l1": 0.08739742979407311, "kl": 0.04267996646463871, "loss": 0.5141970962285995}
|
| 20 |
+
{"event": "train", "step": 700, "lr": 9.578866633275288e-05, "backbone_lr": 9.578866633275289e-06, "ema_decay": 0.99266, "it_s": 2.32, "data_frac": 0.001, "l1": 0.08353144779801369, "kl": 0.03663844808936119, "loss": 0.44991593062877655}
|
| 21 |
+
{"event": "train", "step": 750, "lr": 9.491954909459895e-05, "backbone_lr": 9.491954909459895e-06, "ema_decay": 0.993029, "it_s": 2.32, "data_frac": 0.002, "l1": 0.0803876255452633, "kl": 0.03184428051114083, "loss": 0.3988304328918457}
|
| 22 |
+
HB_INLOOP act step 750: b6v6/train10 nMSE 0.1366 (motion_token 0.1559 hands 0.0336) on 393 queries, 1.7 s
|
| 23 |
+
{"event": "train", "step": 800, "lr": 9.397368756032445e-05, "backbone_lr": 9.397368756032445e-06, "ema_decay": 0.993358, "it_s": 2.16, "data_frac": 0.001, "l1": 0.07848086655139923, "kl": 0.027828895077109336, "loss": 0.3567698162794113}
|
| 24 |
+
{"event": "train", "step": 850, "lr": 9.295269771849427e-05, "backbone_lr": 9.295269771849426e-06, "ema_decay": 0.993653, "it_s": 2.01, "data_frac": 0.002, "l1": 0.07620463788509368, "kl": 0.024981671273708345, "loss": 0.3260213494300842}
|
| 25 |
+
{"event": "train", "step": 900, "lr": 9.185832391312644e-05, "backbone_lr": 9.185832391312644e-06, "ema_decay": 0.993919, "it_s": 0.44, "data_frac": 0.648, "l1": 0.07491271734237671, "kl": 0.022586477510631083, "loss": 0.3007774937152863}
|
| 26 |
+
{"event": "train", "step": 950, "lr": 9.069243586350975e-05, "backbone_lr": 9.069243586350976e-06, "ema_decay": 0.994161, "it_s": 1.31, "data_frac": 0.373, "l1": 0.07352400228381156, "kl": 0.020689598731696606, "loss": 0.28041998684406283}
|
| 27 |
+
{"event": "train", "step": 1000, "lr": 8.945702546981969e-05, "backbone_lr": 8.94570254698197e-06, "ema_decay": 0.994381, "it_s": 0.51, "data_frac": 0.439, "l1": 0.07265369519591332, "kl": 0.01905306614935398, "loss": 0.2631843584775925}
|
| 28 |
+
HB_INLOOP act step 1000: b6v6/train10 nMSE 0.1020 (motion_token 0.1157 hands 0.0287) on 393 queries, 2.7 s
|
| 29 |
+
{"event": "train", "step": 1050, "lr": 8.815420340999033e-05, "backbone_lr": 8.815420340999034e-06, "ema_decay": 0.994583, "it_s": 1.85, "data_frac": 0.005, "l1": 0.07090243488550187, "kl": 0.017643997110426426, "loss": 0.24734240502119065}
|
| 30 |
+
{"event": "train", "step": 1100, "lr": 8.678619553365659e-05, "backbone_lr": 8.67861955336566e-06, "ema_decay": 0.994768, "it_s": 2.34, "data_frac": 0.001, "l1": 0.0708524839580059, "kl": 0.016447261311113834, "loss": 0.23532509833574294}
|
| 31 |
+
{"event": "train", "step": 1150, "lr": 8.535533905932738e-05, "backbone_lr": 8.535533905932739e-06, "ema_decay": 0.994939, "it_s": 2.34, "data_frac": 0.001, "l1": 0.06925029620528221, "kl": 0.015404799785465002, "loss": 0.2232982948422432}
|
| 32 |
+
{"event": "train", "step": 1200, "lr": 8.386407858128706e-05, "backbone_lr": 8.386407858128707e-06, "ema_decay": 0.995098, "it_s": 2.22, "data_frac": 0.002, "l1": 0.06850977823138236, "kl": 0.014646995346993208, "loss": 0.21497973054647446}
|
| 33 |
+
{"event": "train", "step": 1250, "lr": 8.231496189304704e-05, "backbone_lr": 8.231496189304704e-06, "ema_decay": 0.995246, "it_s": 1.99, "data_frac": 0.011, "l1": 0.06781599432229996, "kl": 0.013942003138363362, "loss": 0.20723602682352066}
|
| 34 |
+
HB_INLOOP act step 1250: b6v6/train10 nMSE 0.0902 (motion_token 0.1023 hands 0.0254) on 393 queries, 3.6 s
|
| 35 |
+
{"event": "train", "step": 1300, "lr": 8.07106356344834e-05, "backbone_lr": 8.071063563448341e-06, "ema_decay": 0.995384, "it_s": 0.36, "data_frac": 0.815, "l1": 0.06738360270857811, "kl": 0.013324801381677388, "loss": 0.20063161671161653}
|
| 36 |
+
{"event": "train", "step": 1350, "lr": 7.905384077009693e-05, "backbone_lr": 7.905384077009693e-06, "ema_decay": 0.995512, "it_s": 1.23, "data_frac": 0.36, "l1": 0.06625505864620208, "kl": 0.012683572266250848, "loss": 0.1930907818675041}
|
| 37 |
+
{"event": "train", "step": 1400, "lr": 7.734740790612136e-05, "backbone_lr": 7.734740790612137e-06, "ema_decay": 0.995633, "it_s": 2.17, "data_frac": 0.002, "l1": 0.06607533320784569, "kl": 0.012170755621045828, "loss": 0.18778288930654527}
|
| 38 |
+
{"event": "train", "step": 1450, "lr": 7.559425245448006e-05, "backbone_lr": 7.559425245448006e-06, "ema_decay": 0.995746, "it_s": 1.46, "data_frac": 0.324, "l1": 0.06540881097316742, "kl": 0.01170106790959835, "loss": 0.1824194896221161}
|
| 39 |
+
{"event": "train", "step": 1500, "lr": 7.379736965185368e-05, "backbone_lr": 7.379736965185369e-06, "ema_decay": 0.995853, "it_s": 0.68, "data_frac": 0.6, "l1": 0.06460880734026432, "kl": 0.011215097699314357, "loss": 0.1767597848176956}
|
| 40 |
+
HB_INLOOP act step 1500: b6v6/train10 nMSE 0.0847 (motion_token 0.0964 hands 0.0227) on 393 queries, 1.4 s
|
| 41 |
+
{"event": "train", "step": 1550, "lr": 7.195982944236851e-05, "backbone_lr": 7.195982944236853e-06, "ema_decay": 0.995954, "it_s": 2.2, "data_frac": 0.001, "l1": 0.06376249961555004, "kl": 0.01075950300320983, "loss": 0.17135752975940705}
|
| 42 |
+
{"event": "train", "step": 1600, "lr": 7.008477123264848e-05, "backbone_lr": 7.008477123264849e-06, "ema_decay": 0.996049, "it_s": 2.34, "data_frac": 0.001, "l1": 0.06399171262979507, "kl": 0.010493870656937361, "loss": 0.16893041878938675}
|
| 43 |
+
{"event": "train", "step": 1650, "lr": 6.817539852819149e-05, "backbone_lr": 6.817539852819149e-06, "ema_decay": 0.996139, "it_s": 2.13, "data_frac": 0.003, "l1": 0.06324262857437134, "kl": 0.010161757990717888, "loss": 0.16486020922660827}
|
| 44 |
+
{"event": "train", "step": 1700, "lr": 6.623497346023418e-05, "backbone_lr": 6.6234973460234184e-06, "ema_decay": 0.996225, "it_s": 2.0, "data_frac": 0.004, "l1": 0.06299598447978497, "kl": 0.009968880843371154, "loss": 0.1626847928762436}
|
| 45 |
+
{"event": "train", "step": 1750, "lr": 6.426681121245527e-05, "backbone_lr": 6.426681121245527e-06, "ema_decay": 0.996306, "it_s": 1.51, "data_frac": 0.28, "l1": 0.06271497055888176, "kl": 0.009569562766700982, "loss": 0.15841059893369674}
|
| 46 |
+
HB_INLOOP act step 1750: b6v6/train10 nMSE 0.0808 (motion_token 0.0921 hands 0.0206) on 393 queries, 3.8 s
|
| 47 |
+
{"event": "train", "step": 1800, "lr": 6.227427435703997e-05, "backbone_lr": 6.227427435703997e-06, "ema_decay": 0.996383, "it_s": 0.99, "data_frac": 0.148, "l1": 0.061895171254873274, "kl": 0.009256888534873725, "loss": 0.15446405798196794}
|
| 48 |
+
{"event": "train", "step": 1850, "lr": 6.026076710978171e-05, "backbone_lr": 6.026076710978172e-06, "ema_decay": 0.996456, "it_s": 0.5, "data_frac": 0.328, "l1": 0.06172462567687034, "kl": 0.0090464604832232, "loss": 0.1521892297267914}
|
| 49 |
+
{"event": "train", "step": 1900, "lr": 5.8229729514036705e-05, "backbone_lr": 5.82297295140367e-06, "ema_decay": 0.996527, "it_s": 2.26, "data_frac": 0.003, "l1": 0.06107503265142441, "kl": 0.00880480045452714, "loss": 0.14912303745746613}
|
| 50 |
+
{"event": "train", "step": 1950, "lr": 5.618463156346739e-05, "backbone_lr": 5.61846315634674e-06, "ema_decay": 0.996594, "it_s": 1.37, "data_frac": 0.409, "l1": 0.060749784559011456, "kl": 0.008685212526470422, "loss": 0.1476019099354744}
|
| 51 |
+
{"event": "train", "step": 2000, "lr": 5.4128967273616625e-05, "backbone_lr": 5.412896727361663e-06, "ema_decay": 0.996658, "it_s": 2.17, "data_frac": 0.024, "l1": 0.0606442042440176, "kl": 0.008428768571466207, "loss": 0.14493189007043839}
|
| 52 |
+
HB_INLOOP act step 2000: b6v6/train10 nMSE 0.0771 (motion_token 0.0885 hands 0.0162) on 393 queries, 1.9 s
|
| 53 |
+
{"event": "save", "step": 2000, "checkpoint": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/act-runs/b6v6p-b512-s4000/checkpoints/step-002000", "mse": 0.0065690805204212666, "mse_row0": 0.005624693352729082, "mse_motion_token": 0.00684046745300293, "mse_inspire_left_hand_state": 0.00010157385986531153, "mse_inspire_right_hand_state": 0.010141807608306408}
|
| 54 |
+
{"event": "train", "step": 2050, "lr": 5.2066248712440656e-05, "backbone_lr": 5.206624871244066e-06, "ema_decay": 0.996719, "it_s": 1.5, "data_frac": 0.001, "l1": 0.06040518395602703, "kl": 0.008262655483558774, "loss": 0.14303173929452895}
|
| 55 |
+
{"event": "train", "step": 2100, "lr": 5e-05, "backbone_lr": 5e-06, "ema_decay": 0.996778, "it_s": 2.33, "data_frac": 0.001, "l1": 0.06002238467335701, "kl": 0.008092485032975674, "loss": 0.14094723433256148}
|
| 56 |
+
{"event": "train", "step": 2150, "lr": 4.7933751287559335e-05, "backbone_lr": 4.793375128755934e-06, "ema_decay": 0.996834, "it_s": 2.15, "data_frac": 0.003, "l1": 0.05973941422998905, "kl": 0.007862743586301804, "loss": 0.13836684912443162}
|
| 57 |
+
{"event": "train", "step": 2200, "lr": 4.5871032726383386e-05, "backbone_lr": 4.587103272638339e-06, "ema_decay": 0.996888, "it_s": 1.1, "data_frac": 0.024, "l1": 0.059441261664032935, "kl": 0.007798130363225937, "loss": 0.13742256551980972}
|
| 58 |
+
{"event": "train", "step": 2250, "lr": 4.381536843653262e-05, "backbone_lr": 4.381536843653262e-06, "ema_decay": 0.99694, "it_s": 1.22, "data_frac": 0.28, "l1": 0.05919695794582367, "kl": 0.007619983572512865, "loss": 0.13539679408073424}
|
| 59 |
+
HB_INLOOP act step 2250: b6v6/train10 nMSE 0.0739 (motion_token 0.0858 hands 0.0104) on 393 queries, 2.5 s
|
| 60 |
+
{"event": "train", "step": 2300, "lr": 4.17702704859633e-05, "backbone_lr": 4.17702704859633e-06, "ema_decay": 0.99699, "it_s": 1.64, "data_frac": 0.005, "l1": 0.05882174476981163, "kl": 0.007393024265766144, "loss": 0.13275198847055436}
|
| 61 |
+
{"event": "train", "step": 2350, "lr": 3.973923289021829e-05, "backbone_lr": 3.973923289021829e-06, "ema_decay": 0.997038, "it_s": 0.36, "data_frac": 0.777, "l1": 0.05859132289886475, "kl": 0.007340740840882063, "loss": 0.1319987305998802}
|
| 62 |
+
{"event": "train", "step": 2400, "lr": 3.772572564296005e-05, "backbone_lr": 3.7725725642960047e-06, "ema_decay": 0.997085, "it_s": 1.45, "data_frac": 0.301, "l1": 0.05848739773035049, "kl": 0.007150262910872698, "loss": 0.1299900272488594}
|
| 63 |
+
{"event": "train", "step": 2450, "lr": 3.5733188787544745e-05, "backbone_lr": 3.573318878754475e-06, "ema_decay": 0.997129, "it_s": 0.47, "data_frac": 0.215, "l1": 0.058268864080309866, "kl": 0.007151333475485444, "loss": 0.12978219762444496}
|
| 64 |
+
{"event": "train", "step": 2500, "lr": 3.3765026539765834e-05, "backbone_lr": 3.3765026539765832e-06, "ema_decay": 0.997172, "it_s": 2.34, "data_frac": 0.001, "l1": 0.058079722970724106, "kl": 0.007059194827452302, "loss": 0.12867167130112647}
|
| 65 |
+
HB_INLOOP act step 2500: b6v6/train10 nMSE 0.0719 (motion_token 0.0835 hands 0.0100) on 393 queries, 2.2 s
|
| 66 |
+
{"event": "train", "step": 2550, "lr": 3.18246014718085e-05, "backbone_lr": 3.1824601471808504e-06, "ema_decay": 0.997214, "it_s": 2.12, "data_frac": 0.001, "l1": 0.057839429527521136, "kl": 0.006886199079453945, "loss": 0.12670142069458962}
|
| 67 |
+
{"event": "train", "step": 2600, "lr": 2.991522876735154e-05, "backbone_lr": 2.991522876735154e-06, "ema_decay": 0.997254, "it_s": 1.46, "data_frac": 0.379, "l1": 0.057554946094751355, "kl": 0.006831864723935723, "loss": 0.12587359189987182}
|
| 68 |
+
{"event": "train", "step": 2650, "lr": 2.804017055763149e-05, "backbone_lr": 2.804017055763149e-06, "ema_decay": 0.997293, "it_s": 2.29, "data_frac": 0.02, "l1": 0.05732862457633019, "kl": 0.006712026987224817, "loss": 0.12444889470934868}
|
| 69 |
+
{"event": "train", "step": 2700, "lr": 2.6202630348146324e-05, "backbone_lr": 2.6202630348146323e-06, "ema_decay": 0.997331, "it_s": 2.31, "data_frac": 0.001, "l1": 0.05734782487154007, "kl": 0.0066704520303756, "loss": 0.12405234575271606}
|
| 70 |
+
{"event": "train", "step": 2750, "lr": 2.4405747545519963e-05, "backbone_lr": 2.4405747545519966e-06, "ema_decay": 0.997367, "it_s": 2.33, "data_frac": 0.001, "l1": 0.057147650346159935, "kl": 0.006573154367506504, "loss": 0.12287919342517853}
|
| 71 |
+
HB_INLOOP act step 2750: b6v6/train10 nMSE 0.0704 (motion_token 0.0818 hands 0.0097) on 393 queries, 1.4 s
|
| 72 |
+
{"event": "train", "step": 2800, "lr": 2.2652592093878666e-05, "backbone_lr": 2.265259209387867e-06, "ema_decay": 0.997403, "it_s": 2.19, "data_frac": 0.001, "l1": 0.05693836972117424, "kl": 0.006524251056835056, "loss": 0.12218088045716285}
|
| 73 |
+
{"event": "train", "step": 2850, "lr": 2.094615922990309e-05, "backbone_lr": 2.094615922990309e-06, "ema_decay": 0.997437, "it_s": 2.33, "data_frac": 0.001, "l1": 0.05680068723857403, "kl": 0.0064842489361763, "loss": 0.12164317712187767}
|
| 74 |
+
{"event": "train", "step": 2900, "lr": 1.928936436551661e-05, "backbone_lr": 1.928936436551661e-06, "ema_decay": 0.99747, "it_s": 2.34, "data_frac": 0.001, "l1": 0.05658380188047886, "kl": 0.006409094715490937, "loss": 0.120674749314785}
|
| 75 |
+
{"event": "train", "step": 2950, "lr": 1.768503810695295e-05, "backbone_lr": 1.7685038106952952e-06, "ema_decay": 0.997502, "it_s": 2.33, "data_frac": 0.001, "l1": 0.056342218220233914, "kl": 0.0063926434330642224, "loss": 0.12026865184307098}
|
| 76 |
+
{"event": "train", "step": 3000, "lr": 1.6135921418712956e-05, "backbone_lr": 1.6135921418712959e-06, "ema_decay": 0.997534, "it_s": 1.06, "data_frac": 0.003, "l1": 0.056565341651439664, "kl": 0.006310660066083074, "loss": 0.11967194244265557}
|
| 77 |
+
HB_INLOOP act step 3000: b6v6/train10 nMSE 0.0694 (motion_token 0.0807 hands 0.0091) on 393 queries, 5.0 s
|
| 78 |
+
{"event": "train", "step": 3050, "lr": 1.4644660940672627e-05, "backbone_lr": 1.4644660940672628e-06, "ema_decay": 0.997564, "it_s": 0.57, "data_frac": 0.341, "l1": 0.05632961444556713, "kl": 0.0062773353978991505, "loss": 0.11910296708345414}
|
| 79 |
+
{"event": "train", "step": 3100, "lr": 1.3213804466343421e-05, "backbone_lr": 1.321380446634342e-06, "ema_decay": 0.997594, "it_s": 1.96, "data_frac": 0.011, "l1": 0.056362080723047256, "kl": 0.006193557837978005, "loss": 0.11829765915870666}
|
| 80 |
+
{"event": "train", "step": 3150, "lr": 1.1845796590009683e-05, "backbone_lr": 1.1845796590009684e-06, "ema_decay": 0.997622, "it_s": 2.27, "data_frac": 0.002, "l1": 0.05602119781076908, "kl": 0.00619962808676064, "loss": 0.11801747888326646}
|
| 81 |
+
{"event": "train", "step": 3200, "lr": 1.0542974530180327e-05, "backbone_lr": 1.0542974530180327e-06, "ema_decay": 0.99765, "it_s": 2.33, "data_frac": 0.002, "l1": 0.055995626226067546, "kl": 0.006132839769124984, "loss": 0.11732402339577674}
|
| 82 |
+
{"event": "train", "step": 3250, "lr": 9.307564136490254e-06, "backbone_lr": 9.307564136490255e-07, "ema_decay": 0.997677, "it_s": 0.54, "data_frac": 0.567, "l1": 0.055929140895605085, "kl": 0.006129804505035281, "loss": 0.11722718700766563}
|
| 83 |
+
HB_INLOOP act step 3250: b6v6/train10 nMSE 0.0685 (motion_token 0.0797 hands 0.0088) on 393 queries, 1.4 s
|
| 84 |
+
{"event": "train", "step": 3300, "lr": 8.141676086873572e-06, "backbone_lr": 8.141676086873574e-07, "ema_decay": 0.997704, "it_s": 1.78, "data_frac": 0.03, "l1": 0.05576489023864269, "kl": 0.006121696075424552, "loss": 0.11698185041546821}
|
| 85 |
+
{"event": "train", "step": 3350, "lr": 7.047302281505736e-06, "backbone_lr": 7.047302281505735e-07, "ema_decay": 0.99773, "it_s": 1.98, "data_frac": 0.004, "l1": 0.05579254686832428, "kl": 0.006134667154401541, "loss": 0.11713921830058098}
|
| 86 |
+
{"event": "train", "step": 3400, "lr": 6.026312439675552e-06, "backbone_lr": 6.026312439675553e-07, "ema_decay": 0.997755, "it_s": 1.5, "data_frac": 0.002, "l1": 0.05551379039883614, "kl": 0.0059516141004860405, "loss": 0.11502993136644363}
|
| 87 |
+
{"event": "train", "step": 3450, "lr": 5.080450905401057e-06, "backbone_lr": 5.080450905401057e-07, "ema_decay": 0.997779, "it_s": 2.19, "data_frac": 0.004, "l1": 0.055607668235898015, "kl": 0.006056669121608138, "loss": 0.11617435902357101}
|
| 88 |
+
{"event": "train", "step": 3500, "lr": 4.2113336672471245e-06, "backbone_lr": 4.211333667247125e-07, "ema_decay": 0.997803, "it_s": 1.75, "data_frac": 0.07, "l1": 0.05574395857751369, "kl": 0.0060109937936067585, "loss": 0.11585389599204063}
|
| 89 |
+
HB_INLOOP act step 3500: b6v6/train10 nMSE 0.0680 (motion_token 0.0791 hands 0.0087) on 393 queries, 12.1 s
|
| 90 |
+
{"event": "train", "step": 3550, "lr": 3.420445597436056e-06, "backbone_lr": 3.420445597436056e-07, "ema_decay": 0.997826, "it_s": 1.07, "data_frac": 0.004, "l1": 0.05538856722414494, "kl": 0.005988198034465313, "loss": 0.11527054741978646}
|
| 91 |
+
{"event": "train", "step": 3600, "lr": 2.7091379149682685e-06, "backbone_lr": 2.7091379149682683e-07, "ema_decay": 0.997849, "it_s": 0.55, "data_frac": 0.472, "l1": 0.05562038503587246, "kl": 0.005940079186111689, "loss": 0.11502117723226547}
|
| 92 |
+
{"event": "train", "step": 3650, "lr": 2.0786258770873647e-06, "backbone_lr": 2.0786258770873647e-07, "ema_decay": 0.997871, "it_s": 2.31, "data_frac": 0.002, "l1": 0.055400453060865405, "kl": 0.005918943276628852, "loss": 0.11458988562226295}
|
| 93 |
+
{"event": "train", "step": 3700, "lr": 1.5299867030334814e-06, "backbone_lr": 1.5299867030334815e-07, "ema_decay": 0.997893, "it_s": 2.32, "data_frac": 0.002, "l1": 0.055475706830620766, "kl": 0.00591225222684443, "loss": 0.11459822908043861}
|
| 94 |
+
{"event": "train", "step": 3750, "lr": 1.064157733632276e-06, "backbone_lr": 1.0641577336322761e-07, "ema_decay": 0.997914, "it_s": 2.3, "data_frac": 0.001, "l1": 0.05529114730656147, "kl": 0.005922943102195859, "loss": 0.1145205782353878}
|
| 95 |
+
HB_INLOOP act step 3750: b6v6/train10 nMSE 0.0675 (motion_token 0.0786 hands 0.0083) on 393 queries, 3.8 s
|
| 96 |
+
{"event": "train", "step": 3800, "lr": 6.819348298638839e-07, "backbone_lr": 6.819348298638839e-08, "ema_decay": 0.997934, "it_s": 1.92, "data_frac": 0.003, "l1": 0.05518620572984219, "kl": 0.005878431564196944, "loss": 0.1139705215394497}
|
| 97 |
+
{"event": "train", "step": 3850, "lr": 3.839710131477492e-07, "backbone_lr": 3.839710131477492e-08, "ema_decay": 0.997954, "it_s": 2.32, "data_frac": 0.002, "l1": 0.05553345873951912, "kl": 0.005897821765393019, "loss": 0.11451167672872543}
|
| 98 |
+
{"event": "train", "step": 3900, "lr": 1.7077534966650766e-07, "backbone_lr": 1.7077534966650767e-08, "ema_decay": 0.997974, "it_s": 1.42, "data_frac": 0.392, "l1": 0.055208735391497614, "kl": 0.0058806351106613875, "loss": 0.11401508659124375}
|
| 99 |
+
{"event": "train", "step": 3950, "lr": 4.2712080634949024e-08, "backbone_lr": 4.2712080634949024e-09, "ema_decay": 0.997993, "it_s": 2.33, "data_frac": 0.001, "l1": 0.05528304733335972, "kl": 0.005866971118375659, "loss": 0.11395275846123695}
|
| 100 |
+
{"event": "train", "step": 4000, "lr": 0.0, "backbone_lr": 0.0, "ema_decay": 0.998012, "it_s": 2.17, "data_frac": 0.001, "l1": 0.05524025939404965, "kl": 0.005883785551413894, "loss": 0.11407811477780343}
|
| 101 |
+
HB_INLOOP act step 4000: b6v6/train10 nMSE 0.0673 (motion_token 0.0784 hands 0.0082) on 393 queries, 2.4 s
|
| 102 |
+
{"event": "save", "step": 4000, "checkpoint": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/act-runs/b6v6p-b512-s4000/checkpoints/step-004000", "mse": 0.0062528024427592754, "mse_row0": 0.004473628476262093, "mse_motion_token": 0.006077274680137634, "mse_inspire_left_hand_state": 8.844343392411247e-05, "mse_inspire_right_hand_state": 0.01428945828229189}
|
| 103 |
+
{"event": "done", "step": 4000, "checkpoint": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/act-runs/b6v6p-b512-s4000/checkpoints/final"}
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/train_act_b6v6p_dsw.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# ACT on B6 v6, all 542 episodes (user 2026-11-24: "训个ACT吧", asked about the v6 542 data; = the b6v6p exception that
|
| 3 |
+
# GR00T/Psi-Zero pure-v6 use; FLASH/FastWAM use 0-499), Aliyun PAI DSW hb_4090_6gpu_nas, card 2.
|
| 4 |
+
# hb_baselines only (CLAUDE.md 2026-11-24): Humanoid_benchmark bai evaluation/baselines/train.py --policy act, recipe =
|
| 5 |
+
# HF act b6-pedal-bin/b512/step-004000 config.json: batch 512 (1 GPU, no accumulation), 4000 steps, lr 1e-4, warm-up 200
|
| 6 |
+
# + cosine, backbone ResNet18 IMAGENET1K_V1 frozen-BN lr x0.1, EMA 0.9999, AMP, seed 0, augmentation spec v2
|
| 7 |
+
# (hb-aug-v2-20261109); saves 2000 and 4000; in-training MSE every 250 steps (eval-action-mse b6v6 train10).
|
| 8 |
+
# CPU: nice 19 on all cores so the running closed-loop evaluations (renderers) keep priority.
|
| 9 |
+
# GPU=2 bash train_act_b6v6p_dsw.sh [--preflight-only]
|
| 10 |
+
set -euo pipefail
|
| 11 |
+
EXTRA=${1:-}
|
| 12 |
+
P=/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z
|
| 13 |
+
G=$P/policies-20261109
|
| 14 |
+
OUT=$P/act-runs/b6v6p-b512-s4000
|
| 15 |
+
[ -n "$EXTRA" ] && OUT=/root/hb_act/preflight
|
| 16 |
+
[ -e $OUT/run.json ] && [ -z "$EXTRA" ] && [ "${RESUME:-0}" != 1 ] && { echo "$OUT exists (RESUME=1 to continue it)"; exit 1; }
|
| 17 |
+
cd $P/Humanoid_benchmark-bai
|
| 18 |
+
export CUDA_VISIBLE_DEVICES=${GPU:?GPU index} HB_INLOOP_EVERY=250 G=$G OMP_NUM_THREADS=4
|
| 19 |
+
mkdir -p $OUT
|
| 20 |
+
git -c safe.directory='*' rev-parse HEAD > $OUT/code_commit.txt
|
| 21 |
+
exec nice -n 19 taskset -c 0-79 $G/envs/hb-baselines/bin/python -I evaluation/baselines/train.py --policy act \
|
| 22 |
+
--contract g1_sonic_dfx6 --dataset $P/b6-pedal-bin-v6-ad2f5bf/data --episodes 0:542 \
|
| 23 |
+
--out $OUT --steps 4000 --batch-size 512 --warmup 200 --seed 0 --workers 32 --save-every 2000 --log-every 50 \
|
| 24 |
+
--cache-dir /dev/shm/hb_act_cache --inloop-task b6v6 --inloop-code $G/eval-action-mse \
|
| 25 |
+
$([ "${RESUME:-0}" = 1 ] && echo --resume) $EXTRA
|
b6-pedal-bin/b512-v6-pure/step-004000/training_records/train_log.jsonl
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"event": "train", "step": 50, "lr": 2.5500000000000003e-05, "backbone_lr": 2.55e-06, "ema_decay": 0.947601, "it_s": 0.46, "data_frac": 0.637, "l1": 0.3540211492776871, "kl": 2.0823083758354186, "loss": 21.177104978561403}
|
| 2 |
+
{"event": "train", "step": 100, "lr": 5.05e-05, "backbone_lr": 5.050000000000001e-06, "ema_decay": 0.968612, "it_s": 1.08, "data_frac": 0.189, "l1": 0.24175845265388488, "kl": 0.3714331865310669, "loss": 3.9560903215408327}
|
| 3 |
+
{"event": "train", "step": 150, "lr": 7.55e-05, "backbone_lr": 7.5500000000000006e-06, "ema_decay": 0.976785, "it_s": 0.78, "data_frac": 0.185, "l1": 0.17631105422973634, "kl": 0.24465393751859665, "loss": 2.6228504180908203}
|
| 4 |
+
{"event": "train", "step": 200, "lr": 0.0001, "backbone_lr": 1e-05, "ema_decay": 0.981267, "it_s": 1.39, "data_frac": 0.236, "l1": 0.1467128574848175, "kl": 0.20172853469848634, "loss": 2.163998203277588}
|
| 5 |
+
{"event": "train", "step": 250, "lr": 9.995728791936504e-05, "backbone_lr": 9.995728791936505e-06, "ema_decay": 0.984142, "it_s": 0.61, "data_frac": 0.558, "l1": 0.13044738188385963, "kl": 0.1699364086985588, "loss": 1.8298114705085755}
|
| 6 |
+
{"event": "train", "step": 300, "lr": 9.98292246503335e-05, "backbone_lr": 9.98292246503335e-06, "ema_decay": 0.986162, "it_s": 1.51, "data_frac": 0.001, "l1": 0.12080341815948487, "kl": 0.14394073992967604, "loss": 1.5602108311653138}
|
| 7 |
+
{"event": "train", "step": 350, "lr": 9.961602898685226e-05, "backbone_lr": 9.961602898685225e-06, "ema_decay": 0.987668, "it_s": 2.32, "data_frac": 0.001, "l1": 0.11401117831468582, "kl": 0.12219369858503341, "loss": 1.3359481692314148}
|
| 8 |
+
{"event": "train", "step": 400, "lr": 9.931806517013612e-05, "backbone_lr": 9.931806517013612e-06, "ema_decay": 0.988841, "it_s": 2.33, "data_frac": 0.001, "l1": 0.10809582471847534, "kl": 0.10256501644849778, "loss": 1.133745985031128}
|
| 9 |
+
{"event": "train", "step": 450, "lr": 9.893584226636772e-05, "backbone_lr": 9.893584226636773e-06, "ema_decay": 0.989782, "it_s": 2.24, "data_frac": 0.002, "l1": 0.10371263086795807, "kl": 0.0858610089123249, "loss": 0.9623227155208588}
|
| 10 |
+
{"event": "train", "step": 500, "lr": 9.847001329696653e-05, "backbone_lr": 9.847001329696653e-06, "ema_decay": 0.990557, "it_s": 1.78, "data_frac": 0.098, "l1": 0.09943497940897941, "kl": 0.07195570975542069, "loss": 0.8189920794963836}
|
| 11 |
+
{"event": "train", "step": 550, "lr": 9.792137412291265e-05, "backbone_lr": 9.792137412291265e-06, "ema_decay": 0.991207, "it_s": 2.12, "data_frac": 0.001, "l1": 0.0949722421169281, "kl": 0.05982836022973061, "loss": 0.6932558441162109}
|
| 12 |
+
{"event": "train", "step": 600, "lr": 9.729086208503174e-05, "backbone_lr": 9.729086208503174e-06, "ema_decay": 0.991762, "it_s": 2.32, "data_frac": 0.002, "l1": 0.09169756770133972, "kl": 0.05020237036049366, "loss": 0.5937212657928467}
|
| 13 |
+
{"event": "train", "step": 650, "lr": 9.657955440256395e-05, "backbone_lr": 9.657955440256396e-06, "ema_decay": 0.992241, "it_s": 1.07, "data_frac": 0.543, "l1": 0.08739742979407311, "kl": 0.04267996646463871, "loss": 0.5141970962285995}
|
| 14 |
+
{"event": "train", "step": 700, "lr": 9.578866633275288e-05, "backbone_lr": 9.578866633275289e-06, "ema_decay": 0.99266, "it_s": 2.32, "data_frac": 0.001, "l1": 0.08353144779801369, "kl": 0.03663844808936119, "loss": 0.44991593062877655}
|
| 15 |
+
{"event": "train", "step": 750, "lr": 9.491954909459895e-05, "backbone_lr": 9.491954909459895e-06, "ema_decay": 0.993029, "it_s": 2.32, "data_frac": 0.002, "l1": 0.0803876255452633, "kl": 0.03184428051114083, "loss": 0.3988304328918457}
|
| 16 |
+
{"event": "train", "step": 800, "lr": 9.397368756032445e-05, "backbone_lr": 9.397368756032445e-06, "ema_decay": 0.993358, "it_s": 2.16, "data_frac": 0.001, "l1": 0.07848086655139923, "kl": 0.027828895077109336, "loss": 0.3567698162794113}
|
| 17 |
+
{"event": "train", "step": 850, "lr": 9.295269771849427e-05, "backbone_lr": 9.295269771849426e-06, "ema_decay": 0.993653, "it_s": 2.01, "data_frac": 0.002, "l1": 0.07620463788509368, "kl": 0.024981671273708345, "loss": 0.3260213494300842}
|
| 18 |
+
{"event": "train", "step": 900, "lr": 9.185832391312644e-05, "backbone_lr": 9.185832391312644e-06, "ema_decay": 0.993919, "it_s": 0.44, "data_frac": 0.648, "l1": 0.07491271734237671, "kl": 0.022586477510631083, "loss": 0.3007774937152863}
|
| 19 |
+
{"event": "train", "step": 950, "lr": 9.069243586350975e-05, "backbone_lr": 9.069243586350976e-06, "ema_decay": 0.994161, "it_s": 1.31, "data_frac": 0.373, "l1": 0.07352400228381156, "kl": 0.020689598731696606, "loss": 0.28041998684406283}
|
| 20 |
+
{"event": "train", "step": 1000, "lr": 8.945702546981969e-05, "backbone_lr": 8.94570254698197e-06, "ema_decay": 0.994381, "it_s": 0.51, "data_frac": 0.439, "l1": 0.07265369519591332, "kl": 0.01905306614935398, "loss": 0.2631843584775925}
|
| 21 |
+
{"event": "train", "step": 1050, "lr": 8.815420340999033e-05, "backbone_lr": 8.815420340999034e-06, "ema_decay": 0.994583, "it_s": 1.85, "data_frac": 0.005, "l1": 0.07090243488550187, "kl": 0.017643997110426426, "loss": 0.24734240502119065}
|
| 22 |
+
{"event": "train", "step": 1100, "lr": 8.678619553365659e-05, "backbone_lr": 8.67861955336566e-06, "ema_decay": 0.994768, "it_s": 2.34, "data_frac": 0.001, "l1": 0.0708524839580059, "kl": 0.016447261311113834, "loss": 0.23532509833574294}
|
| 23 |
+
{"event": "train", "step": 1150, "lr": 8.535533905932738e-05, "backbone_lr": 8.535533905932739e-06, "ema_decay": 0.994939, "it_s": 2.34, "data_frac": 0.001, "l1": 0.06925029620528221, "kl": 0.015404799785465002, "loss": 0.2232982948422432}
|
| 24 |
+
{"event": "train", "step": 1200, "lr": 8.386407858128706e-05, "backbone_lr": 8.386407858128707e-06, "ema_decay": 0.995098, "it_s": 2.22, "data_frac": 0.002, "l1": 0.06850977823138236, "kl": 0.014646995346993208, "loss": 0.21497973054647446}
|
| 25 |
+
{"event": "train", "step": 1250, "lr": 8.231496189304704e-05, "backbone_lr": 8.231496189304704e-06, "ema_decay": 0.995246, "it_s": 1.99, "data_frac": 0.011, "l1": 0.06781599432229996, "kl": 0.013942003138363362, "loss": 0.20723602682352066}
|
| 26 |
+
{"event": "train", "step": 1300, "lr": 8.07106356344834e-05, "backbone_lr": 8.071063563448341e-06, "ema_decay": 0.995384, "it_s": 0.36, "data_frac": 0.815, "l1": 0.06738360270857811, "kl": 0.013324801381677388, "loss": 0.20063161671161653}
|
| 27 |
+
{"event": "train", "step": 1350, "lr": 7.905384077009693e-05, "backbone_lr": 7.905384077009693e-06, "ema_decay": 0.995512, "it_s": 1.23, "data_frac": 0.36, "l1": 0.06625505864620208, "kl": 0.012683572266250848, "loss": 0.1930907818675041}
|
| 28 |
+
{"event": "train", "step": 1400, "lr": 7.734740790612136e-05, "backbone_lr": 7.734740790612137e-06, "ema_decay": 0.995633, "it_s": 2.17, "data_frac": 0.002, "l1": 0.06607533320784569, "kl": 0.012170755621045828, "loss": 0.18778288930654527}
|
| 29 |
+
{"event": "train", "step": 1450, "lr": 7.559425245448006e-05, "backbone_lr": 7.559425245448006e-06, "ema_decay": 0.995746, "it_s": 1.46, "data_frac": 0.324, "l1": 0.06540881097316742, "kl": 0.01170106790959835, "loss": 0.1824194896221161}
|
| 30 |
+
{"event": "train", "step": 1500, "lr": 7.379736965185368e-05, "backbone_lr": 7.379736965185369e-06, "ema_decay": 0.995853, "it_s": 0.68, "data_frac": 0.6, "l1": 0.06460880734026432, "kl": 0.011215097699314357, "loss": 0.1767597848176956}
|
| 31 |
+
{"event": "train", "step": 1550, "lr": 7.195982944236851e-05, "backbone_lr": 7.195982944236853e-06, "ema_decay": 0.995954, "it_s": 2.2, "data_frac": 0.001, "l1": 0.06376249961555004, "kl": 0.01075950300320983, "loss": 0.17135752975940705}
|
| 32 |
+
{"event": "train", "step": 1600, "lr": 7.008477123264848e-05, "backbone_lr": 7.008477123264849e-06, "ema_decay": 0.996049, "it_s": 2.34, "data_frac": 0.001, "l1": 0.06399171262979507, "kl": 0.010493870656937361, "loss": 0.16893041878938675}
|
| 33 |
+
{"event": "train", "step": 1650, "lr": 6.817539852819149e-05, "backbone_lr": 6.817539852819149e-06, "ema_decay": 0.996139, "it_s": 2.13, "data_frac": 0.003, "l1": 0.06324262857437134, "kl": 0.010161757990717888, "loss": 0.16486020922660827}
|
| 34 |
+
{"event": "train", "step": 1700, "lr": 6.623497346023418e-05, "backbone_lr": 6.6234973460234184e-06, "ema_decay": 0.996225, "it_s": 2.0, "data_frac": 0.004, "l1": 0.06299598447978497, "kl": 0.009968880843371154, "loss": 0.1626847928762436}
|
| 35 |
+
{"event": "train", "step": 1750, "lr": 6.426681121245527e-05, "backbone_lr": 6.426681121245527e-06, "ema_decay": 0.996306, "it_s": 1.51, "data_frac": 0.28, "l1": 0.06271497055888176, "kl": 0.009569562766700982, "loss": 0.15841059893369674}
|
| 36 |
+
{"event": "train", "step": 1800, "lr": 6.227427435703997e-05, "backbone_lr": 6.227427435703997e-06, "ema_decay": 0.996383, "it_s": 0.99, "data_frac": 0.148, "l1": 0.061895171254873274, "kl": 0.009256888534873725, "loss": 0.15446405798196794}
|
| 37 |
+
{"event": "train", "step": 1850, "lr": 6.026076710978171e-05, "backbone_lr": 6.026076710978172e-06, "ema_decay": 0.996456, "it_s": 0.5, "data_frac": 0.328, "l1": 0.06172462567687034, "kl": 0.0090464604832232, "loss": 0.1521892297267914}
|
| 38 |
+
{"event": "train", "step": 1900, "lr": 5.8229729514036705e-05, "backbone_lr": 5.82297295140367e-06, "ema_decay": 0.996527, "it_s": 2.26, "data_frac": 0.003, "l1": 0.06107503265142441, "kl": 0.00880480045452714, "loss": 0.14912303745746613}
|
| 39 |
+
{"event": "train", "step": 1950, "lr": 5.618463156346739e-05, "backbone_lr": 5.61846315634674e-06, "ema_decay": 0.996594, "it_s": 1.37, "data_frac": 0.409, "l1": 0.060749784559011456, "kl": 0.008685212526470422, "loss": 0.1476019099354744}
|
| 40 |
+
{"event": "train", "step": 2000, "lr": 5.4128967273616625e-05, "backbone_lr": 5.412896727361663e-06, "ema_decay": 0.996658, "it_s": 2.17, "data_frac": 0.024, "l1": 0.0606442042440176, "kl": 0.008428768571466207, "loss": 0.14493189007043839}
|
| 41 |
+
{"event": "save", "step": 2000, "checkpoint": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/act-runs/b6v6p-b512-s4000/checkpoints/step-002000", "mse": 0.0065690805204212666, "mse_row0": 0.005624693352729082, "mse_motion_token": 0.00684046745300293, "mse_inspire_left_hand_state": 0.00010157385986531153, "mse_inspire_right_hand_state": 0.010141807608306408}
|
| 42 |
+
{"event": "train", "step": 2050, "lr": 5.2066248712440656e-05, "backbone_lr": 5.206624871244066e-06, "ema_decay": 0.996719, "it_s": 1.5, "data_frac": 0.001, "l1": 0.06040518395602703, "kl": 0.008262655483558774, "loss": 0.14303173929452895}
|
| 43 |
+
{"event": "train", "step": 2100, "lr": 5e-05, "backbone_lr": 5e-06, "ema_decay": 0.996778, "it_s": 2.33, "data_frac": 0.001, "l1": 0.06002238467335701, "kl": 0.008092485032975674, "loss": 0.14094723433256148}
|
| 44 |
+
{"event": "train", "step": 2150, "lr": 4.7933751287559335e-05, "backbone_lr": 4.793375128755934e-06, "ema_decay": 0.996834, "it_s": 2.15, "data_frac": 0.003, "l1": 0.05973941422998905, "kl": 0.007862743586301804, "loss": 0.13836684912443162}
|
| 45 |
+
{"event": "train", "step": 2200, "lr": 4.5871032726383386e-05, "backbone_lr": 4.587103272638339e-06, "ema_decay": 0.996888, "it_s": 1.1, "data_frac": 0.024, "l1": 0.059441261664032935, "kl": 0.007798130363225937, "loss": 0.13742256551980972}
|
| 46 |
+
{"event": "train", "step": 2250, "lr": 4.381536843653262e-05, "backbone_lr": 4.381536843653262e-06, "ema_decay": 0.99694, "it_s": 1.22, "data_frac": 0.28, "l1": 0.05919695794582367, "kl": 0.007619983572512865, "loss": 0.13539679408073424}
|
| 47 |
+
{"event": "train", "step": 2300, "lr": 4.17702704859633e-05, "backbone_lr": 4.17702704859633e-06, "ema_decay": 0.99699, "it_s": 1.64, "data_frac": 0.005, "l1": 0.05882174476981163, "kl": 0.007393024265766144, "loss": 0.13275198847055436}
|
| 48 |
+
{"event": "train", "step": 2350, "lr": 3.973923289021829e-05, "backbone_lr": 3.973923289021829e-06, "ema_decay": 0.997038, "it_s": 0.36, "data_frac": 0.777, "l1": 0.05859132289886475, "kl": 0.007340740840882063, "loss": 0.1319987305998802}
|
| 49 |
+
{"event": "train", "step": 2400, "lr": 3.772572564296005e-05, "backbone_lr": 3.7725725642960047e-06, "ema_decay": 0.997085, "it_s": 1.45, "data_frac": 0.301, "l1": 0.05848739773035049, "kl": 0.007150262910872698, "loss": 0.1299900272488594}
|
| 50 |
+
{"event": "train", "step": 2450, "lr": 3.5733188787544745e-05, "backbone_lr": 3.573318878754475e-06, "ema_decay": 0.997129, "it_s": 0.47, "data_frac": 0.215, "l1": 0.058268864080309866, "kl": 0.007151333475485444, "loss": 0.12978219762444496}
|
| 51 |
+
{"event": "train", "step": 2500, "lr": 3.3765026539765834e-05, "backbone_lr": 3.3765026539765832e-06, "ema_decay": 0.997172, "it_s": 2.34, "data_frac": 0.001, "l1": 0.058079722970724106, "kl": 0.007059194827452302, "loss": 0.12867167130112647}
|
| 52 |
+
{"event": "train", "step": 2550, "lr": 3.18246014718085e-05, "backbone_lr": 3.1824601471808504e-06, "ema_decay": 0.997214, "it_s": 2.12, "data_frac": 0.001, "l1": 0.057839429527521136, "kl": 0.006886199079453945, "loss": 0.12670142069458962}
|
| 53 |
+
{"event": "train", "step": 2600, "lr": 2.991522876735154e-05, "backbone_lr": 2.991522876735154e-06, "ema_decay": 0.997254, "it_s": 1.46, "data_frac": 0.379, "l1": 0.057554946094751355, "kl": 0.006831864723935723, "loss": 0.12587359189987182}
|
| 54 |
+
{"event": "train", "step": 2650, "lr": 2.804017055763149e-05, "backbone_lr": 2.804017055763149e-06, "ema_decay": 0.997293, "it_s": 2.29, "data_frac": 0.02, "l1": 0.05732862457633019, "kl": 0.006712026987224817, "loss": 0.12444889470934868}
|
| 55 |
+
{"event": "train", "step": 2700, "lr": 2.6202630348146324e-05, "backbone_lr": 2.6202630348146323e-06, "ema_decay": 0.997331, "it_s": 2.31, "data_frac": 0.001, "l1": 0.05734782487154007, "kl": 0.0066704520303756, "loss": 0.12405234575271606}
|
| 56 |
+
{"event": "train", "step": 2750, "lr": 2.4405747545519963e-05, "backbone_lr": 2.4405747545519966e-06, "ema_decay": 0.997367, "it_s": 2.33, "data_frac": 0.001, "l1": 0.057147650346159935, "kl": 0.006573154367506504, "loss": 0.12287919342517853}
|
| 57 |
+
{"event": "train", "step": 2800, "lr": 2.2652592093878666e-05, "backbone_lr": 2.265259209387867e-06, "ema_decay": 0.997403, "it_s": 2.19, "data_frac": 0.001, "l1": 0.05693836972117424, "kl": 0.006524251056835056, "loss": 0.12218088045716285}
|
| 58 |
+
{"event": "train", "step": 2850, "lr": 2.094615922990309e-05, "backbone_lr": 2.094615922990309e-06, "ema_decay": 0.997437, "it_s": 2.33, "data_frac": 0.001, "l1": 0.05680068723857403, "kl": 0.0064842489361763, "loss": 0.12164317712187767}
|
| 59 |
+
{"event": "train", "step": 2900, "lr": 1.928936436551661e-05, "backbone_lr": 1.928936436551661e-06, "ema_decay": 0.99747, "it_s": 2.34, "data_frac": 0.001, "l1": 0.05658380188047886, "kl": 0.006409094715490937, "loss": 0.120674749314785}
|
| 60 |
+
{"event": "train", "step": 2950, "lr": 1.768503810695295e-05, "backbone_lr": 1.7685038106952952e-06, "ema_decay": 0.997502, "it_s": 2.33, "data_frac": 0.001, "l1": 0.056342218220233914, "kl": 0.0063926434330642224, "loss": 0.12026865184307098}
|
| 61 |
+
{"event": "train", "step": 3000, "lr": 1.6135921418712956e-05, "backbone_lr": 1.6135921418712959e-06, "ema_decay": 0.997534, "it_s": 1.06, "data_frac": 0.003, "l1": 0.056565341651439664, "kl": 0.006310660066083074, "loss": 0.11967194244265557}
|
| 62 |
+
{"event": "train", "step": 3050, "lr": 1.4644660940672627e-05, "backbone_lr": 1.4644660940672628e-06, "ema_decay": 0.997564, "it_s": 0.57, "data_frac": 0.341, "l1": 0.05632961444556713, "kl": 0.0062773353978991505, "loss": 0.11910296708345414}
|
| 63 |
+
{"event": "train", "step": 3100, "lr": 1.3213804466343421e-05, "backbone_lr": 1.321380446634342e-06, "ema_decay": 0.997594, "it_s": 1.96, "data_frac": 0.011, "l1": 0.056362080723047256, "kl": 0.006193557837978005, "loss": 0.11829765915870666}
|
| 64 |
+
{"event": "train", "step": 3150, "lr": 1.1845796590009683e-05, "backbone_lr": 1.1845796590009684e-06, "ema_decay": 0.997622, "it_s": 2.27, "data_frac": 0.002, "l1": 0.05602119781076908, "kl": 0.00619962808676064, "loss": 0.11801747888326646}
|
| 65 |
+
{"event": "train", "step": 3200, "lr": 1.0542974530180327e-05, "backbone_lr": 1.0542974530180327e-06, "ema_decay": 0.99765, "it_s": 2.33, "data_frac": 0.002, "l1": 0.055995626226067546, "kl": 0.006132839769124984, "loss": 0.11732402339577674}
|
| 66 |
+
{"event": "train", "step": 3250, "lr": 9.307564136490254e-06, "backbone_lr": 9.307564136490255e-07, "ema_decay": 0.997677, "it_s": 0.54, "data_frac": 0.567, "l1": 0.055929140895605085, "kl": 0.006129804505035281, "loss": 0.11722718700766563}
|
| 67 |
+
{"event": "train", "step": 3300, "lr": 8.141676086873572e-06, "backbone_lr": 8.141676086873574e-07, "ema_decay": 0.997704, "it_s": 1.78, "data_frac": 0.03, "l1": 0.05576489023864269, "kl": 0.006121696075424552, "loss": 0.11698185041546821}
|
| 68 |
+
{"event": "train", "step": 3350, "lr": 7.047302281505736e-06, "backbone_lr": 7.047302281505735e-07, "ema_decay": 0.99773, "it_s": 1.98, "data_frac": 0.004, "l1": 0.05579254686832428, "kl": 0.006134667154401541, "loss": 0.11713921830058098}
|
| 69 |
+
{"event": "train", "step": 3400, "lr": 6.026312439675552e-06, "backbone_lr": 6.026312439675553e-07, "ema_decay": 0.997755, "it_s": 1.5, "data_frac": 0.002, "l1": 0.05551379039883614, "kl": 0.0059516141004860405, "loss": 0.11502993136644363}
|
| 70 |
+
{"event": "train", "step": 3450, "lr": 5.080450905401057e-06, "backbone_lr": 5.080450905401057e-07, "ema_decay": 0.997779, "it_s": 2.19, "data_frac": 0.004, "l1": 0.055607668235898015, "kl": 0.006056669121608138, "loss": 0.11617435902357101}
|
| 71 |
+
{"event": "train", "step": 3500, "lr": 4.2113336672471245e-06, "backbone_lr": 4.211333667247125e-07, "ema_decay": 0.997803, "it_s": 1.75, "data_frac": 0.07, "l1": 0.05574395857751369, "kl": 0.0060109937936067585, "loss": 0.11585389599204063}
|
| 72 |
+
{"event": "train", "step": 3550, "lr": 3.420445597436056e-06, "backbone_lr": 3.420445597436056e-07, "ema_decay": 0.997826, "it_s": 1.07, "data_frac": 0.004, "l1": 0.05538856722414494, "kl": 0.005988198034465313, "loss": 0.11527054741978646}
|
| 73 |
+
{"event": "train", "step": 3600, "lr": 2.7091379149682685e-06, "backbone_lr": 2.7091379149682683e-07, "ema_decay": 0.997849, "it_s": 0.55, "data_frac": 0.472, "l1": 0.05562038503587246, "kl": 0.005940079186111689, "loss": 0.11502117723226547}
|
| 74 |
+
{"event": "train", "step": 3650, "lr": 2.0786258770873647e-06, "backbone_lr": 2.0786258770873647e-07, "ema_decay": 0.997871, "it_s": 2.31, "data_frac": 0.002, "l1": 0.055400453060865405, "kl": 0.005918943276628852, "loss": 0.11458988562226295}
|
| 75 |
+
{"event": "train", "step": 3700, "lr": 1.5299867030334814e-06, "backbone_lr": 1.5299867030334815e-07, "ema_decay": 0.997893, "it_s": 2.32, "data_frac": 0.002, "l1": 0.055475706830620766, "kl": 0.00591225222684443, "loss": 0.11459822908043861}
|
| 76 |
+
{"event": "train", "step": 3750, "lr": 1.064157733632276e-06, "backbone_lr": 1.0641577336322761e-07, "ema_decay": 0.997914, "it_s": 2.3, "data_frac": 0.001, "l1": 0.05529114730656147, "kl": 0.005922943102195859, "loss": 0.1145205782353878}
|
| 77 |
+
{"event": "train", "step": 3800, "lr": 6.819348298638839e-07, "backbone_lr": 6.819348298638839e-08, "ema_decay": 0.997934, "it_s": 1.92, "data_frac": 0.003, "l1": 0.05518620572984219, "kl": 0.005878431564196944, "loss": 0.1139705215394497}
|
| 78 |
+
{"event": "train", "step": 3850, "lr": 3.839710131477492e-07, "backbone_lr": 3.839710131477492e-08, "ema_decay": 0.997954, "it_s": 2.32, "data_frac": 0.002, "l1": 0.05553345873951912, "kl": 0.005897821765393019, "loss": 0.11451167672872543}
|
| 79 |
+
{"event": "train", "step": 3900, "lr": 1.7077534966650766e-07, "backbone_lr": 1.7077534966650767e-08, "ema_decay": 0.997974, "it_s": 1.42, "data_frac": 0.392, "l1": 0.055208735391497614, "kl": 0.0058806351106613875, "loss": 0.11401508659124375}
|
| 80 |
+
{"event": "train", "step": 3950, "lr": 4.2712080634949024e-08, "backbone_lr": 4.2712080634949024e-09, "ema_decay": 0.997993, "it_s": 2.33, "data_frac": 0.001, "l1": 0.05528304733335972, "kl": 0.005866971118375659, "loss": 0.11395275846123695}
|
| 81 |
+
{"event": "train", "step": 4000, "lr": 0.0, "backbone_lr": 0.0, "ema_decay": 0.998012, "it_s": 2.17, "data_frac": 0.001, "l1": 0.05524025939404965, "kl": 0.005883785551413894, "loss": 0.11407811477780343}
|
| 82 |
+
{"event": "save", "step": 4000, "checkpoint": "/mnt/nas/cross/Team/RobotAgent/Personal/baijiaqi/humanoid-benchmark-work/preflight-20261104T1648Z/act-runs/b6v6p-b512-s4000/checkpoints/step-004000", "mse": 0.0062528024427592754, "mse_row0": 0.004473628476262093, "mse_motion_token": 0.006077274680137634, "mse_inspire_left_hand_state": 8.844343392411247e-05, "mse_inspire_right_hand_state": 0.01428945828229189}
|