ode a15-hitting-nail/b512-s6000: steps [5000, 6000] (MLP flash30k, team01)
Browse files- a15-hitting-nail/b512-s6000/step-005000/SHA256SUMS +3 -0
- a15-hitting-nail/b512-s6000/step-005000/config.json +1489 -0
- a15-hitting-nail/b512-s6000/step-005000/model.pt +3 -0
- a15-hitting-nail/b512-s6000/step-005000/protocol.json +146 -0
- a15-hitting-nail/b512-s6000/step-006000/SHA256SUMS +29 -0
- a15-hitting-nail/b512-s6000/step-006000/config.json +1489 -0
- a15-hitting-nail/b512-s6000/step-006000/model.pt +3 -0
- a15-hitting-nail/b512-s6000/step-006000/protocol.json +250 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/HB_CODE_COMMIT +1 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/augmentation/hb_aug_v2.py +163 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/__init__.py +13 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/act_nets.py +615 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/adapters.py +137 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_adapter.py +115 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_first_history.py +285 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_parity.py +141 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/data.py +509 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/flash.py +474 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/fm_dit_v2.py +99 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/inloop.py +118 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/nets.py +212 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/ode_nets.py +181 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/policies.py +459 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.lock.txt +61 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.txt +15 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/runtime.py +197 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/train.py +1029 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/complete.json +27 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/launch.sh +12 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/logs/inloop-mse.jsonl +24 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/pip_freeze_hb-baselines.txt +56 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/run.json +1518 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/train.log +158 -0
- a15-hitting-nail/b512-s6000/step-006000/training_records/train_log.jsonl +126 -0
a15-hitting-nail/b512-s6000/step-005000/SHA256SUMS
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
d248eb8969c94965439ac02e4f139403527e1c8fb0d19e8e82061a66153fcd4e config.json
|
| 2 |
+
9a2c1c547757d5f956a4f8d3c4a7fcb09e0b4da5df38050665822db69b13e058 model.pt
|
| 3 |
+
9ae8b0a2128516d2572072aea12d84faae8daa5beea400fec49a2bb68568200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
|
| 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 |
+
"ode_body_dim": 31,
|
| 30 |
+
"ode_width": 512,
|
| 31 |
+
"ode_layers": 4,
|
| 32 |
+
"ode_cond_dim": 512,
|
| 33 |
+
"ode_field_scale": 1.0,
|
| 34 |
+
"ode_dit_hidden": 512,
|
| 35 |
+
"ode_dit_layers": 4,
|
| 36 |
+
"ode_dit_heads": 8,
|
| 37 |
+
"ode_dit_tokens": 4,
|
| 38 |
+
"extra": {}
|
| 39 |
+
},
|
| 40 |
+
"contract": {
|
| 41 |
+
"name": "h2_sharpa",
|
| 42 |
+
"robot": "h2_sharpa",
|
| 43 |
+
"cameras": [
|
| 44 |
+
"head",
|
| 45 |
+
"chest"
|
| 46 |
+
],
|
| 47 |
+
"state": [
|
| 48 |
+
[
|
| 49 |
+
"observation.state",
|
| 50 |
+
0,
|
| 51 |
+
75
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
"observation.projected_gravity",
|
| 55 |
+
0,
|
| 56 |
+
3
|
| 57 |
+
]
|
| 58 |
+
],
|
| 59 |
+
"action": [
|
| 60 |
+
[
|
| 61 |
+
"action.body_target",
|
| 62 |
+
0,
|
| 63 |
+
31
|
| 64 |
+
],
|
| 65 |
+
[
|
| 66 |
+
"action.hands",
|
| 67 |
+
0,
|
| 68 |
+
44
|
| 69 |
+
]
|
| 70 |
+
],
|
| 71 |
+
"state_dim": 78,
|
| 72 |
+
"action_dim": 75,
|
| 73 |
+
"action_space": null,
|
| 74 |
+
"body_dims": 31
|
| 75 |
+
},
|
| 76 |
+
"image_hw": [
|
| 77 |
+
168,
|
| 78 |
+
224
|
| 79 |
+
],
|
| 80 |
+
"task_text": "Facing the workbench, pick up the hammer lying on its stand with the right hand, roll it in the palm until the face points down, then hammer the nail into the wooden block and hold the hammer up.",
|
| 81 |
+
"dataset": {
|
| 82 |
+
"name": "data",
|
| 83 |
+
"root": "/mnt/vepfs/baijiaqi/hb_team01_20261130/a15-hitting-nail-v3-139187e/data",
|
| 84 |
+
"robot_type": "h2_sharpa",
|
| 85 |
+
"fps": 30.0,
|
| 86 |
+
"episodes": [
|
| 87 |
+
0,
|
| 88 |
+
1,
|
| 89 |
+
2,
|
| 90 |
+
3,
|
| 91 |
+
4,
|
| 92 |
+
5,
|
| 93 |
+
6,
|
| 94 |
+
7,
|
| 95 |
+
8,
|
| 96 |
+
9,
|
| 97 |
+
10,
|
| 98 |
+
11,
|
| 99 |
+
12,
|
| 100 |
+
13,
|
| 101 |
+
14,
|
| 102 |
+
15,
|
| 103 |
+
16,
|
| 104 |
+
17,
|
| 105 |
+
18,
|
| 106 |
+
19,
|
| 107 |
+
20,
|
| 108 |
+
21,
|
| 109 |
+
22,
|
| 110 |
+
23,
|
| 111 |
+
24,
|
| 112 |
+
25,
|
| 113 |
+
26,
|
| 114 |
+
27,
|
| 115 |
+
28,
|
| 116 |
+
29,
|
| 117 |
+
30,
|
| 118 |
+
31,
|
| 119 |
+
32,
|
| 120 |
+
33,
|
| 121 |
+
34,
|
| 122 |
+
35,
|
| 123 |
+
36,
|
| 124 |
+
37,
|
| 125 |
+
38,
|
| 126 |
+
39,
|
| 127 |
+
40,
|
| 128 |
+
41,
|
| 129 |
+
42,
|
| 130 |
+
43,
|
| 131 |
+
44,
|
| 132 |
+
45,
|
| 133 |
+
46,
|
| 134 |
+
47,
|
| 135 |
+
48,
|
| 136 |
+
49,
|
| 137 |
+
50,
|
| 138 |
+
51,
|
| 139 |
+
52,
|
| 140 |
+
53,
|
| 141 |
+
54,
|
| 142 |
+
55,
|
| 143 |
+
56,
|
| 144 |
+
57,
|
| 145 |
+
58,
|
| 146 |
+
59,
|
| 147 |
+
60,
|
| 148 |
+
61,
|
| 149 |
+
62,
|
| 150 |
+
63,
|
| 151 |
+
64,
|
| 152 |
+
65,
|
| 153 |
+
66,
|
| 154 |
+
67,
|
| 155 |
+
68,
|
| 156 |
+
69,
|
| 157 |
+
70,
|
| 158 |
+
71,
|
| 159 |
+
72,
|
| 160 |
+
73,
|
| 161 |
+
74,
|
| 162 |
+
75,
|
| 163 |
+
76,
|
| 164 |
+
77,
|
| 165 |
+
78,
|
| 166 |
+
79,
|
| 167 |
+
80,
|
| 168 |
+
81,
|
| 169 |
+
82,
|
| 170 |
+
83,
|
| 171 |
+
84,
|
| 172 |
+
85,
|
| 173 |
+
86,
|
| 174 |
+
87,
|
| 175 |
+
88,
|
| 176 |
+
89,
|
| 177 |
+
90,
|
| 178 |
+
91,
|
| 179 |
+
92,
|
| 180 |
+
93,
|
| 181 |
+
94,
|
| 182 |
+
95,
|
| 183 |
+
96,
|
| 184 |
+
97,
|
| 185 |
+
98,
|
| 186 |
+
99,
|
| 187 |
+
100,
|
| 188 |
+
101,
|
| 189 |
+
102,
|
| 190 |
+
103,
|
| 191 |
+
104,
|
| 192 |
+
105,
|
| 193 |
+
106,
|
| 194 |
+
107,
|
| 195 |
+
108,
|
| 196 |
+
109,
|
| 197 |
+
110,
|
| 198 |
+
111,
|
| 199 |
+
112,
|
| 200 |
+
113,
|
| 201 |
+
114,
|
| 202 |
+
115,
|
| 203 |
+
116,
|
| 204 |
+
117,
|
| 205 |
+
118,
|
| 206 |
+
119,
|
| 207 |
+
120,
|
| 208 |
+
121,
|
| 209 |
+
122,
|
| 210 |
+
123,
|
| 211 |
+
124,
|
| 212 |
+
125,
|
| 213 |
+
126,
|
| 214 |
+
127,
|
| 215 |
+
128,
|
| 216 |
+
129,
|
| 217 |
+
130,
|
| 218 |
+
131,
|
| 219 |
+
132,
|
| 220 |
+
133,
|
| 221 |
+
134,
|
| 222 |
+
135,
|
| 223 |
+
136,
|
| 224 |
+
137,
|
| 225 |
+
138,
|
| 226 |
+
139,
|
| 227 |
+
140,
|
| 228 |
+
141,
|
| 229 |
+
142,
|
| 230 |
+
143,
|
| 231 |
+
144,
|
| 232 |
+
145,
|
| 233 |
+
146,
|
| 234 |
+
147,
|
| 235 |
+
148,
|
| 236 |
+
149
|
| 237 |
+
],
|
| 238 |
+
"train_episodes": [
|
| 239 |
+
0,
|
| 240 |
+
1,
|
| 241 |
+
2,
|
| 242 |
+
3,
|
| 243 |
+
4,
|
| 244 |
+
5,
|
| 245 |
+
6,
|
| 246 |
+
7,
|
| 247 |
+
8,
|
| 248 |
+
9,
|
| 249 |
+
10,
|
| 250 |
+
11,
|
| 251 |
+
12,
|
| 252 |
+
13,
|
| 253 |
+
14,
|
| 254 |
+
15,
|
| 255 |
+
16,
|
| 256 |
+
17,
|
| 257 |
+
18,
|
| 258 |
+
19,
|
| 259 |
+
20,
|
| 260 |
+
21,
|
| 261 |
+
22,
|
| 262 |
+
23,
|
| 263 |
+
24,
|
| 264 |
+
25,
|
| 265 |
+
26,
|
| 266 |
+
27,
|
| 267 |
+
28,
|
| 268 |
+
29,
|
| 269 |
+
30,
|
| 270 |
+
31,
|
| 271 |
+
32,
|
| 272 |
+
33,
|
| 273 |
+
34,
|
| 274 |
+
35,
|
| 275 |
+
36,
|
| 276 |
+
37,
|
| 277 |
+
38,
|
| 278 |
+
39,
|
| 279 |
+
40,
|
| 280 |
+
41,
|
| 281 |
+
42,
|
| 282 |
+
43,
|
| 283 |
+
44,
|
| 284 |
+
45,
|
| 285 |
+
46,
|
| 286 |
+
47,
|
| 287 |
+
48,
|
| 288 |
+
49,
|
| 289 |
+
50,
|
| 290 |
+
51,
|
| 291 |
+
52,
|
| 292 |
+
53,
|
| 293 |
+
54,
|
| 294 |
+
55,
|
| 295 |
+
56,
|
| 296 |
+
57,
|
| 297 |
+
58,
|
| 298 |
+
59,
|
| 299 |
+
60,
|
| 300 |
+
61,
|
| 301 |
+
62,
|
| 302 |
+
63,
|
| 303 |
+
64,
|
| 304 |
+
65,
|
| 305 |
+
66,
|
| 306 |
+
67,
|
| 307 |
+
68,
|
| 308 |
+
69,
|
| 309 |
+
70,
|
| 310 |
+
71,
|
| 311 |
+
72,
|
| 312 |
+
73,
|
| 313 |
+
74,
|
| 314 |
+
75,
|
| 315 |
+
76,
|
| 316 |
+
77,
|
| 317 |
+
78,
|
| 318 |
+
79,
|
| 319 |
+
80,
|
| 320 |
+
81,
|
| 321 |
+
82,
|
| 322 |
+
83,
|
| 323 |
+
84,
|
| 324 |
+
85,
|
| 325 |
+
86,
|
| 326 |
+
87,
|
| 327 |
+
88,
|
| 328 |
+
89,
|
| 329 |
+
90,
|
| 330 |
+
91,
|
| 331 |
+
92,
|
| 332 |
+
93,
|
| 333 |
+
94,
|
| 334 |
+
95,
|
| 335 |
+
96,
|
| 336 |
+
97,
|
| 337 |
+
98,
|
| 338 |
+
99,
|
| 339 |
+
100,
|
| 340 |
+
101,
|
| 341 |
+
102,
|
| 342 |
+
103,
|
| 343 |
+
104,
|
| 344 |
+
105,
|
| 345 |
+
106,
|
| 346 |
+
107,
|
| 347 |
+
108,
|
| 348 |
+
109,
|
| 349 |
+
110,
|
| 350 |
+
111,
|
| 351 |
+
112,
|
| 352 |
+
113,
|
| 353 |
+
114,
|
| 354 |
+
115,
|
| 355 |
+
116,
|
| 356 |
+
117,
|
| 357 |
+
118,
|
| 358 |
+
119,
|
| 359 |
+
120,
|
| 360 |
+
121,
|
| 361 |
+
122,
|
| 362 |
+
123,
|
| 363 |
+
124,
|
| 364 |
+
125,
|
| 365 |
+
126,
|
| 366 |
+
127,
|
| 367 |
+
128,
|
| 368 |
+
129,
|
| 369 |
+
130,
|
| 370 |
+
131,
|
| 371 |
+
132,
|
| 372 |
+
133,
|
| 373 |
+
134,
|
| 374 |
+
135,
|
| 375 |
+
136,
|
| 376 |
+
137,
|
| 377 |
+
138,
|
| 378 |
+
139,
|
| 379 |
+
140,
|
| 380 |
+
141,
|
| 381 |
+
142,
|
| 382 |
+
143,
|
| 383 |
+
144,
|
| 384 |
+
145,
|
| 385 |
+
146,
|
| 386 |
+
147,
|
| 387 |
+
148,
|
| 388 |
+
149
|
| 389 |
+
],
|
| 390 |
+
"val_episodes": [],
|
| 391 |
+
"train_frames": 86267,
|
| 392 |
+
"git_commit": "6ce120cceb6bbe5dda177208dc99f48a8820699a"
|
| 393 |
+
},
|
| 394 |
+
"training": {
|
| 395 |
+
"steps": 6000,
|
| 396 |
+
"batch_size": 512,
|
| 397 |
+
"lr": 0.0001,
|
| 398 |
+
"betas": [
|
| 399 |
+
0.95,
|
| 400 |
+
0.999
|
| 401 |
+
],
|
| 402 |
+
"weight_decay": 1e-06,
|
| 403 |
+
"warmup": 500,
|
| 404 |
+
"schedule": "diffusers_cosine",
|
| 405 |
+
"backbone_lr_scale": 1.0,
|
| 406 |
+
"ema": 0.9999,
|
| 407 |
+
"shift_px": 0,
|
| 408 |
+
"amp": true,
|
| 409 |
+
"seed": 42,
|
| 410 |
+
"augmentation": {
|
| 411 |
+
"spec": "docs/augmentation_v2.md",
|
| 412 |
+
"version": "hb-aug-v2-20261109",
|
| 413 |
+
"implementation": "evaluation/augmentation/hb_aug_v2.py",
|
| 414 |
+
"visual": {
|
| 415 |
+
"effects": [
|
| 416 |
+
"exposure",
|
| 417 |
+
"contrast",
|
| 418 |
+
"saturation",
|
| 419 |
+
"hue",
|
| 420 |
+
"gamma",
|
| 421 |
+
"temperature",
|
| 422 |
+
"rotation_crop",
|
| 423 |
+
"noise",
|
| 424 |
+
"gaussian_blur",
|
| 425 |
+
"jpeg",
|
| 426 |
+
"motion_blur",
|
| 427 |
+
"sharpen",
|
| 428 |
+
"defocus",
|
| 429 |
+
"light_shadow",
|
| 430 |
+
"wb_channel"
|
| 431 |
+
],
|
| 432 |
+
"boosted_per_sample": 1,
|
| 433 |
+
"boost": 1.5,
|
| 434 |
+
"pixel_scale": "H / 224",
|
| 435 |
+
"future_targets": "none (one observation frame)"
|
| 436 |
+
},
|
| 437 |
+
"proprio": {
|
| 438 |
+
"robot": "h2_sharpa",
|
| 439 |
+
"body_dims": 31,
|
| 440 |
+
"bias_deg": 2.0,
|
| 441 |
+
"bias_scope": "per_sample",
|
| 442 |
+
"noise_deg": 0.25,
|
| 443 |
+
"noise_clip_sigma": 3,
|
| 444 |
+
"delay_probability": 0.0,
|
| 445 |
+
"history_drop_probability": 0.0,
|
| 446 |
+
"velocity": false
|
| 447 |
+
},
|
| 448 |
+
"native_image_augmentation": "off",
|
| 449 |
+
"evaluation": "off"
|
| 450 |
+
},
|
| 451 |
+
"preflight": {
|
| 452 |
+
"samples": 64,
|
| 453 |
+
"state_dim": 78,
|
| 454 |
+
"body_dims": 31,
|
| 455 |
+
"images_changed": 64,
|
| 456 |
+
"body_values_moved": 1.0,
|
| 457 |
+
"max_body_offset_deg": 2.6647,
|
| 458 |
+
"actions_bit_identical": true,
|
| 459 |
+
"non_body_state_bit_identical": true,
|
| 460 |
+
"eval_items_deterministic": 8
|
| 461 |
+
},
|
| 462 |
+
"aug_seed": 42,
|
| 463 |
+
"layout": {
|
| 464 |
+
"nodes": 1,
|
| 465 |
+
"gpus": 1,
|
| 466 |
+
"per_gpu_batch": 512,
|
| 467 |
+
"global_batch": 512,
|
| 468 |
+
"gradient_accumulation": 1,
|
| 469 |
+
"num_workers": 32,
|
| 470 |
+
"prefetch": 2
|
| 471 |
+
},
|
| 472 |
+
"continuation": null,
|
| 473 |
+
"total_steps": 6000,
|
| 474 |
+
"save_steps": [
|
| 475 |
+
1000,
|
| 476 |
+
2000,
|
| 477 |
+
3000,
|
| 478 |
+
4000,
|
| 479 |
+
5000,
|
| 480 |
+
6000
|
| 481 |
+
],
|
| 482 |
+
"save_rule": "6 checkpoints spread evenly over the steps on the 250-step grid (owner 2026-11-27)",
|
| 483 |
+
"protocol_exceptions": [
|
| 484 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 485 |
+
"owner 2026-11-30 (\u300cteam01 \u8fd9\u4e24\u5f20\u5361\u5148\u88c5\u597d\u73af\u5883\uff0c\u7136\u540e\u5206\u62c5\u6211\u4eec\u8fd9\u8fb9\u5176\u4ed6\u7684\u4efb\u52a1\uff0c\u8bad\u7ec3\u3001\u8bc4\u4f30\u90fd\u53ef\u4ee5\u300d): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)"
|
| 486 |
+
],
|
| 487 |
+
"ema_schedule": "diffusion_policy_emamodel",
|
| 488 |
+
"inloop": {
|
| 489 |
+
"task": "a15v3",
|
| 490 |
+
"code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse",
|
| 491 |
+
"every": 250,
|
| 492 |
+
"exception": null,
|
| 493 |
+
"code_sha256": {
|
| 494 |
+
"hb_inloop_core.py": "154fa6d905e32d61c0def546caf6979c3a148b7bef0c1284e773b9051dddce97",
|
| 495 |
+
"hb_eval_common.py": "d89b1bfc1ac03d489b6ba2ac7c61eab3f318023ec37677dd5ee02b93d851d6ac"
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"protocol_recipe": {
|
| 499 |
+
"batch_size": 512,
|
| 500 |
+
"steps": 5000,
|
| 501 |
+
"warmup": 500,
|
| 502 |
+
"workers": 32,
|
| 503 |
+
"long_task_factor": 1
|
| 504 |
+
},
|
| 505 |
+
"protocol_deviations": [
|
| 506 |
+
"steps 6000 (protocol 5000)"
|
| 507 |
+
],
|
| 508 |
+
"environment": {
|
| 509 |
+
"python": "3.12.1",
|
| 510 |
+
"torch": "2.9.0+cu128",
|
| 511 |
+
"numpy": "2.2.6",
|
| 512 |
+
"cuda": "12.8",
|
| 513 |
+
"cudnn": 91002,
|
| 514 |
+
"torchvision": "0.24.0+cu128",
|
| 515 |
+
"pillow": "12.3.0",
|
| 516 |
+
"gpu": "NVIDIA GeForce RTX 4090 D",
|
| 517 |
+
"driver": "550.127.05"
|
| 518 |
+
},
|
| 519 |
+
"code_dirty": null,
|
| 520 |
+
"allow_dirty_tree": false,
|
| 521 |
+
"augmentation_sha256": "9f7713cea4f846efcfc924234267ced48210357f419d67915c10b504316bedde",
|
| 522 |
+
"order": "EpochSampler: default_rng([seed, 1, epoch]) permutation; augmentation default_rng([aug_seed, draw])",
|
| 523 |
+
"upstream": "NTUMARS/ODE-POLICY real-g1@fd8bec47 (G1 port, HumanWAM packages/ode_g1) + main@cea26d94 (encoder, ode_dit field, default_train.yaml)"
|
| 524 |
+
},
|
| 525 |
+
"stats": {
|
| 526 |
+
"state": {
|
| 527 |
+
"min": [
|
| 528 |
+
-0.09997769445180893,
|
| 529 |
+
-0.00021537415159400553,
|
| 530 |
+
-0.0018031895160675049,
|
| 531 |
+
0.23896919190883636,
|
| 532 |
+
-0.0032215823885053396,
|
| 533 |
+
-0.16552682220935822,
|
| 534 |
+
-0.10010066628456116,
|
| 535 |
+
-0.005005246959626675,
|
| 536 |
+
-0.0010331370867788792,
|
| 537 |
+
0.2388608306646347,
|
| 538 |
+
-0.0007713548839092255,
|
| 539 |
+
-0.16637399792671204,
|
| 540 |
+
-0.0036116293631494045,
|
| 541 |
+
-0.0005855314084328711,
|
| 542 |
+
-0.012959281913936138,
|
| 543 |
+
0.2377660870552063,
|
| 544 |
+
0.10000789910554886,
|
| 545 |
+
0.0028428281657397747,
|
| 546 |
+
0.993225634098053,
|
| 547 |
+
-0.002429646672680974,
|
| 548 |
+
-0.005298535339534283,
|
| 549 |
+
0.005146781913936138,
|
| 550 |
+
-0.7949823141098022,
|
| 551 |
+
-1.1849690675735474,
|
| 552 |
+
-0.764089822769165,
|
| 553 |
+
-0.20890109241008759,
|
| 554 |
+
0.0010743907187134027,
|
| 555 |
+
-0.4016851782798767,
|
| 556 |
+
-1.223796010017395,
|
| 557 |
+
0.003484983928501606,
|
| 558 |
+
-0.5965985059738159,
|
| 559 |
+
8.041491128096823e-06,
|
| 560 |
+
7.787263712089043e-06,
|
| 561 |
+
-2.0799054709641496e-06,
|
| 562 |
+
7.4421236604393926e-06,
|
| 563 |
+
0.001140148495323956,
|
| 564 |
+
-0.0007875783485360444,
|
| 565 |
+
-0.0007883345242589712,
|
| 566 |
+
7.089955033734441e-06,
|
| 567 |
+
-0.0007868656539358199,
|
| 568 |
+
-0.08961887657642365,
|
| 569 |
+
1.387537508890091e-06,
|
| 570 |
+
1.3565856988861924e-06,
|
| 571 |
+
-0.0007850074907764792,
|
| 572 |
+
1.3112578471918823e-06,
|
| 573 |
+
0.0007804867927916348,
|
| 574 |
+
2.1667759142474097e-07,
|
| 575 |
+
2.1437449504446704e-07,
|
| 576 |
+
1.2650284588744398e-06,
|
| 577 |
+
2.100367879620535e-07,
|
| 578 |
+
0.0004996865172870457,
|
| 579 |
+
2.0562282543323818e-07,
|
| 580 |
+
1.8338482732360717e-07,
|
| 581 |
+
3.5120523534715176e-05,
|
| 582 |
+
2.6369834813522175e-05,
|
| 583 |
+
-0.0008715128060430288,
|
| 584 |
+
1.6693044017301872e-05,
|
| 585 |
+
-0.0002734147710725665,
|
| 586 |
+
-0.06660658866167068,
|
| 587 |
+
-0.1113005056977272,
|
| 588 |
+
1.06078668977716e-05,
|
| 589 |
+
-0.09395170956850052,
|
| 590 |
+
-0.19489309191703796,
|
| 591 |
+
2.1877663129998837e-06,
|
| 592 |
+
2.11020801543782e-06,
|
| 593 |
+
-0.03943561017513275,
|
| 594 |
+
1.9952312868554145e-06,
|
| 595 |
+
0.001209239475429058,
|
| 596 |
+
3.277772577803262e-07,
|
| 597 |
+
3.2084344070426596e-07,
|
| 598 |
+
1.877936597338703e-06,
|
| 599 |
+
3.0860724109516013e-07,
|
| 600 |
+
0.0008695685537531972,
|
| 601 |
+
2.961393192890682e-07,
|
| 602 |
+
4.9229495147073976e-08,
|
| 603 |
+
0.0008595046238042414,
|
| 604 |
+
-0.0009253888856619596,
|
| 605 |
+
-0.9999996423721313
|
| 606 |
+
],
|
| 607 |
+
"max": [
|
| 608 |
+
-0.09415019303560257,
|
| 609 |
+
0.004828622564673424,
|
| 610 |
+
0.0008512705680914223,
|
| 611 |
+
0.2468973845243454,
|
| 612 |
+
0.0011205088812857866,
|
| 613 |
+
-0.14899034798145294,
|
| 614 |
+
-0.09456837922334671,
|
| 615 |
+
-0.00035856530303135514,
|
| 616 |
+
0.001164556248113513,
|
| 617 |
+
0.24686793982982635,
|
| 618 |
+
0.002884133020415902,
|
| 619 |
+
-0.14915470778942108,
|
| 620 |
+
0.003393669379875064,
|
| 621 |
+
0.011874571442604065,
|
| 622 |
+
0.004470391198992729,
|
| 623 |
+
0.25079748034477234,
|
| 624 |
+
0.11245691776275635,
|
| 625 |
+
0.005373213440179825,
|
| 626 |
+
0.9999775290489197,
|
| 627 |
+
-0.0004550613812170923,
|
| 628 |
+
-0.0006144921062514186,
|
| 629 |
+
0.017257247120141983,
|
| 630 |
+
0.6067484021186829,
|
| 631 |
+
-0.03932846337556839,
|
| 632 |
+
0.8707330822944641,
|
| 633 |
+
1.1787530183792114,
|
| 634 |
+
2.6213066577911377,
|
| 635 |
+
0.4448302388191223,
|
| 636 |
+
0.17772707343101501,
|
| 637 |
+
0.6958374381065369,
|
| 638 |
+
1.7674472474027425e-05,
|
| 639 |
+
0.0021774214692413807,
|
| 640 |
+
0.002177412388846278,
|
| 641 |
+
0.000286454422166571,
|
| 642 |
+
0.0021773858461529016,
|
| 643 |
+
0.048038650304079056,
|
| 644 |
+
-1.918966336234007e-05,
|
| 645 |
+
-2.0099716493859887e-05,
|
| 646 |
+
0.0021775541827082634,
|
| 647 |
+
-1.8466966139385477e-05,
|
| 648 |
+
-0.004215856548398733,
|
| 649 |
+
0.0004085846012458205,
|
| 650 |
+
0.00040858410648070276,
|
| 651 |
+
-1.7040652892319486e-05,
|
| 652 |
+
0.00040858116699382663,
|
| 653 |
+
0.004995528608560562,
|
| 654 |
+
7.248025212902576e-05,
|
| 655 |
+
7.248033944051713e-05,
|
| 656 |
+
0.000408606487326324,
|
| 657 |
+
7.248002657433972e-05,
|
| 658 |
+
0.005003098398447037,
|
| 659 |
+
7.248362089740112e-05,
|
| 660 |
+
0.0001694808161118999,
|
| 661 |
+
1.4606938362121582,
|
| 662 |
+
1.3873600959777832,
|
| 663 |
+
0.24172371625900269,
|
| 664 |
+
1.5354737043380737,
|
| 665 |
+
1.282624363899231,
|
| 666 |
+
0.21544072031974792,
|
| 667 |
+
0.1536547690629959,
|
| 668 |
+
1.5726174116134644,
|
| 669 |
+
0.08847889304161072,
|
| 670 |
+
-0.002909993752837181,
|
| 671 |
+
1.6941105127334595,
|
| 672 |
+
1.7474862337112427,
|
| 673 |
+
0.12235886603593826,
|
| 674 |
+
1.7342374324798584,
|
| 675 |
+
1.1012191772460938,
|
| 676 |
+
1.3934080600738525,
|
| 677 |
+
1.3533018827438354,
|
| 678 |
+
1.7458083629608154,
|
| 679 |
+
1.0872085094451904,
|
| 680 |
+
0.34997692704200745,
|
| 681 |
+
1.0156328678131104,
|
| 682 |
+
0.386565238237381,
|
| 683 |
+
0.011892342939972878,
|
| 684 |
+
0.00036274068406783044,
|
| 685 |
+
-0.9999292492866516
|
| 686 |
+
],
|
| 687 |
+
"mean": [
|
| 688 |
+
-0.09785526093611452,
|
| 689 |
+
0.0029796540751150223,
|
| 690 |
+
-0.00011749093636783019,
|
| 691 |
+
0.24078336613300713,
|
| 692 |
+
-0.001483745781117172,
|
| 693 |
+
-0.16094673989096656,
|
| 694 |
+
-0.09784785629628794,
|
| 695 |
+
-0.003286792622055945,
|
| 696 |
+
6.359669603595921e-05,
|
| 697 |
+
0.24135650970587674,
|
| 698 |
+
0.0014481086974793924,
|
| 699 |
+
-0.16157293961249933,
|
| 700 |
+
-0.00055516285977429,
|
| 701 |
+
0.004176521286819223,
|
| 702 |
+
0.001051175742497642,
|
| 703 |
+
0.2395181341710026,
|
| 704 |
+
0.10792622612743608,
|
| 705 |
+
0.004581044781537889,
|
| 706 |
+
0.9944883175184331,
|
| 707 |
+
-0.0011651024131686418,
|
| 708 |
+
-0.004377417567246881,
|
| 709 |
+
0.006125923884388435,
|
| 710 |
+
-0.35644952192305274,
|
| 711 |
+
-0.46418886003898757,
|
| 712 |
+
-0.013048485006977669,
|
| 713 |
+
0.17741333217133373,
|
| 714 |
+
1.905103833607418,
|
| 715 |
+
0.30614702442260283,
|
| 716 |
+
-0.7054572112394577,
|
| 717 |
+
0.5088922210153903,
|
| 718 |
+
-0.32759722949323195,
|
| 719 |
+
0.00155383075415595,
|
| 720 |
+
0.0015537752436624434,
|
| 721 |
+
0.00020132537563169773,
|
| 722 |
+
0.0015537100449893638,
|
| 723 |
+
0.033465170018071755,
|
| 724 |
+
-0.0005566219677073042,
|
| 725 |
+
-0.0005569153729970776,
|
| 726 |
+
0.0015537284846230618,
|
| 727 |
+
-0.0005563826282825237,
|
| 728 |
+
-0.0861267614232954,
|
| 729 |
+
0.00029127273341124105,
|
| 730 |
+
0.00029126452302906614,
|
| 731 |
+
-0.0005556223184502122,
|
| 732 |
+
0.00029125536324850346,
|
| 733 |
+
0.0043675904196599285,
|
| 734 |
+
5.153174948852545e-05,
|
| 735 |
+
5.1530702786641114e-05,
|
| 736 |
+
0.00029125860617560865,
|
| 737 |
+
5.1529519222620906e-05,
|
| 738 |
+
0.00420368666799645,
|
| 739 |
+
5.153006054694349e-05,
|
| 740 |
+
0.00011943137353283142,
|
| 741 |
+
0.8160156590570241,
|
| 742 |
+
0.9389792287318086,
|
| 743 |
+
0.1490323148686384,
|
| 744 |
+
1.2093103380214947,
|
| 745 |
+
0.7972762943083992,
|
| 746 |
+
-0.0029631480957493486,
|
| 747 |
+
-0.055737382939839715,
|
| 748 |
+
1.2004745719955285,
|
| 749 |
+
-0.044283933876475896,
|
| 750 |
+
-0.08029388535325555,
|
| 751 |
+
1.2305006590593395,
|
| 752 |
+
1.2743632885109408,
|
| 753 |
+
0.03205499904873027,
|
| 754 |
+
1.3778912931374658,
|
| 755 |
+
0.4899848887858702,
|
| 756 |
+
0.9868204909239197,
|
| 757 |
+
0.780929127787715,
|
| 758 |
+
1.1804992306569957,
|
| 759 |
+
0.8426924277583776,
|
| 760 |
+
0.20458252311803743,
|
| 761 |
+
0.7181666232938461,
|
| 762 |
+
0.15684561085752854,
|
| 763 |
+
0.007212025231518785,
|
| 764 |
+
-0.00018580798599419722,
|
| 765 |
+
-0.9999714100548942
|
| 766 |
+
],
|
| 767 |
+
"std": [
|
| 768 |
+
0.0009067670789237834,
|
| 769 |
+
0.0008727894346167395,
|
| 770 |
+
0.0002777191972242325,
|
| 771 |
+
0.0006466220604173187,
|
| 772 |
+
0.0007346710346997718,
|
| 773 |
+
0.0017976988752153227,
|
| 774 |
+
0.0007769208980955679,
|
| 775 |
+
0.0006779111896897012,
|
| 776 |
+
0.00020889763962404415,
|
| 777 |
+
0.0005150219641825996,
|
| 778 |
+
0.0006882885320503921,
|
| 779 |
+
0.0017855112589450538,
|
| 780 |
+
0.0007098681864201253,
|
| 781 |
+
0.0024662644695297446,
|
| 782 |
+
0.0033463154916504646,
|
| 783 |
+
0.0009304211235617237,
|
| 784 |
+
0.0008408055498402711,
|
| 785 |
+
0.00019948119403078555,
|
| 786 |
+
0.0008665865887054094,
|
| 787 |
+
0.0001838611778494026,
|
| 788 |
+
0.0007190760615107812,
|
| 789 |
+
0.001141946161740247,
|
| 790 |
+
0.2633559095218504,
|
| 791 |
+
0.1844559478015024,
|
| 792 |
+
0.23941128485327795,
|
| 793 |
+
0.28156390062770453,
|
| 794 |
+
0.5549049949709923,
|
| 795 |
+
0.14039245872370573,
|
| 796 |
+
0.2860102014074455,
|
| 797 |
+
0.14344760466848627,
|
| 798 |
+
0.18510505690932832,
|
| 799 |
+
0.0005225765840522694,
|
| 800 |
+
0.0005225690372026028,
|
| 801 |
+
6.575214921290484e-05,
|
| 802 |
+
0.0005225621051523737,
|
| 803 |
+
0.0029143773124083,
|
| 804 |
+
0.0001843525411469115,
|
| 805 |
+
0.0001841359459697739,
|
| 806 |
+
0.0005226020795211893,
|
| 807 |
+
0.0001845250039153968,
|
| 808 |
+
0.0047760096669896114,
|
| 809 |
+
9.812322688642312e-05,
|
| 810 |
+
9.812203457502503e-05,
|
| 811 |
+
0.00018469305540414234,
|
| 812 |
+
9.812084743566436e-05,
|
| 813 |
+
0.0002908526544858428,
|
| 814 |
+
1.742548075238556e-05,
|
| 815 |
+
1.7425327866510986e-05,
|
| 816 |
+
9.812715294628039e-05,
|
| 817 |
+
1.7425186916470698e-05,
|
| 818 |
+
0.0004960553666509786,
|
| 819 |
+
1.7426072624276864e-05,
|
| 820 |
+
4.089342148594891e-05,
|
| 821 |
+
0.3662403907404729,
|
| 822 |
+
0.3885310127888585,
|
| 823 |
+
0.08083219424718499,
|
| 824 |
+
0.4977664762172315,
|
| 825 |
+
0.4876249899076184,
|
| 826 |
+
0.04674606850641643,
|
| 827 |
+
0.049665436463866286,
|
| 828 |
+
0.4795121047941493,
|
| 829 |
+
0.02788045856296372,
|
| 830 |
+
0.024717666341607568,
|
| 831 |
+
0.5321873529292879,
|
| 832 |
+
0.5013715940954119,
|
| 833 |
+
0.021384402536122157,
|
| 834 |
+
0.5500727925731698,
|
| 835 |
+
0.3764727797613653,
|
| 836 |
+
0.40516620301013545,
|
| 837 |
+
0.32029078359450514,
|
| 838 |
+
0.5812045384233172,
|
| 839 |
+
0.35930818560330374,
|
| 840 |
+
0.13998244790577968,
|
| 841 |
+
0.3201486052619058,
|
| 842 |
+
0.10190235433527584,
|
| 843 |
+
0.0022605747284818113,
|
| 844 |
+
0.00014482477039994416,
|
| 845 |
+
1.420976945599524e-05
|
| 846 |
+
],
|
| 847 |
+
"q01": [
|
| 848 |
+
-0.09850119099020958,
|
| 849 |
+
0.0008640509913675487,
|
| 850 |
+
-0.0013354859687387944,
|
| 851 |
+
0.23958615839481354,
|
| 852 |
+
-0.0025275377416983246,
|
| 853 |
+
-0.16435931086540223,
|
| 854 |
+
-0.09866525486111641,
|
| 855 |
+
-0.004544122843071818,
|
| 856 |
+
-0.000575557000702247,
|
| 857 |
+
0.24074132561683656,
|
| 858 |
+
-0.0001615556830074638,
|
| 859 |
+
-0.1650536412000656,
|
| 860 |
+
-0.0024056987091898917,
|
| 861 |
+
0.0008230352459941059,
|
| 862 |
+
-0.009928395040333271,
|
| 863 |
+
0.23857873946428299,
|
| 864 |
+
0.10606704607605934,
|
| 865 |
+
0.003956269128248095,
|
| 866 |
+
0.9938164746761322,
|
| 867 |
+
-0.001539693505037576,
|
| 868 |
+
-0.005080912876874209,
|
| 869 |
+
0.005361183704808354,
|
| 870 |
+
-0.701295336484909,
|
| 871 |
+
-0.9814284694194794,
|
| 872 |
+
-0.619218373298645,
|
| 873 |
+
-0.15970112800598144,
|
| 874 |
+
0.0012465573311783373,
|
| 875 |
+
-0.020751330591738226,
|
| 876 |
+
-1.1978226280212403,
|
| 877 |
+
0.005782165098935366,
|
| 878 |
+
-0.5843974411487579,
|
| 879 |
+
5.5685082770651206e-05,
|
| 880 |
+
5.575544491875917e-05,
|
| 881 |
+
1.1438586625445168e-05,
|
| 882 |
+
5.578377022175118e-05,
|
| 883 |
+
0.03149609334766865,
|
| 884 |
+
-0.0007608840032480657,
|
| 885 |
+
-0.0007609407871495932,
|
| 886 |
+
5.581375808105804e-05,
|
| 887 |
+
-0.0007608092855662107,
|
| 888 |
+
-0.08835047483444214,
|
| 889 |
+
1.0384754205006175e-05,
|
| 890 |
+
1.0395733625045978e-05,
|
| 891 |
+
-0.0007601524202618748,
|
| 892 |
+
1.0400010978628416e-05,
|
| 893 |
+
0.004061101069673896,
|
| 894 |
+
1.8193740061178687e-06,
|
| 895 |
+
1.8208826304544345e-06,
|
| 896 |
+
1.04044147519744e-05,
|
| 897 |
+
1.8214138890471077e-06,
|
| 898 |
+
0.002980961464345455,
|
| 899 |
+
1.8219617459180881e-06,
|
| 900 |
+
4.006936705991393e-06,
|
| 901 |
+
8.382547821383923e-05,
|
| 902 |
+
7.428319077007473e-05,
|
| 903 |
+
-2.2172567223606166e-05,
|
| 904 |
+
6.400699203368276e-05,
|
| 905 |
+
0.031931091770529746,
|
| 906 |
+
-0.06078811451792717,
|
| 907 |
+
-0.10554235592484475,
|
| 908 |
+
5.808875721413642e-05,
|
| 909 |
+
-0.0833454391360283,
|
| 910 |
+
-0.13375658839941024,
|
| 911 |
+
1.078577679436421e-05,
|
| 912 |
+
1.0795828529808205e-05,
|
| 913 |
+
-0.02222786143422127,
|
| 914 |
+
1.0798270523082465e-05,
|
| 915 |
+
0.005258570266887546,
|
| 916 |
+
1.8745749912341125e-06,
|
| 917 |
+
1.8758527176032658e-06,
|
| 918 |
+
1.0800773452501744e-05,
|
| 919 |
+
1.875971065601334e-06,
|
| 920 |
+
0.005282324487343431,
|
| 921 |
+
1.876095211628126e-06,
|
| 922 |
+
3.2027537599788047e-06,
|
| 923 |
+
0.0013345605693757534,
|
| 924 |
+
-0.000605643637245521,
|
| 925 |
+
-0.9999991059303284
|
| 926 |
+
],
|
| 927 |
+
"q99": [
|
| 928 |
+
-0.09460046887397766,
|
| 929 |
+
0.004371109576895832,
|
| 930 |
+
0.00038374101219233075,
|
| 931 |
+
0.2427612990140915,
|
| 932 |
+
0.000562165722949429,
|
| 933 |
+
-0.1576434600353241,
|
| 934 |
+
-0.09517786651849747,
|
| 935 |
+
-0.0016454175347462296,
|
| 936 |
+
0.0006539086590055373,
|
| 937 |
+
0.2431977242231369,
|
| 938 |
+
0.0025224683387205,
|
| 939 |
+
-0.15848641932010651,
|
| 940 |
+
0.0021284108096733677,
|
| 941 |
+
0.010720436889678239,
|
| 942 |
+
0.0036060637608170505,
|
| 943 |
+
0.24132926225662232,
|
| 944 |
+
0.11057938635349274,
|
| 945 |
+
0.005188127979636192,
|
| 946 |
+
0.9976410865783691,
|
| 947 |
+
-0.00053376954048872,
|
| 948 |
+
-0.0012399926781654358,
|
| 949 |
+
0.012605562806129456,
|
| 950 |
+
0.5652764868736264,
|
| 951 |
+
-0.08248741999268538,
|
| 952 |
+
0.6294910681247707,
|
| 953 |
+
0.9960867166519165,
|
| 954 |
+
2.6078319597244257,
|
| 955 |
+
0.4364731413125992,
|
| 956 |
+
0.1169470515847205,
|
| 957 |
+
0.6803933727741241,
|
| 958 |
+
-9.349087122245692e-06,
|
| 959 |
+
0.0021375684905797243,
|
| 960 |
+
0.0021375125600025056,
|
| 961 |
+
0.000276203085668385,
|
| 962 |
+
0.002137404466047883,
|
| 963 |
+
0.04510190337896347,
|
| 964 |
+
-3.0469611374428496e-05,
|
| 965 |
+
-3.1369836506200954e-05,
|
| 966 |
+
0.0021374762523919343,
|
| 967 |
+
-2.9749740861007012e-05,
|
| 968 |
+
-0.08416056245565415,
|
| 969 |
+
0.00040105835360009217,
|
| 970 |
+
0.00040104385174345226,
|
| 971 |
+
-2.8378133720252663e-05,
|
| 972 |
+
0.00040102897211909296,
|
| 973 |
+
0.00496477410197258,
|
| 974 |
+
7.111685394193045e-05,
|
| 975 |
+
7.111564045771956e-05,
|
| 976 |
+
0.00040104796527884896,
|
| 977 |
+
7.111543440259992e-05,
|
| 978 |
+
0.0047313511185348035,
|
| 979 |
+
7.11158437479753e-05,
|
| 980 |
+
0.00016601720359176396,
|
| 981 |
+
1.3917556595802305,
|
| 982 |
+
1.2549091958999632,
|
| 983 |
+
0.2342953011393547,
|
| 984 |
+
1.5228514790534973,
|
| 985 |
+
1.281657338142395,
|
| 986 |
+
0.18650823861360544,
|
| 987 |
+
0.1220307160913944,
|
| 988 |
+
1.5645131540298463,
|
| 989 |
+
0.05879297986626625,
|
| 990 |
+
-0.01600564777851105,
|
| 991 |
+
1.6867665481567382,
|
| 992 |
+
1.6438835501670837,
|
| 993 |
+
0.07475225746631602,
|
| 994 |
+
1.7114433479309081,
|
| 995 |
+
1.0851153564453124,
|
| 996 |
+
1.3932189154624939,
|
| 997 |
+
1.1691025447845456,
|
| 998 |
+
1.7413175559043885,
|
| 999 |
+
1.0792978668212891,
|
| 1000 |
+
0.34871641933918,
|
| 1001 |
+
1.003419451713562,
|
| 1002 |
+
0.375705896615982,
|
| 1003 |
+
0.010849302671849727,
|
| 1004 |
+
7.791171374264991e-05,
|
| 1005 |
+
-0.9999411499500275
|
| 1006 |
+
],
|
| 1007 |
+
"unit_dims": []
|
| 1008 |
+
},
|
| 1009 |
+
"action": {
|
| 1010 |
+
"min": [
|
| 1011 |
+
-0.10000000149011612,
|
| 1012 |
+
0.0,
|
| 1013 |
+
0.0,
|
| 1014 |
+
0.25,
|
| 1015 |
+
0.0,
|
| 1016 |
+
-0.15000000596046448,
|
| 1017 |
+
-0.10000000149011612,
|
| 1018 |
+
0.0,
|
| 1019 |
+
0.0,
|
| 1020 |
+
0.25,
|
| 1021 |
+
0.0,
|
| 1022 |
+
-0.15000000596046448,
|
| 1023 |
+
0.0,
|
| 1024 |
+
0.0,
|
| 1025 |
+
0.0,
|
| 1026 |
+
0.25,
|
| 1027 |
+
0.10000000149011612,
|
| 1028 |
+
0.0,
|
| 1029 |
+
1.0,
|
| 1030 |
+
0.0,
|
| 1031 |
+
0.0,
|
| 1032 |
+
0.0,
|
| 1033 |
+
-0.7830644845962524,
|
| 1034 |
+
-1.15714693069458,
|
| 1035 |
+
-0.7234516739845276,
|
| 1036 |
+
-0.2137162834405899,
|
| 1037 |
+
0.0,
|
| 1038 |
+
-0.4363322854042053,
|
| 1039 |
+
-1.2217304706573486,
|
| 1040 |
+
0.0,
|
| 1041 |
+
-0.6005052924156189,
|
| 1042 |
+
0.0,
|
| 1043 |
+
0.0,
|
| 1044 |
+
0.0,
|
| 1045 |
+
0.0,
|
| 1046 |
+
0.0,
|
| 1047 |
+
0.0,
|
| 1048 |
+
0.0,
|
| 1049 |
+
0.0,
|
| 1050 |
+
0.0,
|
| 1051 |
+
0.0,
|
| 1052 |
+
0.0,
|
| 1053 |
+
0.0,
|
| 1054 |
+
0.0,
|
| 1055 |
+
0.0,
|
| 1056 |
+
0.0,
|
| 1057 |
+
0.0,
|
| 1058 |
+
0.0,
|
| 1059 |
+
0.0,
|
| 1060 |
+
0.0,
|
| 1061 |
+
0.0,
|
| 1062 |
+
0.0,
|
| 1063 |
+
0.0,
|
| 1064 |
+
0.0,
|
| 1065 |
+
0.0,
|
| 1066 |
+
0.0,
|
| 1067 |
+
0.0,
|
| 1068 |
+
0.0,
|
| 1069 |
+
-0.033399999141693115,
|
| 1070 |
+
-0.10440000146627426,
|
| 1071 |
+
0.0,
|
| 1072 |
+
-0.05559999868273735,
|
| 1073 |
+
-0.029100000858306885,
|
| 1074 |
+
0.0,
|
| 1075 |
+
0.0,
|
| 1076 |
+
0.0,
|
| 1077 |
+
0.0,
|
| 1078 |
+
0.0,
|
| 1079 |
+
0.0,
|
| 1080 |
+
0.0,
|
| 1081 |
+
0.0,
|
| 1082 |
+
0.0,
|
| 1083 |
+
0.0,
|
| 1084 |
+
0.0,
|
| 1085 |
+
0.0
|
| 1086 |
+
],
|
| 1087 |
+
"max": [
|
| 1088 |
+
-0.10000000149011612,
|
| 1089 |
+
0.0,
|
| 1090 |
+
0.0,
|
| 1091 |
+
0.25,
|
| 1092 |
+
0.0,
|
| 1093 |
+
-0.15000000596046448,
|
| 1094 |
+
-0.10000000149011612,
|
| 1095 |
+
0.0,
|
| 1096 |
+
0.0,
|
| 1097 |
+
0.25,
|
| 1098 |
+
0.0,
|
| 1099 |
+
-0.15000000596046448,
|
| 1100 |
+
0.0,
|
| 1101 |
+
0.0,
|
| 1102 |
+
0.0,
|
| 1103 |
+
0.25,
|
| 1104 |
+
0.10000000149011612,
|
| 1105 |
+
0.0,
|
| 1106 |
+
1.0,
|
| 1107 |
+
0.0,
|
| 1108 |
+
0.0,
|
| 1109 |
+
0.0,
|
| 1110 |
+
0.5866223573684692,
|
| 1111 |
+
-0.06458767503499985,
|
| 1112 |
+
0.8743140697479248,
|
| 1113 |
+
1.1923998594284058,
|
| 1114 |
+
2.6179938316345215,
|
| 1115 |
+
0.4363322854042053,
|
| 1116 |
+
0.18158245086669922,
|
| 1117 |
+
0.6523595452308655,
|
| 1118 |
+
0.0,
|
| 1119 |
+
0.0,
|
| 1120 |
+
0.0,
|
| 1121 |
+
0.0,
|
| 1122 |
+
0.0,
|
| 1123 |
+
0.0,
|
| 1124 |
+
0.0,
|
| 1125 |
+
0.0,
|
| 1126 |
+
0.0,
|
| 1127 |
+
0.0,
|
| 1128 |
+
0.0,
|
| 1129 |
+
0.0,
|
| 1130 |
+
0.0,
|
| 1131 |
+
0.0,
|
| 1132 |
+
0.0,
|
| 1133 |
+
0.0,
|
| 1134 |
+
0.0,
|
| 1135 |
+
0.0,
|
| 1136 |
+
0.0,
|
| 1137 |
+
0.0,
|
| 1138 |
+
0.0,
|
| 1139 |
+
0.0,
|
| 1140 |
+
0.0,
|
| 1141 |
+
1.5707999467849731,
|
| 1142 |
+
1.4276299476623535,
|
| 1143 |
+
0.251800000667572,
|
| 1144 |
+
1.5707999467849731,
|
| 1145 |
+
1.4098104238510132,
|
| 1146 |
+
0.2409999966621399,
|
| 1147 |
+
0.16740000247955322,
|
| 1148 |
+
1.5707999467849731,
|
| 1149 |
+
0.0,
|
| 1150 |
+
0.3490999937057495,
|
| 1151 |
+
1.7408000230789185,
|
| 1152 |
+
1.745300054550171,
|
| 1153 |
+
0.04050000011920929,
|
| 1154 |
+
1.745300054550171,
|
| 1155 |
+
1.233299970626831,
|
| 1156 |
+
1.396299958229065,
|
| 1157 |
+
1.3615000247955322,
|
| 1158 |
+
1.745300054550171,
|
| 1159 |
+
1.0814000368118286,
|
| 1160 |
+
0.3490999937057495,
|
| 1161 |
+
0.9969000220298767,
|
| 1162 |
+
0.4447999894618988
|
| 1163 |
+
],
|
| 1164 |
+
"mean": [
|
| 1165 |
+
-0.10000000149011612,
|
| 1166 |
+
0.0,
|
| 1167 |
+
0.0,
|
| 1168 |
+
0.25,
|
| 1169 |
+
0.0,
|
| 1170 |
+
-0.15000000596046448,
|
| 1171 |
+
-0.10000000149011612,
|
| 1172 |
+
0.0,
|
| 1173 |
+
0.0,
|
| 1174 |
+
0.25,
|
| 1175 |
+
0.0,
|
| 1176 |
+
-0.15000000596046448,
|
| 1177 |
+
0.0,
|
| 1178 |
+
0.0,
|
| 1179 |
+
0.0,
|
| 1180 |
+
0.25,
|
| 1181 |
+
0.10000000149011612,
|
| 1182 |
+
0.0,
|
| 1183 |
+
1.0,
|
| 1184 |
+
0.0,
|
| 1185 |
+
0.0,
|
| 1186 |
+
0.0,
|
| 1187 |
+
-0.3844676993563776,
|
| 1188 |
+
-0.4635392729059665,
|
| 1189 |
+
-0.025321531695698816,
|
| 1190 |
+
0.1565658989158264,
|
| 1191 |
+
1.9096198221052831,
|
| 1192 |
+
0.3027108377102684,
|
| 1193 |
+
-0.6802851635135142,
|
| 1194 |
+
0.4717552163889123,
|
| 1195 |
+
-0.3293787508809817,
|
| 1196 |
+
0.0,
|
| 1197 |
+
0.0,
|
| 1198 |
+
0.0,
|
| 1199 |
+
0.0,
|
| 1200 |
+
0.0,
|
| 1201 |
+
0.0,
|
| 1202 |
+
0.0,
|
| 1203 |
+
0.0,
|
| 1204 |
+
0.0,
|
| 1205 |
+
0.0,
|
| 1206 |
+
0.0,
|
| 1207 |
+
0.0,
|
| 1208 |
+
0.0,
|
| 1209 |
+
0.0,
|
| 1210 |
+
0.0,
|
| 1211 |
+
0.0,
|
| 1212 |
+
0.0,
|
| 1213 |
+
0.0,
|
| 1214 |
+
0.0,
|
| 1215 |
+
0.0,
|
| 1216 |
+
0.0,
|
| 1217 |
+
0.0,
|
| 1218 |
+
0.9163668700463455,
|
| 1219 |
+
1.0774307526623856,
|
| 1220 |
+
0.18450656518916894,
|
| 1221 |
+
1.2577362062853386,
|
| 1222 |
+
0.8662071389505672,
|
| 1223 |
+
0.014139693930753192,
|
| 1224 |
+
-0.0783472468063956,
|
| 1225 |
+
1.3026880926927225,
|
| 1226 |
+
-0.049635624906086466,
|
| 1227 |
+
0.16960392906218702,
|
| 1228 |
+
1.350968706312699,
|
| 1229 |
+
1.4543478794042892,
|
| 1230 |
+
0.004224006560807533,
|
| 1231 |
+
1.4160855530328746,
|
| 1232 |
+
0.50399988500309,
|
| 1233 |
+
1.0411720162838662,
|
| 1234 |
+
0.8450646923517636,
|
| 1235 |
+
1.3060351313492584,
|
| 1236 |
+
0.8567824521623536,
|
| 1237 |
+
0.21634492012668474,
|
| 1238 |
+
0.7710784049796209,
|
| 1239 |
+
0.1639630493265118
|
| 1240 |
+
],
|
| 1241 |
+
"std": [
|
| 1242 |
+
0.0,
|
| 1243 |
+
0.0,
|
| 1244 |
+
0.0,
|
| 1245 |
+
0.0,
|
| 1246 |
+
0.0,
|
| 1247 |
+
0.0,
|
| 1248 |
+
0.0,
|
| 1249 |
+
0.0,
|
| 1250 |
+
0.0,
|
| 1251 |
+
0.0,
|
| 1252 |
+
0.0,
|
| 1253 |
+
0.0,
|
| 1254 |
+
0.0,
|
| 1255 |
+
0.0,
|
| 1256 |
+
0.0,
|
| 1257 |
+
0.0,
|
| 1258 |
+
0.0,
|
| 1259 |
+
0.0,
|
| 1260 |
+
0.0,
|
| 1261 |
+
0.0,
|
| 1262 |
+
0.0,
|
| 1263 |
+
0.0,
|
| 1264 |
+
0.27101139510542965,
|
| 1265 |
+
0.18306758167232656,
|
| 1266 |
+
0.2321427862317003,
|
| 1267 |
+
0.2921806368614239,
|
| 1268 |
+
0.5575150219880946,
|
| 1269 |
+
0.14082600312771132,
|
| 1270 |
+
0.2889364190439442,
|
| 1271 |
+
0.13317078744611063,
|
| 1272 |
+
0.1862851560996197,
|
| 1273 |
+
0.0,
|
| 1274 |
+
0.0,
|
| 1275 |
+
0.0,
|
| 1276 |
+
0.0,
|
| 1277 |
+
0.0,
|
| 1278 |
+
0.0,
|
| 1279 |
+
0.0,
|
| 1280 |
+
0.0,
|
| 1281 |
+
0.0,
|
| 1282 |
+
0.0,
|
| 1283 |
+
0.0,
|
| 1284 |
+
0.0,
|
| 1285 |
+
0.0,
|
| 1286 |
+
0.0,
|
| 1287 |
+
0.0,
|
| 1288 |
+
0.0,
|
| 1289 |
+
0.0,
|
| 1290 |
+
0.0,
|
| 1291 |
+
0.0,
|
| 1292 |
+
0.0,
|
| 1293 |
+
0.0,
|
| 1294 |
+
0.0,
|
| 1295 |
+
0.41432510347711093,
|
| 1296 |
+
0.4441289438708921,
|
| 1297 |
+
0.10036169364443552,
|
| 1298 |
+
0.5129014869126945,
|
| 1299 |
+
0.5543047289959324,
|
| 1300 |
+
0.051528101258709685,
|
| 1301 |
+
0.05980456667607573,
|
| 1302 |
+
0.5129086732788993,
|
| 1303 |
+
0.014518427034505595,
|
| 1304 |
+
0.18576907372151935,
|
| 1305 |
+
0.5885033266135186,
|
| 1306 |
+
0.5690668726302637,
|
| 1307 |
+
0.012073895925927702,
|
| 1308 |
+
0.5545709581524755,
|
| 1309 |
+
0.39820855145902984,
|
| 1310 |
+
0.41600444476329074,
|
| 1311 |
+
0.34343361130221534,
|
| 1312 |
+
0.6451957528324598,
|
| 1313 |
+
0.3560204635861576,
|
| 1314 |
+
0.13912312189696266,
|
| 1315 |
+
0.3411755546820009,
|
| 1316 |
+
0.10772567046676199
|
| 1317 |
+
],
|
| 1318 |
+
"q01": [
|
| 1319 |
+
-0.10000000149011612,
|
| 1320 |
+
0.0,
|
| 1321 |
+
0.0,
|
| 1322 |
+
0.25,
|
| 1323 |
+
0.0,
|
| 1324 |
+
-0.15000000596046448,
|
| 1325 |
+
-0.10000000149011612,
|
| 1326 |
+
0.0,
|
| 1327 |
+
0.0,
|
| 1328 |
+
0.25,
|
| 1329 |
+
0.0,
|
| 1330 |
+
-0.15000000596046448,
|
| 1331 |
+
0.0,
|
| 1332 |
+
0.0,
|
| 1333 |
+
0.0,
|
| 1334 |
+
0.25,
|
| 1335 |
+
0.10000000149011612,
|
| 1336 |
+
0.0,
|
| 1337 |
+
1.0,
|
| 1338 |
+
0.0,
|
| 1339 |
+
0.0,
|
| 1340 |
+
0.0,
|
| 1341 |
+
-0.7070445740222931,
|
| 1342 |
+
-0.9821006107330322,
|
| 1343 |
+
-0.5814823317527771,
|
| 1344 |
+
-0.16660345375537872,
|
| 1345 |
+
0.0,
|
| 1346 |
+
-0.026732677631080153,
|
| 1347 |
+
-1.190130457878113,
|
| 1348 |
+
0.0,
|
| 1349 |
+
-0.5883647525310516,
|
| 1350 |
+
0.0,
|
| 1351 |
+
0.0,
|
| 1352 |
+
0.0,
|
| 1353 |
+
0.0,
|
| 1354 |
+
0.0,
|
| 1355 |
+
0.0,
|
| 1356 |
+
0.0,
|
| 1357 |
+
0.0,
|
| 1358 |
+
0.0,
|
| 1359 |
+
0.0,
|
| 1360 |
+
0.0,
|
| 1361 |
+
0.0,
|
| 1362 |
+
0.0,
|
| 1363 |
+
0.0,
|
| 1364 |
+
0.0,
|
| 1365 |
+
0.0,
|
| 1366 |
+
0.0,
|
| 1367 |
+
0.0,
|
| 1368 |
+
0.0,
|
| 1369 |
+
0.0,
|
| 1370 |
+
0.0,
|
| 1371 |
+
0.0,
|
| 1372 |
+
0.0,
|
| 1373 |
+
0.0,
|
| 1374 |
+
0.0,
|
| 1375 |
+
0.0,
|
| 1376 |
+
0.0,
|
| 1377 |
+
-0.030105212703347206,
|
| 1378 |
+
-0.10440000146627426,
|
| 1379 |
+
0.0,
|
| 1380 |
+
-0.05559999868273735,
|
| 1381 |
+
-0.029100000858306885,
|
| 1382 |
+
0.0,
|
| 1383 |
+
0.0,
|
| 1384 |
+
0.0,
|
| 1385 |
+
0.0,
|
| 1386 |
+
0.0,
|
| 1387 |
+
0.0,
|
| 1388 |
+
0.0,
|
| 1389 |
+
0.0,
|
| 1390 |
+
0.0,
|
| 1391 |
+
0.0,
|
| 1392 |
+
0.0,
|
| 1393 |
+
0.0
|
| 1394 |
+
],
|
| 1395 |
+
"q99": [
|
| 1396 |
+
-0.10000000149011612,
|
| 1397 |
+
0.0,
|
| 1398 |
+
0.0,
|
| 1399 |
+
0.25,
|
| 1400 |
+
0.0,
|
| 1401 |
+
-0.15000000596046448,
|
| 1402 |
+
-0.10000000149011612,
|
| 1403 |
+
0.0,
|
| 1404 |
+
0.0,
|
| 1405 |
+
0.25,
|
| 1406 |
+
0.0,
|
| 1407 |
+
-0.15000000596046448,
|
| 1408 |
+
0.0,
|
| 1409 |
+
0.0,
|
| 1410 |
+
0.0,
|
| 1411 |
+
0.25,
|
| 1412 |
+
0.10000000149011612,
|
| 1413 |
+
0.0,
|
| 1414 |
+
1.0,
|
| 1415 |
+
0.0,
|
| 1416 |
+
0.0,
|
| 1417 |
+
0.0,
|
| 1418 |
+
0.5514356398582456,
|
| 1419 |
+
-0.09763230487704284,
|
| 1420 |
+
0.6034356474876394,
|
| 1421 |
+
1.0,
|
| 1422 |
+
2.611392502784729,
|
| 1423 |
+
0.4363322854042053,
|
| 1424 |
+
0.12147992059588404,
|
| 1425 |
+
0.6338406205177307,
|
| 1426 |
+
0.0,
|
| 1427 |
+
0.0,
|
| 1428 |
+
0.0,
|
| 1429 |
+
0.0,
|
| 1430 |
+
0.0,
|
| 1431 |
+
0.0,
|
| 1432 |
+
0.0,
|
| 1433 |
+
0.0,
|
| 1434 |
+
0.0,
|
| 1435 |
+
0.0,
|
| 1436 |
+
0.0,
|
| 1437 |
+
0.0,
|
| 1438 |
+
0.0,
|
| 1439 |
+
0.0,
|
| 1440 |
+
0.0,
|
| 1441 |
+
0.0,
|
| 1442 |
+
0.0,
|
| 1443 |
+
0.0,
|
| 1444 |
+
0.0,
|
| 1445 |
+
0.0,
|
| 1446 |
+
0.0,
|
| 1447 |
+
0.0,
|
| 1448 |
+
0.0,
|
| 1449 |
+
1.5707999467849731,
|
| 1450 |
+
1.4246050119400024,
|
| 1451 |
+
0.251800000667572,
|
| 1452 |
+
1.5707999467849731,
|
| 1453 |
+
1.4098104238510132,
|
| 1454 |
+
0.23754914104938507,
|
| 1455 |
+
0.1664000004529953,
|
| 1456 |
+
1.5707999467849731,
|
| 1457 |
+
0.0,
|
| 1458 |
+
0.3490999937057495,
|
| 1459 |
+
1.7408000230789185,
|
| 1460 |
+
1.745300054550171,
|
| 1461 |
+
0.04050000011920929,
|
| 1462 |
+
1.745300054550171,
|
| 1463 |
+
1.233299970626831,
|
| 1464 |
+
1.396299958229065,
|
| 1465 |
+
1.3562606573104858,
|
| 1466 |
+
1.745300054550171,
|
| 1467 |
+
1.0814000368118286,
|
| 1468 |
+
0.3490999937057495,
|
| 1469 |
+
0.9969000220298767,
|
| 1470 |
+
0.4447999894618988
|
| 1471 |
+
],
|
| 1472 |
+
"unit_dims": []
|
| 1473 |
+
}
|
| 1474 |
+
},
|
| 1475 |
+
"code_commit": "bf40b9df05f60870ac9e4ab3acef11a871925a40",
|
| 1476 |
+
"task": "a15v3",
|
| 1477 |
+
"dataset_id": "humanoid-benchmark/a15-hitting-nail@139187e6d5e4547aae01629bca39fc4b2045153d",
|
| 1478 |
+
"step": 5000,
|
| 1479 |
+
"weights": "ema",
|
| 1480 |
+
"offline_eval": {
|
| 1481 |
+
"mse": 0.00033353304024785757,
|
| 1482 |
+
"mse_row0": 0.00029920373344793916,
|
| 1483 |
+
"mse_body_target": 0.0002915423538070172,
|
| 1484 |
+
"mse_hands": 0.0003631174040492624,
|
| 1485 |
+
"samples": 256,
|
| 1486 |
+
"frames": "train"
|
| 1487 |
+
},
|
| 1488 |
+
"format": "hb_baselines/1"
|
| 1489 |
+
}
|
a15-hitting-nail/b512-s6000/step-005000/model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a2c1c547757d5f956a4f8d3c4a7fcb09e0b4da5df38050665822db69b13e058
|
| 3 |
+
size 106987629
|
a15-hitting-nail/b512-s6000/step-005000/protocol.json
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benchmark/a15-hitting-nail@139187e6d5e4547aae01629bca39fc4b2045153d",
|
| 7 |
+
"episodes": 150,
|
| 8 |
+
"frames": 86267,
|
| 9 |
+
"fps": 30.0,
|
| 10 |
+
"steps": 6000,
|
| 11 |
+
"total_steps": 6000,
|
| 12 |
+
"save_steps": [
|
| 13 |
+
1000,
|
| 14 |
+
2000,
|
| 15 |
+
3000,
|
| 16 |
+
4000,
|
| 17 |
+
5000,
|
| 18 |
+
6000
|
| 19 |
+
],
|
| 20 |
+
"global_batch": 512,
|
| 21 |
+
"per_gpu_batch": 512,
|
| 22 |
+
"num_gpus": 1,
|
| 23 |
+
"gradient_accumulation_steps": 1,
|
| 24 |
+
"lr": 0.0001,
|
| 25 |
+
"warmup": 500,
|
| 26 |
+
"schedule": "diffusers_cosine",
|
| 27 |
+
"seed": 42,
|
| 28 |
+
"aug_seed": 42,
|
| 29 |
+
"code_commit": "bf40b9df05f60870ac9e4ab3acef11a871925a40",
|
| 30 |
+
"code_dirty": null,
|
| 31 |
+
"environment": {
|
| 32 |
+
"python": "3.12.1",
|
| 33 |
+
"torch": "2.9.0+cu128",
|
| 34 |
+
"numpy": "2.2.6",
|
| 35 |
+
"cuda": "12.8",
|
| 36 |
+
"cudnn": 91002,
|
| 37 |
+
"torchvision": "0.24.0+cu128",
|
| 38 |
+
"pillow": "12.3.0",
|
| 39 |
+
"gpu": "NVIDIA GeForce RTX 4090 D",
|
| 40 |
+
"driver": "550.127.05"
|
| 41 |
+
},
|
| 42 |
+
"continuation": null,
|
| 43 |
+
"protocol_deviations": [
|
| 44 |
+
"steps 6000 (protocol 5000)"
|
| 45 |
+
],
|
| 46 |
+
"protocol_exceptions": [
|
| 47 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 48 |
+
"owner 2026-11-30 (「team01 这两张卡先装好环境,然后分担我们这边其他的任务,训练、评估都可以」): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)"
|
| 49 |
+
],
|
| 50 |
+
"files": {
|
| 51 |
+
"config.json": {
|
| 52 |
+
"bytes": 27456,
|
| 53 |
+
"sha256": "d248eb8969c94965439ac02e4f139403527e1c8fb0d19e8e82061a66153fcd4e"
|
| 54 |
+
},
|
| 55 |
+
"model.pt": {
|
| 56 |
+
"bytes": 106987629,
|
| 57 |
+
"sha256": "9a2c1c547757d5f956a4f8d3c4a7fcb09e0b4da5df38050665822db69b13e058"
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"global_step": 5000,
|
| 61 |
+
"run_step": 5000,
|
| 62 |
+
"stop_at": null,
|
| 63 |
+
"planned_total_steps": 6000,
|
| 64 |
+
"task_dir": "a15-hitting-nail",
|
| 65 |
+
"training_data": "humanoid-benchmark/a15-hitting-nail @139187e6 (v3, three-factor stall trim, 150 episodes, H2 head + chest)",
|
| 66 |
+
"published_steps": [
|
| 67 |
+
5000,
|
| 68 |
+
6000
|
| 69 |
+
],
|
| 70 |
+
"lr_schedule": "diffusers_cosine after a 500-step linear warm-up",
|
| 71 |
+
"ema": 0.9999,
|
| 72 |
+
"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",
|
| 73 |
+
"state_dim": 78,
|
| 74 |
+
"action_dim": 75,
|
| 75 |
+
"cameras": [
|
| 76 |
+
"head",
|
| 77 |
+
"chest"
|
| 78 |
+
],
|
| 79 |
+
"contract": "h2_sharpa",
|
| 80 |
+
"image_hw": [
|
| 81 |
+
168,
|
| 82 |
+
224
|
| 83 |
+
],
|
| 84 |
+
"task_text": "Facing the workbench, pick up the hammer lying on its stand with the right hand, roll it in the palm until the face points down, then hammer the nail into the wooden block and hold the hammer up.",
|
| 85 |
+
"inloop_mse": {
|
| 86 |
+
"task": "a15v3",
|
| 87 |
+
"split": "train10",
|
| 88 |
+
"every": 250,
|
| 89 |
+
"seed": 1234,
|
| 90 |
+
"weights": "ema",
|
| 91 |
+
"nmse_at_this_step": 0.0033,
|
| 92 |
+
"lowest_published": 6000,
|
| 93 |
+
"curve": {
|
| 94 |
+
"250": 0.1947,
|
| 95 |
+
"500": 0.0443,
|
| 96 |
+
"750": 0.0242,
|
| 97 |
+
"1000": 0.0168,
|
| 98 |
+
"1250": 0.0118,
|
| 99 |
+
"1500": 0.009,
|
| 100 |
+
"1750": 0.0074,
|
| 101 |
+
"2000": 0.0065,
|
| 102 |
+
"2250": 0.0058,
|
| 103 |
+
"2500": 0.0053,
|
| 104 |
+
"2750": 0.0049,
|
| 105 |
+
"3000": 0.0046,
|
| 106 |
+
"3250": 0.0043,
|
| 107 |
+
"3500": 0.0041,
|
| 108 |
+
"3750": 0.0039,
|
| 109 |
+
"4000": 0.0038,
|
| 110 |
+
"4250": 0.0036,
|
| 111 |
+
"4500": 0.0035,
|
| 112 |
+
"4750": 0.0034,
|
| 113 |
+
"5000": 0.0033,
|
| 114 |
+
"5250": 0.0033,
|
| 115 |
+
"5500": 0.0032,
|
| 116 |
+
"5750": 0.0031,
|
| 117 |
+
"6000": 0.0031
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
"reproducibility": {
|
| 121 |
+
"protocol": "https://github.com/zuo-kuangji/HumanWAM/blob/main/hb_training/REPRODUCIBILITY.md",
|
| 122 |
+
"protocol_commit": "dbd9bfe529e2a3229d01ad9e27b102cf9d821eec",
|
| 123 |
+
"training_seed": 42,
|
| 124 |
+
"inloop_mse_seed": 1234,
|
| 125 |
+
"aug_seed": 42,
|
| 126 |
+
"layout": {
|
| 127 |
+
"nodes": 1,
|
| 128 |
+
"gpus": 1,
|
| 129 |
+
"per_gpu_batch": 512,
|
| 130 |
+
"global_batch": 512,
|
| 131 |
+
"gradient_accumulation": 1,
|
| 132 |
+
"num_workers": 32,
|
| 133 |
+
"prefetch": 2
|
| 134 |
+
},
|
| 135 |
+
"environment": "hb-baselines (Python 3.12.1, torch 2.9.0+cu128, torchvision 0.24.0); training_records/pip_freeze_hb-baselines.txt",
|
| 136 |
+
"hardware": "NVIDIA GeForce RTX 4090 D (this checkpoint); trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512, no gradient accumulation; environment /root/.venvs/hb-baselines on team01 (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0)",
|
| 137 |
+
"code": "github.com/zuo-kuangji/Humanoid_benchmark bai @ bf40b9df05f60870ac9e4ab3acef11a871925a40 (git archive on team01 vePFS, HB_CODE_COMMIT)",
|
| 138 |
+
"determinism": "statistical reproducibility: same data commit, config, seed and layout give the same curves within run-to-run noise; GPU kernels are not bitwise deterministic",
|
| 139 |
+
"exceptions": [
|
| 140 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 141 |
+
"owner 2026-11-30 (「team01 这两张卡先装好环境,然后分担我们这边其他的任务,训练、评估都可以」): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)"
|
| 142 |
+
]
|
| 143 |
+
},
|
| 144 |
+
"inference": "Humanoid_benchmark evaluation/policy/ODE_MLP (evaluation/baselines/adapters.py, runtime.BaselinePolicy) loads this folder (config.json + model.pt); training_records/ in the last step has the exact code",
|
| 145 |
+
"resume_state_included": false
|
| 146 |
+
}
|
a15-hitting-nail/b512-s6000/step-006000/SHA256SUMS
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0ec755f4641b9808f7c16f40e0c297c45bcb56104ccfbebb646fd539884d44dc config.json
|
| 2 |
+
346fab224fa1fe057859f2a8419c857bae58c8359d68b487b30cb4ecacd3d710 model.pt
|
| 3 |
+
bbd702165d0f50b1989b34dafedbf695b2b5a70ce3f8db28730710d10f10184e protocol.json
|
| 4 |
+
4312b68fd3885f49c71f0958e8f65c60bdb99b43f0aaeb84c449fe913ef8fa50 training_records/code_hb_bai_bf40b9df/HB_CODE_COMMIT
|
| 5 |
+
9f7713cea4f846efcfc924234267ced48210357f419d67915c10b504316bedde training_records/code_hb_bai_bf40b9df/evaluation/augmentation/hb_aug_v2.py
|
| 6 |
+
bfbb52f85ac5d91e37f3cfc24bb8671de447b5b566760bfe091204ae69e1f7f6 training_records/code_hb_bai_bf40b9df/evaluation/baselines/__init__.py
|
| 7 |
+
3db95cd8e4e436875e11f1054a99d250ca7d94e0127909090b58730402340f19 training_records/code_hb_bai_bf40b9df/evaluation/baselines/act_nets.py
|
| 8 |
+
f5dc4607af75ec28a03c87a817537c4b121d1310cffd1c1600f7ae6238a42330 training_records/code_hb_bai_bf40b9df/evaluation/baselines/adapters.py
|
| 9 |
+
b3a46b69af51354a92a1a4428d00c2370c977e9136aebd4092e15f52c6fd5db8 training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_adapter.py
|
| 10 |
+
fafa2663786d53cb865370a342fbdb1df80d3cf910aea31489e603deb50e1073 training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_first_history.py
|
| 11 |
+
1a5f6286ee9d1c463649d112131fac6f5a97df0d070ad7a6ca375e8d6be78a37 training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_parity.py
|
| 12 |
+
ce4f10cff8714d8e83900e1d821ef417577a612cacfa4bdda29fbc6630abf176 training_records/code_hb_bai_bf40b9df/evaluation/baselines/data.py
|
| 13 |
+
572f5655353fc582cfc44b67026c4af6b81edd16ec8b4255cc72f62376cc1c66 training_records/code_hb_bai_bf40b9df/evaluation/baselines/flash.py
|
| 14 |
+
c987d9e641f5e5266703a8154b708d9ccab203b06d5ab82774d39a1cba602d62 training_records/code_hb_bai_bf40b9df/evaluation/baselines/fm_dit_v2.py
|
| 15 |
+
373908420a1feb62e89b3d47e187c96435ea63d2b9083ef07ac028ce48425f5a training_records/code_hb_bai_bf40b9df/evaluation/baselines/inloop.py
|
| 16 |
+
2d72e3c455d5e376a6f5954886fd4c7a6478eb516380c6a05515fa043c62fbce training_records/code_hb_bai_bf40b9df/evaluation/baselines/nets.py
|
| 17 |
+
38f2ea6050fa45e6c0d5e3f19caf21f1a72a50f80e356044dddcf76da22b144a training_records/code_hb_bai_bf40b9df/evaluation/baselines/ode_nets.py
|
| 18 |
+
74ca169fe453f64bf6ffc3f3a85a4208aed2961d0abd9eb3e92b96457f86daf1 training_records/code_hb_bai_bf40b9df/evaluation/baselines/policies.py
|
| 19 |
+
4b79b9dcc98f05bfe7bc9e64e3492f4565728f6d1f75cbdecc1c817d03ff32a5 training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.lock.txt
|
| 20 |
+
56a8db94a98c5256028b475d9a0293cdee4cf475e415df763b3a0232433663ba training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.txt
|
| 21 |
+
6e5e4bf195f36a22c5f9922a1147b72c0659cfe807b144dde7810baf8c54d005 training_records/code_hb_bai_bf40b9df/evaluation/baselines/runtime.py
|
| 22 |
+
2df490b43b5f8df10a008eebf1ae700d76e58a5b13c659bcc12b9b3a98e6d9a2 training_records/code_hb_bai_bf40b9df/evaluation/baselines/train.py
|
| 23 |
+
53383f27c9fabada67d126abd2e198237864dd9c9f6c50c8771eb4bc0dc9c7f3 training_records/complete.json
|
| 24 |
+
3cafb8833f018d37d7291b3551678be159bf9c30b015849965a614567aa051b5 training_records/launch.sh
|
| 25 |
+
7d69721a9ef7e961bef923c54c6dbe8c083063b0a98e33166f7587c0d8c1d45d training_records/logs/inloop-mse.jsonl
|
| 26 |
+
995f7e54f49aa32c37a2805432b9e53e784fa4a96c86594df6dcbd08b98cacb5 training_records/pip_freeze_hb-baselines.txt
|
| 27 |
+
65c14675117538c79d7091f21d56b47d9825651a8ae5fc9850ce58965d3ac217 training_records/run.json
|
| 28 |
+
8ffaeda45c9a4f51f88583eddd414933b094c234c920c375077e9b9706278d85 training_records/train.log
|
| 29 |
+
9a569227fb2a371497f0f8a68d67c1fdd7dfd73fb4ad509a50cc8388782622a8 training_records/train_log.jsonl
|
a15-hitting-nail/b512-s6000/step-006000/config.json
ADDED
|
@@ -0,0 +1,1489 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"policy": {
|
| 3 |
+
"policy": "ode_mlp",
|
| 4 |
+
"n_cameras": 2,
|
| 5 |
+
"state_dim": 78,
|
| 6 |
+
"action_dim": 75,
|
| 7 |
+
"horizon": 16,
|
| 8 |
+
"backbone": "resnet18",
|
| 9 |
+
"backbone_weights": null,
|
| 10 |
+
"backbone_norm": "group",
|
| 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 |
+
"ode_body_dim": 31,
|
| 30 |
+
"ode_width": 512,
|
| 31 |
+
"ode_layers": 4,
|
| 32 |
+
"ode_cond_dim": 512,
|
| 33 |
+
"ode_field_scale": 1.0,
|
| 34 |
+
"ode_dit_hidden": 512,
|
| 35 |
+
"ode_dit_layers": 4,
|
| 36 |
+
"ode_dit_heads": 8,
|
| 37 |
+
"ode_dit_tokens": 4,
|
| 38 |
+
"extra": {}
|
| 39 |
+
},
|
| 40 |
+
"contract": {
|
| 41 |
+
"name": "h2_sharpa",
|
| 42 |
+
"robot": "h2_sharpa",
|
| 43 |
+
"cameras": [
|
| 44 |
+
"head",
|
| 45 |
+
"chest"
|
| 46 |
+
],
|
| 47 |
+
"state": [
|
| 48 |
+
[
|
| 49 |
+
"observation.state",
|
| 50 |
+
0,
|
| 51 |
+
75
|
| 52 |
+
],
|
| 53 |
+
[
|
| 54 |
+
"observation.projected_gravity",
|
| 55 |
+
0,
|
| 56 |
+
3
|
| 57 |
+
]
|
| 58 |
+
],
|
| 59 |
+
"action": [
|
| 60 |
+
[
|
| 61 |
+
"action.body_target",
|
| 62 |
+
0,
|
| 63 |
+
31
|
| 64 |
+
],
|
| 65 |
+
[
|
| 66 |
+
"action.hands",
|
| 67 |
+
0,
|
| 68 |
+
44
|
| 69 |
+
]
|
| 70 |
+
],
|
| 71 |
+
"state_dim": 78,
|
| 72 |
+
"action_dim": 75,
|
| 73 |
+
"action_space": null,
|
| 74 |
+
"body_dims": 31
|
| 75 |
+
},
|
| 76 |
+
"image_hw": [
|
| 77 |
+
168,
|
| 78 |
+
224
|
| 79 |
+
],
|
| 80 |
+
"task_text": "Facing the workbench, pick up the hammer lying on its stand with the right hand, roll it in the palm until the face points down, then hammer the nail into the wooden block and hold the hammer up.",
|
| 81 |
+
"dataset": {
|
| 82 |
+
"name": "data",
|
| 83 |
+
"root": "/mnt/vepfs/baijiaqi/hb_team01_20261130/a15-hitting-nail-v3-139187e/data",
|
| 84 |
+
"robot_type": "h2_sharpa",
|
| 85 |
+
"fps": 30.0,
|
| 86 |
+
"episodes": [
|
| 87 |
+
0,
|
| 88 |
+
1,
|
| 89 |
+
2,
|
| 90 |
+
3,
|
| 91 |
+
4,
|
| 92 |
+
5,
|
| 93 |
+
6,
|
| 94 |
+
7,
|
| 95 |
+
8,
|
| 96 |
+
9,
|
| 97 |
+
10,
|
| 98 |
+
11,
|
| 99 |
+
12,
|
| 100 |
+
13,
|
| 101 |
+
14,
|
| 102 |
+
15,
|
| 103 |
+
16,
|
| 104 |
+
17,
|
| 105 |
+
18,
|
| 106 |
+
19,
|
| 107 |
+
20,
|
| 108 |
+
21,
|
| 109 |
+
22,
|
| 110 |
+
23,
|
| 111 |
+
24,
|
| 112 |
+
25,
|
| 113 |
+
26,
|
| 114 |
+
27,
|
| 115 |
+
28,
|
| 116 |
+
29,
|
| 117 |
+
30,
|
| 118 |
+
31,
|
| 119 |
+
32,
|
| 120 |
+
33,
|
| 121 |
+
34,
|
| 122 |
+
35,
|
| 123 |
+
36,
|
| 124 |
+
37,
|
| 125 |
+
38,
|
| 126 |
+
39,
|
| 127 |
+
40,
|
| 128 |
+
41,
|
| 129 |
+
42,
|
| 130 |
+
43,
|
| 131 |
+
44,
|
| 132 |
+
45,
|
| 133 |
+
46,
|
| 134 |
+
47,
|
| 135 |
+
48,
|
| 136 |
+
49,
|
| 137 |
+
50,
|
| 138 |
+
51,
|
| 139 |
+
52,
|
| 140 |
+
53,
|
| 141 |
+
54,
|
| 142 |
+
55,
|
| 143 |
+
56,
|
| 144 |
+
57,
|
| 145 |
+
58,
|
| 146 |
+
59,
|
| 147 |
+
60,
|
| 148 |
+
61,
|
| 149 |
+
62,
|
| 150 |
+
63,
|
| 151 |
+
64,
|
| 152 |
+
65,
|
| 153 |
+
66,
|
| 154 |
+
67,
|
| 155 |
+
68,
|
| 156 |
+
69,
|
| 157 |
+
70,
|
| 158 |
+
71,
|
| 159 |
+
72,
|
| 160 |
+
73,
|
| 161 |
+
74,
|
| 162 |
+
75,
|
| 163 |
+
76,
|
| 164 |
+
77,
|
| 165 |
+
78,
|
| 166 |
+
79,
|
| 167 |
+
80,
|
| 168 |
+
81,
|
| 169 |
+
82,
|
| 170 |
+
83,
|
| 171 |
+
84,
|
| 172 |
+
85,
|
| 173 |
+
86,
|
| 174 |
+
87,
|
| 175 |
+
88,
|
| 176 |
+
89,
|
| 177 |
+
90,
|
| 178 |
+
91,
|
| 179 |
+
92,
|
| 180 |
+
93,
|
| 181 |
+
94,
|
| 182 |
+
95,
|
| 183 |
+
96,
|
| 184 |
+
97,
|
| 185 |
+
98,
|
| 186 |
+
99,
|
| 187 |
+
100,
|
| 188 |
+
101,
|
| 189 |
+
102,
|
| 190 |
+
103,
|
| 191 |
+
104,
|
| 192 |
+
105,
|
| 193 |
+
106,
|
| 194 |
+
107,
|
| 195 |
+
108,
|
| 196 |
+
109,
|
| 197 |
+
110,
|
| 198 |
+
111,
|
| 199 |
+
112,
|
| 200 |
+
113,
|
| 201 |
+
114,
|
| 202 |
+
115,
|
| 203 |
+
116,
|
| 204 |
+
117,
|
| 205 |
+
118,
|
| 206 |
+
119,
|
| 207 |
+
120,
|
| 208 |
+
121,
|
| 209 |
+
122,
|
| 210 |
+
123,
|
| 211 |
+
124,
|
| 212 |
+
125,
|
| 213 |
+
126,
|
| 214 |
+
127,
|
| 215 |
+
128,
|
| 216 |
+
129,
|
| 217 |
+
130,
|
| 218 |
+
131,
|
| 219 |
+
132,
|
| 220 |
+
133,
|
| 221 |
+
134,
|
| 222 |
+
135,
|
| 223 |
+
136,
|
| 224 |
+
137,
|
| 225 |
+
138,
|
| 226 |
+
139,
|
| 227 |
+
140,
|
| 228 |
+
141,
|
| 229 |
+
142,
|
| 230 |
+
143,
|
| 231 |
+
144,
|
| 232 |
+
145,
|
| 233 |
+
146,
|
| 234 |
+
147,
|
| 235 |
+
148,
|
| 236 |
+
149
|
| 237 |
+
],
|
| 238 |
+
"train_episodes": [
|
| 239 |
+
0,
|
| 240 |
+
1,
|
| 241 |
+
2,
|
| 242 |
+
3,
|
| 243 |
+
4,
|
| 244 |
+
5,
|
| 245 |
+
6,
|
| 246 |
+
7,
|
| 247 |
+
8,
|
| 248 |
+
9,
|
| 249 |
+
10,
|
| 250 |
+
11,
|
| 251 |
+
12,
|
| 252 |
+
13,
|
| 253 |
+
14,
|
| 254 |
+
15,
|
| 255 |
+
16,
|
| 256 |
+
17,
|
| 257 |
+
18,
|
| 258 |
+
19,
|
| 259 |
+
20,
|
| 260 |
+
21,
|
| 261 |
+
22,
|
| 262 |
+
23,
|
| 263 |
+
24,
|
| 264 |
+
25,
|
| 265 |
+
26,
|
| 266 |
+
27,
|
| 267 |
+
28,
|
| 268 |
+
29,
|
| 269 |
+
30,
|
| 270 |
+
31,
|
| 271 |
+
32,
|
| 272 |
+
33,
|
| 273 |
+
34,
|
| 274 |
+
35,
|
| 275 |
+
36,
|
| 276 |
+
37,
|
| 277 |
+
38,
|
| 278 |
+
39,
|
| 279 |
+
40,
|
| 280 |
+
41,
|
| 281 |
+
42,
|
| 282 |
+
43,
|
| 283 |
+
44,
|
| 284 |
+
45,
|
| 285 |
+
46,
|
| 286 |
+
47,
|
| 287 |
+
48,
|
| 288 |
+
49,
|
| 289 |
+
50,
|
| 290 |
+
51,
|
| 291 |
+
52,
|
| 292 |
+
53,
|
| 293 |
+
54,
|
| 294 |
+
55,
|
| 295 |
+
56,
|
| 296 |
+
57,
|
| 297 |
+
58,
|
| 298 |
+
59,
|
| 299 |
+
60,
|
| 300 |
+
61,
|
| 301 |
+
62,
|
| 302 |
+
63,
|
| 303 |
+
64,
|
| 304 |
+
65,
|
| 305 |
+
66,
|
| 306 |
+
67,
|
| 307 |
+
68,
|
| 308 |
+
69,
|
| 309 |
+
70,
|
| 310 |
+
71,
|
| 311 |
+
72,
|
| 312 |
+
73,
|
| 313 |
+
74,
|
| 314 |
+
75,
|
| 315 |
+
76,
|
| 316 |
+
77,
|
| 317 |
+
78,
|
| 318 |
+
79,
|
| 319 |
+
80,
|
| 320 |
+
81,
|
| 321 |
+
82,
|
| 322 |
+
83,
|
| 323 |
+
84,
|
| 324 |
+
85,
|
| 325 |
+
86,
|
| 326 |
+
87,
|
| 327 |
+
88,
|
| 328 |
+
89,
|
| 329 |
+
90,
|
| 330 |
+
91,
|
| 331 |
+
92,
|
| 332 |
+
93,
|
| 333 |
+
94,
|
| 334 |
+
95,
|
| 335 |
+
96,
|
| 336 |
+
97,
|
| 337 |
+
98,
|
| 338 |
+
99,
|
| 339 |
+
100,
|
| 340 |
+
101,
|
| 341 |
+
102,
|
| 342 |
+
103,
|
| 343 |
+
104,
|
| 344 |
+
105,
|
| 345 |
+
106,
|
| 346 |
+
107,
|
| 347 |
+
108,
|
| 348 |
+
109,
|
| 349 |
+
110,
|
| 350 |
+
111,
|
| 351 |
+
112,
|
| 352 |
+
113,
|
| 353 |
+
114,
|
| 354 |
+
115,
|
| 355 |
+
116,
|
| 356 |
+
117,
|
| 357 |
+
118,
|
| 358 |
+
119,
|
| 359 |
+
120,
|
| 360 |
+
121,
|
| 361 |
+
122,
|
| 362 |
+
123,
|
| 363 |
+
124,
|
| 364 |
+
125,
|
| 365 |
+
126,
|
| 366 |
+
127,
|
| 367 |
+
128,
|
| 368 |
+
129,
|
| 369 |
+
130,
|
| 370 |
+
131,
|
| 371 |
+
132,
|
| 372 |
+
133,
|
| 373 |
+
134,
|
| 374 |
+
135,
|
| 375 |
+
136,
|
| 376 |
+
137,
|
| 377 |
+
138,
|
| 378 |
+
139,
|
| 379 |
+
140,
|
| 380 |
+
141,
|
| 381 |
+
142,
|
| 382 |
+
143,
|
| 383 |
+
144,
|
| 384 |
+
145,
|
| 385 |
+
146,
|
| 386 |
+
147,
|
| 387 |
+
148,
|
| 388 |
+
149
|
| 389 |
+
],
|
| 390 |
+
"val_episodes": [],
|
| 391 |
+
"train_frames": 86267,
|
| 392 |
+
"git_commit": "6ce120cceb6bbe5dda177208dc99f48a8820699a"
|
| 393 |
+
},
|
| 394 |
+
"training": {
|
| 395 |
+
"steps": 6000,
|
| 396 |
+
"batch_size": 512,
|
| 397 |
+
"lr": 0.0001,
|
| 398 |
+
"betas": [
|
| 399 |
+
0.95,
|
| 400 |
+
0.999
|
| 401 |
+
],
|
| 402 |
+
"weight_decay": 1e-06,
|
| 403 |
+
"warmup": 500,
|
| 404 |
+
"schedule": "diffusers_cosine",
|
| 405 |
+
"backbone_lr_scale": 1.0,
|
| 406 |
+
"ema": 0.9999,
|
| 407 |
+
"shift_px": 0,
|
| 408 |
+
"amp": true,
|
| 409 |
+
"seed": 42,
|
| 410 |
+
"augmentation": {
|
| 411 |
+
"spec": "docs/augmentation_v2.md",
|
| 412 |
+
"version": "hb-aug-v2-20261109",
|
| 413 |
+
"implementation": "evaluation/augmentation/hb_aug_v2.py",
|
| 414 |
+
"visual": {
|
| 415 |
+
"effects": [
|
| 416 |
+
"exposure",
|
| 417 |
+
"contrast",
|
| 418 |
+
"saturation",
|
| 419 |
+
"hue",
|
| 420 |
+
"gamma",
|
| 421 |
+
"temperature",
|
| 422 |
+
"rotation_crop",
|
| 423 |
+
"noise",
|
| 424 |
+
"gaussian_blur",
|
| 425 |
+
"jpeg",
|
| 426 |
+
"motion_blur",
|
| 427 |
+
"sharpen",
|
| 428 |
+
"defocus",
|
| 429 |
+
"light_shadow",
|
| 430 |
+
"wb_channel"
|
| 431 |
+
],
|
| 432 |
+
"boosted_per_sample": 1,
|
| 433 |
+
"boost": 1.5,
|
| 434 |
+
"pixel_scale": "H / 224",
|
| 435 |
+
"future_targets": "none (one observation frame)"
|
| 436 |
+
},
|
| 437 |
+
"proprio": {
|
| 438 |
+
"robot": "h2_sharpa",
|
| 439 |
+
"body_dims": 31,
|
| 440 |
+
"bias_deg": 2.0,
|
| 441 |
+
"bias_scope": "per_sample",
|
| 442 |
+
"noise_deg": 0.25,
|
| 443 |
+
"noise_clip_sigma": 3,
|
| 444 |
+
"delay_probability": 0.0,
|
| 445 |
+
"history_drop_probability": 0.0,
|
| 446 |
+
"velocity": false
|
| 447 |
+
},
|
| 448 |
+
"native_image_augmentation": "off",
|
| 449 |
+
"evaluation": "off"
|
| 450 |
+
},
|
| 451 |
+
"preflight": {
|
| 452 |
+
"samples": 64,
|
| 453 |
+
"state_dim": 78,
|
| 454 |
+
"body_dims": 31,
|
| 455 |
+
"images_changed": 64,
|
| 456 |
+
"body_values_moved": 1.0,
|
| 457 |
+
"max_body_offset_deg": 2.6647,
|
| 458 |
+
"actions_bit_identical": true,
|
| 459 |
+
"non_body_state_bit_identical": true,
|
| 460 |
+
"eval_items_deterministic": 8
|
| 461 |
+
},
|
| 462 |
+
"aug_seed": 42,
|
| 463 |
+
"layout": {
|
| 464 |
+
"nodes": 1,
|
| 465 |
+
"gpus": 1,
|
| 466 |
+
"per_gpu_batch": 512,
|
| 467 |
+
"global_batch": 512,
|
| 468 |
+
"gradient_accumulation": 1,
|
| 469 |
+
"num_workers": 32,
|
| 470 |
+
"prefetch": 2
|
| 471 |
+
},
|
| 472 |
+
"continuation": null,
|
| 473 |
+
"total_steps": 6000,
|
| 474 |
+
"save_steps": [
|
| 475 |
+
1000,
|
| 476 |
+
2000,
|
| 477 |
+
3000,
|
| 478 |
+
4000,
|
| 479 |
+
5000,
|
| 480 |
+
6000
|
| 481 |
+
],
|
| 482 |
+
"save_rule": "6 checkpoints spread evenly over the steps on the 250-step grid (owner 2026-11-27)",
|
| 483 |
+
"protocol_exceptions": [
|
| 484 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 485 |
+
"owner 2026-11-30 (\u300cteam01 \u8fd9\u4e24\u5f20\u5361\u5148\u88c5\u597d\u73af\u5883\uff0c\u7136\u540e\u5206\u62c5\u6211\u4eec\u8fd9\u8fb9\u5176\u4ed6\u7684\u4efb\u52a1\uff0c\u8bad\u7ec3\u3001\u8bc4\u4f30\u90fd\u53ef\u4ee5\u300d): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)"
|
| 486 |
+
],
|
| 487 |
+
"ema_schedule": "diffusion_policy_emamodel",
|
| 488 |
+
"inloop": {
|
| 489 |
+
"task": "a15v3",
|
| 490 |
+
"code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse",
|
| 491 |
+
"every": 250,
|
| 492 |
+
"exception": null,
|
| 493 |
+
"code_sha256": {
|
| 494 |
+
"hb_inloop_core.py": "154fa6d905e32d61c0def546caf6979c3a148b7bef0c1284e773b9051dddce97",
|
| 495 |
+
"hb_eval_common.py": "d89b1bfc1ac03d489b6ba2ac7c61eab3f318023ec37677dd5ee02b93d851d6ac"
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"protocol_recipe": {
|
| 499 |
+
"batch_size": 512,
|
| 500 |
+
"steps": 5000,
|
| 501 |
+
"warmup": 500,
|
| 502 |
+
"workers": 32,
|
| 503 |
+
"long_task_factor": 1
|
| 504 |
+
},
|
| 505 |
+
"protocol_deviations": [
|
| 506 |
+
"steps 6000 (protocol 5000)"
|
| 507 |
+
],
|
| 508 |
+
"environment": {
|
| 509 |
+
"python": "3.12.1",
|
| 510 |
+
"torch": "2.9.0+cu128",
|
| 511 |
+
"numpy": "2.2.6",
|
| 512 |
+
"cuda": "12.8",
|
| 513 |
+
"cudnn": 91002,
|
| 514 |
+
"torchvision": "0.24.0+cu128",
|
| 515 |
+
"pillow": "12.3.0",
|
| 516 |
+
"gpu": "NVIDIA GeForce RTX 4090 D",
|
| 517 |
+
"driver": "550.127.05"
|
| 518 |
+
},
|
| 519 |
+
"code_dirty": null,
|
| 520 |
+
"allow_dirty_tree": false,
|
| 521 |
+
"augmentation_sha256": "9f7713cea4f846efcfc924234267ced48210357f419d67915c10b504316bedde",
|
| 522 |
+
"order": "EpochSampler: default_rng([seed, 1, epoch]) permutation; augmentation default_rng([aug_seed, draw])",
|
| 523 |
+
"upstream": "NTUMARS/ODE-POLICY real-g1@fd8bec47 (G1 port, HumanWAM packages/ode_g1) + main@cea26d94 (encoder, ode_dit field, default_train.yaml)"
|
| 524 |
+
},
|
| 525 |
+
"stats": {
|
| 526 |
+
"state": {
|
| 527 |
+
"min": [
|
| 528 |
+
-0.09997769445180893,
|
| 529 |
+
-0.00021537415159400553,
|
| 530 |
+
-0.0018031895160675049,
|
| 531 |
+
0.23896919190883636,
|
| 532 |
+
-0.0032215823885053396,
|
| 533 |
+
-0.16552682220935822,
|
| 534 |
+
-0.10010066628456116,
|
| 535 |
+
-0.005005246959626675,
|
| 536 |
+
-0.0010331370867788792,
|
| 537 |
+
0.2388608306646347,
|
| 538 |
+
-0.0007713548839092255,
|
| 539 |
+
-0.16637399792671204,
|
| 540 |
+
-0.0036116293631494045,
|
| 541 |
+
-0.0005855314084328711,
|
| 542 |
+
-0.012959281913936138,
|
| 543 |
+
0.2377660870552063,
|
| 544 |
+
0.10000789910554886,
|
| 545 |
+
0.0028428281657397747,
|
| 546 |
+
0.993225634098053,
|
| 547 |
+
-0.002429646672680974,
|
| 548 |
+
-0.005298535339534283,
|
| 549 |
+
0.005146781913936138,
|
| 550 |
+
-0.7949823141098022,
|
| 551 |
+
-1.1849690675735474,
|
| 552 |
+
-0.764089822769165,
|
| 553 |
+
-0.20890109241008759,
|
| 554 |
+
0.0010743907187134027,
|
| 555 |
+
-0.4016851782798767,
|
| 556 |
+
-1.223796010017395,
|
| 557 |
+
0.003484983928501606,
|
| 558 |
+
-0.5965985059738159,
|
| 559 |
+
8.041491128096823e-06,
|
| 560 |
+
7.787263712089043e-06,
|
| 561 |
+
-2.0799054709641496e-06,
|
| 562 |
+
7.4421236604393926e-06,
|
| 563 |
+
0.001140148495323956,
|
| 564 |
+
-0.0007875783485360444,
|
| 565 |
+
-0.0007883345242589712,
|
| 566 |
+
7.089955033734441e-06,
|
| 567 |
+
-0.0007868656539358199,
|
| 568 |
+
-0.08961887657642365,
|
| 569 |
+
1.387537508890091e-06,
|
| 570 |
+
1.3565856988861924e-06,
|
| 571 |
+
-0.0007850074907764792,
|
| 572 |
+
1.3112578471918823e-06,
|
| 573 |
+
0.0007804867927916348,
|
| 574 |
+
2.1667759142474097e-07,
|
| 575 |
+
2.1437449504446704e-07,
|
| 576 |
+
1.2650284588744398e-06,
|
| 577 |
+
2.100367879620535e-07,
|
| 578 |
+
0.0004996865172870457,
|
| 579 |
+
2.0562282543323818e-07,
|
| 580 |
+
1.8338482732360717e-07,
|
| 581 |
+
3.5120523534715176e-05,
|
| 582 |
+
2.6369834813522175e-05,
|
| 583 |
+
-0.0008715128060430288,
|
| 584 |
+
1.6693044017301872e-05,
|
| 585 |
+
-0.0002734147710725665,
|
| 586 |
+
-0.06660658866167068,
|
| 587 |
+
-0.1113005056977272,
|
| 588 |
+
1.06078668977716e-05,
|
| 589 |
+
-0.09395170956850052,
|
| 590 |
+
-0.19489309191703796,
|
| 591 |
+
2.1877663129998837e-06,
|
| 592 |
+
2.11020801543782e-06,
|
| 593 |
+
-0.03943561017513275,
|
| 594 |
+
1.9952312868554145e-06,
|
| 595 |
+
0.001209239475429058,
|
| 596 |
+
3.277772577803262e-07,
|
| 597 |
+
3.2084344070426596e-07,
|
| 598 |
+
1.877936597338703e-06,
|
| 599 |
+
3.0860724109516013e-07,
|
| 600 |
+
0.0008695685537531972,
|
| 601 |
+
2.961393192890682e-07,
|
| 602 |
+
4.9229495147073976e-08,
|
| 603 |
+
0.0008595046238042414,
|
| 604 |
+
-0.0009253888856619596,
|
| 605 |
+
-0.9999996423721313
|
| 606 |
+
],
|
| 607 |
+
"max": [
|
| 608 |
+
-0.09415019303560257,
|
| 609 |
+
0.004828622564673424,
|
| 610 |
+
0.0008512705680914223,
|
| 611 |
+
0.2468973845243454,
|
| 612 |
+
0.0011205088812857866,
|
| 613 |
+
-0.14899034798145294,
|
| 614 |
+
-0.09456837922334671,
|
| 615 |
+
-0.00035856530303135514,
|
| 616 |
+
0.001164556248113513,
|
| 617 |
+
0.24686793982982635,
|
| 618 |
+
0.002884133020415902,
|
| 619 |
+
-0.14915470778942108,
|
| 620 |
+
0.003393669379875064,
|
| 621 |
+
0.011874571442604065,
|
| 622 |
+
0.004470391198992729,
|
| 623 |
+
0.25079748034477234,
|
| 624 |
+
0.11245691776275635,
|
| 625 |
+
0.005373213440179825,
|
| 626 |
+
0.9999775290489197,
|
| 627 |
+
-0.0004550613812170923,
|
| 628 |
+
-0.0006144921062514186,
|
| 629 |
+
0.017257247120141983,
|
| 630 |
+
0.6067484021186829,
|
| 631 |
+
-0.03932846337556839,
|
| 632 |
+
0.8707330822944641,
|
| 633 |
+
1.1787530183792114,
|
| 634 |
+
2.6213066577911377,
|
| 635 |
+
0.4448302388191223,
|
| 636 |
+
0.17772707343101501,
|
| 637 |
+
0.6958374381065369,
|
| 638 |
+
1.7674472474027425e-05,
|
| 639 |
+
0.0021774214692413807,
|
| 640 |
+
0.002177412388846278,
|
| 641 |
+
0.000286454422166571,
|
| 642 |
+
0.0021773858461529016,
|
| 643 |
+
0.048038650304079056,
|
| 644 |
+
-1.918966336234007e-05,
|
| 645 |
+
-2.0099716493859887e-05,
|
| 646 |
+
0.0021775541827082634,
|
| 647 |
+
-1.8466966139385477e-05,
|
| 648 |
+
-0.004215856548398733,
|
| 649 |
+
0.0004085846012458205,
|
| 650 |
+
0.00040858410648070276,
|
| 651 |
+
-1.7040652892319486e-05,
|
| 652 |
+
0.00040858116699382663,
|
| 653 |
+
0.004995528608560562,
|
| 654 |
+
7.248025212902576e-05,
|
| 655 |
+
7.248033944051713e-05,
|
| 656 |
+
0.000408606487326324,
|
| 657 |
+
7.248002657433972e-05,
|
| 658 |
+
0.005003098398447037,
|
| 659 |
+
7.248362089740112e-05,
|
| 660 |
+
0.0001694808161118999,
|
| 661 |
+
1.4606938362121582,
|
| 662 |
+
1.3873600959777832,
|
| 663 |
+
0.24172371625900269,
|
| 664 |
+
1.5354737043380737,
|
| 665 |
+
1.282624363899231,
|
| 666 |
+
0.21544072031974792,
|
| 667 |
+
0.1536547690629959,
|
| 668 |
+
1.5726174116134644,
|
| 669 |
+
0.08847889304161072,
|
| 670 |
+
-0.002909993752837181,
|
| 671 |
+
1.6941105127334595,
|
| 672 |
+
1.7474862337112427,
|
| 673 |
+
0.12235886603593826,
|
| 674 |
+
1.7342374324798584,
|
| 675 |
+
1.1012191772460938,
|
| 676 |
+
1.3934080600738525,
|
| 677 |
+
1.3533018827438354,
|
| 678 |
+
1.7458083629608154,
|
| 679 |
+
1.0872085094451904,
|
| 680 |
+
0.34997692704200745,
|
| 681 |
+
1.0156328678131104,
|
| 682 |
+
0.386565238237381,
|
| 683 |
+
0.011892342939972878,
|
| 684 |
+
0.00036274068406783044,
|
| 685 |
+
-0.9999292492866516
|
| 686 |
+
],
|
| 687 |
+
"mean": [
|
| 688 |
+
-0.09785526093611452,
|
| 689 |
+
0.0029796540751150223,
|
| 690 |
+
-0.00011749093636783019,
|
| 691 |
+
0.24078336613300713,
|
| 692 |
+
-0.001483745781117172,
|
| 693 |
+
-0.16094673989096656,
|
| 694 |
+
-0.09784785629628794,
|
| 695 |
+
-0.003286792622055945,
|
| 696 |
+
6.359669603595921e-05,
|
| 697 |
+
0.24135650970587674,
|
| 698 |
+
0.0014481086974793924,
|
| 699 |
+
-0.16157293961249933,
|
| 700 |
+
-0.00055516285977429,
|
| 701 |
+
0.004176521286819223,
|
| 702 |
+
0.001051175742497642,
|
| 703 |
+
0.2395181341710026,
|
| 704 |
+
0.10792622612743608,
|
| 705 |
+
0.004581044781537889,
|
| 706 |
+
0.9944883175184331,
|
| 707 |
+
-0.0011651024131686418,
|
| 708 |
+
-0.004377417567246881,
|
| 709 |
+
0.006125923884388435,
|
| 710 |
+
-0.35644952192305274,
|
| 711 |
+
-0.46418886003898757,
|
| 712 |
+
-0.013048485006977669,
|
| 713 |
+
0.17741333217133373,
|
| 714 |
+
1.905103833607418,
|
| 715 |
+
0.30614702442260283,
|
| 716 |
+
-0.7054572112394577,
|
| 717 |
+
0.5088922210153903,
|
| 718 |
+
-0.32759722949323195,
|
| 719 |
+
0.00155383075415595,
|
| 720 |
+
0.0015537752436624434,
|
| 721 |
+
0.00020132537563169773,
|
| 722 |
+
0.0015537100449893638,
|
| 723 |
+
0.033465170018071755,
|
| 724 |
+
-0.0005566219677073042,
|
| 725 |
+
-0.0005569153729970776,
|
| 726 |
+
0.0015537284846230618,
|
| 727 |
+
-0.0005563826282825237,
|
| 728 |
+
-0.0861267614232954,
|
| 729 |
+
0.00029127273341124105,
|
| 730 |
+
0.00029126452302906614,
|
| 731 |
+
-0.0005556223184502122,
|
| 732 |
+
0.00029125536324850346,
|
| 733 |
+
0.0043675904196599285,
|
| 734 |
+
5.153174948852545e-05,
|
| 735 |
+
5.1530702786641114e-05,
|
| 736 |
+
0.00029125860617560865,
|
| 737 |
+
5.1529519222620906e-05,
|
| 738 |
+
0.00420368666799645,
|
| 739 |
+
5.153006054694349e-05,
|
| 740 |
+
0.00011943137353283142,
|
| 741 |
+
0.8160156590570241,
|
| 742 |
+
0.9389792287318086,
|
| 743 |
+
0.1490323148686384,
|
| 744 |
+
1.2093103380214947,
|
| 745 |
+
0.7972762943083992,
|
| 746 |
+
-0.0029631480957493486,
|
| 747 |
+
-0.055737382939839715,
|
| 748 |
+
1.2004745719955285,
|
| 749 |
+
-0.044283933876475896,
|
| 750 |
+
-0.08029388535325555,
|
| 751 |
+
1.2305006590593395,
|
| 752 |
+
1.2743632885109408,
|
| 753 |
+
0.03205499904873027,
|
| 754 |
+
1.3778912931374658,
|
| 755 |
+
0.4899848887858702,
|
| 756 |
+
0.9868204909239197,
|
| 757 |
+
0.780929127787715,
|
| 758 |
+
1.1804992306569957,
|
| 759 |
+
0.8426924277583776,
|
| 760 |
+
0.20458252311803743,
|
| 761 |
+
0.7181666232938461,
|
| 762 |
+
0.15684561085752854,
|
| 763 |
+
0.007212025231518785,
|
| 764 |
+
-0.00018580798599419722,
|
| 765 |
+
-0.9999714100548942
|
| 766 |
+
],
|
| 767 |
+
"std": [
|
| 768 |
+
0.0009067670789237834,
|
| 769 |
+
0.0008727894346167395,
|
| 770 |
+
0.0002777191972242325,
|
| 771 |
+
0.0006466220604173187,
|
| 772 |
+
0.0007346710346997718,
|
| 773 |
+
0.0017976988752153227,
|
| 774 |
+
0.0007769208980955679,
|
| 775 |
+
0.0006779111896897012,
|
| 776 |
+
0.00020889763962404415,
|
| 777 |
+
0.0005150219641825996,
|
| 778 |
+
0.0006882885320503921,
|
| 779 |
+
0.0017855112589450538,
|
| 780 |
+
0.0007098681864201253,
|
| 781 |
+
0.0024662644695297446,
|
| 782 |
+
0.0033463154916504646,
|
| 783 |
+
0.0009304211235617237,
|
| 784 |
+
0.0008408055498402711,
|
| 785 |
+
0.00019948119403078555,
|
| 786 |
+
0.0008665865887054094,
|
| 787 |
+
0.0001838611778494026,
|
| 788 |
+
0.0007190760615107812,
|
| 789 |
+
0.001141946161740247,
|
| 790 |
+
0.2633559095218504,
|
| 791 |
+
0.1844559478015024,
|
| 792 |
+
0.23941128485327795,
|
| 793 |
+
0.28156390062770453,
|
| 794 |
+
0.5549049949709923,
|
| 795 |
+
0.14039245872370573,
|
| 796 |
+
0.2860102014074455,
|
| 797 |
+
0.14344760466848627,
|
| 798 |
+
0.18510505690932832,
|
| 799 |
+
0.0005225765840522694,
|
| 800 |
+
0.0005225690372026028,
|
| 801 |
+
6.575214921290484e-05,
|
| 802 |
+
0.0005225621051523737,
|
| 803 |
+
0.0029143773124083,
|
| 804 |
+
0.0001843525411469115,
|
| 805 |
+
0.0001841359459697739,
|
| 806 |
+
0.0005226020795211893,
|
| 807 |
+
0.0001845250039153968,
|
| 808 |
+
0.0047760096669896114,
|
| 809 |
+
9.812322688642312e-05,
|
| 810 |
+
9.812203457502503e-05,
|
| 811 |
+
0.00018469305540414234,
|
| 812 |
+
9.812084743566436e-05,
|
| 813 |
+
0.0002908526544858428,
|
| 814 |
+
1.742548075238556e-05,
|
| 815 |
+
1.7425327866510986e-05,
|
| 816 |
+
9.812715294628039e-05,
|
| 817 |
+
1.7425186916470698e-05,
|
| 818 |
+
0.0004960553666509786,
|
| 819 |
+
1.7426072624276864e-05,
|
| 820 |
+
4.089342148594891e-05,
|
| 821 |
+
0.3662403907404729,
|
| 822 |
+
0.3885310127888585,
|
| 823 |
+
0.08083219424718499,
|
| 824 |
+
0.4977664762172315,
|
| 825 |
+
0.4876249899076184,
|
| 826 |
+
0.04674606850641643,
|
| 827 |
+
0.049665436463866286,
|
| 828 |
+
0.4795121047941493,
|
| 829 |
+
0.02788045856296372,
|
| 830 |
+
0.024717666341607568,
|
| 831 |
+
0.5321873529292879,
|
| 832 |
+
0.5013715940954119,
|
| 833 |
+
0.021384402536122157,
|
| 834 |
+
0.5500727925731698,
|
| 835 |
+
0.3764727797613653,
|
| 836 |
+
0.40516620301013545,
|
| 837 |
+
0.32029078359450514,
|
| 838 |
+
0.5812045384233172,
|
| 839 |
+
0.35930818560330374,
|
| 840 |
+
0.13998244790577968,
|
| 841 |
+
0.3201486052619058,
|
| 842 |
+
0.10190235433527584,
|
| 843 |
+
0.0022605747284818113,
|
| 844 |
+
0.00014482477039994416,
|
| 845 |
+
1.420976945599524e-05
|
| 846 |
+
],
|
| 847 |
+
"q01": [
|
| 848 |
+
-0.09850119099020958,
|
| 849 |
+
0.0008640509913675487,
|
| 850 |
+
-0.0013354859687387944,
|
| 851 |
+
0.23958615839481354,
|
| 852 |
+
-0.0025275377416983246,
|
| 853 |
+
-0.16435931086540223,
|
| 854 |
+
-0.09866525486111641,
|
| 855 |
+
-0.004544122843071818,
|
| 856 |
+
-0.000575557000702247,
|
| 857 |
+
0.24074132561683656,
|
| 858 |
+
-0.0001615556830074638,
|
| 859 |
+
-0.1650536412000656,
|
| 860 |
+
-0.0024056987091898917,
|
| 861 |
+
0.0008230352459941059,
|
| 862 |
+
-0.009928395040333271,
|
| 863 |
+
0.23857873946428299,
|
| 864 |
+
0.10606704607605934,
|
| 865 |
+
0.003956269128248095,
|
| 866 |
+
0.9938164746761322,
|
| 867 |
+
-0.001539693505037576,
|
| 868 |
+
-0.005080912876874209,
|
| 869 |
+
0.005361183704808354,
|
| 870 |
+
-0.701295336484909,
|
| 871 |
+
-0.9814284694194794,
|
| 872 |
+
-0.619218373298645,
|
| 873 |
+
-0.15970112800598144,
|
| 874 |
+
0.0012465573311783373,
|
| 875 |
+
-0.020751330591738226,
|
| 876 |
+
-1.1978226280212403,
|
| 877 |
+
0.005782165098935366,
|
| 878 |
+
-0.5843974411487579,
|
| 879 |
+
5.5685082770651206e-05,
|
| 880 |
+
5.575544491875917e-05,
|
| 881 |
+
1.1438586625445168e-05,
|
| 882 |
+
5.578377022175118e-05,
|
| 883 |
+
0.03149609334766865,
|
| 884 |
+
-0.0007608840032480657,
|
| 885 |
+
-0.0007609407871495932,
|
| 886 |
+
5.581375808105804e-05,
|
| 887 |
+
-0.0007608092855662107,
|
| 888 |
+
-0.08835047483444214,
|
| 889 |
+
1.0384754205006175e-05,
|
| 890 |
+
1.0395733625045978e-05,
|
| 891 |
+
-0.0007601524202618748,
|
| 892 |
+
1.0400010978628416e-05,
|
| 893 |
+
0.004061101069673896,
|
| 894 |
+
1.8193740061178687e-06,
|
| 895 |
+
1.8208826304544345e-06,
|
| 896 |
+
1.04044147519744e-05,
|
| 897 |
+
1.8214138890471077e-06,
|
| 898 |
+
0.002980961464345455,
|
| 899 |
+
1.8219617459180881e-06,
|
| 900 |
+
4.006936705991393e-06,
|
| 901 |
+
8.382547821383923e-05,
|
| 902 |
+
7.428319077007473e-05,
|
| 903 |
+
-2.2172567223606166e-05,
|
| 904 |
+
6.400699203368276e-05,
|
| 905 |
+
0.031931091770529746,
|
| 906 |
+
-0.06078811451792717,
|
| 907 |
+
-0.10554235592484475,
|
| 908 |
+
5.808875721413642e-05,
|
| 909 |
+
-0.0833454391360283,
|
| 910 |
+
-0.13375658839941024,
|
| 911 |
+
1.078577679436421e-05,
|
| 912 |
+
1.0795828529808205e-05,
|
| 913 |
+
-0.02222786143422127,
|
| 914 |
+
1.0798270523082465e-05,
|
| 915 |
+
0.005258570266887546,
|
| 916 |
+
1.8745749912341125e-06,
|
| 917 |
+
1.8758527176032658e-06,
|
| 918 |
+
1.0800773452501744e-05,
|
| 919 |
+
1.875971065601334e-06,
|
| 920 |
+
0.005282324487343431,
|
| 921 |
+
1.876095211628126e-06,
|
| 922 |
+
3.2027537599788047e-06,
|
| 923 |
+
0.0013345605693757534,
|
| 924 |
+
-0.000605643637245521,
|
| 925 |
+
-0.9999991059303284
|
| 926 |
+
],
|
| 927 |
+
"q99": [
|
| 928 |
+
-0.09460046887397766,
|
| 929 |
+
0.004371109576895832,
|
| 930 |
+
0.00038374101219233075,
|
| 931 |
+
0.2427612990140915,
|
| 932 |
+
0.000562165722949429,
|
| 933 |
+
-0.1576434600353241,
|
| 934 |
+
-0.09517786651849747,
|
| 935 |
+
-0.0016454175347462296,
|
| 936 |
+
0.0006539086590055373,
|
| 937 |
+
0.2431977242231369,
|
| 938 |
+
0.0025224683387205,
|
| 939 |
+
-0.15848641932010651,
|
| 940 |
+
0.0021284108096733677,
|
| 941 |
+
0.010720436889678239,
|
| 942 |
+
0.0036060637608170505,
|
| 943 |
+
0.24132926225662232,
|
| 944 |
+
0.11057938635349274,
|
| 945 |
+
0.005188127979636192,
|
| 946 |
+
0.9976410865783691,
|
| 947 |
+
-0.00053376954048872,
|
| 948 |
+
-0.0012399926781654358,
|
| 949 |
+
0.012605562806129456,
|
| 950 |
+
0.5652764868736264,
|
| 951 |
+
-0.08248741999268538,
|
| 952 |
+
0.6294910681247707,
|
| 953 |
+
0.9960867166519165,
|
| 954 |
+
2.6078319597244257,
|
| 955 |
+
0.4364731413125992,
|
| 956 |
+
0.1169470515847205,
|
| 957 |
+
0.6803933727741241,
|
| 958 |
+
-9.349087122245692e-06,
|
| 959 |
+
0.0021375684905797243,
|
| 960 |
+
0.0021375125600025056,
|
| 961 |
+
0.000276203085668385,
|
| 962 |
+
0.002137404466047883,
|
| 963 |
+
0.04510190337896347,
|
| 964 |
+
-3.0469611374428496e-05,
|
| 965 |
+
-3.1369836506200954e-05,
|
| 966 |
+
0.0021374762523919343,
|
| 967 |
+
-2.9749740861007012e-05,
|
| 968 |
+
-0.08416056245565415,
|
| 969 |
+
0.00040105835360009217,
|
| 970 |
+
0.00040104385174345226,
|
| 971 |
+
-2.8378133720252663e-05,
|
| 972 |
+
0.00040102897211909296,
|
| 973 |
+
0.00496477410197258,
|
| 974 |
+
7.111685394193045e-05,
|
| 975 |
+
7.111564045771956e-05,
|
| 976 |
+
0.00040104796527884896,
|
| 977 |
+
7.111543440259992e-05,
|
| 978 |
+
0.0047313511185348035,
|
| 979 |
+
7.11158437479753e-05,
|
| 980 |
+
0.00016601720359176396,
|
| 981 |
+
1.3917556595802305,
|
| 982 |
+
1.2549091958999632,
|
| 983 |
+
0.2342953011393547,
|
| 984 |
+
1.5228514790534973,
|
| 985 |
+
1.281657338142395,
|
| 986 |
+
0.18650823861360544,
|
| 987 |
+
0.1220307160913944,
|
| 988 |
+
1.5645131540298463,
|
| 989 |
+
0.05879297986626625,
|
| 990 |
+
-0.01600564777851105,
|
| 991 |
+
1.6867665481567382,
|
| 992 |
+
1.6438835501670837,
|
| 993 |
+
0.07475225746631602,
|
| 994 |
+
1.7114433479309081,
|
| 995 |
+
1.0851153564453124,
|
| 996 |
+
1.3932189154624939,
|
| 997 |
+
1.1691025447845456,
|
| 998 |
+
1.7413175559043885,
|
| 999 |
+
1.0792978668212891,
|
| 1000 |
+
0.34871641933918,
|
| 1001 |
+
1.003419451713562,
|
| 1002 |
+
0.375705896615982,
|
| 1003 |
+
0.010849302671849727,
|
| 1004 |
+
7.791171374264991e-05,
|
| 1005 |
+
-0.9999411499500275
|
| 1006 |
+
],
|
| 1007 |
+
"unit_dims": []
|
| 1008 |
+
},
|
| 1009 |
+
"action": {
|
| 1010 |
+
"min": [
|
| 1011 |
+
-0.10000000149011612,
|
| 1012 |
+
0.0,
|
| 1013 |
+
0.0,
|
| 1014 |
+
0.25,
|
| 1015 |
+
0.0,
|
| 1016 |
+
-0.15000000596046448,
|
| 1017 |
+
-0.10000000149011612,
|
| 1018 |
+
0.0,
|
| 1019 |
+
0.0,
|
| 1020 |
+
0.25,
|
| 1021 |
+
0.0,
|
| 1022 |
+
-0.15000000596046448,
|
| 1023 |
+
0.0,
|
| 1024 |
+
0.0,
|
| 1025 |
+
0.0,
|
| 1026 |
+
0.25,
|
| 1027 |
+
0.10000000149011612,
|
| 1028 |
+
0.0,
|
| 1029 |
+
1.0,
|
| 1030 |
+
0.0,
|
| 1031 |
+
0.0,
|
| 1032 |
+
0.0,
|
| 1033 |
+
-0.7830644845962524,
|
| 1034 |
+
-1.15714693069458,
|
| 1035 |
+
-0.7234516739845276,
|
| 1036 |
+
-0.2137162834405899,
|
| 1037 |
+
0.0,
|
| 1038 |
+
-0.4363322854042053,
|
| 1039 |
+
-1.2217304706573486,
|
| 1040 |
+
0.0,
|
| 1041 |
+
-0.6005052924156189,
|
| 1042 |
+
0.0,
|
| 1043 |
+
0.0,
|
| 1044 |
+
0.0,
|
| 1045 |
+
0.0,
|
| 1046 |
+
0.0,
|
| 1047 |
+
0.0,
|
| 1048 |
+
0.0,
|
| 1049 |
+
0.0,
|
| 1050 |
+
0.0,
|
| 1051 |
+
0.0,
|
| 1052 |
+
0.0,
|
| 1053 |
+
0.0,
|
| 1054 |
+
0.0,
|
| 1055 |
+
0.0,
|
| 1056 |
+
0.0,
|
| 1057 |
+
0.0,
|
| 1058 |
+
0.0,
|
| 1059 |
+
0.0,
|
| 1060 |
+
0.0,
|
| 1061 |
+
0.0,
|
| 1062 |
+
0.0,
|
| 1063 |
+
0.0,
|
| 1064 |
+
0.0,
|
| 1065 |
+
0.0,
|
| 1066 |
+
0.0,
|
| 1067 |
+
0.0,
|
| 1068 |
+
0.0,
|
| 1069 |
+
-0.033399999141693115,
|
| 1070 |
+
-0.10440000146627426,
|
| 1071 |
+
0.0,
|
| 1072 |
+
-0.05559999868273735,
|
| 1073 |
+
-0.029100000858306885,
|
| 1074 |
+
0.0,
|
| 1075 |
+
0.0,
|
| 1076 |
+
0.0,
|
| 1077 |
+
0.0,
|
| 1078 |
+
0.0,
|
| 1079 |
+
0.0,
|
| 1080 |
+
0.0,
|
| 1081 |
+
0.0,
|
| 1082 |
+
0.0,
|
| 1083 |
+
0.0,
|
| 1084 |
+
0.0,
|
| 1085 |
+
0.0
|
| 1086 |
+
],
|
| 1087 |
+
"max": [
|
| 1088 |
+
-0.10000000149011612,
|
| 1089 |
+
0.0,
|
| 1090 |
+
0.0,
|
| 1091 |
+
0.25,
|
| 1092 |
+
0.0,
|
| 1093 |
+
-0.15000000596046448,
|
| 1094 |
+
-0.10000000149011612,
|
| 1095 |
+
0.0,
|
| 1096 |
+
0.0,
|
| 1097 |
+
0.25,
|
| 1098 |
+
0.0,
|
| 1099 |
+
-0.15000000596046448,
|
| 1100 |
+
0.0,
|
| 1101 |
+
0.0,
|
| 1102 |
+
0.0,
|
| 1103 |
+
0.25,
|
| 1104 |
+
0.10000000149011612,
|
| 1105 |
+
0.0,
|
| 1106 |
+
1.0,
|
| 1107 |
+
0.0,
|
| 1108 |
+
0.0,
|
| 1109 |
+
0.0,
|
| 1110 |
+
0.5866223573684692,
|
| 1111 |
+
-0.06458767503499985,
|
| 1112 |
+
0.8743140697479248,
|
| 1113 |
+
1.1923998594284058,
|
| 1114 |
+
2.6179938316345215,
|
| 1115 |
+
0.4363322854042053,
|
| 1116 |
+
0.18158245086669922,
|
| 1117 |
+
0.6523595452308655,
|
| 1118 |
+
0.0,
|
| 1119 |
+
0.0,
|
| 1120 |
+
0.0,
|
| 1121 |
+
0.0,
|
| 1122 |
+
0.0,
|
| 1123 |
+
0.0,
|
| 1124 |
+
0.0,
|
| 1125 |
+
0.0,
|
| 1126 |
+
0.0,
|
| 1127 |
+
0.0,
|
| 1128 |
+
0.0,
|
| 1129 |
+
0.0,
|
| 1130 |
+
0.0,
|
| 1131 |
+
0.0,
|
| 1132 |
+
0.0,
|
| 1133 |
+
0.0,
|
| 1134 |
+
0.0,
|
| 1135 |
+
0.0,
|
| 1136 |
+
0.0,
|
| 1137 |
+
0.0,
|
| 1138 |
+
0.0,
|
| 1139 |
+
0.0,
|
| 1140 |
+
0.0,
|
| 1141 |
+
1.5707999467849731,
|
| 1142 |
+
1.4276299476623535,
|
| 1143 |
+
0.251800000667572,
|
| 1144 |
+
1.5707999467849731,
|
| 1145 |
+
1.4098104238510132,
|
| 1146 |
+
0.2409999966621399,
|
| 1147 |
+
0.16740000247955322,
|
| 1148 |
+
1.5707999467849731,
|
| 1149 |
+
0.0,
|
| 1150 |
+
0.3490999937057495,
|
| 1151 |
+
1.7408000230789185,
|
| 1152 |
+
1.745300054550171,
|
| 1153 |
+
0.04050000011920929,
|
| 1154 |
+
1.745300054550171,
|
| 1155 |
+
1.233299970626831,
|
| 1156 |
+
1.396299958229065,
|
| 1157 |
+
1.3615000247955322,
|
| 1158 |
+
1.745300054550171,
|
| 1159 |
+
1.0814000368118286,
|
| 1160 |
+
0.3490999937057495,
|
| 1161 |
+
0.9969000220298767,
|
| 1162 |
+
0.4447999894618988
|
| 1163 |
+
],
|
| 1164 |
+
"mean": [
|
| 1165 |
+
-0.10000000149011612,
|
| 1166 |
+
0.0,
|
| 1167 |
+
0.0,
|
| 1168 |
+
0.25,
|
| 1169 |
+
0.0,
|
| 1170 |
+
-0.15000000596046448,
|
| 1171 |
+
-0.10000000149011612,
|
| 1172 |
+
0.0,
|
| 1173 |
+
0.0,
|
| 1174 |
+
0.25,
|
| 1175 |
+
0.0,
|
| 1176 |
+
-0.15000000596046448,
|
| 1177 |
+
0.0,
|
| 1178 |
+
0.0,
|
| 1179 |
+
0.0,
|
| 1180 |
+
0.25,
|
| 1181 |
+
0.10000000149011612,
|
| 1182 |
+
0.0,
|
| 1183 |
+
1.0,
|
| 1184 |
+
0.0,
|
| 1185 |
+
0.0,
|
| 1186 |
+
0.0,
|
| 1187 |
+
-0.3844676993563776,
|
| 1188 |
+
-0.4635392729059665,
|
| 1189 |
+
-0.025321531695698816,
|
| 1190 |
+
0.1565658989158264,
|
| 1191 |
+
1.9096198221052831,
|
| 1192 |
+
0.3027108377102684,
|
| 1193 |
+
-0.6802851635135142,
|
| 1194 |
+
0.4717552163889123,
|
| 1195 |
+
-0.3293787508809817,
|
| 1196 |
+
0.0,
|
| 1197 |
+
0.0,
|
| 1198 |
+
0.0,
|
| 1199 |
+
0.0,
|
| 1200 |
+
0.0,
|
| 1201 |
+
0.0,
|
| 1202 |
+
0.0,
|
| 1203 |
+
0.0,
|
| 1204 |
+
0.0,
|
| 1205 |
+
0.0,
|
| 1206 |
+
0.0,
|
| 1207 |
+
0.0,
|
| 1208 |
+
0.0,
|
| 1209 |
+
0.0,
|
| 1210 |
+
0.0,
|
| 1211 |
+
0.0,
|
| 1212 |
+
0.0,
|
| 1213 |
+
0.0,
|
| 1214 |
+
0.0,
|
| 1215 |
+
0.0,
|
| 1216 |
+
0.0,
|
| 1217 |
+
0.0,
|
| 1218 |
+
0.9163668700463455,
|
| 1219 |
+
1.0774307526623856,
|
| 1220 |
+
0.18450656518916894,
|
| 1221 |
+
1.2577362062853386,
|
| 1222 |
+
0.8662071389505672,
|
| 1223 |
+
0.014139693930753192,
|
| 1224 |
+
-0.0783472468063956,
|
| 1225 |
+
1.3026880926927225,
|
| 1226 |
+
-0.049635624906086466,
|
| 1227 |
+
0.16960392906218702,
|
| 1228 |
+
1.350968706312699,
|
| 1229 |
+
1.4543478794042892,
|
| 1230 |
+
0.004224006560807533,
|
| 1231 |
+
1.4160855530328746,
|
| 1232 |
+
0.50399988500309,
|
| 1233 |
+
1.0411720162838662,
|
| 1234 |
+
0.8450646923517636,
|
| 1235 |
+
1.3060351313492584,
|
| 1236 |
+
0.8567824521623536,
|
| 1237 |
+
0.21634492012668474,
|
| 1238 |
+
0.7710784049796209,
|
| 1239 |
+
0.1639630493265118
|
| 1240 |
+
],
|
| 1241 |
+
"std": [
|
| 1242 |
+
0.0,
|
| 1243 |
+
0.0,
|
| 1244 |
+
0.0,
|
| 1245 |
+
0.0,
|
| 1246 |
+
0.0,
|
| 1247 |
+
0.0,
|
| 1248 |
+
0.0,
|
| 1249 |
+
0.0,
|
| 1250 |
+
0.0,
|
| 1251 |
+
0.0,
|
| 1252 |
+
0.0,
|
| 1253 |
+
0.0,
|
| 1254 |
+
0.0,
|
| 1255 |
+
0.0,
|
| 1256 |
+
0.0,
|
| 1257 |
+
0.0,
|
| 1258 |
+
0.0,
|
| 1259 |
+
0.0,
|
| 1260 |
+
0.0,
|
| 1261 |
+
0.0,
|
| 1262 |
+
0.0,
|
| 1263 |
+
0.0,
|
| 1264 |
+
0.27101139510542965,
|
| 1265 |
+
0.18306758167232656,
|
| 1266 |
+
0.2321427862317003,
|
| 1267 |
+
0.2921806368614239,
|
| 1268 |
+
0.5575150219880946,
|
| 1269 |
+
0.14082600312771132,
|
| 1270 |
+
0.2889364190439442,
|
| 1271 |
+
0.13317078744611063,
|
| 1272 |
+
0.1862851560996197,
|
| 1273 |
+
0.0,
|
| 1274 |
+
0.0,
|
| 1275 |
+
0.0,
|
| 1276 |
+
0.0,
|
| 1277 |
+
0.0,
|
| 1278 |
+
0.0,
|
| 1279 |
+
0.0,
|
| 1280 |
+
0.0,
|
| 1281 |
+
0.0,
|
| 1282 |
+
0.0,
|
| 1283 |
+
0.0,
|
| 1284 |
+
0.0,
|
| 1285 |
+
0.0,
|
| 1286 |
+
0.0,
|
| 1287 |
+
0.0,
|
| 1288 |
+
0.0,
|
| 1289 |
+
0.0,
|
| 1290 |
+
0.0,
|
| 1291 |
+
0.0,
|
| 1292 |
+
0.0,
|
| 1293 |
+
0.0,
|
| 1294 |
+
0.0,
|
| 1295 |
+
0.41432510347711093,
|
| 1296 |
+
0.4441289438708921,
|
| 1297 |
+
0.10036169364443552,
|
| 1298 |
+
0.5129014869126945,
|
| 1299 |
+
0.5543047289959324,
|
| 1300 |
+
0.051528101258709685,
|
| 1301 |
+
0.05980456667607573,
|
| 1302 |
+
0.5129086732788993,
|
| 1303 |
+
0.014518427034505595,
|
| 1304 |
+
0.18576907372151935,
|
| 1305 |
+
0.5885033266135186,
|
| 1306 |
+
0.5690668726302637,
|
| 1307 |
+
0.012073895925927702,
|
| 1308 |
+
0.5545709581524755,
|
| 1309 |
+
0.39820855145902984,
|
| 1310 |
+
0.41600444476329074,
|
| 1311 |
+
0.34343361130221534,
|
| 1312 |
+
0.6451957528324598,
|
| 1313 |
+
0.3560204635861576,
|
| 1314 |
+
0.13912312189696266,
|
| 1315 |
+
0.3411755546820009,
|
| 1316 |
+
0.10772567046676199
|
| 1317 |
+
],
|
| 1318 |
+
"q01": [
|
| 1319 |
+
-0.10000000149011612,
|
| 1320 |
+
0.0,
|
| 1321 |
+
0.0,
|
| 1322 |
+
0.25,
|
| 1323 |
+
0.0,
|
| 1324 |
+
-0.15000000596046448,
|
| 1325 |
+
-0.10000000149011612,
|
| 1326 |
+
0.0,
|
| 1327 |
+
0.0,
|
| 1328 |
+
0.25,
|
| 1329 |
+
0.0,
|
| 1330 |
+
-0.15000000596046448,
|
| 1331 |
+
0.0,
|
| 1332 |
+
0.0,
|
| 1333 |
+
0.0,
|
| 1334 |
+
0.25,
|
| 1335 |
+
0.10000000149011612,
|
| 1336 |
+
0.0,
|
| 1337 |
+
1.0,
|
| 1338 |
+
0.0,
|
| 1339 |
+
0.0,
|
| 1340 |
+
0.0,
|
| 1341 |
+
-0.7070445740222931,
|
| 1342 |
+
-0.9821006107330322,
|
| 1343 |
+
-0.5814823317527771,
|
| 1344 |
+
-0.16660345375537872,
|
| 1345 |
+
0.0,
|
| 1346 |
+
-0.026732677631080153,
|
| 1347 |
+
-1.190130457878113,
|
| 1348 |
+
0.0,
|
| 1349 |
+
-0.5883647525310516,
|
| 1350 |
+
0.0,
|
| 1351 |
+
0.0,
|
| 1352 |
+
0.0,
|
| 1353 |
+
0.0,
|
| 1354 |
+
0.0,
|
| 1355 |
+
0.0,
|
| 1356 |
+
0.0,
|
| 1357 |
+
0.0,
|
| 1358 |
+
0.0,
|
| 1359 |
+
0.0,
|
| 1360 |
+
0.0,
|
| 1361 |
+
0.0,
|
| 1362 |
+
0.0,
|
| 1363 |
+
0.0,
|
| 1364 |
+
0.0,
|
| 1365 |
+
0.0,
|
| 1366 |
+
0.0,
|
| 1367 |
+
0.0,
|
| 1368 |
+
0.0,
|
| 1369 |
+
0.0,
|
| 1370 |
+
0.0,
|
| 1371 |
+
0.0,
|
| 1372 |
+
0.0,
|
| 1373 |
+
0.0,
|
| 1374 |
+
0.0,
|
| 1375 |
+
0.0,
|
| 1376 |
+
0.0,
|
| 1377 |
+
-0.030105212703347206,
|
| 1378 |
+
-0.10440000146627426,
|
| 1379 |
+
0.0,
|
| 1380 |
+
-0.05559999868273735,
|
| 1381 |
+
-0.029100000858306885,
|
| 1382 |
+
0.0,
|
| 1383 |
+
0.0,
|
| 1384 |
+
0.0,
|
| 1385 |
+
0.0,
|
| 1386 |
+
0.0,
|
| 1387 |
+
0.0,
|
| 1388 |
+
0.0,
|
| 1389 |
+
0.0,
|
| 1390 |
+
0.0,
|
| 1391 |
+
0.0,
|
| 1392 |
+
0.0,
|
| 1393 |
+
0.0
|
| 1394 |
+
],
|
| 1395 |
+
"q99": [
|
| 1396 |
+
-0.10000000149011612,
|
| 1397 |
+
0.0,
|
| 1398 |
+
0.0,
|
| 1399 |
+
0.25,
|
| 1400 |
+
0.0,
|
| 1401 |
+
-0.15000000596046448,
|
| 1402 |
+
-0.10000000149011612,
|
| 1403 |
+
0.0,
|
| 1404 |
+
0.0,
|
| 1405 |
+
0.25,
|
| 1406 |
+
0.0,
|
| 1407 |
+
-0.15000000596046448,
|
| 1408 |
+
0.0,
|
| 1409 |
+
0.0,
|
| 1410 |
+
0.0,
|
| 1411 |
+
0.25,
|
| 1412 |
+
0.10000000149011612,
|
| 1413 |
+
0.0,
|
| 1414 |
+
1.0,
|
| 1415 |
+
0.0,
|
| 1416 |
+
0.0,
|
| 1417 |
+
0.0,
|
| 1418 |
+
0.5514356398582456,
|
| 1419 |
+
-0.09763230487704284,
|
| 1420 |
+
0.6034356474876394,
|
| 1421 |
+
1.0,
|
| 1422 |
+
2.611392502784729,
|
| 1423 |
+
0.4363322854042053,
|
| 1424 |
+
0.12147992059588404,
|
| 1425 |
+
0.6338406205177307,
|
| 1426 |
+
0.0,
|
| 1427 |
+
0.0,
|
| 1428 |
+
0.0,
|
| 1429 |
+
0.0,
|
| 1430 |
+
0.0,
|
| 1431 |
+
0.0,
|
| 1432 |
+
0.0,
|
| 1433 |
+
0.0,
|
| 1434 |
+
0.0,
|
| 1435 |
+
0.0,
|
| 1436 |
+
0.0,
|
| 1437 |
+
0.0,
|
| 1438 |
+
0.0,
|
| 1439 |
+
0.0,
|
| 1440 |
+
0.0,
|
| 1441 |
+
0.0,
|
| 1442 |
+
0.0,
|
| 1443 |
+
0.0,
|
| 1444 |
+
0.0,
|
| 1445 |
+
0.0,
|
| 1446 |
+
0.0,
|
| 1447 |
+
0.0,
|
| 1448 |
+
0.0,
|
| 1449 |
+
1.5707999467849731,
|
| 1450 |
+
1.4246050119400024,
|
| 1451 |
+
0.251800000667572,
|
| 1452 |
+
1.5707999467849731,
|
| 1453 |
+
1.4098104238510132,
|
| 1454 |
+
0.23754914104938507,
|
| 1455 |
+
0.1664000004529953,
|
| 1456 |
+
1.5707999467849731,
|
| 1457 |
+
0.0,
|
| 1458 |
+
0.3490999937057495,
|
| 1459 |
+
1.7408000230789185,
|
| 1460 |
+
1.745300054550171,
|
| 1461 |
+
0.04050000011920929,
|
| 1462 |
+
1.745300054550171,
|
| 1463 |
+
1.233299970626831,
|
| 1464 |
+
1.396299958229065,
|
| 1465 |
+
1.3562606573104858,
|
| 1466 |
+
1.745300054550171,
|
| 1467 |
+
1.0814000368118286,
|
| 1468 |
+
0.3490999937057495,
|
| 1469 |
+
0.9969000220298767,
|
| 1470 |
+
0.4447999894618988
|
| 1471 |
+
],
|
| 1472 |
+
"unit_dims": []
|
| 1473 |
+
}
|
| 1474 |
+
},
|
| 1475 |
+
"code_commit": "bf40b9df05f60870ac9e4ab3acef11a871925a40",
|
| 1476 |
+
"task": "a15v3",
|
| 1477 |
+
"dataset_id": "humanoid-benchmark/a15-hitting-nail@139187e6d5e4547aae01629bca39fc4b2045153d",
|
| 1478 |
+
"step": 6000,
|
| 1479 |
+
"weights": "ema",
|
| 1480 |
+
"offline_eval": {
|
| 1481 |
+
"mse": 0.00031560371280647814,
|
| 1482 |
+
"mse_row0": 0.00028117926558479667,
|
| 1483 |
+
"mse_body_target": 0.00027806719299405813,
|
| 1484 |
+
"mse_hands": 0.00034204983967356384,
|
| 1485 |
+
"samples": 256,
|
| 1486 |
+
"frames": "train"
|
| 1487 |
+
},
|
| 1488 |
+
"format": "hb_baselines/1"
|
| 1489 |
+
}
|
a15-hitting-nail/b512-s6000/step-006000/model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:346fab224fa1fe057859f2a8419c857bae58c8359d68b487b30cb4ecacd3d710
|
| 3 |
+
size 106987629
|
a15-hitting-nail/b512-s6000/step-006000/protocol.json
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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9 |
+
"fps": 30.0,
|
| 10 |
+
"steps": 6000,
|
| 11 |
+
"total_steps": 6000,
|
| 12 |
+
"save_steps": [
|
| 13 |
+
1000,
|
| 14 |
+
2000,
|
| 15 |
+
3000,
|
| 16 |
+
4000,
|
| 17 |
+
5000,
|
| 18 |
+
6000
|
| 19 |
+
],
|
| 20 |
+
"global_batch": 512,
|
| 21 |
+
"per_gpu_batch": 512,
|
| 22 |
+
"num_gpus": 1,
|
| 23 |
+
"gradient_accumulation_steps": 1,
|
| 24 |
+
"lr": 0.0001,
|
| 25 |
+
"warmup": 500,
|
| 26 |
+
"schedule": "diffusers_cosine",
|
| 27 |
+
"seed": 42,
|
| 28 |
+
"aug_seed": 42,
|
| 29 |
+
"code_commit": "bf40b9df05f60870ac9e4ab3acef11a871925a40",
|
| 30 |
+
"code_dirty": null,
|
| 31 |
+
"environment": {
|
| 32 |
+
"python": "3.12.1",
|
| 33 |
+
"torch": "2.9.0+cu128",
|
| 34 |
+
"numpy": "2.2.6",
|
| 35 |
+
"cuda": "12.8",
|
| 36 |
+
"cudnn": 91002,
|
| 37 |
+
"torchvision": "0.24.0+cu128",
|
| 38 |
+
"pillow": "12.3.0",
|
| 39 |
+
"gpu": "NVIDIA GeForce RTX 4090 D",
|
| 40 |
+
"driver": "550.127.05"
|
| 41 |
+
},
|
| 42 |
+
"continuation": null,
|
| 43 |
+
"protocol_deviations": [
|
| 44 |
+
"steps 6000 (protocol 5000)"
|
| 45 |
+
],
|
| 46 |
+
"protocol_exceptions": [
|
| 47 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 48 |
+
"owner 2026-11-30 (「team01 这两张卡先装好环境,然后分担我们这边其他的任务,训练、评估都可以」): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)"
|
| 49 |
+
],
|
| 50 |
+
"files": {
|
| 51 |
+
"config.json": {
|
| 52 |
+
"bytes": 27458,
|
| 53 |
+
"sha256": "0ec755f4641b9808f7c16f40e0c297c45bcb56104ccfbebb646fd539884d44dc"
|
| 54 |
+
},
|
| 55 |
+
"model.pt": {
|
| 56 |
+
"bytes": 106987629,
|
| 57 |
+
"sha256": "346fab224fa1fe057859f2a8419c857bae58c8359d68b487b30cb4ecacd3d710"
|
| 58 |
+
},
|
| 59 |
+
"training_records/code_hb_bai_bf40b9df/HB_CODE_COMMIT": {
|
| 60 |
+
"bytes": 41,
|
| 61 |
+
"sha256": "4312b68fd3885f49c71f0958e8f65c60bdb99b43f0aaeb84c449fe913ef8fa50"
|
| 62 |
+
},
|
| 63 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/augmentation/hb_aug_v2.py": {
|
| 64 |
+
"bytes": 7475,
|
| 65 |
+
"sha256": "9f7713cea4f846efcfc924234267ced48210357f419d67915c10b504316bedde"
|
| 66 |
+
},
|
| 67 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/__init__.py": {
|
| 68 |
+
"bytes": 1060,
|
| 69 |
+
"sha256": "bfbb52f85ac5d91e37f3cfc24bb8671de447b5b566760bfe091204ae69e1f7f6"
|
| 70 |
+
},
|
| 71 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/act_nets.py": {
|
| 72 |
+
"bytes": 22435,
|
| 73 |
+
"sha256": "3db95cd8e4e436875e11f1054a99d250ca7d94e0127909090b58730402340f19"
|
| 74 |
+
},
|
| 75 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/adapters.py": {
|
| 76 |
+
"bytes": 9389,
|
| 77 |
+
"sha256": "f5dc4607af75ec28a03c87a817537c4b121d1310cffd1c1600f7ae6238a42330"
|
| 78 |
+
},
|
| 79 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_adapter.py": {
|
| 80 |
+
"bytes": 6115,
|
| 81 |
+
"sha256": "b3a46b69af51354a92a1a4428d00c2370c977e9136aebd4092e15f52c6fd5db8"
|
| 82 |
+
},
|
| 83 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_first_history.py": {
|
| 84 |
+
"bytes": 17392,
|
| 85 |
+
"sha256": "fafa2663786d53cb865370a342fbdb1df80d3cf910aea31489e603deb50e1073"
|
| 86 |
+
},
|
| 87 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_parity.py": {
|
| 88 |
+
"bytes": 7968,
|
| 89 |
+
"sha256": "1a5f6286ee9d1c463649d112131fac6f5a97df0d070ad7a6ca375e8d6be78a37"
|
| 90 |
+
},
|
| 91 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/data.py": {
|
| 92 |
+
"bytes": 27560,
|
| 93 |
+
"sha256": "ce4f10cff8714d8e83900e1d821ef417577a612cacfa4bdda29fbc6630abf176"
|
| 94 |
+
},
|
| 95 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/flash.py": {
|
| 96 |
+
"bytes": 28787,
|
| 97 |
+
"sha256": "572f5655353fc582cfc44b67026c4af6b81edd16ec8b4255cc72f62376cc1c66"
|
| 98 |
+
},
|
| 99 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/fm_dit_v2.py": {
|
| 100 |
+
"bytes": 6013,
|
| 101 |
+
"sha256": "c987d9e641f5e5266703a8154b708d9ccab203b06d5ab82774d39a1cba602d62"
|
| 102 |
+
},
|
| 103 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/inloop.py": {
|
| 104 |
+
"bytes": 7102,
|
| 105 |
+
"sha256": "373908420a1feb62e89b3d47e187c96435ea63d2b9083ef07ac028ce48425f5a"
|
| 106 |
+
},
|
| 107 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/nets.py": {
|
| 108 |
+
"bytes": 10478,
|
| 109 |
+
"sha256": "2d72e3c455d5e376a6f5954886fd4c7a6478eb516380c6a05515fa043c62fbce"
|
| 110 |
+
},
|
| 111 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/ode_nets.py": {
|
| 112 |
+
"bytes": 9148,
|
| 113 |
+
"sha256": "38f2ea6050fa45e6c0d5e3f19caf21f1a72a50f80e356044dddcf76da22b144a"
|
| 114 |
+
},
|
| 115 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/policies.py": {
|
| 116 |
+
"bytes": 25760,
|
| 117 |
+
"sha256": "74ca169fe453f64bf6ffc3f3a85a4208aed2961d0abd9eb3e92b96457f86daf1"
|
| 118 |
+
},
|
| 119 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.lock.txt": {
|
| 120 |
+
"bytes": 1481,
|
| 121 |
+
"sha256": "4b79b9dcc98f05bfe7bc9e64e3492f4565728f6d1f75cbdecc1c817d03ff32a5"
|
| 122 |
+
},
|
| 123 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.txt": {
|
| 124 |
+
"bytes": 850,
|
| 125 |
+
"sha256": "56a8db94a98c5256028b475d9a0293cdee4cf475e415df763b3a0232433663ba"
|
| 126 |
+
},
|
| 127 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/runtime.py": {
|
| 128 |
+
"bytes": 12622,
|
| 129 |
+
"sha256": "6e5e4bf195f36a22c5f9922a1147b72c0659cfe807b144dde7810baf8c54d005"
|
| 130 |
+
},
|
| 131 |
+
"training_records/code_hb_bai_bf40b9df/evaluation/baselines/train.py": {
|
| 132 |
+
"bytes": 67800,
|
| 133 |
+
"sha256": "2df490b43b5f8df10a008eebf1ae700d76e58a5b13c659bcc12b9b3a98e6d9a2"
|
| 134 |
+
},
|
| 135 |
+
"training_records/complete.json": {
|
| 136 |
+
"bytes": 523,
|
| 137 |
+
"sha256": "53383f27c9fabada67d126abd2e198237864dd9c9f6c50c8771eb4bc0dc9c7f3"
|
| 138 |
+
},
|
| 139 |
+
"training_records/launch.sh": {
|
| 140 |
+
"bytes": 1971,
|
| 141 |
+
"sha256": "3cafb8833f018d37d7291b3551678be159bf9c30b015849965a614567aa051b5"
|
| 142 |
+
},
|
| 143 |
+
"training_records/logs/inloop-mse.jsonl": {
|
| 144 |
+
"bytes": 44482,
|
| 145 |
+
"sha256": "7d69721a9ef7e961bef923c54c6dbe8c083063b0a98e33166f7587c0d8c1d45d"
|
| 146 |
+
},
|
| 147 |
+
"training_records/pip_freeze_hb-baselines.txt": {
|
| 148 |
+
"bytes": 1141,
|
| 149 |
+
"sha256": "995f7e54f49aa32c37a2805432b9e53e784fa4a96c86594df6dcbd08b98cacb5"
|
| 150 |
+
},
|
| 151 |
+
"training_records/run.json": {
|
| 152 |
+
"bytes": 28654,
|
| 153 |
+
"sha256": "65c14675117538c79d7091f21d56b47d9825651a8ae5fc9850ce58965d3ac217"
|
| 154 |
+
},
|
| 155 |
+
"training_records/train.log": {
|
| 156 |
+
"bytes": 35247,
|
| 157 |
+
"sha256": "8ffaeda45c9a4f51f88583eddd414933b094c234c920c375077e9b9706278d85"
|
| 158 |
+
},
|
| 159 |
+
"training_records/train_log.jsonl": {
|
| 160 |
+
"bytes": 31257,
|
| 161 |
+
"sha256": "9a569227fb2a371497f0f8a68d67c1fdd7dfd73fb4ad509a50cc8388782622a8"
|
| 162 |
+
}
|
| 163 |
+
},
|
| 164 |
+
"global_step": 6000,
|
| 165 |
+
"run_step": 6000,
|
| 166 |
+
"stop_at": null,
|
| 167 |
+
"planned_total_steps": 6000,
|
| 168 |
+
"task_dir": "a15-hitting-nail",
|
| 169 |
+
"training_data": "humanoid-benchmark/a15-hitting-nail @139187e6 (v3, three-factor stall trim, 150 episodes, H2 head + chest)",
|
| 170 |
+
"published_steps": [
|
| 171 |
+
5000,
|
| 172 |
+
6000
|
| 173 |
+
],
|
| 174 |
+
"lr_schedule": "diffusers_cosine after a 500-step linear warm-up",
|
| 175 |
+
"ema": 0.9999,
|
| 176 |
+
"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",
|
| 177 |
+
"state_dim": 78,
|
| 178 |
+
"action_dim": 75,
|
| 179 |
+
"cameras": [
|
| 180 |
+
"head",
|
| 181 |
+
"chest"
|
| 182 |
+
],
|
| 183 |
+
"contract": "h2_sharpa",
|
| 184 |
+
"image_hw": [
|
| 185 |
+
168,
|
| 186 |
+
224
|
| 187 |
+
],
|
| 188 |
+
"task_text": "Facing the workbench, pick up the hammer lying on its stand with the right hand, roll it in the palm until the face points down, then hammer the nail into the wooden block and hold the hammer up.",
|
| 189 |
+
"inloop_mse": {
|
| 190 |
+
"task": "a15v3",
|
| 191 |
+
"split": "train10",
|
| 192 |
+
"every": 250,
|
| 193 |
+
"seed": 1234,
|
| 194 |
+
"weights": "ema",
|
| 195 |
+
"nmse_at_this_step": 0.0031,
|
| 196 |
+
"lowest_published": 6000,
|
| 197 |
+
"curve": {
|
| 198 |
+
"250": 0.1947,
|
| 199 |
+
"500": 0.0443,
|
| 200 |
+
"750": 0.0242,
|
| 201 |
+
"1000": 0.0168,
|
| 202 |
+
"1250": 0.0118,
|
| 203 |
+
"1500": 0.009,
|
| 204 |
+
"1750": 0.0074,
|
| 205 |
+
"2000": 0.0065,
|
| 206 |
+
"2250": 0.0058,
|
| 207 |
+
"2500": 0.0053,
|
| 208 |
+
"2750": 0.0049,
|
| 209 |
+
"3000": 0.0046,
|
| 210 |
+
"3250": 0.0043,
|
| 211 |
+
"3500": 0.0041,
|
| 212 |
+
"3750": 0.0039,
|
| 213 |
+
"4000": 0.0038,
|
| 214 |
+
"4250": 0.0036,
|
| 215 |
+
"4500": 0.0035,
|
| 216 |
+
"4750": 0.0034,
|
| 217 |
+
"5000": 0.0033,
|
| 218 |
+
"5250": 0.0033,
|
| 219 |
+
"5500": 0.0032,
|
| 220 |
+
"5750": 0.0031,
|
| 221 |
+
"6000": 0.0031
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
"reproducibility": {
|
| 225 |
+
"protocol": "https://github.com/zuo-kuangji/HumanWAM/blob/main/hb_training/REPRODUCIBILITY.md",
|
| 226 |
+
"protocol_commit": "dbd9bfe529e2a3229d01ad9e27b102cf9d821eec",
|
| 227 |
+
"training_seed": 42,
|
| 228 |
+
"inloop_mse_seed": 1234,
|
| 229 |
+
"aug_seed": 42,
|
| 230 |
+
"layout": {
|
| 231 |
+
"nodes": 1,
|
| 232 |
+
"gpus": 1,
|
| 233 |
+
"per_gpu_batch": 512,
|
| 234 |
+
"global_batch": 512,
|
| 235 |
+
"gradient_accumulation": 1,
|
| 236 |
+
"num_workers": 32,
|
| 237 |
+
"prefetch": 2
|
| 238 |
+
},
|
| 239 |
+
"environment": "hb-baselines (Python 3.12.1, torch 2.9.0+cu128, torchvision 0.24.0); training_records/pip_freeze_hb-baselines.txt",
|
| 240 |
+
"hardware": "NVIDIA GeForce RTX 4090 D (this checkpoint); trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512, no gradient accumulation; environment /root/.venvs/hb-baselines on team01 (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0)",
|
| 241 |
+
"code": "github.com/zuo-kuangji/Humanoid_benchmark bai @ bf40b9df05f60870ac9e4ab3acef11a871925a40 (git archive on team01 vePFS, HB_CODE_COMMIT)",
|
| 242 |
+
"determinism": "statistical reproducibility: same data commit, config, seed and layout give the same curves within run-to-run noise; GPU kernels are not bitwise deterministic",
|
| 243 |
+
"exceptions": [
|
| 244 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 245 |
+
"owner 2026-11-30 (「team01 这两张卡先装好环境,然后分担我们这边其他的任务,训练、评估都可以」): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)"
|
| 246 |
+
]
|
| 247 |
+
},
|
| 248 |
+
"inference": "Humanoid_benchmark evaluation/policy/ODE_MLP (evaluation/baselines/adapters.py, runtime.BaselinePolicy) loads this folder (config.json + model.pt); training_records/ in the last step has the exact code",
|
| 249 |
+
"resume_state_included": false
|
| 250 |
+
}
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/HB_CODE_COMMIT
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
bf40b9df05f60870ac9e4ab3acef11a871925a40
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/augmentation/hb_aug_v2.py
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""FM-DiT, DP (Diffusion Policy, DDPM-DiT), ACT, FLASH, ODE-MLP and ODE-DiT visuomotor baselines of the Humanoid
|
| 2 |
+
Benchmark.
|
| 3 |
+
|
| 4 |
+
FM-DiT, DP and ACT are ported from DextraVerse's imitation-learning core (`dextraverse/algorithms/il/models/
|
| 5 |
+
{fm_dit,ddpm_dit,act}.py` and their networks), FLASH and FM-DiT v2 (FLASH-Policy's own FM-DiT; `fm_dit_v2.py`, a separate entry from the
|
| 6 |
+
DextraVerse FM-DiT) from NTUMARS/FLASH-Policy @ f47e490 (`flash.py`), ODE-MLP and
|
| 7 |
+
ODE-DiT after ODE Policy's G1 port (github.com/NTUMARS/ODE-POLICY real-g1; networks in ode_nets.py), each in its
|
| 8 |
+
authors' own configuration; torch only. `train.py` trains one on a task's LeRobot v2.1 expert dataset through a robot
|
| 9 |
+
contract (`data.CONTRACTS`: G1 state44/action76 or H2 state78/action75); `runtime.BaselinePolicy` serves a checkpoint
|
| 10 |
+
to the G1 evaluation adapters (`evaluation/policy/{FMDiT,FMDiT_v2,DP,ACT,FLASH,ODEMLP,ODEDiT}/model.py`, via `adapters.py`) and
|
| 11 |
+
to the H2 adapter
|
| 12 |
+
(`debug/newton/h2_policy_adapters/baseline.py`). Usage and the environment: evaluation/README.md#baselines.
|
| 13 |
+
"""
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/act_nets.py
ADDED
|
@@ -0,0 +1,615 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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()
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/adapters.py
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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, ODEMLP, ODEDiT).
|
| 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 and the ODE policies also read the interface's
|
| 6 |
+
executed rows before the query (`past_actions`, `history_valid`: the token sent and the INSPIRE opening measured at
|
| 7 |
+
each earlier frame): FLASH for its polynomial history, the ODE policies the last one (frame t-1) as their start.
|
| 8 |
+
Output: the checkpoint's whole chunk (16 rows of action76, row 0 executed at the request's frame), `execution_steps`
|
| 9 |
+
rows of it executed before the next query (deploy.yml `config: execution_steps`, default the whole chunk; the runners
|
| 10 |
+
re-query after at most 12 rows), the request's seed for the sampling noise (FM-DiT, DP).
|
| 11 |
+
|
| 12 |
+
Deployment-side fixes (2026-11-28, B7 green diagnosis; both off unless a deploy.yml entry's `config` sets them, and
|
| 13 |
+
recorded in the server report, policy_server.json):
|
| 14 |
+
- `state_mask_span: <float>`: every state dimension whose training range (config.json stats max - min) is below the
|
| 15 |
+
threshold is fed the value its normalizer maps to 0 (-offset / scale of the policy's state normalizer), whatever
|
| 16 |
+
the live value. A near-constant training dimension (e.g. the B7 green left-hand DFX values, span 0.0014, scale 1406)
|
| 17 |
+
otherwise turns a 0.002 sim-side offset into an out-of-range input of -2.7.
|
| 18 |
+
- `start_history: <json file>` (FLASH, ODE): at a query with no valid executed row (the episode's first), one valid
|
| 19 |
+
history row is supplied instead of none: the file's `row76` token part with the hands measured at the query
|
| 20 |
+
(state44[29:41]; FLASH's and ODE's history rows carry the measured DFX6), as a training item one frame after the
|
| 21 |
+
episode start sees it. Relative paths resolve against the policy folder. Refused for a FLASH checkpoint trained
|
| 22 |
+
with first_history 'frame0' (2026-11-29), which does the same by itself: at a query with no valid executed row it
|
| 23 |
+
gets one valid row = its recorded start token (the median frame-0 token of its training episodes) + the measured
|
| 24 |
+
DFX6 of the query, exactly the row its training used at each episode's first frame (flash.py; no config needed).
|
| 25 |
+
"""
|
| 26 |
+
from __future__ import annotations
|
| 27 |
+
|
| 28 |
+
import hashlib
|
| 29 |
+
import json
|
| 30 |
+
from pathlib import Path
|
| 31 |
+
|
| 32 |
+
import numpy as np
|
| 33 |
+
|
| 34 |
+
from .runtime import BaselinePolicy
|
| 35 |
+
|
| 36 |
+
WIDTH = {'sonic_dfx6': 76}
|
| 37 |
+
HANDS = slice(29, 41) # state44: the measured left and right DFX6, the hands of an executed history row
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def require(condition, message):
|
| 41 |
+
if not condition:
|
| 42 |
+
raise RuntimeError(message)
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def make_model(policy_name: str):
|
| 46 |
+
class Model:
|
| 47 |
+
history_length = 1 # the current head and chest frames only
|
| 48 |
+
video_frames = 0
|
| 49 |
+
|
| 50 |
+
def __init__(self, cfg):
|
| 51 |
+
self.policy = BaselinePolicy(cfg['checkpoint_path'], device=cfg.get('device', 'cuda:0'),
|
| 52 |
+
policy=policy_name, robot='g1')
|
| 53 |
+
contract = self.policy.contract
|
| 54 |
+
require(cfg['action_space'] in WIDTH and contract['action_space'] == cfg['action_space']
|
| 55 |
+
and self.policy.action_dim == WIDTH[cfg['action_space']] and self.policy.state_dim == 44
|
| 56 |
+
and list(self.policy.cameras) == ['ego_view', 'chest'],
|
| 57 |
+
f"checkpoint contract {contract['name']} does not serve {cfg['action_space']}")
|
| 58 |
+
extra = cfg.get('config') or {}
|
| 59 |
+
if extra.get('check_task', True):
|
| 60 |
+
require(cfg['task'].strip() == (self.policy.task_text or '').strip(),
|
| 61 |
+
f'task text {cfg["task"]!r} is not the training task {self.policy.task_text!r}')
|
| 62 |
+
self.execution_steps = int(extra.get('execution_steps') or self.policy.horizon)
|
| 63 |
+
require(1 <= self.execution_steps <= self.policy.horizon, f'execution_steps {self.execution_steps}')
|
| 64 |
+
self.uses_history = self.policy.name == 'flash' or self.policy.uses_previous
|
| 65 |
+
self.info = dict(self.policy.info(), execution_steps=self.execution_steps,
|
| 66 |
+
inputs='current frames + state44' + (' + executed-action history' if self.uses_history
|
| 67 |
+
else ''))
|
| 68 |
+
self.state_mask = None
|
| 69 |
+
if extra.get('state_mask_span') is not None:
|
| 70 |
+
self.state_mask = self._state_mask(float(extra['state_mask_span']))
|
| 71 |
+
self.start_token = None
|
| 72 |
+
if extra.get('start_history'):
|
| 73 |
+
self.start_token = self._start_history(extra['start_history'], Path(cfg['folder']))
|
| 74 |
+
|
| 75 |
+
def _state_mask(self, threshold):
|
| 76 |
+
stats = self.policy.config['stats']['state']
|
| 77 |
+
lo, hi = np.asarray(stats['min'], np.float64), np.asarray(stats['max'], np.float64)
|
| 78 |
+
dims = np.flatnonzero(hi - lo < threshold)
|
| 79 |
+
norm = getattr(self.policy.model, 'state_norm', None)
|
| 80 |
+
require(norm is not None and hasattr(norm, 'scale') and hasattr(norm, 'offset'),
|
| 81 |
+
f'state_mask_span: {self.policy.name} has no affine state normalizer')
|
| 82 |
+
scale = norm.scale.detach().float().cpu().numpy().astype(np.float64)
|
| 83 |
+
offset = norm.offset.detach().float().cpu().numpy().astype(np.float64)
|
| 84 |
+
fill = (-offset / scale)[dims].astype(np.float32)
|
| 85 |
+
check = fill.astype(np.float64) * scale[dims] + offset[dims]
|
| 86 |
+
require(np.all(np.abs(check) < 1e-3), f'state_mask_span: fill values do not normalize to 0 ({check})')
|
| 87 |
+
self.info['state_mask'] = dict(
|
| 88 |
+
switch='state_mask_span', span_threshold=threshold, dims=[int(d) for d in dims],
|
| 89 |
+
train_min=[float(lo[d]) for d in dims], train_max=[float(hi[d]) for d in dims],
|
| 90 |
+
fill=[float(f) for f in fill], normalized_fill=[float(c) for c in check],
|
| 91 |
+
rule='state dims with training max - min < span_threshold are fed the value their state normalizer '
|
| 92 |
+
'maps to 0, whatever the live value (deployment-side exception, 2026-11-28)')
|
| 93 |
+
return dims, fill
|
| 94 |
+
|
| 95 |
+
def _start_history(self, spec, folder):
|
| 96 |
+
require(self.uses_history, f'start_history: {self.policy.name} reads no executed-action history')
|
| 97 |
+
require(getattr(self.policy.model, 'first_history_source', None) is None,
|
| 98 |
+
"start_history: this FLASH checkpoint was trained with first_history 'frame0' and carries its "
|
| 99 |
+
'own episode-start row (flash.py); the deployment-side start row is for zero-start checkpoints')
|
| 100 |
+
path = Path(spec) if Path(spec).is_absolute() else folder/spec
|
| 101 |
+
data = json.loads(path.read_text())
|
| 102 |
+
row = np.asarray(data['row76'], np.float32)
|
| 103 |
+
require(row.shape == (self.policy.action_dim,) and np.isfinite(row).all(),
|
| 104 |
+
f'start_history {path}: row76 has shape {row.shape}')
|
| 105 |
+
self.info['start_history'] = dict(
|
| 106 |
+
switch='start_history', file=str(path), sha256=hashlib.sha256(path.read_bytes()).hexdigest(),
|
| 107 |
+
dataset=data.get('dataset'), token_absmax=float(np.abs(row[:64]).max()),
|
| 108 |
+
token=[float(x) for x in row[:64]], hands='measured DFX6 of the query (state44[29:41]), as the '
|
| 109 |
+
'history rows of training and of the interface carry the measured opening; the file\'s hands unused',
|
| 110 |
+
rule='a query with no valid executed row gets this one valid row (has_history True / ODE start = '
|
| 111 |
+
'this row) instead of the zero start (deployment-side exception, 2026-11-28)')
|
| 112 |
+
return row[:64].copy()
|
| 113 |
+
|
| 114 |
+
def get_action(self, obs):
|
| 115 |
+
state = obs['state']
|
| 116 |
+
if self.state_mask is not None:
|
| 117 |
+
dims, fill = self.state_mask
|
| 118 |
+
state = np.array(state, np.float32, copy=True).reshape(-1)
|
| 119 |
+
state[dims] = fill
|
| 120 |
+
if self.uses_history:
|
| 121 |
+
past, valid = obs['past_actions'], obs['history_valid']
|
| 122 |
+
if self.start_token is not None and not (np.asarray(valid, np.float32).reshape(-1) > .5).any():
|
| 123 |
+
hands = np.asarray(obs['state'], np.float32).reshape(-1)[HANDS] # measured, never masked
|
| 124 |
+
past = np.concatenate([self.start_token, hands])[None].astype(np.float32)
|
| 125 |
+
valid = np.ones(1, np.float32)
|
| 126 |
+
# a 'frame0' FLASH (flash.py, 2026-11-29): no valid row -> its frame-0 row from the measured, unmasked
|
| 127 |
+
# state (the stored start token + state44[29:41]), as training; unchanged for every other checkpoint
|
| 128 |
+
past, valid = self.policy.start_history(obs['state'], past, valid)
|
| 129 |
+
action, _ = self.policy.predict(obs['images'], state, seed=obs['seed'],
|
| 130 |
+
past_actions=past, history_valid=valid)
|
| 131 |
+
else:
|
| 132 |
+
action, _ = self.policy.predict(obs['images'], state, seed=obs['seed'])
|
| 133 |
+
return dict(action=action, execution_steps=self.execution_steps,
|
| 134 |
+
sampling_steps=self.policy.sampling_steps)
|
| 135 |
+
|
| 136 |
+
Model.__name__ = Model.__qualname__ = f'Model_{policy_name}'
|
| 137 |
+
return Model
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_adapter.py
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
first=policy.first_history_source) # a 'frame0' checkpoint's episode-start row
|
| 83 |
+
ds._maps, ds._pid = maps, __import__('os').getpid()
|
| 84 |
+
for t in ts:
|
| 85 |
+
k = int(np.nonzero(ds.index == s + t)[0][0])
|
| 86 |
+
images, state, _, hist, has, dense, dense_valid = ds[k]
|
| 87 |
+
idx = np.arange(t - HISTORY_ROWS, t)
|
| 88 |
+
past = lowdim['history'][s + np.clip(idx, 0, n - 1)].astype(np.float32)
|
| 89 |
+
valid = (idx >= 0).astype(np.float32)
|
| 90 |
+
past[idx < 0] = 0.0
|
| 91 |
+
obs = dict(images={c: frames[c][t] for c in base.cameras}, state=lowdim['state'][s + t],
|
| 92 |
+
past_actions=past, history_valid=valid, seed=0, frame=t, history_frame=t)
|
| 93 |
+
a_chunk = adapter.get_action(obs)['action']
|
| 94 |
+
with torch.inference_mode():
|
| 95 |
+
img = images[None].to(a.device).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 96 |
+
b_chunk, _ = policy.predict(img, state[None].to(a.device), hist[None].to(a.device),
|
| 97 |
+
has[None].to(a.device))
|
| 98 |
+
b_chunk = b_chunk[0].float().cpu().numpy()
|
| 99 |
+
diff = float(np.abs(a_chunk - b_chunk).max())
|
| 100 |
+
worst = max(worst, diff)
|
| 101 |
+
nrm = policy.action_norm
|
| 102 |
+
err = (nrm.normalize(torch.from_numpy(a_chunk).to(a.device)) -
|
| 103 |
+
nrm.normalize(dense.to(a.device))).pow(2).cpu().numpy()[dense_valid.numpy()]
|
| 104 |
+
report.append(dict(episode=ep, t=t, has_history=bool(has), max_abs_diff=diff,
|
| 105 |
+
nmse_vs_recorded=float(err.mean()),
|
| 106 |
+
token_cos_row0=float(np.dot(a_chunk[0, :64], dense[0, :64].numpy()) /
|
| 107 |
+
(np.linalg.norm(a_chunk[0, :64]) *
|
| 108 |
+
np.linalg.norm(dense[0, :64].numpy()) + 1e-12))))
|
| 109 |
+
ok = worst == 0.0
|
| 110 |
+
print(json.dumps(dict(ok=ok, max_abs_diff=worst, checkpoint=str(a.checkpoint), queries=report), indent=1))
|
| 111 |
+
sys.exit(0 if ok else 1)
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
if __name__ == '__main__':
|
| 115 |
+
main()
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/check_flash_first_history.py
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
| 1 |
+
"""CPU check of FLASH's episode-start history (flash.py `first_history`, owner 2026-11-29), no dataset or GPU needed:
|
| 2 |
+
|
| 3 |
+
<baselines env>/bin/python -I evaluation/baselines/check_flash_first_history.py
|
| 4 |
+
|
| 5 |
+
On synthetic episodes of the G1 contract g1_sonic_cmd and the H2 contract h2_sharpa (feature names as in their
|
| 6 |
+
meta/info.json, the H2 hand targets in another order than the state's hands) and tiny FLASH networks it checks:
|
| 7 |
+
|
| 8 |
+
(a) 'frame0' training items: at an episode's first frame has_history is True and the history is h0 replicated, h0
|
| 9 |
+
built from the frame-0 observation (G1: the median frame-0 token of the training episodes + state44[29:41]; H2:
|
| 10 |
+
observation.state75 in action75 order, the same mapping as h2_sharpa_policy_eval.py's state_to_action), never
|
| 11 |
+
from the anchor's own action row; the next frame keeps the edge padding of the executed row 0;
|
| 12 |
+
(b) deployment = training at the first query: the G1 adapter (evaluation/baselines/adapters.py) and the H2 adapter
|
| 13 |
+
(debug/newton/h2_policy_adapters/baseline.py; with no valid row and with the runner's --first-history state row)
|
| 14 |
+
build the identical history and return the training path's chunk bit for bit, from a saved checkpoint;
|
| 15 |
+
(c) a checkpoint whose config has no `first_history` (every FLASH trained before 2026-11-29) is 'zero': no row means
|
| 16 |
+
has_history False, the zero start, in the dataset, the runtime and the adapters;
|
| 17 |
+
(d) train.py's settings of an --init-from continuation (flash_run_settings): a 'zero' parent (no key) continues as
|
| 18 |
+
'zero' by default, a 'frame0' parent's row is reused (not recomputed), an explicit --flash first_history that
|
| 19 |
+
differs from the parent is recorded as a change, a training from scratch is 'frame0'; the policy-configuration
|
| 20 |
+
check accepts the inherited settings.
|
| 21 |
+
Prints one JSON line; exits 1 on a failure.
|
| 22 |
+
"""
|
| 23 |
+
from __future__ import annotations
|
| 24 |
+
|
| 25 |
+
import importlib.util
|
| 26 |
+
import json
|
| 27 |
+
import os
|
| 28 |
+
from pathlib import Path
|
| 29 |
+
import sys
|
| 30 |
+
import tempfile
|
| 31 |
+
|
| 32 |
+
import numpy as np
|
| 33 |
+
|
| 34 |
+
HERE = Path(__file__).resolve().parent
|
| 35 |
+
REPO = HERE.parents[1]
|
| 36 |
+
if str(HERE.parent) not in sys.path:
|
| 37 |
+
sys.path.insert(0, str(HERE.parent))
|
| 38 |
+
|
| 39 |
+
HW = (32, 32)
|
| 40 |
+
TINY = dict(hidden_dim=32, num_layers=1, num_heads=2, mlp_ratio=2.0, dropout=0.0, time_embed_dim=16,
|
| 41 |
+
num_inference_steps=1, backbone='resnet18', backbone_weights=None, backbone_norm='group')
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def features_of(contract, hand_order):
|
| 45 |
+
"""meta/info.json features of the contract's columns: G1 and H2 joint names (H2 action.hands in `hand_order`)."""
|
| 46 |
+
body = [f'joint_{k}' for k in range(31)]
|
| 47 |
+
hands = [f'hand_{k}' for k in range(44)]
|
| 48 |
+
f = {'observation.projected_gravity': dict(shape=[3], names=['x', 'y', 'z']),
|
| 49 |
+
'action.motion_token': dict(shape=[64], names='motion_token')}
|
| 50 |
+
if contract.robot == 'g1':
|
| 51 |
+
f['observation.state'] = dict(shape=[41], names=[f'g1_{k}' for k in range(41)])
|
| 52 |
+
for side in ('left', 'right'):
|
| 53 |
+
names = [f'{side}_{d}' for d in ('pinky', 'ring', 'middle', 'index', 'thumb_bend', 'thumb_rotation')]
|
| 54 |
+
f[f'observation.inspire_{side}_hand_state'] = dict(shape=[6], names=names)
|
| 55 |
+
f[f'teleop.inspire_{side}_hand_cmd'] = dict(shape=[6], names=names)
|
| 56 |
+
else:
|
| 57 |
+
f['observation.state'] = dict(shape=[75], names=body + hands)
|
| 58 |
+
f['action.body_target'] = dict(shape=[31], names=body)
|
| 59 |
+
f['action.hands'] = dict(shape=[44], names=[hands[k] for k in hand_order])
|
| 60 |
+
return f
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def synthetic_lowdim(contract, rng, lengths=(9, 12, 10)):
|
| 64 |
+
n = sum(lengths)
|
| 65 |
+
state = rng.normal(size=(n, contract.state_dim)).astype(np.float32)
|
| 66 |
+
action = rng.normal(size=(n, contract.action_dim)).astype(np.float32)
|
| 67 |
+
history = rng.normal(size=(n, contract.action_dim)).astype(np.float32) if contract.history is not None else action
|
| 68 |
+
starts = np.cumsum([0, *lengths[:-1]])
|
| 69 |
+
return dict(state=state, action=action, history=history, starts=starts, lengths=np.asarray(lengths),
|
| 70 |
+
episodes=list(range(len(lengths))), tasks=['synthetic'])
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def main():
|
| 74 |
+
import torch
|
| 75 |
+
from baselines.data import (CONTRACTS, FlashChunkDataset, first_history_layout, first_history_start,
|
| 76 |
+
statistics)
|
| 77 |
+
from baselines.flash import FLASH_DEFAULTS, FLASH_POLICY_FIELDS, first_history_source, flash_settings
|
| 78 |
+
from baselines.policies import PolicyConfig, build_policy
|
| 79 |
+
from baselines.runtime import BaselinePolicy, save_checkpoint
|
| 80 |
+
from baselines.adapters import make_model
|
| 81 |
+
spec = importlib.util.spec_from_file_location('hb_baselines_train', HERE / 'train.py')
|
| 82 |
+
train = importlib.util.module_from_spec(spec)
|
| 83 |
+
spec.loader.exec_module(train)
|
| 84 |
+
|
| 85 |
+
spec = importlib.util.spec_from_file_location('h2_baseline', REPO / 'debug/newton/h2_policy_adapters/baseline.py')
|
| 86 |
+
h2_adapter = importlib.util.module_from_spec(spec)
|
| 87 |
+
spec.loader.exec_module(h2_adapter)
|
| 88 |
+
|
| 89 |
+
torch.manual_seed(0)
|
| 90 |
+
rng = np.random.default_rng(0)
|
| 91 |
+
report, failures = {}, []
|
| 92 |
+
|
| 93 |
+
def check(ok, what):
|
| 94 |
+
if not ok:
|
| 95 |
+
failures.append(what)
|
| 96 |
+
return bool(ok)
|
| 97 |
+
|
| 98 |
+
tmp = Path(tempfile.mkdtemp(prefix='flash_first_history_'))
|
| 99 |
+
for name in ('g1_sonic_cmd', 'h2_sharpa'):
|
| 100 |
+
contract = CONTRACTS[name]
|
| 101 |
+
r = report[name] = {}
|
| 102 |
+
hand_order = rng.permutation(44)
|
| 103 |
+
features = features_of(contract, hand_order)
|
| 104 |
+
layout = first_history_layout(contract, features)
|
| 105 |
+
if contract.robot == 'g1':
|
| 106 |
+
want = [-1] * 64 + list(range(29, 41))
|
| 107 |
+
else: # h2_sharpa_policy_eval.py: state_to_action from the dataset names
|
| 108 |
+
names = features['observation.state']['names']
|
| 109 |
+
want = [names.index(n) for n in features['action.body_target']['names'] + features['action.hands']['names']]
|
| 110 |
+
r['layout_as_expected'] = check(layout == want, f'{name}: layout')
|
| 111 |
+
bad = json.loads(json.dumps(features))
|
| 112 |
+
if contract.robot == 'h2_sharpa':
|
| 113 |
+
bad['action.hands']['names'][0] = 'no_such_joint'
|
| 114 |
+
else:
|
| 115 |
+
bad['observation.inspire_left_hand_state']['names'] = None # direct state columns need no names
|
| 116 |
+
try:
|
| 117 |
+
first_history_layout(contract, bad)
|
| 118 |
+
r['unmatched_name'] = 'accepted' if contract.robot == 'g1' else 'NOT REFUSED'
|
| 119 |
+
check(contract.robot == 'g1', f'{name}: an unmatched joint name was accepted')
|
| 120 |
+
except ValueError:
|
| 121 |
+
r['unmatched_name'] = 'refused'
|
| 122 |
+
check(contract.robot == 'h2_sharpa', f'{name}: refused')
|
| 123 |
+
|
| 124 |
+
lowdim = synthetic_lowdim(contract, rng)
|
| 125 |
+
train_pos = [0, 1]
|
| 126 |
+
value = first_history_start(lowdim, layout, train_pos)
|
| 127 |
+
if contract.robot == 'g1':
|
| 128 |
+
median = np.median(lowdim['history'][lowdim['starts'][train_pos], :64].astype(np.float64), axis=0)
|
| 129 |
+
check(np.allclose(value[:64], median) and not any(value[64:]), f'{name}: start token')
|
| 130 |
+
settings = dict(FLASH_DEFAULTS, first_history_state=layout, first_history_value=value)
|
| 131 |
+
cfg = PolicyConfig.from_dict(dict(policy='flash', n_cameras=2, state_dim=contract.state_dim,
|
| 132 |
+
action_dim=contract.action_dim, **dict(FLASH_POLICY_FIELDS, **TINY),
|
| 133 |
+
horizon=settings['rows'], extra=dict(flash=settings)))
|
| 134 |
+
policy = build_policy(cfg, pretrained=False).eval()
|
| 135 |
+
policy.fit_normalizers(statistics(lowdim, np.arange(len(lowdim['state']))))
|
| 136 |
+
fs = flash_settings(cfg)
|
| 137 |
+
H_ext = fs['poly_prefix'] + fs['n_action'] + fs['poly_suffix'] + 2 * fs['fit_pad']
|
| 138 |
+
offsets = (np.arange(H_ext) - (fs['fit_pad'] + fs['poly_prefix'])) * fs['stride']
|
| 139 |
+
total = int(lowdim['lengths'].sum())
|
| 140 |
+
maps = {c: rng.integers(0, 256, size=(total, *HW, 3), dtype=np.uint8) for c in contract.cameras}
|
| 141 |
+
|
| 142 |
+
def dataset(first):
|
| 143 |
+
ds = FlashChunkDataset(lowdim, {}, contract.cameras, HW, [0, 1, 2], offsets=offsets,
|
| 144 |
+
stride=fs['stride'], n_history=fs['n_history'], rows=fs['rows'],
|
| 145 |
+
with_dense=True, first=first)
|
| 146 |
+
ds._maps, ds._pid = maps, os.getpid()
|
| 147 |
+
return ds
|
| 148 |
+
|
| 149 |
+
# (a) training items of a 'frame0' FLASH
|
| 150 |
+
ds = dataset(first_history_source(fs))
|
| 151 |
+
s0 = int(lowdim['starts'][2]) # a held-out episode: h0 still from its own frame-0 state
|
| 152 |
+
_, _, _, hist0, has0, *_ = ds[int(np.nonzero(ds.index == s0)[0][0])]
|
| 153 |
+
state0 = lowdim['state'][s0]
|
| 154 |
+
h0 = np.where(np.asarray(layout) >= 0, state0[np.maximum(layout, 0)], value).astype(np.float32)
|
| 155 |
+
r['frame0_t0_has_history'] = check(bool(has0), f'{name}: has_history at t=0')
|
| 156 |
+
r['frame0_t0_is_h0'] = check(np.array_equal(hist0.numpy(), np.repeat(h0[None], fs['n_history'], 0)),
|
| 157 |
+
f'{name}: history at t=0 is h0 replicated')
|
| 158 |
+
check(not np.allclose(h0, lowdim['action'][s0]) and not np.allclose(h0, lowdim['history'][s0]),
|
| 159 |
+
f'{name}: h0 equals the anchor row')
|
| 160 |
+
_, _, _, hist1, has1, *_ = ds[int(np.nonzero(ds.index == s0 + 1)[0][0])]
|
| 161 |
+
r['frame0_t1_edge_padding'] = check(bool(has1) and np.array_equal(
|
| 162 |
+
hist1.numpy(), np.repeat(lowdim['history'][s0][None], fs['n_history'], 0)), f'{name}: t=1 edge padding')
|
| 163 |
+
plain = ds.plain()
|
| 164 |
+
plain._maps, plain._pid = maps, os.getpid()
|
| 165 |
+
check(all(torch.equal(a, b) for a, b in zip(ds[0][2:], plain[0][2:])), f'{name}: plain() differs')
|
| 166 |
+
|
| 167 |
+
# (b) deployment from a saved checkpoint
|
| 168 |
+
def save(pol, folder):
|
| 169 |
+
config = dict(policy=pol.cfg.to_dict(), contract=contract.to_dict(), image_hw=list(HW),
|
| 170 |
+
task_text='synthetic', dataset=dict(name='synthetic'), training={}, step=0)
|
| 171 |
+
save_checkpoint(folder, pol, config)
|
| 172 |
+
return folder
|
| 173 |
+
|
| 174 |
+
def train_chunk(pol, item):
|
| 175 |
+
images, state, _, hist, has, *_ = item
|
| 176 |
+
with torch.inference_mode():
|
| 177 |
+
img = images[None].permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 178 |
+
out, _ = pol.predict(img, state[None], hist[None], has[None])
|
| 179 |
+
return out[0].numpy()
|
| 180 |
+
|
| 181 |
+
def first_query(pol_dir, item_state, s):
|
| 182 |
+
"""Chunks of the deployed adapter at the first query of episode starting at s (no executed row)."""
|
| 183 |
+
images = {c: maps[c][s] for c in contract.cameras}
|
| 184 |
+
past, valid = np.zeros((40, contract.action_dim), np.float32), np.zeros(40, np.float32)
|
| 185 |
+
base = BaselinePolicy(pol_dir, device='cpu', policy='flash')
|
| 186 |
+
hist, has = base.history(*base.start_history(item_state, past, valid))
|
| 187 |
+
out = dict(history=hist[0].numpy(), has=bool(has[0]))
|
| 188 |
+
if contract.robot == 'g1':
|
| 189 |
+
adapter = make_model('flash')(dict(checkpoint_path=str(pol_dir), device='cpu', action_space='sonic_dfx6',
|
| 190 |
+
task='synthetic', config={}))
|
| 191 |
+
out['chunks'] = [adapter.get_action(dict(images=images, state=item_state, past_actions=past,
|
| 192 |
+
history_valid=valid, seed=0))['action']]
|
| 193 |
+
else:
|
| 194 |
+
adapter = h2_adapter.Policy(dict(checkpoint=str(pol_dir), policy='flash'), 'cpu')
|
| 195 |
+
runner = past.copy(), valid.copy() # --first-history state: one valid row, state75 in action75 order
|
| 196 |
+
names = features['observation.state']['names']
|
| 197 |
+
state_to_action = np.array([names.index(n) for n in features['action.body_target']['names']
|
| 198 |
+
+ features['action.hands']['names']])
|
| 199 |
+
runner[0][-1], runner[1][-1] = np.asarray(item_state, np.float32)[:75][state_to_action], 1.
|
| 200 |
+
out['runner_row_is_h0'] = np.array_equal(runner[0][-1], base.model.first_history_row(item_state))
|
| 201 |
+
out['chunks'] = [adapter.act(images, item_state, past, valid, 0)[0],
|
| 202 |
+
adapter.act(images, item_state, *runner, 0)[0]]
|
| 203 |
+
return out
|
| 204 |
+
|
| 205 |
+
folder = save(policy, tmp / f'{name}_frame0')
|
| 206 |
+
item = ds[int(np.nonzero(ds.index == s0)[0][0])]
|
| 207 |
+
dep = first_query(folder, lowdim['state'][s0], s0)
|
| 208 |
+
loaded = BaselinePolicy(folder, device='cpu', policy='flash').model
|
| 209 |
+
ref = train_chunk(loaded, item)
|
| 210 |
+
r['deploy_history_equals_training'] = check(dep['has'] and np.array_equal(dep['history'], item[3].numpy()),
|
| 211 |
+
f'{name}: deployment history differs from training')
|
| 212 |
+
r['deploy_chunks_equal_training'] = check(all(np.array_equal(c, ref) for c in dep['chunks']),
|
| 213 |
+
f'{name}: deployed chunk differs from the training path')
|
| 214 |
+
if 'runner_row_is_h0' in dep:
|
| 215 |
+
r['runner_first_history_state_row_is_h0'] = check(dep['runner_row_is_h0'], f'{name}: runner row')
|
| 216 |
+
|
| 217 |
+
# (c) a config without first_history = 'zero'
|
| 218 |
+
old = {k: v for k, v in settings.items() if not k.startswith('first_history')}
|
| 219 |
+
cfg0 = PolicyConfig.from_dict(dict(cfg.to_dict(), extra=dict(flash=old)))
|
| 220 |
+
policy0 = build_policy(cfg0, pretrained=False).eval()
|
| 221 |
+
policy0.load_state_dict(policy.state_dict())
|
| 222 |
+
r['no_key_is_zero'] = check(policy0.first_history == 'zero' and policy0.first_history_source is None,
|
| 223 |
+
f'{name}: missing key is not zero')
|
| 224 |
+
ds0 = dataset(policy0.first_history_source)
|
| 225 |
+
item0 = ds0[int(np.nonzero(ds0.index == s0)[0][0])]
|
| 226 |
+
r['zero_t0_has_history'] = bool(item0[4])
|
| 227 |
+
check(not bool(item0[4]) and not item0[3].abs().sum(), f'{name}: zero start item')
|
| 228 |
+
folder0 = save(policy0, tmp / f'{name}_zero')
|
| 229 |
+
check('first_history' not in json.loads((folder0 / 'config.json').read_text())['policy']['extra']['flash'],
|
| 230 |
+
f'{name}: the zero checkpoint config has the key')
|
| 231 |
+
dep0 = first_query(folder0, lowdim['state'][s0], s0)
|
| 232 |
+
ref0 = train_chunk(BaselinePolicy(folder0, device='cpu', policy='flash').model, item0)
|
| 233 |
+
r['zero_deploy_has_history'] = dep0['has']
|
| 234 |
+
r['zero_deploy_chunks_equal_training'] = check(
|
| 235 |
+
not dep0['has'] and np.array_equal(dep0['chunks'][0], ref0), f'{name}: zero deployment')
|
| 236 |
+
# (the H2 runner's --first-history state row on a zero checkpoint stays the 2026-11-28 deployment-side
|
| 237 |
+
# exception: one valid row, not the zero start; not compared)
|
| 238 |
+
r['frame0_vs_zero_chunk_differs'] = bool(not np.array_equal(ref, ref0))
|
| 239 |
+
|
| 240 |
+
# (d) continuation settings (train.py), the parents' configs as saved above
|
| 241 |
+
def no_recompute():
|
| 242 |
+
raise AssertionError('the frame-0 row was recomputed')
|
| 243 |
+
|
| 244 |
+
def fresh():
|
| 245 |
+
return layout, [v + 1.0 for v in value] # a recomputation would give other values
|
| 246 |
+
|
| 247 |
+
def run(given, parent, frame0_row):
|
| 248 |
+
st, rec = train.flash_run_settings(given, parent, frame0_row)
|
| 249 |
+
pol = dict(cfg.to_dict(), extra=dict(flash=st))
|
| 250 |
+
return st, rec, pol
|
| 251 |
+
|
| 252 |
+
p_zero = json.loads((folder0 / 'config.json').read_text())['policy']
|
| 253 |
+
p_frame0 = json.loads((folder / 'config.json').read_text())['policy']
|
| 254 |
+
st, rec, pol = run({}, p_zero['extra']['flash'], no_recompute)
|
| 255 |
+
r['cont_zero_parent_default'] = st['first_history']
|
| 256 |
+
check(st['first_history'] == 'zero' and st['first_history_state'] is None and not rec['changed']
|
| 257 |
+
and rec['source'].startswith('inherited') and train.same_policy_config(p_zero, pol),
|
| 258 |
+
f'{name}: continuation of a zero parent is not zero')
|
| 259 |
+
policy_c = build_policy(PolicyConfig.from_dict(pol), pretrained=False)
|
| 260 |
+
check(policy_c.first_history == 'zero', f'{name}: continued zero policy')
|
| 261 |
+
check(train.same_policy_config(p_zero, pol, ignore_first_history=False), f'{name}: resume check zero')
|
| 262 |
+
st, rec, pol = run({}, p_frame0['extra']['flash'], no_recompute)
|
| 263 |
+
r['cont_frame0_parent_default'] = st['first_history']
|
| 264 |
+
check(st['first_history'] == 'frame0' and st['first_history_state'] == layout
|
| 265 |
+
and st['first_history_value'] == value and not rec['changed'] and train.same_policy_config(p_frame0, pol),
|
| 266 |
+
f'{name}: continuation of a frame0 parent')
|
| 267 |
+
st, rec, pol = run({'first_history': 'frame0'}, p_zero['extra']['flash'], fresh)
|
| 268 |
+
r['cont_zero_parent_explicit_frame0'] = dict(this=st['first_history'], changed=rec['changed'])
|
| 269 |
+
check(st['first_history'] == 'frame0' and rec['changed'] and 'note' in rec
|
| 270 |
+
and rec['source'].startswith('--flash') and not train.same_policy_config(p_zero, pol)
|
| 271 |
+
and train.same_policy_config(p_zero, pol, ignore_first_history=True),
|
| 272 |
+
f'{name}: explicit switch not recorded')
|
| 273 |
+
st, rec, pol = run({'first_history': 'zero'}, p_frame0['extra']['flash'], no_recompute)
|
| 274 |
+
check(st['first_history'] == 'zero' and st['first_history_state'] is None and rec['changed'],
|
| 275 |
+
f'{name}: explicit zero on a frame0 parent')
|
| 276 |
+
st, rec, _ = run({}, None, fresh)
|
| 277 |
+
r['scratch_default'] = st['first_history']
|
| 278 |
+
check(st['first_history'] == 'frame0' and rec is None and st['first_history_state'] == layout,
|
| 279 |
+
f'{name}: from-scratch default')
|
| 280 |
+
print(json.dumps(dict(ok=not failures, failures=failures, **report)))
|
| 281 |
+
sys.exit(1 if failures else 0)
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
if __name__ == '__main__':
|
| 285 |
+
main()
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/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, first_history='zero') # the episode-start row is not compared here
|
| 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 __name__ == '__main__':
|
| 141 |
+
main()
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/data.py
ADDED
|
@@ -0,0 +1,509 @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"""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 |
+
# the executed rows a policy conditions on (FLASH's history, the ODE policies' row before t), when they are not the
|
| 44 |
+
# action rows: g1_sonic_cmd trains on the commanded hands but conditions on the measured ones, as at deployment
|
| 45 |
+
# (the interface's past_actions = the token sent + the measured DFX6)
|
| 46 |
+
history: tuple | None = None
|
| 47 |
+
|
| 48 |
+
@property
|
| 49 |
+
def history_columns(self) -> tuple:
|
| 50 |
+
return self.history if self.history is not None else self.action
|
| 51 |
+
|
| 52 |
+
@property
|
| 53 |
+
def state_dim(self) -> int:
|
| 54 |
+
return sum(end - start for _, start, end in self.state)
|
| 55 |
+
|
| 56 |
+
@property
|
| 57 |
+
def action_dim(self) -> int:
|
| 58 |
+
return sum(end - start for _, start, end in self.action)
|
| 59 |
+
|
| 60 |
+
def to_dict(self, cameras=None) -> dict:
|
| 61 |
+
out = dict(name=self.name, robot=self.robot, cameras=list(cameras or self.cameras),
|
| 62 |
+
state=[list(s) for s in self.state], action=[list(a) for a in self.action],
|
| 63 |
+
state_dim=self.state_dim, action_dim=self.action_dim, action_space=self.action_space,
|
| 64 |
+
body_dims=self.body_dims)
|
| 65 |
+
if self.history is not None:
|
| 66 |
+
out['history'] = [list(h) for h in self.history]
|
| 67 |
+
return out
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
_G1_HANDS = (('observation.inspire_left_hand_state', 0, 6), ('observation.inspire_right_hand_state', 0, 6))
|
| 71 |
+
# the INSPIRE commands the expert sent (same [0, 1] DFX6 openings, same finger order; thumb pitch / yaw = the measured
|
| 72 |
+
# thumb bend / rotation). Owner 2026-11-27: every policy learns the commanded actions, hands included, never measured
|
| 73 |
+
# states (a closing hand stops on the object while its command keeps closing: b6 holds 0.13-0.34 tighter).
|
| 74 |
+
_G1_HAND_CMDS = (('teleop.inspire_left_hand_cmd', 0, 6), ('teleop.inspire_right_hand_cmd', 0, 6))
|
| 75 |
+
_G1_STATE = (('observation.state', 0, 29), *_G1_HANDS, ('observation.projected_gravity', 0, 3))
|
| 76 |
+
_H2_STATE = (('observation.state', 0, 75), ('observation.projected_gravity', 0, 3))
|
| 77 |
+
_H2_ACTION = (('action.body_target', 0, 31), ('action.hands', 0, 44))
|
| 78 |
+
# body_dims: G1 observation.state[0:29] are the 29 body joints; H2 observation.state[0:31] are legs 6+6, waist 3,
|
| 79 |
+
# head 2, arms 7+7 (docs/unitree_h2_sharpa.md), then the Sharpa hands.
|
| 80 |
+
CONTRACTS = {c.name: c for c in (
|
| 81 |
+
Contract('g1_sonic_dfx6', 'g1', ('ego_view', 'chest'), _G1_STATE,
|
| 82 |
+
(('action.motion_token', 0, 64), *_G1_HANDS), action_space='sonic_dfx6', body_dims=29),
|
| 83 |
+
# owner 2026-11-27: the default G1 contract of every new training (the same sonic_dfx6 interface and 76 values)
|
| 84 |
+
Contract('g1_sonic_cmd', 'g1', ('ego_view', 'chest'), _G1_STATE,
|
| 85 |
+
(('action.motion_token', 0, 64), *_G1_HAND_CMDS), action_space='sonic_dfx6', body_dims=29,
|
| 86 |
+
history=(('action.motion_token', 0, 64), *_G1_HANDS)),
|
| 87 |
+
Contract('h2_sharpa', 'h2_sharpa', ('head', 'chest'), _H2_STATE, _H2_ACTION, body_dims=31),
|
| 88 |
+
Contract('h2_sharpa_planner', 'h2_sharpa', ('head', 'chest'), _H2_STATE,
|
| 89 |
+
(*_H2_ACTION, ('action.planner', 0, 7)), body_dims=31),
|
| 90 |
+
)}
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def augmentation_module():
|
| 94 |
+
"""evaluation/augmentation: the augmentation spec v2 shared by every model's training (imported on demand)."""
|
| 95 |
+
evaluation = str(Path(__file__).resolve().parents[1])
|
| 96 |
+
if evaluation not in sys.path:
|
| 97 |
+
sys.path.insert(0, evaluation)
|
| 98 |
+
import augmentation
|
| 99 |
+
return augmentation
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def resize_frame(frame: np.ndarray, hw) -> np.ndarray:
|
| 103 |
+
"""(H, W, 3) uint8 RGB -> (h, w, 3) uint8, OpenCV INTER_AREA (training cache and live frames alike)."""
|
| 104 |
+
import cv2
|
| 105 |
+
frame = np.ascontiguousarray(frame, dtype=np.uint8)
|
| 106 |
+
if frame.ndim != 3 or frame.shape[2] != 3:
|
| 107 |
+
raise ValueError(f'expected an (H, W, 3) RGB frame, got {frame.shape}')
|
| 108 |
+
h, w = int(hw[0]), int(hw[1])
|
| 109 |
+
if frame.shape[:2] == (h, w):
|
| 110 |
+
return frame
|
| 111 |
+
return cv2.resize(frame, (w, h), interpolation=cv2.INTER_AREA)
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
class LeRobotDataset:
|
| 115 |
+
"""A LeRobot v2.1 dataset directory (meta/info.json, meta/episodes.jsonl, data/, videos/)."""
|
| 116 |
+
|
| 117 |
+
def __init__(self, root):
|
| 118 |
+
self.root = Path(root).expanduser().resolve()
|
| 119 |
+
self.info = json.loads((self.root / 'meta/info.json').read_text())
|
| 120 |
+
if self.info.get('codebase_version') != 'v2.1':
|
| 121 |
+
raise ValueError(f"{self.root}: LeRobot {self.info.get('codebase_version')}, expected v2.1")
|
| 122 |
+
rows = [json.loads(line) for line in (self.root / 'meta/episodes.jsonl').read_text().splitlines() if line]
|
| 123 |
+
self.lengths = {int(r['episode_index']): int(r['length']) for r in rows}
|
| 124 |
+
tasks = [json.loads(line) for line in (self.root / 'meta/tasks.jsonl').read_text().splitlines() if line]
|
| 125 |
+
self.tasks = {int(t['task_index']): t['task'] for t in tasks}
|
| 126 |
+
self.fps = float(self.info['fps'])
|
| 127 |
+
|
| 128 |
+
@property
|
| 129 |
+
def name(self) -> str:
|
| 130 |
+
"""The dataset's folder name (its parent's for an export folder named `lerobot`)."""
|
| 131 |
+
return self.root.parent.name if self.root.name == 'lerobot' else self.root.name
|
| 132 |
+
|
| 133 |
+
def chunk(self, episode: int) -> int:
|
| 134 |
+
return episode // int(self.info['chunks_size'])
|
| 135 |
+
|
| 136 |
+
def parquet(self, episode: int) -> Path:
|
| 137 |
+
return self.root / self.info['data_path'].format(episode_chunk=self.chunk(episode), episode_index=episode)
|
| 138 |
+
|
| 139 |
+
def video(self, episode: int, camera: str) -> Path:
|
| 140 |
+
return self.root / self.info['video_path'].format(episode_chunk=self.chunk(episode), episode_index=episode,
|
| 141 |
+
video_key=f'observation.images.{camera}')
|
| 142 |
+
|
| 143 |
+
def check_contract(self, contract: Contract, cameras):
|
| 144 |
+
features = self.info['features']
|
| 145 |
+
for column, start, end in (*contract.state, *contract.action, *contract.history_columns):
|
| 146 |
+
if column not in features:
|
| 147 |
+
raise KeyError(f'{self.root.name}: no column {column!r} (contract {contract.name})')
|
| 148 |
+
width = int(np.prod(features[column]['shape']))
|
| 149 |
+
if end > width:
|
| 150 |
+
raise ValueError(f'{column} has {width} values; the contract reads {start}:{end}')
|
| 151 |
+
for camera in cameras:
|
| 152 |
+
key = f'observation.images.{camera}'
|
| 153 |
+
if features.get(key, {}).get('dtype') != 'video':
|
| 154 |
+
raise KeyError(f'{self.root.name}: no video {key!r}')
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
def parse_episodes(spec: str | None, available) -> list:
|
| 158 |
+
"""'0:100', '0,3,7' or None (all), restricted to the dataset's episodes, sorted."""
|
| 159 |
+
available = sorted(available)
|
| 160 |
+
if not spec:
|
| 161 |
+
return available
|
| 162 |
+
chosen = set()
|
| 163 |
+
for part in spec.split(','):
|
| 164 |
+
if ':' in part:
|
| 165 |
+
lo, hi = part.split(':')
|
| 166 |
+
chosen.update(range(int(lo or 0), int(hi) if hi else available[-1] + 1))
|
| 167 |
+
else:
|
| 168 |
+
chosen.add(int(part))
|
| 169 |
+
missing = sorted(chosen - set(available))
|
| 170 |
+
if missing:
|
| 171 |
+
raise ValueError(f'episodes not in the dataset: {missing[:10]}')
|
| 172 |
+
return sorted(chosen)
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def load_lowdim(dataset: LeRobotDataset, contract: Contract, episodes) -> dict:
|
| 176 |
+
"""State (N, state_dim) and action (N, action_dim) float32 of the episodes in order, plus each episode's start
|
| 177 |
+
row, length and task text; `history` (N, action_dim) is the executed rows a policy conditions on (the action rows
|
| 178 |
+
themselves unless the contract names other columns)."""
|
| 179 |
+
import pyarrow.parquet as pq
|
| 180 |
+
columns = sorted({c for c, _, _ in (*contract.state, *contract.action, *contract.history_columns)}
|
| 181 |
+
| {'frame_index', 'task_index'})
|
| 182 |
+
states, actions, histories, starts, lengths, tasks, offset = [], [], [], [], [], set(), 0
|
| 183 |
+
for episode in episodes:
|
| 184 |
+
table = pq.read_table(dataset.parquet(episode), columns=columns)
|
| 185 |
+
data = {c: np.asarray(table.column(c).to_pylist(), dtype=np.float64) for c in columns}
|
| 186 |
+
n = len(data['frame_index'])
|
| 187 |
+
if n != dataset.lengths[episode] or not np.array_equal(data['frame_index'], np.arange(n)):
|
| 188 |
+
raise ValueError(f'episode {episode}: {n} rows / frame_index differ from episodes.jsonl')
|
| 189 |
+
|
| 190 |
+
def pick(spec):
|
| 191 |
+
return np.concatenate([data[c].reshape(n, -1)[:, s:e] for c, s, e in spec], axis=1).astype(np.float32)
|
| 192 |
+
|
| 193 |
+
states.append(pick(contract.state))
|
| 194 |
+
actions.append(pick(contract.action))
|
| 195 |
+
if contract.history is not None:
|
| 196 |
+
histories.append(pick(contract.history))
|
| 197 |
+
tasks.update(dataset.tasks[int(i)] for i in np.unique(data['task_index']))
|
| 198 |
+
starts.append(offset)
|
| 199 |
+
lengths.append(n)
|
| 200 |
+
offset += n
|
| 201 |
+
state, action = np.concatenate(states), np.concatenate(actions)
|
| 202 |
+
history = np.concatenate(histories) if contract.history is not None else action
|
| 203 |
+
if not (np.isfinite(state).all() and np.isfinite(action).all() and np.isfinite(history).all()):
|
| 204 |
+
raise ValueError('non-finite state or action values')
|
| 205 |
+
return dict(state=state, action=action, history=history, starts=np.asarray(starts), lengths=np.asarray(lengths),
|
| 206 |
+
episodes=list(episodes), tasks=sorted(tasks))
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
def statistics(lowdim: dict, rows: np.ndarray, quantiles: bool = False) -> dict:
|
| 210 |
+
"""min / max / mean / std of state and action over `rows`; with `quantiles` also their q01 / q99 (the ODE
|
| 211 |
+
policies' normalization bounds, as ODE Policy's G1 port fits them)."""
|
| 212 |
+
out = {}
|
| 213 |
+
for key in ('state', 'action'):
|
| 214 |
+
x = lowdim[key][rows].astype(np.float64)
|
| 215 |
+
out[key] = dict(min=x.min(0).tolist(), max=x.max(0).tolist(), mean=x.mean(0).tolist(), std=x.std(0).tolist())
|
| 216 |
+
if quantiles:
|
| 217 |
+
q01, q99 = np.quantile(x, [0.01, 0.99], axis=0)
|
| 218 |
+
out[key].update(q01=q01.tolist(), q99=q99.tolist())
|
| 219 |
+
return out
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
# Columns recorded in physical [0, 1] (the INSPIRE DFX6 openings): the ODE policies normalize them with these fixed
|
| 223 |
+
# bounds instead of the data's, as ODE Policy's G1 port does.
|
| 224 |
+
UNIT_RANGE_COLUMNS = ('observation.inspire_left_hand_state', 'observation.inspire_right_hand_state',
|
| 225 |
+
'teleop.inspire_left_hand_cmd', 'teleop.inspire_right_hand_cmd')
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
def unit_range_dims(contract: Contract) -> dict:
|
| 229 |
+
"""{'state': [...], 'action': [...]}: the positions of the UNIT_RANGE_COLUMNS values in the contract's layouts."""
|
| 230 |
+
out = {}
|
| 231 |
+
for key, spec in (('state', contract.state), ('action', contract.action)):
|
| 232 |
+
dims, offset = [], 0
|
| 233 |
+
for column, start, end in spec:
|
| 234 |
+
if column in UNIT_RANGE_COLUMNS:
|
| 235 |
+
dims.extend(range(offset, offset + end - start))
|
| 236 |
+
offset += end - start
|
| 237 |
+
out[key] = dims
|
| 238 |
+
return out
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
# History values that no observation measures (the G1 SONIC motion token: a latent): a FLASH 'frame0' history row
|
| 242 |
+
# takes a fixed value for them (flash.py, first_history)
|
| 243 |
+
LATENT_COLUMNS = ('action.motion_token',)
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
def _feature_names(features: dict, column: str):
|
| 247 |
+
names = (features.get(column) or {}).get('names')
|
| 248 |
+
width = int(np.prod(features[column]['shape'])) if column in features else 0
|
| 249 |
+
return list(names) if isinstance(names, (list, tuple)) and len(names) == width else None
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def first_history_layout(contract: Contract, features: dict) -> list:
|
| 253 |
+
"""For each value of the contract's history row, the index in the contract's state that measures it at the same
|
| 254 |
+
frame, or -1 for a LATENT_COLUMNS value: the sources of FLASH's frame-0 history row (flash.first_history_row).
|
| 255 |
+
|
| 256 |
+
A history column that is itself a state column (the measured G1 DFX6, state44[29:41]) maps onto it; any other
|
| 257 |
+
(the H2 action75 targets body_target31 | hands44) is matched by joint name (meta/info.json `names`) to exactly one
|
| 258 |
+
state value (H2: observation.state75; the matching of debug/newton/h2_sharpa_policy_eval.py `state_to_action`).
|
| 259 |
+
A value with no unique match is an error: pass --flash first_history='"zero"' to train without it."""
|
| 260 |
+
state_index, offset = {}, 0
|
| 261 |
+
for column, start, end in contract.state:
|
| 262 |
+
for j in range(start, end):
|
| 263 |
+
state_index[(column, j)] = offset + j - start
|
| 264 |
+
offset += end - start
|
| 265 |
+
by_name = {}
|
| 266 |
+
for column, start, end in contract.state:
|
| 267 |
+
names = _feature_names(features, column)
|
| 268 |
+
for j in range(start, end):
|
| 269 |
+
if names is not None:
|
| 270 |
+
by_name.setdefault(names[j], []).append(state_index[(column, j)])
|
| 271 |
+
out = []
|
| 272 |
+
for column, start, end in contract.history_columns:
|
| 273 |
+
names = _feature_names(features, column)
|
| 274 |
+
for j in range(start, end):
|
| 275 |
+
if (column, j) in state_index:
|
| 276 |
+
out.append(state_index[(column, j)])
|
| 277 |
+
elif column in LATENT_COLUMNS:
|
| 278 |
+
out.append(-1)
|
| 279 |
+
else:
|
| 280 |
+
hits = by_name.get(names[j], []) if names is not None else []
|
| 281 |
+
if len(hits) != 1:
|
| 282 |
+
what = f'{column}[{j}]' + (f' ({names[j]!r})' if names is not None else ' (no names in info.json)')
|
| 283 |
+
raise ValueError(f'contract {contract.name}: history value {what} matches {len(hits)} state '
|
| 284 |
+
"values by name; FLASH's frame-0 history needs exactly one")
|
| 285 |
+
out.append(hits[0])
|
| 286 |
+
return out
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
def first_history_start(lowdim: dict, layout, positions) -> list:
|
| 290 |
+
"""The fixed values of FLASH's frame-0 history row: for each -1 of `layout` the element-wise median of that value
|
| 291 |
+
at the first frame of the episodes `positions` (the training episodes); 0 where the row reads the state."""
|
| 292 |
+
first = lowdim['history'][lowdim['starts'][list(positions)]].astype(np.float64)
|
| 293 |
+
median = np.median(first, axis=0)
|
| 294 |
+
return [float(median[d]) if src < 0 else 0.0 for d, src in enumerate(layout)]
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
# -- frame cache --------------------------------------------------------------------------------------------------
|
| 298 |
+
def _decode_into(job):
|
| 299 |
+
path, out_path, total, start, length, hw = job
|
| 300 |
+
import av
|
| 301 |
+
frames = np.memmap(out_path, dtype=np.uint8, mode='r+', shape=(total, hw[0], hw[1], 3))
|
| 302 |
+
count = 0
|
| 303 |
+
with av.open(str(path)) as container:
|
| 304 |
+
stream = container.streams.video[0]
|
| 305 |
+
stream.thread_type = 'AUTO'
|
| 306 |
+
for frame in container.decode(stream):
|
| 307 |
+
if count < length:
|
| 308 |
+
frames[start + count] = resize_frame(frame.to_ndarray(format='rgb24'), hw)
|
| 309 |
+
count += 1
|
| 310 |
+
frames.flush()
|
| 311 |
+
del frames
|
| 312 |
+
if count != length:
|
| 313 |
+
raise ValueError(f'{path}: {count} video frames, {length} data rows')
|
| 314 |
+
return length
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
def frame_cache(dataset: LeRobotDataset, lowdim: dict, cameras, hw, cache_root, workers=8) -> dict:
|
| 318 |
+
"""{camera: path of the (N, h, w, 3) uint8 memory map} for the episodes of `lowdim`, decoded once and reused."""
|
| 319 |
+
from multiprocessing import get_context
|
| 320 |
+
total = int(lowdim['lengths'].sum())
|
| 321 |
+
paths = {}
|
| 322 |
+
for camera in cameras:
|
| 323 |
+
key = json.dumps(dict(version=CACHE_VERSION, root=str(dataset.root), episodes=lowdim['episodes'],
|
| 324 |
+
lengths=lowdim['lengths'].tolist(), camera=camera, hw=list(hw)), sort_keys=True)
|
| 325 |
+
digest = hashlib.sha256(key.encode()).hexdigest()[:16]
|
| 326 |
+
folder = Path(cache_root).expanduser() / f'{dataset.name}_{camera}_{hw[0]}x{hw[1]}_{digest}'
|
| 327 |
+
folder.mkdir(parents=True, exist_ok=True)
|
| 328 |
+
out, meta = folder / 'frames.u8', folder / 'meta.json'
|
| 329 |
+
if meta.exists() and json.loads(meta.read_text()).get('complete'):
|
| 330 |
+
paths[camera] = out
|
| 331 |
+
continue
|
| 332 |
+
np.memmap(out, dtype=np.uint8, mode='w+', shape=(total, hw[0], hw[1], 3)).flush()
|
| 333 |
+
jobs = [(dataset.video(e, camera), out, total, int(s), int(n), tuple(hw))
|
| 334 |
+
for e, s, n in zip(lowdim['episodes'], lowdim['starts'], lowdim['lengths'])]
|
| 335 |
+
with get_context('spawn').Pool(max(1, int(workers))) as pool: # the caller may hold torch threads
|
| 336 |
+
for done, _ in enumerate(pool.imap_unordered(_decode_into, jobs), 1):
|
| 337 |
+
if done % 20 == 0 or done == len(jobs):
|
| 338 |
+
print(json.dumps(dict(event='frame_cache', camera=camera, episodes=done, of=len(jobs))),
|
| 339 |
+
flush=True)
|
| 340 |
+
meta.write_text(json.dumps(dict(json.loads(key), frames=total, complete=True), indent=1))
|
| 341 |
+
paths[camera] = out
|
| 342 |
+
return paths
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
class ChunkDataset:
|
| 346 |
+
"""torch-style dataset of (images (n_cameras, h, w, 3) uint8, state (state_dim,), action (horizon, action_dim))
|
| 347 |
+
over the frames of the selected episodes (positions into lowdim['episodes']). Memory maps open lazily per
|
| 348 |
+
process (DataLoader workers).
|
| 349 |
+
|
| 350 |
+
`body_dims` > 0 turns on the training augmentation (docs/augmentation_v2.md, evaluation/augmentation): per item,
|
| 351 |
+
the cached frames of all cameras get one hb_aug_v2.augment call (one time step, no future targets) and the first
|
| 352 |
+
`body_dims` state values the per-sample joint bias + noise; the action rows are never touched. 0 (evaluation,
|
| 353 |
+
offline checks) returns the cached frames and the recorded state unchanged, deterministically.
|
| 354 |
+
|
| 355 |
+
`lead` > 0 prepends that many rows before t to the action rows (lead + horizon rows, t-lead..t+horizon-1) and
|
| 356 |
+
adds a fourth item, the rows' validity (lead + horizon,) float: 0 for a row before the episode's first or past its
|
| 357 |
+
last (whose values repeat the nearest row); the ODE policies start from the row before t, or from their BOS where
|
| 358 |
+
it is invalid, and leave invalid future rows out of the loss (policies.ODEPolicy).
|
| 359 |
+
|
| 360 |
+
aug_seed (HumanWAM hb_training/REPRODUCIBILITY.md section 3; the training seed, `HB_AUG_SEED`): an item asked for
|
| 361 |
+
as (k, draw) (train.EpochSampler, 2026-11-27) is augmented with numpy default_rng([aug_seed, draw]), draw being its
|
| 362 |
+
position in the run's sample stream: the same seed and step give the same augmentations whatever the worker count
|
| 363 |
+
and across an interrupted run's --resume. A plain index k (the preflight) uses the per-worker stream
|
| 364 |
+
default_rng([aug_seed, torch.initial_seed(), worker id]) of the runs trained before; None the shared worker_rng
|
| 365 |
+
(pid + urandom: not reproducible)."""
|
| 366 |
+
|
| 367 |
+
def __init__(self, lowdim: dict, frames: dict, cameras, hw, horizon: int, positions, body_dims: int = 0,
|
| 368 |
+
lead: int = 0, aug_seed=None):
|
| 369 |
+
self.lowdim, self.paths, self.cameras, self.hw, self.horizon = lowdim, frames, list(cameras), tuple(hw), horizon
|
| 370 |
+
self.positions, self.body_dims, self.lead = list(positions), int(body_dims), int(lead)
|
| 371 |
+
self.aug_seed = aug_seed
|
| 372 |
+
self._rng_key, self._rng_obj = None, None
|
| 373 |
+
if self.body_dims:
|
| 374 |
+
augmentation_module() # asserts the spec version before any worker starts
|
| 375 |
+
self.total = int(lowdim['lengths'].sum())
|
| 376 |
+
index, begin, end = [], np.zeros(self.total, np.int64), np.zeros(self.total, np.int64)
|
| 377 |
+
for p in positions:
|
| 378 |
+
s, n = int(lowdim['starts'][p]), int(lowdim['lengths'][p])
|
| 379 |
+
index.append(np.arange(s, s + n))
|
| 380 |
+
begin[s:s + n] = s
|
| 381 |
+
end[s:s + n] = s + n
|
| 382 |
+
self.index, self.begin, self.end = np.concatenate(index), begin, end
|
| 383 |
+
self._maps, self._pid = None, None
|
| 384 |
+
|
| 385 |
+
def __len__(self):
|
| 386 |
+
return len(self.index)
|
| 387 |
+
|
| 388 |
+
def _frames(self):
|
| 389 |
+
if self._maps is None or self._pid != os.getpid():
|
| 390 |
+
self._maps = {c: np.memmap(self.paths[c], dtype=np.uint8, mode='r', shape=(self.total, *self.hw, 3))
|
| 391 |
+
for c in self.cameras}
|
| 392 |
+
self._pid = os.getpid()
|
| 393 |
+
return self._maps
|
| 394 |
+
|
| 395 |
+
def rows(self, i: int) -> np.ndarray:
|
| 396 |
+
return np.clip(np.arange(i - self.lead, i + self.horizon), self.begin[i], self.end[i] - 1)
|
| 397 |
+
|
| 398 |
+
def valid(self, i: int) -> np.ndarray:
|
| 399 |
+
rows = np.arange(i - self.lead, i + self.horizon)
|
| 400 |
+
return ((rows >= self.begin[i]) & (rows < self.end[i])).astype(np.float32)
|
| 401 |
+
|
| 402 |
+
def plain(self):
|
| 403 |
+
"""The same items without augmentation (the preflight's reference read)."""
|
| 404 |
+
return ChunkDataset(self.lowdim, self.paths, self.cameras, self.hw, self.horizon, self.positions,
|
| 405 |
+
lead=self.lead)
|
| 406 |
+
|
| 407 |
+
def _rng(self):
|
| 408 |
+
if self.aug_seed is None or not self.body_dims:
|
| 409 |
+
return None
|
| 410 |
+
import torch
|
| 411 |
+
info = torch.utils.data.get_worker_info()
|
| 412 |
+
wid = info.id if info is not None else 0
|
| 413 |
+
key = (os.getpid(), wid)
|
| 414 |
+
if self._rng_key != key:
|
| 415 |
+
self._rng_obj = np.random.default_rng([int(self.aug_seed), int(torch.initial_seed()), int(wid)])
|
| 416 |
+
self._rng_key = key
|
| 417 |
+
return self._rng_obj
|
| 418 |
+
|
| 419 |
+
def _key(self, k):
|
| 420 |
+
"""(item index, augmentation rng) of a sampler key: (k, draw) or a plain k (class docstring)."""
|
| 421 |
+
if isinstance(k, (tuple, list)):
|
| 422 |
+
k, draw = k
|
| 423 |
+
if self.aug_seed is not None and self.body_dims:
|
| 424 |
+
return int(k), np.random.default_rng([int(self.aug_seed), int(draw)])
|
| 425 |
+
return int(k), self._rng()
|
| 426 |
+
|
| 427 |
+
def _observation(self, i: int, rng=None):
|
| 428 |
+
"""The cameras (n_cameras, h, w, 3) uint8 and the state of frame i, augmented when body_dims > 0."""
|
| 429 |
+
import torch
|
| 430 |
+
maps = self._frames()
|
| 431 |
+
images = torch.from_numpy(np.stack([maps[c][i] for c in self.cameras]))
|
| 432 |
+
state = self.lowdim['state'][i]
|
| 433 |
+
if self.body_dims:
|
| 434 |
+
augmentation = augmentation_module()
|
| 435 |
+
images, _ = augmentation.augment_frames_uint8(images, rng=rng)
|
| 436 |
+
state = augmentation.perturb_body(state, self.body_dims, rng=rng)
|
| 437 |
+
return images, torch.from_numpy(np.asarray(state, dtype=np.float32))
|
| 438 |
+
|
| 439 |
+
def __getitem__(self, k):
|
| 440 |
+
import torch
|
| 441 |
+
k, rng = self._key(k)
|
| 442 |
+
i = int(self.index[k])
|
| 443 |
+
images, state = self._observation(i, rng=rng)
|
| 444 |
+
rows = self.rows(i)
|
| 445 |
+
action = self.lowdim['action'][rows]
|
| 446 |
+
if self.lead and self.lowdim.get('history') is not None and self.lowdim['history'] is not self.lowdim['action']:
|
| 447 |
+
action = action.copy() # the rows before t are executed rows (the contract's history columns)
|
| 448 |
+
action[:self.lead] = self.lowdim['history'][rows[:self.lead]]
|
| 449 |
+
item = images, state, torch.from_numpy(action)
|
| 450 |
+
return (*item, torch.from_numpy(self.valid(i))) if self.lead else item
|
| 451 |
+
|
| 452 |
+
|
| 453 |
+
class FlashChunkDataset(ChunkDataset):
|
| 454 |
+
"""FLASH training items (evaluation/baselines/flash.py) over every frame of the selected episodes as the anchor:
|
| 455 |
+
(images, state, poly, history, has_history[, dense, dense_valid]).
|
| 456 |
+
|
| 457 |
+
- images, state: the anchor frame's cameras and state44, augmented as ChunkDataset (spec v2) when body_dims > 0;
|
| 458 |
+
- poly (H_ext, action_dim): the action rows at `offsets` frames from the anchor (the polynomial's extended grid,
|
| 459 |
+
`stride` frames apart), clamped to the episode (FLASH's edge padding);
|
| 460 |
+
- history (n_history, action_dim), has_history: flash.history_rows over the `span` executed rows before the anchor
|
| 461 |
+
(rows before the episode start invalid), the same function the adapter applies to past_actions; at the
|
| 462 |
+
episode's first frame (no executed row) with `first` (flash.first_history_source of a 'frame0' FLASH) the
|
| 463 |
+
frame-0 row flash.first_history_row(first, recorded state of that frame) replicated, has_history True (the
|
| 464 |
+
recorded state, not the augmented one: history labels are never augmented); without it the zero start;
|
| 465 |
+
- dense (rows, action_dim), dense_valid: the recorded 30 Hz rows from the anchor (offline check only).
|
| 466 |
+
|
| 467 |
+
aug_seed: as ChunkDataset (the same seeded stream)."""
|
| 468 |
+
|
| 469 |
+
def __init__(self, lowdim, frames, cameras, hw, positions, *, offsets, stride, n_history, rows, body_dims=0,
|
| 470 |
+
aug_seed=None, with_dense=False, first=None):
|
| 471 |
+
super().__init__(lowdim, frames, cameras, hw, rows, positions, body_dims=body_dims)
|
| 472 |
+
self.first = first
|
| 473 |
+
self.offsets = np.asarray(offsets, dtype=np.int64)
|
| 474 |
+
self.stride, self.n_history, self.n_rows = int(stride), int(n_history), int(rows)
|
| 475 |
+
self.span = (self.n_history - 1) * self.stride + 1
|
| 476 |
+
self.aug_seed, self.with_dense = aug_seed, bool(with_dense)
|
| 477 |
+
start = np.zeros(self.total, np.int64)
|
| 478 |
+
for p in positions:
|
| 479 |
+
s, n = int(lowdim['starts'][p]), int(lowdim['lengths'][p])
|
| 480 |
+
start[s:s + n] = s
|
| 481 |
+
self.start = start
|
| 482 |
+
|
| 483 |
+
def plain(self):
|
| 484 |
+
return FlashChunkDataset(self.lowdim, self.paths, self.cameras, self.hw, self.positions, offsets=self.offsets,
|
| 485 |
+
stride=self.stride, n_history=self.n_history, rows=self.n_rows,
|
| 486 |
+
with_dense=self.with_dense, first=self.first)
|
| 487 |
+
|
| 488 |
+
def __getitem__(self, k):
|
| 489 |
+
import torch
|
| 490 |
+
from .flash import first_history_row, history_rows
|
| 491 |
+
k, rng = self._key(k)
|
| 492 |
+
i = int(self.index[k])
|
| 493 |
+
s0, e1 = int(self.start[i]), int(self.end[i])
|
| 494 |
+
images, state = self._observation(i, rng=rng)
|
| 495 |
+
action = self.lowdim['action']
|
| 496 |
+
poly = action[np.clip(i + self.offsets, s0, e1 - 1)]
|
| 497 |
+
past = i - self.span + np.arange(self.span)
|
| 498 |
+
executed = self.lowdim.get('history', action) # the measured hands under g1_sonic_cmd, as past_actions
|
| 499 |
+
first = (first_history_row(self.first, self.lowdim['state'][s0]) if self.first is not None and i == s0
|
| 500 |
+
else None)
|
| 501 |
+
history, has = history_rows(executed[np.maximum(past, s0)], past >= s0, self.stride, self.n_history,
|
| 502 |
+
first_row=first)
|
| 503 |
+
out = [images, state, torch.from_numpy(np.ascontiguousarray(poly)), torch.from_numpy(history),
|
| 504 |
+
torch.tensor(bool(has))]
|
| 505 |
+
if self.with_dense:
|
| 506 |
+
idx = i + np.arange(self.n_rows)
|
| 507 |
+
out += [torch.from_numpy(np.ascontiguousarray(action[np.minimum(idx, e1 - 1)])),
|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iT 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).
|
| 19 |
+
- **Episode start (`first_history`, owner 2026-11-29).** With no executed row at all (the episode's first frame, the
|
| 20 |
+
first query of a rollout) upstream still has a history: its dataset pads the n_obs_steps window with the first
|
| 21 |
+
frame and its runner repeats the first observation. `'frame0'` (the default of every new training) does the same:
|
| 22 |
+
the history is one row h0 replicated over the n_history points (has_history True), built from the frame's
|
| 23 |
+
OBSERVATION only (never the anchor's own action row): every history value that the state measures is taken from
|
| 24 |
+
the state (`first_history_state`: its index in the contract's state; G1 the measured DFX6 = state44[29:41], H2
|
| 25 |
+
action75 = observation.state75 matched by joint name, data.first_history_layout), and the value that nothing
|
| 26 |
+
measures (the G1 SONIC token) is a fixed start (`first_history_value`: the element-wise median of the frame-0
|
| 27 |
+
tokens of the training episodes, computed once by train.py). Both lists are recorded in the checkpoint's config, and
|
| 28 |
+
the deployment (runtime.BaselinePolicy.start_history, used by the G1 and H2 adapters) builds the same h0 from the
|
| 29 |
+
first query's measured state. A checkpoint whose config has no `first_history` (every FLASH checkpoint trained
|
| 30 |
+
before 2026-11-29) is `'zero'`: no row means has_history False and the flow starts from the zero coefficients, in
|
| 31 |
+
training as at deployment, exactly as it was trained and evaluated.
|
| 32 |
+
- **Sampling stride.** The model's points are `stride` dataset frames apart (30 Hz data: stride 2 = 67 ms, the paper's
|
| 33 |
+
4 x 15 ms = 60 ms). Every dataset frame is an anchor (FLASH's converter keeps only every stride-th frame: one phase
|
| 34 |
+
of the same sparse data).
|
| 35 |
+
- **Observation.** The current ego_view and chest frames and state44 condition the DiT (n_obs 1); FLASH's 8-frame
|
| 36 |
+
observation history is not rendered by the benchmark runners. state44 is the low-dim encoder input as agent_pos is.
|
| 37 |
+
- **Output.** The polynomial is evaluated at every 30 Hz frame from the anchor (`rows` rows, row 0 = the query frame),
|
| 38 |
+
the analytic form of FLASH's continuous-time resampling, at exact frame times. FLASH's velocity feed-forward has no
|
| 39 |
+
channel in the interface (SONIC takes tokens) and is not produced.
|
| 40 |
+
- Polynomial fits run in float32 outside autocast (FLASH runs them inside its bf16 autocast); the encoder and the
|
| 41 |
+
DiT run under the trainer's bf16 autocast as upstream.
|
| 42 |
+
- Augmentation spec v2 replaces the native image augmentation (FLASH's random_crop is configured but inert without
|
| 43 |
+
crop_shape).
|
| 44 |
+
"""
|
| 45 |
+
from __future__ import annotations
|
| 46 |
+
|
| 47 |
+
import copy
|
| 48 |
+
|
| 49 |
+
import numpy as np
|
| 50 |
+
import torch
|
| 51 |
+
import torch.nn as nn
|
| 52 |
+
import torch.nn.functional as F
|
| 53 |
+
import torchvision
|
| 54 |
+
|
| 55 |
+
from .nets import IMAGENET_MEAN, IMAGENET_STD, Mlp, SinusoidalPosEmb, replace_batchnorm_with_groupnorm
|
| 56 |
+
|
| 57 |
+
# configs/policy_config/flash.yaml (+ default_runner.yaml horizon 16 / n_obs 8 / n_action 8), owner 2026-11-24 stride 2
|
| 58 |
+
FLASH_DEFAULTS = dict(stride=2, n_history=8, n_action=8, rows=16, poly_order=6, fit_pad=1, boundary_constraint=True,
|
| 59 |
+
poly_prefix=1, poly_suffix=1, history_noise_std=0.5, history_reg_lambda=0.1,
|
| 60 |
+
consistency_weight=1.0, solver='euler',
|
| 61 |
+
# the history at the episode start (module docstring; owner 2026-11-29): 'frame0' (new trainings)
|
| 62 |
+
# or 'zero'; train.py fills the frame-0 row's sources (one entry per action value: the state
|
| 63 |
+
# index it is read from, -1 for a fixed value) and its fixed values (0 where read from the state)
|
| 64 |
+
first_history='frame0', first_history_state=None, first_history_value=None)
|
| 65 |
+
FIRST_HISTORY = ('frame0', 'zero')
|
| 66 |
+
# PolicyConfig fields of a FLASH run (flash.yaml + default_train.yaml): DiT 512 x 4 x 8, dropout 0, time embedding
|
| 67 |
+
# 256, one inference step, ResNet18 from scratch with GroupNorm, one per camera
|
| 68 |
+
FLASH_POLICY_FIELDS = dict(hidden_dim=512, num_layers=4, num_heads=8, mlp_ratio=4.0, dropout=0.0, time_embed_dim=256,
|
| 69 |
+
num_inference_steps=1, backbone='resnet18', backbone_weights=None, backbone_norm='group')
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def flash_settings(cfg) -> dict:
|
| 73 |
+
"""The FLASH settings of a PolicyConfig (cfg.extra['flash'] over the defaults); unknown keys are an error."""
|
| 74 |
+
given = dict((cfg.extra or {}).get('flash', {}))
|
| 75 |
+
unknown = sorted(set(given) - set(FLASH_DEFAULTS))
|
| 76 |
+
if unknown:
|
| 77 |
+
raise KeyError(f'unknown FLASH settings {unknown}; known: {sorted(FLASH_DEFAULTS)}')
|
| 78 |
+
out = dict(FLASH_DEFAULTS, **given)
|
| 79 |
+
if 'first_history' not in given: # a checkpoint trained before 2026-11-29: the zero start it was trained with
|
| 80 |
+
out['first_history'] = 'zero'
|
| 81 |
+
if out['solver'] not in ('euler', 'midpoint'):
|
| 82 |
+
raise ValueError(f"solver {out['solver']!r}")
|
| 83 |
+
if out['poly_prefix'] is None or int(out['poly_prefix']) < 0:
|
| 84 |
+
raise ValueError('this port implements poly_prefix >= 0 (flash.yaml: 1)')
|
| 85 |
+
if out['first_history'] not in FIRST_HISTORY:
|
| 86 |
+
raise ValueError(f"first_history {out['first_history']!r}, expected one of {FIRST_HISTORY}")
|
| 87 |
+
if out['first_history'] == 'frame0':
|
| 88 |
+
index, value = out['first_history_state'], out['first_history_value']
|
| 89 |
+
if index is None or value is None or len(index) != len(value):
|
| 90 |
+
raise ValueError("first_history 'frame0' needs first_history_state and first_history_value of the same "
|
| 91 |
+
'length (train.py fills them from the dataset)')
|
| 92 |
+
return out
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def first_history_source(settings: dict):
|
| 96 |
+
"""(state index (Da,) int64, fixed value (Da,) float32) of the frame-0 history row of a 'frame0' FLASH, else
|
| 97 |
+
None ('zero')."""
|
| 98 |
+
if settings['first_history'] != 'frame0':
|
| 99 |
+
return None
|
| 100 |
+
return (np.asarray(settings['first_history_state'], np.int64),
|
| 101 |
+
np.asarray(settings['first_history_value'], np.float32))
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
def first_history_row(source, state) -> np.ndarray:
|
| 105 |
+
"""h0 (Da,) float32: the history row of a frame with no executed row before it, from that frame's state: value d
|
| 106 |
+
is state[index[d]], or the fixed value[d] where index[d] is -1."""
|
| 107 |
+
index, value = source
|
| 108 |
+
state = np.asarray(state, np.float32).reshape(-1)
|
| 109 |
+
if index.max(initial=-1) >= len(state):
|
| 110 |
+
raise ValueError(f'first_history_state reads state index {int(index.max())}, the state has {len(state)}')
|
| 111 |
+
return np.where(index >= 0, state[np.maximum(index, 0)], value).astype(np.float32)
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
# --- networks: utils/models/flow_net.py and positional_embedding.py of FLASH-Policy ------------------------------
|
| 115 |
+
class RotaryPosEmbFlash(nn.Module):
|
| 116 |
+
"""torchtune RoPE as FLASH builds it: `dim` = the model width, its dim/2 frequencies split over the heads, pairs
|
| 117 |
+
interleaved (x[..., 0::2], x[..., 1::2])."""
|
| 118 |
+
|
| 119 |
+
def __init__(self, dim: int, max_seq_len: int = 256, base: int = 10_000):
|
| 120 |
+
super().__init__()
|
| 121 |
+
self.dim, self.base, self.max_seq_len = dim, base, max_seq_len
|
| 122 |
+
theta = 1.0 / (base ** (torch.arange(0, dim, 2)[: (dim // 2)].float() / dim))
|
| 123 |
+
self.register_buffer('theta', theta, persistent=False)
|
| 124 |
+
seq_idx = torch.arange(max_seq_len, dtype=theta.dtype)
|
| 125 |
+
idx_theta = torch.einsum('i, j -> ij', seq_idx, theta).float()
|
| 126 |
+
self.register_buffer('cache', torch.stack([torch.cos(idx_theta), torch.sin(idx_theta)], dim=-1),
|
| 127 |
+
persistent=False)
|
| 128 |
+
|
| 129 |
+
def forward(self, x): # x: (B, heads, S, head_dim)
|
| 130 |
+
x = x.permute(0, 2, 1, 3)
|
| 131 |
+
B, S, heads, head_dim = x.size()
|
| 132 |
+
rope = self.cache[:S].view(1, S, heads, head_dim // 2, 2)
|
| 133 |
+
xs = x.float().reshape(*x.shape[:-1], head_dim // 2, 2)
|
| 134 |
+
out = torch.stack([xs[..., 0] * rope[..., 0] - xs[..., 1] * rope[..., 1],
|
| 135 |
+
xs[..., 1] * rope[..., 0] + xs[..., 0] * rope[..., 1]], -1)
|
| 136 |
+
return out.flatten(3).permute(0, 2, 1, 3).type_as(x)
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
class FlashAttention(nn.Module):
|
| 140 |
+
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):
|
| 141 |
+
super().__init__()
|
| 142 |
+
assert dim % num_heads == 0, 'dim should be divisible by num_heads'
|
| 143 |
+
self.num_heads, self.head_dim = num_heads, dim // num_heads
|
| 144 |
+
self.attn_drop = attn_drop
|
| 145 |
+
self.proj_drop = nn.Dropout(proj_drop)
|
| 146 |
+
self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
|
| 147 |
+
self.q_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 148 |
+
self.k_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 149 |
+
self.proj = nn.Linear(dim, dim)
|
| 150 |
+
self.rope = RotaryPosEmbFlash(dim, max_seq_len=max_seq_len)
|
| 151 |
+
|
| 152 |
+
def forward(self, x):
|
| 153 |
+
B, S, C = x.shape
|
| 154 |
+
q, k, v = self.qkv(x).reshape(B, S, 3, self.num_heads, self.head_dim).permute(2, 0, 3, 1, 4).unbind(0)
|
| 155 |
+
q, k = self.rope(self.q_norm(q)), self.rope(self.k_norm(k))
|
| 156 |
+
x = F.scaled_dot_product_attention(q, k, v, dropout_p=self.attn_drop if self.training else 0.0)
|
| 157 |
+
return self.proj_drop(self.proj(x.transpose(1, 2).reshape(B, S, C)))
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
class FlashAdaLNBlock(nn.Module):
|
| 161 |
+
def __init__(self, dim, num_heads, mlp_ratio=4.0, dropout=0.0, max_seq_len=256):
|
| 162 |
+
super().__init__()
|
| 163 |
+
self.norm1 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 164 |
+
self.attn = FlashAttention(dim, num_heads=num_heads, attn_drop=dropout, proj_drop=dropout,
|
| 165 |
+
max_seq_len=max_seq_len)
|
| 166 |
+
self.norm2 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 167 |
+
self.mlp = Mlp(in_features=dim, hidden_features=int(dim * mlp_ratio),
|
| 168 |
+
act_layer=lambda: nn.GELU(approximate='tanh'), drop=0)
|
| 169 |
+
self.ada_ln = nn.Sequential(nn.SiLU(), nn.Linear(dim, 6 * dim))
|
| 170 |
+
self.dim = dim
|
| 171 |
+
nn.init.constant_(self.ada_ln[-1].weight, 0)
|
| 172 |
+
nn.init.constant_(self.ada_ln[-1].bias, 0)
|
| 173 |
+
|
| 174 |
+
def forward(self, x, t, c):
|
| 175 |
+
B = x.shape[0]
|
| 176 |
+
gamma1, gamma2, scale1, scale2, shift1, shift2 = self.ada_ln(F.silu(t + c)).view(B, 6, 1, self.dim).unbind(1)
|
| 177 |
+
x = x + self.attn(self.norm1(x).mul(scale1.add(1)).add_(shift1)).mul_(gamma1)
|
| 178 |
+
return x + self.mlp(self.norm2(x).mul(scale2.add(1)).add_(shift2)).mul_(gamma2)
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
class FlashFlowTransformer(nn.Module):
|
| 182 |
+
"""FLASH's FlowTransformer: AdaLN DiT over the C coefficient rows (tokens of width action_dim)."""
|
| 183 |
+
|
| 184 |
+
def __init__(self, input_dim, condition_dim, hidden_dim, output_dim, num_layers, num_heads, mlp_ratio=4.0,
|
| 185 |
+
dropout=0.1, time_embed_dim=256, max_seq_len=256):
|
| 186 |
+
super().__init__()
|
| 187 |
+
self.input_proj = nn.Linear(input_dim, hidden_dim)
|
| 188 |
+
self.time_embed = nn.Sequential(SinusoidalPosEmb(time_embed_dim), nn.Linear(time_embed_dim, time_embed_dim * 4),
|
| 189 |
+
nn.Mish(), nn.Linear(time_embed_dim * 4, hidden_dim))
|
| 190 |
+
self.cond_embed = nn.Linear(condition_dim, hidden_dim)
|
| 191 |
+
self.transformer_blocks = nn.ModuleList(
|
| 192 |
+
[FlashAdaLNBlock(hidden_dim, num_heads, mlp_ratio=mlp_ratio, dropout=dropout, max_seq_len=max_seq_len)
|
| 193 |
+
for _ in range(num_layers)])
|
| 194 |
+
self.norm = nn.LayerNorm(hidden_dim)
|
| 195 |
+
self.out_proj = nn.Linear(hidden_dim, output_dim)
|
| 196 |
+
|
| 197 |
+
def basic_init(module):
|
| 198 |
+
if isinstance(module, nn.Linear):
|
| 199 |
+
nn.init.xavier_uniform_(module.weight)
|
| 200 |
+
if module.bias is not None:
|
| 201 |
+
nn.init.constant_(module.bias, 0)
|
| 202 |
+
|
| 203 |
+
self.apply(basic_init)
|
| 204 |
+
nn.init.normal_(self.time_embed[1].weight, std=0.02)
|
| 205 |
+
nn.init.normal_(self.time_embed[3].weight, std=0.02)
|
| 206 |
+
|
| 207 |
+
def forward(self, x, t, global_cond):
|
| 208 |
+
if not torch.is_tensor(t):
|
| 209 |
+
t = torch.tensor(t, device=x.device)
|
| 210 |
+
if t.ndim == 0:
|
| 211 |
+
t = t.expand(x.shape[0])
|
| 212 |
+
x = self.input_proj(x)
|
| 213 |
+
t = self.time_embed(t)
|
| 214 |
+
c = self.cond_embed(global_cond)
|
| 215 |
+
for block in self.transformer_blocks:
|
| 216 |
+
x = block(x, t, c)
|
| 217 |
+
return self.out_proj(self.norm(x))
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
class FlashObsEncoder(nn.Module):
|
| 221 |
+
"""FLASH's MultiImageObsEncoder (share_rgb_model False, use_group_norm, imagenet_norm, no resize / crop): one
|
| 222 |
+
torchvision ResNet (classifier removed) per camera, every copy deep-copied from one initialization, BatchNorm
|
| 223 |
+
replaced by GroupNorm(C // 16) after the copy; each [0, 1] image goes through FLASH's range normalizer (x 2 - 1)
|
| 224 |
+
and then torchvision's ImageNet Normalize, as upstream composes them. Output: the cameras' pooled features in the
|
| 225 |
+
contract's camera order, then the normalized state. (B, n_cameras * 512 + state_dim)."""
|
| 226 |
+
|
| 227 |
+
def __init__(self, n_cameras, state_dim, backbone='resnet18', weights=None):
|
| 228 |
+
super().__init__()
|
| 229 |
+
base = getattr(torchvision.models, backbone)(weights=weights)
|
| 230 |
+
base.fc = nn.Identity()
|
| 231 |
+
self.rgb = nn.ModuleList([replace_batchnorm_with_groupnorm(copy.deepcopy(base)) for _ in range(n_cameras)])
|
| 232 |
+
self.n_cameras, self.state_dim = int(n_cameras), int(state_dim)
|
| 233 |
+
self.register_buffer('mean', torch.tensor(IMAGENET_MEAN).view(1, 3, 1, 1), persistent=False)
|
| 234 |
+
self.register_buffer('std', torch.tensor(IMAGENET_STD).view(1, 3, 1, 1), persistent=False)
|
| 235 |
+
self.feature_dim = self.n_cameras * (512 if backbone in ('resnet18', 'resnet34') else 2048) + self.state_dim
|
| 236 |
+
|
| 237 |
+
def forward(self, images, state):
|
| 238 |
+
"""images (B, n_cameras, 3, H, W) in [0, 1]; state (B, state_dim) normalized."""
|
| 239 |
+
x = images * 2.0 - 1.0 # get_image_range_normalizer: [0, 1] -> [-1, 1]
|
| 240 |
+
feats = [net((x[:, i] - self.mean) / self.std) for i, net in enumerate(self.rgb)]
|
| 241 |
+
return torch.cat([*feats, state], dim=-1)
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
# --- the policy ---------------------------------------------------------------------------------------------------
|
| 245 |
+
def legendre_basis(s: torch.Tensor, degree: int):
|
| 246 |
+
"""Shifted Legendre basis on s in [0, 1] and its first / second derivatives (FLASH's _build_legendre_basis)."""
|
| 247 |
+
x = 2 * s - 1
|
| 248 |
+
H, C = len(s), degree + 1
|
| 249 |
+
P = torch.zeros(H, C, dtype=s.dtype)
|
| 250 |
+
dP = torch.zeros(H, C, dtype=s.dtype)
|
| 251 |
+
d2P = torch.zeros(H, C, dtype=s.dtype)
|
| 252 |
+
P[:, 0] = 1.0
|
| 253 |
+
if C > 1:
|
| 254 |
+
P[:, 1] = x
|
| 255 |
+
dP[:, 1] = 1.0
|
| 256 |
+
for n in range(1, C - 1):
|
| 257 |
+
P[:, n + 1] = ((2 * n + 1) * x * P[:, n] - n * P[:, n - 1]) / (n + 1)
|
| 258 |
+
dP[:, n + 1] = ((2 * n + 1) * (P[:, n] + x * dP[:, n]) - n * dP[:, n - 1]) / (n + 1)
|
| 259 |
+
d2P[:, n + 1] = ((2 * n + 1) * (2 * dP[:, n] + x * d2P[:, n]) - n * d2P[:, n - 1]) / (n + 1)
|
| 260 |
+
return P, 2 * dP, 4 * d2P
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
def history_rows(rows, valid, stride: int, n_history: int, first_row=None):
|
| 264 |
+
"""The FLASH history of one query from its executed rows.
|
| 265 |
+
|
| 266 |
+
rows (N, D) and valid (N,): consecutive frames ending at the frame before the query (row N - 1 = t - 1), a valid
|
| 267 |
+
contiguous suffix (the interface's past_actions / history_valid; the dataset's rows before an anchor). Returns
|
| 268 |
+
(history (n_history, D) float32 at frames t-1-(n_history-1-j)*stride, has_history bool): a point before the first
|
| 269 |
+
valid row repeats that row (FLASH's edge padding). With no valid row: `first_row` (D,) given (a 'frame0' FLASH:
|
| 270 |
+
first_history_row of the query frame) -> that row at every point, has_history True; else has_history False (the
|
| 271 |
+
zero start of a 'zero' FLASH)."""
|
| 272 |
+
rows = np.asarray(rows, dtype=np.float32)
|
| 273 |
+
valid = np.asarray(valid, dtype=bool).reshape(-1)
|
| 274 |
+
span = (n_history - 1) * stride + 1
|
| 275 |
+
if len(rows) < span or len(valid) != len(rows):
|
| 276 |
+
raise ValueError(f'need >= {span} history rows (stride {stride} x {n_history} points), got {rows.shape}')
|
| 277 |
+
if not valid.any():
|
| 278 |
+
if first_row is not None:
|
| 279 |
+
first_row = np.asarray(first_row, np.float32).reshape(-1)
|
| 280 |
+
if first_row.shape != (rows.shape[1],) or not np.isfinite(first_row).all():
|
| 281 |
+
raise ValueError(f'first_row {first_row.shape}: expected {rows.shape[1]} finite values')
|
| 282 |
+
return np.repeat(first_row[None], n_history, axis=0), True
|
| 283 |
+
return np.zeros((n_history, rows.shape[1]), np.float32), False
|
| 284 |
+
first = int(np.argmax(valid))
|
| 285 |
+
if not valid[first:].all():
|
| 286 |
+
raise ValueError('history_valid must be a contiguous suffix')
|
| 287 |
+
idx = len(rows) - 1 - (n_history - 1 - np.arange(n_history)) * stride
|
| 288 |
+
return rows[np.maximum(idx, first)].copy(), True
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
class FlashPolicy(nn.Module):
|
| 292 |
+
"""FLASH (FlashDiTImagePolicy) on the baselines contract.
|
| 293 |
+
|
| 294 |
+
Training: compute_loss(images, state, poly, history, has_history) with poly (B, H_ext, Da) the physical action
|
| 295 |
+
rows at the polynomial's extended grid (anchor index fit_pad + poly_prefix, `stride` frames apart, clamped at the
|
| 296 |
+
episode's ends), history (B, n_history, Da) from history_rows (at an episode start: first_history_row
|
| 297 |
+
replicated for 'frame0', the zero start for 'zero'). Inference: predict(images, state, history,
|
| 298 |
+
has_history) -> the physical (B, rows, Da) chunk at 30 Hz from the query frame, and the normalized coefficients."""
|
| 299 |
+
name = 'flash'
|
| 300 |
+
backbone_prefix = 'obs_encoder.rgb.'
|
| 301 |
+
|
| 302 |
+
def __init__(self, cfg, init_weights=None):
|
| 303 |
+
super().__init__()
|
| 304 |
+
from .policies import Normalizer
|
| 305 |
+
self.cfg = cfg
|
| 306 |
+
self.state_norm = Normalizer(cfg.state_dim)
|
| 307 |
+
self.action_norm = Normalizer(cfg.action_dim)
|
| 308 |
+
f = self.flash = flash_settings(cfg)
|
| 309 |
+
self.stride, self.n_history, self.n_action = int(f['stride']), int(f['n_history']), int(f['n_action'])
|
| 310 |
+
self.rows, self.poly_order, self.fit_pad = int(f['rows']), int(f['poly_order']), int(f['fit_pad'])
|
| 311 |
+
self.prefix, self.suffix = int(f['poly_prefix']), int(f['poly_suffix'])
|
| 312 |
+
self.boundary_constraint = bool(f['boundary_constraint'])
|
| 313 |
+
self.history_noise_std = float(f['history_noise_std'])
|
| 314 |
+
self.history_reg_lambda = float(f['history_reg_lambda'])
|
| 315 |
+
self.consistency_weight = float(f['consistency_weight'])
|
| 316 |
+
self.solver = f['solver']
|
| 317 |
+
self.first_history = f['first_history']
|
| 318 |
+
self.first_history_source = first_history_source(f) # None for a 'zero' FLASH
|
| 319 |
+
if self.first_history_source is not None and len(self.first_history_source[0]) != cfg.action_dim:
|
| 320 |
+
raise ValueError(f'first_history_state has {len(self.first_history_source[0])} entries, the action '
|
| 321 |
+
f'{cfg.action_dim}')
|
| 322 |
+
if cfg.horizon != self.rows:
|
| 323 |
+
raise ValueError(f'PolicyConfig.horizon {cfg.horizon} must equal the FLASH output rows {self.rows}')
|
| 324 |
+
C = self.num_coeff = self.poly_order + 1
|
| 325 |
+
H_poly = self.H_poly = self.prefix + self.n_action + self.suffix
|
| 326 |
+
H_ext = self.H_ext = H_poly + 2 * self.fit_pad
|
| 327 |
+
self.anchor = self.fit_pad + self.prefix # anchor index in the extended grid
|
| 328 |
+
last_dense = (self.rows - 1) / self.stride
|
| 329 |
+
if self.prefix + last_dense > H_poly - 1 + 1e-9:
|
| 330 |
+
raise ValueError(f'{self.rows} rows at stride {self.stride} reach past the fitted polynomial')
|
| 331 |
+
|
| 332 |
+
s_ext = torch.linspace(0.0, 1.0, H_ext, dtype=torch.float64)
|
| 333 |
+
s_mid = s_ext[self.fit_pad:self.fit_pad + H_poly] if self.fit_pad > 0 else s_ext
|
| 334 |
+
eval_ext, d1_ext, _ = legendre_basis(s_ext, self.poly_order)
|
| 335 |
+
StS = eval_ext.T @ eval_ext
|
| 336 |
+
lstsq = torch.linalg.solve(StS, eval_ext.T)
|
| 337 |
+
eval_mid, _, _ = legendre_basis(s_mid, self.poly_order)
|
| 338 |
+
coeff_scale = torch.norm(lstsq, dim=1).clamp(min=1e-8)
|
| 339 |
+
self.register_buffer('_lstsq_matrix', lstsq.float())
|
| 340 |
+
self.register_buffer('_coeff_scale', coeff_scale.float().view(1, -1, 1))
|
| 341 |
+
# history fit (flash_policy.py, poly_prefix branch): the first n_history rows of the core grid, Tikhonov
|
| 342 |
+
S_hist = eval_mid.double() if H_poly == self.n_history else eval_mid[:self.n_history, :].double()
|
| 343 |
+
StS_hist = S_hist.T @ S_hist
|
| 344 |
+
if self.history_reg_lambda > 0:
|
| 345 |
+
StS_hist = StS_hist + self.history_reg_lambda * torch.eye(C, dtype=torch.float64)
|
| 346 |
+
self.register_buffer('_history_lstsq_matrix', torch.linalg.solve(StS_hist, S_hist.T).float())
|
| 347 |
+
if self.boundary_constraint: # KKT C1 at the execution start and the next window's start
|
| 348 |
+
idx = [self.fit_pad + self.prefix, self.fit_pad + self.prefix + self.n_action]
|
| 349 |
+
if idx[1] >= H_ext:
|
| 350 |
+
raise ValueError(f'bc_overlap {idx[1]} >= H_ext {H_ext}: increase fit_pad')
|
| 351 |
+
A_pos, A_vel = eval_ext[idx, :], d1_ext[idx, :]
|
| 352 |
+
A = torch.cat([A_pos, A_vel], dim=0)
|
| 353 |
+
StS_inv_AT = torch.linalg.solve(StS, torch.eye(C, dtype=torch.float64)) @ A.T
|
| 354 |
+
self.register_buffer('_bc_eval_pos', A_pos.float())
|
| 355 |
+
self.register_buffer('_bc_eval_vel', A_vel.float())
|
| 356 |
+
self.register_buffer('_bc_correction', (StS_inv_AT @ torch.linalg.inv(A @ StS_inv_AT)).float())
|
| 357 |
+
self.register_buffer('_bc_pos_indices', torch.tensor(idx, dtype=torch.long))
|
| 358 |
+
# the 30 Hz output rows: frame k after the anchor sits at grid index anchor + k / stride
|
| 359 |
+
s_dense = torch.tensor([(self.anchor + k / self.stride) / (H_ext - 1) for k in range(self.rows)],
|
| 360 |
+
dtype=torch.float64)
|
| 361 |
+
self.register_buffer('_dense_eval_matrix', legendre_basis(s_dense, self.poly_order)[0].float())
|
| 362 |
+
|
| 363 |
+
self.obs_encoder = FlashObsEncoder(cfg.n_cameras, cfg.state_dim, backbone=cfg.backbone, weights=init_weights)
|
| 364 |
+
self.model = FlashFlowTransformer(input_dim=cfg.action_dim, condition_dim=self.obs_encoder.feature_dim,
|
| 365 |
+
hidden_dim=cfg.hidden_dim, output_dim=cfg.action_dim,
|
| 366 |
+
num_layers=cfg.num_layers, num_heads=cfg.num_heads, mlp_ratio=cfg.mlp_ratio,
|
| 367 |
+
dropout=cfg.dropout, time_embed_dim=cfg.time_embed_dim)
|
| 368 |
+
|
| 369 |
+
def fit_normalizers(self, stats: dict):
|
| 370 |
+
self.state_norm.fit(stats['state']['min'], stats['state']['max'])
|
| 371 |
+
self.action_norm.fit(stats['action']['min'], stats['action']['max'])
|
| 372 |
+
|
| 373 |
+
@property
|
| 374 |
+
def sampling_steps(self) -> int:
|
| 375 |
+
return int(self.cfg.num_inference_steps or 1)
|
| 376 |
+
|
| 377 |
+
@property
|
| 378 |
+
def history_span(self) -> int:
|
| 379 |
+
"""Executed rows a query needs: (n_history - 1) * stride + 1."""
|
| 380 |
+
return (self.n_history - 1) * self.stride + 1
|
| 381 |
+
|
| 382 |
+
def first_history_row(self, state):
|
| 383 |
+
"""h0 (Da,) of a query with no executed row before it, from its physical state ('frame0'); None ('zero')."""
|
| 384 |
+
return None if self.first_history_source is None else first_history_row(self.first_history_source, state)
|
| 385 |
+
|
| 386 |
+
def extended_offsets(self) -> np.ndarray:
|
| 387 |
+
"""Frame offsets from the anchor of the extended polynomial grid (for the training targets)."""
|
| 388 |
+
return (np.arange(self.H_ext) - self.anchor) * self.stride
|
| 389 |
+
|
| 390 |
+
# polynomial operations, float32 and outside autocast ----------------------------------------------------------
|
| 391 |
+
def _to_coeff(self, traj_n):
|
| 392 |
+
return torch.einsum('ch,bhd->bcd', self._lstsq_matrix, traj_n) / self._coeff_scale
|
| 393 |
+
|
| 394 |
+
def _history_coeff(self, history, has_history):
|
| 395 |
+
with torch.autocast(history.device.type, enabled=False):
|
| 396 |
+
h = torch.einsum('ch,bhd->bcd', self._history_lstsq_matrix, self.action_norm.normalize(history.float()))
|
| 397 |
+
h = h / self._coeff_scale
|
| 398 |
+
return torch.where(has_history.view(-1, 1, 1).bool(), h, torch.zeros_like(h))
|
| 399 |
+
|
| 400 |
+
def _apply_boundary_constraint(self, norm_coeff, traj_n):
|
| 401 |
+
raw = norm_coeff * self._coeff_scale
|
| 402 |
+
idx, H = self._bc_pos_indices, traj_n.shape[1]
|
| 403 |
+
cur_pos = torch.einsum('kc,bcd->bkd', self._bc_eval_pos, raw)
|
| 404 |
+
tgt_pos = traj_n[:, idx, :]
|
| 405 |
+
vel = []
|
| 406 |
+
for i in idx.tolist():
|
| 407 |
+
if i + 1 < H:
|
| 408 |
+
v = (traj_n[:, i + 1] - traj_n[:, i - 1]) * (H - 1) / 2
|
| 409 |
+
elif i >= 2:
|
| 410 |
+
v = (3 * traj_n[:, i] - 4 * traj_n[:, i - 1] + traj_n[:, i - 2]) * (H - 1) / 2
|
| 411 |
+
else:
|
| 412 |
+
v = (traj_n[:, i] - traj_n[:, i - 1]) * (H - 1)
|
| 413 |
+
vel.append(v)
|
| 414 |
+
tgt_vel = torch.stack(vel, dim=1)
|
| 415 |
+
cur_vel = torch.einsum('kc,bcd->bkd', self._bc_eval_vel, raw)
|
| 416 |
+
residual = torch.cat([cur_pos - tgt_pos, cur_vel - tgt_vel], dim=1)
|
| 417 |
+
return (raw - torch.einsum('ck,bkd->bcd', self._bc_correction, residual)) / self._coeff_scale
|
| 418 |
+
|
| 419 |
+
def target_coeff(self, poly):
|
| 420 |
+
with torch.autocast(poly.device.type, enabled=False):
|
| 421 |
+
traj_n = self.action_norm.normalize(poly.float())
|
| 422 |
+
coeff = self._to_coeff(traj_n)
|
| 423 |
+
if self.boundary_constraint:
|
| 424 |
+
coeff = self._apply_boundary_constraint(coeff, traj_n)
|
| 425 |
+
return coeff
|
| 426 |
+
|
| 427 |
+
def dense_from_coeff(self, norm_coeff):
|
| 428 |
+
"""(B, rows, Da) physical actions at the 30 Hz frames from the anchor."""
|
| 429 |
+
with torch.autocast(norm_coeff.device.type, enabled=False):
|
| 430 |
+
raw = norm_coeff.float() * self._coeff_scale
|
| 431 |
+
return self.action_norm.unnormalize(torch.einsum('hc,bcd->bhd', self._dense_eval_matrix, raw))
|
| 432 |
+
|
| 433 |
+
def condition(self, images, state):
|
| 434 |
+
return self.obs_encoder(images, self.state_norm.normalize(state))
|
| 435 |
+
|
| 436 |
+
# training and inference ------------------------------------------------------------------------------------------
|
| 437 |
+
def compute_loss(self, images, state, poly, history, has_history):
|
| 438 |
+
target = self.target_coeff(poly)
|
| 439 |
+
hist = self._history_coeff(history, has_history)
|
| 440 |
+
if self.training and self.history_noise_std > 0:
|
| 441 |
+
hist = hist + torch.randn_like(hist) * self.history_noise_std
|
| 442 |
+
cond = self.condition(images, state)
|
| 443 |
+
t = torch.rand(target.shape[0], device=target.device)
|
| 444 |
+
te = t.view(-1, 1, 1)
|
| 445 |
+
x_t = (1 - te) * hist + te * target
|
| 446 |
+
loss_fm = F.mse_loss(self.model(x_t, t, cond).float(), target - hist)
|
| 447 |
+
loss, metrics = loss_fm, dict(fm=float(loss_fm.detach()))
|
| 448 |
+
if self.consistency_weight > 0:
|
| 449 |
+
v0 = self.model(hist, torch.zeros_like(t), cond).float()
|
| 450 |
+
loss_c = F.mse_loss(hist + v0, target)
|
| 451 |
+
loss = loss + self.consistency_weight * loss_c
|
| 452 |
+
metrics['consistency'] = float(loss_c.detach())
|
| 453 |
+
return loss, metrics
|
| 454 |
+
|
| 455 |
+
@torch.no_grad()
|
| 456 |
+
def predict_coeff(self, images, state, history, has_history):
|
| 457 |
+
cond = self.condition(images, state)
|
| 458 |
+
x = self._history_coeff(history, has_history)
|
| 459 |
+
times = torch.linspace(0, 1.0, self.sampling_steps + 1)
|
| 460 |
+
for i in range(self.sampling_steps):
|
| 461 |
+
t0 = times[i].view(1).expand(x.shape[0]).to(x.device)
|
| 462 |
+
t1 = times[i + 1].view(1).expand(x.shape[0]).to(x.device)
|
| 463 |
+
dt = (t1 - t0).view(-1, 1, 1)
|
| 464 |
+
if self.solver == 'euler':
|
| 465 |
+
x = x + dt * self.model(x, t0, cond).float()
|
| 466 |
+
else:
|
| 467 |
+
x_mid = x + self.model(x, t0, cond).float() * dt / 2
|
| 468 |
+
x = x + dt * self.model(x_mid, t0 + (t1 - t0) / 2, cond).float()
|
| 469 |
+
return x
|
| 470 |
+
|
| 471 |
+
@torch.no_grad()
|
| 472 |
+
def predict(self, images, state, history, has_history, generator=None): # noqa: ARG002 - deterministic
|
| 473 |
+
coeff = self.predict_coeff(images, state, history, has_history)
|
| 474 |
+
return self.dense_from_coeff(coeff), coeff
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/fm_dit_v2.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""FM-DiT v2: the flow-matching DiT of NTUMARS/FLASH-Policy @ f47e490 behind the baselines contract (owner 2026-11-25).
|
| 2 |
+
|
| 3 |
+
Not the `fm_dit` baseline of policies.py (FM-DiT v1, ported from DextraVerse's IL core), which stays unchanged for the
|
| 4 |
+
checkpoints trained with it. The owner asked for this second implementation after the v1 checkpoints reached 1 success
|
| 5 |
+
in all their closed-loop evaluations; if v2 scores higher under the same training and evaluation, v1 is retired.
|
| 6 |
+
|
| 7 |
+
Ported from `roboverse_learn/il/policies/fm/fm_dit_image_policy.py` (`FlowMatchingDiTImagePolicy`) with
|
| 8 |
+
`configs/policy_config/fm_dit.yaml` and `configs/train_config/default_train.yaml`, FLASH-Policy's own FM-DiT baseline.
|
| 9 |
+
Its network is FLASH's (flow_net.FlowTransformer with the torchtune RoPE, MultiImageObsEncoder), so this module
|
| 10 |
+
reuses flash.py's port of them; only the flow and the sampler differ from FLASH:
|
| 11 |
+
|
| 12 |
+
- loss: x_t = (1 - t) noise + t a with t ~ U(0, 1) and noise ~ N(0, I) over the whole normalized chunk; MSE of the
|
| 13 |
+
DiT's output against a - noise (obs_as_global_cond: no inpainting mask, every element counts);
|
| 14 |
+
- sampling: num_inference_steps 10 midpoint steps from noise (20 DiT calls), t = 0 -> 1;
|
| 15 |
+
- fm_dit.yaml: DiT 512 wide, 4 blocks, 8 heads, mlp ratio 4, dropout 0.1, time embedding 256; one ResNet18 per camera
|
| 16 |
+
from scratch with GroupNorm, ImageNet normalization of the range-normalized image; the state joins the image
|
| 17 |
+
features as the low-dim input (agent_pos), as in FLASH's encoder;
|
| 18 |
+
- default_train.yaml: seed 42, AdamW lr 1e-4 (betas 0.95 / 0.999, weight decay 1e-6), 500 warm-up steps then
|
| 19 |
+
diffusers' cosine, Diffusion Policy's EMAModel (power 0.75, max 0.9999), the encoder at the full learning rate
|
| 20 |
+
(train.py FM_DIT_V2_TRAINING).
|
| 21 |
+
|
| 22 |
+
What the humanoid interface changes, as for FLASH (flash.py, owner 2026-11-24/25: aligned with FLASH's port):
|
| 23 |
+
one observation frame (the current ego_view and chest frames and state44; the runners render no 8-frame history),
|
| 24 |
+
16 rows of action76 at 30 Hz from the query frame (row 0 = the query frame, the LeRobot rows t..t+15, as every
|
| 25 |
+
baseline), the augmentation spec v2 in place of the native random_crop (inert upstream without crop_shape), the
|
| 26 |
+
benchmark's batch 512 on one GPU. The runners re-query after at most 12 rows (FLASH-Policy executes 8 of 16).
|
| 27 |
+
"""
|
| 28 |
+
from __future__ import annotations
|
| 29 |
+
|
| 30 |
+
import torch
|
| 31 |
+
import torch.nn as nn
|
| 32 |
+
import torch.nn.functional as F
|
| 33 |
+
|
| 34 |
+
from .flash import FlashFlowTransformer, FlashObsEncoder
|
| 35 |
+
|
| 36 |
+
# fm_dit.yaml: the PolicyConfig fields of an FM-DiT v2 run
|
| 37 |
+
FM_DIT_V2_POLICY_FIELDS = dict(hidden_dim=512, num_layers=4, num_heads=8, mlp_ratio=4.0, dropout=0.1,
|
| 38 |
+
time_embed_dim=256, num_inference_steps=10, backbone='resnet18',
|
| 39 |
+
backbone_weights=None, backbone_norm='group')
|
| 40 |
+
UPSTREAM = 'NTUMARS/FLASH-Policy@f47e490 roboverse_learn/il/policies/fm/fm_dit_image_policy.py (fm_dit.yaml)'
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class FMDiTv2Policy(nn.Module):
|
| 44 |
+
"""FLASH-Policy's FlowMatchingDiTImagePolicy on the baselines contract (module docstring). The policies.BasePolicy
|
| 45 |
+
contract (an nn.Module, as flash.FlashPolicy, so that policies.py can register it without an import cycle)."""
|
| 46 |
+
name = 'fm_dit_v2'
|
| 47 |
+
backbone_prefix = 'obs_encoder.rgb.'
|
| 48 |
+
lead_rows = 0
|
| 49 |
+
|
| 50 |
+
def __init__(self, cfg, init_weights=None):
|
| 51 |
+
super().__init__()
|
| 52 |
+
from .policies import Normalizer
|
| 53 |
+
self.cfg = cfg
|
| 54 |
+
self.state_norm = Normalizer(cfg.state_dim)
|
| 55 |
+
self.action_norm = Normalizer(cfg.action_dim)
|
| 56 |
+
self.obs_encoder = FlashObsEncoder(cfg.n_cameras, cfg.state_dim, backbone=cfg.backbone, weights=init_weights)
|
| 57 |
+
# fm_dit_image_policy.py: max_seq_len = horizon (the RoPE cache covers the action tokens)
|
| 58 |
+
self.model = FlashFlowTransformer(input_dim=cfg.action_dim, condition_dim=self.obs_encoder.feature_dim,
|
| 59 |
+
hidden_dim=cfg.hidden_dim, output_dim=cfg.action_dim,
|
| 60 |
+
num_layers=cfg.num_layers, num_heads=cfg.num_heads,
|
| 61 |
+
mlp_ratio=cfg.mlp_ratio, dropout=cfg.dropout,
|
| 62 |
+
time_embed_dim=cfg.time_embed_dim, max_seq_len=cfg.horizon)
|
| 63 |
+
|
| 64 |
+
def fit_normalizers(self, stats: dict):
|
| 65 |
+
"""LinearNormalizer 'limits' (upstream's default): state and action min / max to [-1, 1]."""
|
| 66 |
+
self.state_norm.fit(stats['state']['min'], stats['state']['max'])
|
| 67 |
+
self.action_norm.fit(stats['action']['min'], stats['action']['max'])
|
| 68 |
+
|
| 69 |
+
@property
|
| 70 |
+
def sampling_steps(self) -> int:
|
| 71 |
+
return int(self.cfg.num_inference_steps or 10)
|
| 72 |
+
|
| 73 |
+
def condition(self, images, state):
|
| 74 |
+
return self.obs_encoder(images, self.state_norm.normalize(state))
|
| 75 |
+
|
| 76 |
+
def compute_loss(self, images, state, action):
|
| 77 |
+
cond = self.condition(images, state)
|
| 78 |
+
target = self.action_norm.normalize(action.float())
|
| 79 |
+
noise = torch.randn_like(target)
|
| 80 |
+
t = torch.rand(target.shape[0], device=target.device)
|
| 81 |
+
te = t.view(-1, 1, 1)
|
| 82 |
+
x_t = (1 - te) * noise + te * target
|
| 83 |
+
loss = F.mse_loss(self.model(x_t, t, cond).float(), target - noise)
|
| 84 |
+
return loss, dict(fm=float(loss.detach()))
|
| 85 |
+
|
| 86 |
+
@torch.no_grad()
|
| 87 |
+
def predict(self, images, state, generator=None):
|
| 88 |
+
cond = self.condition(images, state)
|
| 89 |
+
B, steps = images.shape[0], self.sampling_steps
|
| 90 |
+
x = torch.randn((B, self.cfg.horizon, self.cfg.action_dim), device=images.device, dtype=torch.float32,
|
| 91 |
+
generator=generator)
|
| 92 |
+
times = torch.linspace(0, 1.0, steps + 1)
|
| 93 |
+
for i in range(steps): # conditional_sample: the midpoint rule
|
| 94 |
+
t0 = times[i].view(1).expand(B).to(images.device)
|
| 95 |
+
t1 = times[i + 1].view(1).expand(B).to(images.device)
|
| 96 |
+
dt = (t1 - t0).view(-1, 1, 1)
|
| 97 |
+
x_mid = x + self.model(x, t0, cond).float() * dt / 2
|
| 98 |
+
x = x + dt * self.model(x_mid, t0 + (t1 - t0) / 2, cond).float()
|
| 99 |
+
return self.action_norm.unnormalize(x), x
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/inloop.py
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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, lowdim_loader=None):
|
| 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 |
+
def check(rows, what):
|
| 53 |
+
done = []
|
| 54 |
+
for ep in meta['episodes']: # the cache holds this run's data
|
| 55 |
+
if ep not in rows['episodes']:
|
| 56 |
+
continue
|
| 57 |
+
p = rows['episodes'].index(ep)
|
| 58 |
+
s, n = int(rows['starts'][p]), int(rows['lengths'][p])
|
| 59 |
+
with np.load(E.split_dir(task, split) / f'ep_{ep:06d}.npz') as z:
|
| 60 |
+
same = (np.array_equal(z['state'], rows['state'][s:s + n])
|
| 61 |
+
and np.array_equal(z['action'], rows['action'][s:s + n]))
|
| 62 |
+
if not same:
|
| 63 |
+
raise ValueError(f'eval cache {task}/{split} episode {ep} differs from {what} '
|
| 64 |
+
f'(cache source {meta.get("source")})')
|
| 65 |
+
done.append(ep)
|
| 66 |
+
return done
|
| 67 |
+
|
| 68 |
+
checked = check(lowdim, 'the training data')
|
| 69 |
+
if not checked and lowdim_loader is not None:
|
| 70 |
+
# a held-out split: its episodes are not trained on, so they are checked against the same dataset read
|
| 71 |
+
# through the same contract (2026-11-24, B7 black lead-drop b7td: train 0-99, held out 100-106)
|
| 72 |
+
checked = check(lowdim_loader(list(meta['episodes'])), "this run's dataset (held-out episodes)")
|
| 73 |
+
if not checked:
|
| 74 |
+
raise ValueError(f'no cached episode of {task}/{split} is in this run\'s data: cannot check the cache')
|
| 75 |
+
|
| 76 |
+
import torch
|
| 77 |
+
|
| 78 |
+
def predict(batch, seed):
|
| 79 |
+
model = get_model()
|
| 80 |
+
device = next(model.parameters()).device
|
| 81 |
+
frames = np.stack([np.stack([resize_frame(q['images'][c], hw) for c in cameras]) for q in batch])
|
| 82 |
+
images = torch.from_numpy(frames).to(device).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 83 |
+
state = torch.from_numpy(np.stack([q['state'] for q in batch]).astype(np.float32)).to(device)
|
| 84 |
+
generator = torch.Generator(device=device)
|
| 85 |
+
generator.manual_seed(int(seed))
|
| 86 |
+
extra = ()
|
| 87 |
+
if policy_name == 'flash':
|
| 88 |
+
from .flash import history_rows
|
| 89 |
+
span, hist, has = model.history_span, [], []
|
| 90 |
+
for q in batch:
|
| 91 |
+
past = np.asarray(q['past_action'], np.float32).reshape(-1, contract.action_dim)
|
| 92 |
+
rows = np.zeros((max(span, len(past)), contract.action_dim), np.float32)
|
| 93 |
+
valid = np.zeros(len(rows), bool)
|
| 94 |
+
if len(past):
|
| 95 |
+
rows[-len(past):], valid[-len(past):] = past, True
|
| 96 |
+
h, ok = history_rows(rows[-span:], valid[-span:], model.stride, model.n_history,
|
| 97 |
+
first_row=model.first_history_row(q['state'])) # 'frame0': h0 at t = 0
|
| 98 |
+
hist.append(h)
|
| 99 |
+
has.append(ok)
|
| 100 |
+
extra = (torch.from_numpy(np.stack(hist)).to(device), torch.tensor(has, device=device))
|
| 101 |
+
kwargs = {}
|
| 102 |
+
if getattr(model, 'lead_rows', 0): # the ODE policies start from the executed row before (BOS without one)
|
| 103 |
+
prev = [np.asarray(q.get('past_action', ()), np.float32).reshape(-1, contract.action_dim) for q in batch]
|
| 104 |
+
kwargs = dict(previous=torch.from_numpy(np.stack([p[-1] if len(p) else np.zeros(contract.action_dim,
|
| 105 |
+
np.float32)
|
| 106 |
+
for p in prev])).to(device),
|
| 107 |
+
has_previous=torch.tensor([len(p) > 0 for p in prev], device=device))
|
| 108 |
+
pred, _ = model.predict(images, state, *extra, generator=generator, **kwargs)
|
| 109 |
+
return pred.float().cpu().numpy()
|
| 110 |
+
|
| 111 |
+
info = dict(weights='ema', policy=policy_name, cache_checked_episodes=checked,
|
| 112 |
+
inloop_code=str(code_dir), cache=str(E.split_dir(task, split)))
|
| 113 |
+
loop = core.InLoop(policy_name, task, split, Path(run_dir) / 'logs' / 'inloop-mse.jsonl', predict,
|
| 114 |
+
cams=list(cameras), info=info)
|
| 115 |
+
loop.every = core.EVERY
|
| 116 |
+
loop.say(f'{policy_name} installed: task {task} split {split}, every {core.EVERY} steps, cache checked on '
|
| 117 |
+
f'episodes {checked}, code {code_dir}, G={os.environ.get("G", "<default>")}')
|
| 118 |
+
return loop
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/nets.py
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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extraVerse'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. shared=False gives every camera its own
|
| 192 |
+
ResNet (share_rgb_model False, the ODE policy's encoder; `rgb` is then a ModuleList in camera order).
|
| 193 |
+
Output (B, n_cameras * 512 + state_dim)."""
|
| 194 |
+
|
| 195 |
+
def __init__(self, n_cameras, state_dim, backbone='resnet18', weights=None, norm='group', shared=True):
|
| 196 |
+
super().__init__()
|
| 197 |
+
self.n_cameras, self.state_dim, self.shared = int(n_cameras), int(state_dim), bool(shared)
|
| 198 |
+
self.rgb = (get_resnet(backbone, weights=weights, norm=norm) if self.shared else
|
| 199 |
+
nn.ModuleList([get_resnet(backbone, weights=weights, norm=norm) for _ in range(self.n_cameras)]))
|
| 200 |
+
self.register_buffer('mean', torch.tensor(IMAGENET_MEAN).view(1, 3, 1, 1), persistent=False)
|
| 201 |
+
self.register_buffer('std', torch.tensor(IMAGENET_STD).view(1, 3, 1, 1), persistent=False)
|
| 202 |
+
self.feature_dim = self.n_cameras * (512 if backbone in ('resnet18', 'resnet34') else 2048) + self.state_dim
|
| 203 |
+
|
| 204 |
+
def forward(self, images, state):
|
| 205 |
+
"""images (B, n_cameras, 3, H, W) in [0, 1]; state (B, state_dim) normalized."""
|
| 206 |
+
B = images.shape[0]
|
| 207 |
+
if self.shared:
|
| 208 |
+
x = (images.flatten(0, 1) - self.mean) / self.std
|
| 209 |
+
features = self.rgb(x).reshape(B, -1) # camera features side by side, in camera order
|
| 210 |
+
else:
|
| 211 |
+
features = torch.cat([net((images[:, i] - self.mean) / self.std) for i, net in enumerate(self.rgb)], dim=-1)
|
| 212 |
+
return torch.cat([features, state], dim=-1)
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/ode_nets.py
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Vector fields of the ODE policy baselines (ODE-MLP, ODE-DiT).
|
| 2 |
+
|
| 3 |
+
Ported from ODE Policy (Jindou Jia et al., https://github.com/NTUMARS/ODE-POLICY, branch main @cea26d94, Apache-2.0):
|
| 4 |
+
`ode_policy/policies/ode/ode_image_policy.py` (`_FiLMLayer`, `VectorField`, `DiTVectorField`) and the DiT parts it
|
| 5 |
+
uses, `ode_policy/utils/models/flow_net.py` (`Attention`, `AdaLNBlock`), `ode_policy/utils/models/layers.py` (`Mlp`)
|
| 6 |
+
and `ode_policy/policies/dp/models/diffusion/positional_embedding.py` (`RotaryPosEmb`, torchtune's interleaved RoPE
|
| 7 |
+
over the full width, which differs from the DextraVerse RoPE of nets.py). Architectures and initializations are
|
| 8 |
+
unchanged. Left out: the gripper-only dropout pass (`drop_first`; the benchmark's actions have no binary gripper).
|
| 9 |
+
|
| 10 |
+
Both fields are autonomous (no time input): f(a, s | c) depends only on where the action state `a` is, the
|
| 11 |
+
proprioception `s` (when the field reads it) and the per-chunk condition `c`; the output layer starts at zero, so an
|
| 12 |
+
untrained policy holds its start action.
|
| 13 |
+
"""
|
| 14 |
+
from __future__ import annotations
|
| 15 |
+
|
| 16 |
+
import torch
|
| 17 |
+
import torch.nn as nn
|
| 18 |
+
import torch.nn.functional as F
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class FiLMLayer(nn.Module):
|
| 22 |
+
def __init__(self, dim, cond_dim):
|
| 23 |
+
super().__init__()
|
| 24 |
+
self.lin = nn.Linear(dim, dim)
|
| 25 |
+
self.film = nn.Linear(cond_dim, 2 * dim)
|
| 26 |
+
|
| 27 |
+
def forward(self, h, c=None, gb=None):
|
| 28 |
+
g, b = gb if gb is not None else self.film(c).chunk(2, dim=-1)
|
| 29 |
+
return h + F.silu(self.lin(h) * (1 + g) + b)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class VectorField(nn.Module):
|
| 33 |
+
"""ODE-MLP: f(a, s | c), a FiLM-modulated residual MLP. Training-only dropout on the hidden units keeps one mask
|
| 34 |
+
per sample for every field call until reset_dropout(), so a whole integrated chunk sees one thinned field."""
|
| 35 |
+
|
| 36 |
+
def __init__(self, cond_dim, state_dim, hidden_dim, num_layers, out_dim, pose_dim, dropout=0.0):
|
| 37 |
+
super().__init__()
|
| 38 |
+
self.dropout, self._masks = float(dropout), None
|
| 39 |
+
self.inp = nn.Linear(pose_dim + state_dim, hidden_dim)
|
| 40 |
+
self.layers = nn.ModuleList([FiLMLayer(hidden_dim, cond_dim) for _ in range(num_layers)])
|
| 41 |
+
self.out = nn.Linear(hidden_dim, out_dim)
|
| 42 |
+
self.feat_dim = hidden_dim
|
| 43 |
+
nn.init.zeros_(self.out.weight)
|
| 44 |
+
nn.init.zeros_(self.out.bias)
|
| 45 |
+
|
| 46 |
+
def precompute(self, c):
|
| 47 |
+
"""FiLM scale/shift depend on c only; computed once per integration."""
|
| 48 |
+
return [layer.film(c).chunk(2, dim=-1) for layer in self.layers]
|
| 49 |
+
|
| 50 |
+
def reset_dropout(self):
|
| 51 |
+
self._masks = None
|
| 52 |
+
|
| 53 |
+
def forward(self, a, s, c, film=None):
|
| 54 |
+
drop = self.training and self.dropout > 0
|
| 55 |
+
h = self.inp(torch.cat([a, s], dim=-1))
|
| 56 |
+
if drop and (self._masks is None or self._masks[0].shape != h.shape):
|
| 57 |
+
keep = 1.0 - self.dropout
|
| 58 |
+
self._masks = [torch.bernoulli(torch.full_like(h, keep)) / keep for _ in self.layers]
|
| 59 |
+
for i, layer in enumerate(self.layers):
|
| 60 |
+
h = layer(h, c, None if film is None else film[i])
|
| 61 |
+
if drop:
|
| 62 |
+
h = h * self._masks[i]
|
| 63 |
+
return self.out(h)
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
class RotaryPosEmb(nn.Module):
|
| 67 |
+
"""Rotary positional embedding (torchtune), built over the full width `dim` and applied to the heads' slices."""
|
| 68 |
+
|
| 69 |
+
def __init__(self, dim: int, max_seq_len: int = 256, base: int = 10_000):
|
| 70 |
+
super().__init__()
|
| 71 |
+
self.dim, self.base, self.max_seq_len = dim, base, max_seq_len
|
| 72 |
+
theta = 1.0 / (base ** (torch.arange(0, dim, 2)[: (dim // 2)].float() / dim))
|
| 73 |
+
self.register_buffer('theta', theta, persistent=False)
|
| 74 |
+
seq_idx = torch.arange(max_seq_len, dtype=theta.dtype)
|
| 75 |
+
idx_theta = torch.einsum('i, j -> ij', seq_idx, theta).float()
|
| 76 |
+
self.register_buffer('cache', torch.stack([torch.cos(idx_theta), torch.sin(idx_theta)], dim=-1),
|
| 77 |
+
persistent=False)
|
| 78 |
+
|
| 79 |
+
def forward(self, x):
|
| 80 |
+
"""x (B, num_heads, S, head_dim) -> the same shape."""
|
| 81 |
+
x = x.permute(0, 2, 1, 3) # (B, S, num_heads, head_dim)
|
| 82 |
+
B, S, num_heads, head_dim = x.size()
|
| 83 |
+
rope_cache = self.cache[:S]
|
| 84 |
+
xshaped = x.float().reshape(*x.shape[:-1], head_dim // 2, 2)
|
| 85 |
+
rope_cache = rope_cache.view(1, S, num_heads, head_dim // 2, 2)
|
| 86 |
+
x_out = torch.stack([xshaped[..., 0] * rope_cache[..., 0] - xshaped[..., 1] * rope_cache[..., 1],
|
| 87 |
+
xshaped[..., 1] * rope_cache[..., 0] + xshaped[..., 0] * rope_cache[..., 1]], -1)
|
| 88 |
+
return x_out.flatten(3).permute(0, 2, 1, 3).type_as(x)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
class Attention(nn.Module):
|
| 92 |
+
def __init__(self, dim, num_heads=8, qkv_bias=True, attn_drop=0., proj_drop=0., max_seq_len=64, qk_norm=True):
|
| 93 |
+
super().__init__()
|
| 94 |
+
assert dim % num_heads == 0, 'dim should be divisible by num_heads'
|
| 95 |
+
self.num_heads = num_heads
|
| 96 |
+
self.head_dim = dim // num_heads
|
| 97 |
+
self.attn_drop = attn_drop
|
| 98 |
+
self.proj_drop = nn.Dropout(proj_drop)
|
| 99 |
+
self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
|
| 100 |
+
self.q_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 101 |
+
self.k_norm = nn.LayerNorm(self.head_dim) if qk_norm else nn.Identity()
|
| 102 |
+
self.proj = nn.Linear(dim, dim)
|
| 103 |
+
self.rope = RotaryPosEmb(dim, max_seq_len=max_seq_len)
|
| 104 |
+
|
| 105 |
+
def forward(self, x, mask=None):
|
| 106 |
+
B, S, C = x.shape
|
| 107 |
+
qkv = self.qkv(x).reshape(B, S, 3, self.num_heads, self.head_dim).permute(2, 0, 3, 1, 4)
|
| 108 |
+
q, k, v = qkv.unbind(0)
|
| 109 |
+
q, k = self.rope(self.q_norm(q)), self.rope(self.k_norm(k))
|
| 110 |
+
if self.training:
|
| 111 |
+
x = F.scaled_dot_product_attention(q, k, v, attn_mask=mask, dropout_p=self.attn_drop)
|
| 112 |
+
else:
|
| 113 |
+
x = F.scaled_dot_product_attention(q, k, v)
|
| 114 |
+
return self.proj_drop(self.proj(x.transpose(1, 2).reshape(B, S, C)))
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
class Mlp(nn.Module):
|
| 118 |
+
"""The ViT MLP (timm.layers.Mlp) as ODE Policy's utils/models/layers.py, linear layers only."""
|
| 119 |
+
|
| 120 |
+
def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.):
|
| 121 |
+
super().__init__()
|
| 122 |
+
out_features = out_features or in_features
|
| 123 |
+
hidden_features = hidden_features or in_features
|
| 124 |
+
self.fc1 = nn.Linear(in_features, hidden_features)
|
| 125 |
+
self.act = act_layer()
|
| 126 |
+
self.drop1 = nn.Dropout(drop)
|
| 127 |
+
self.norm = nn.Identity()
|
| 128 |
+
self.fc2 = nn.Linear(hidden_features, out_features)
|
| 129 |
+
self.drop2 = nn.Dropout(drop)
|
| 130 |
+
|
| 131 |
+
def forward(self, x):
|
| 132 |
+
return self.drop2(self.fc2(self.norm(self.drop1(self.act(self.fc1(x))))))
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
class AdaLNBlock(nn.Module):
|
| 136 |
+
"""Adaptive-LayerNorm transformer block as in DiT (Peebles et al. 2022); ada_ln starts at zero (adaLN-zero)."""
|
| 137 |
+
|
| 138 |
+
def __init__(self, dim, num_heads, mlp_ratio=4., dropout=0.):
|
| 139 |
+
super().__init__()
|
| 140 |
+
self.norm1 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 141 |
+
self.attn = Attention(dim, num_heads=num_heads, attn_drop=dropout, proj_drop=dropout)
|
| 142 |
+
self.norm2 = nn.LayerNorm(dim, elementwise_affine=False, eps=1e-6)
|
| 143 |
+
self.mlp = Mlp(in_features=dim, hidden_features=int(dim * mlp_ratio),
|
| 144 |
+
act_layer=lambda: nn.GELU(approximate='tanh'), drop=0)
|
| 145 |
+
self.ada_ln = nn.Sequential(nn.SiLU(), nn.Linear(dim, 6 * dim))
|
| 146 |
+
self.dim = dim
|
| 147 |
+
nn.init.constant_(self.ada_ln[-1].weight, 0)
|
| 148 |
+
nn.init.constant_(self.ada_ln[-1].bias, 0)
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
class DiTVectorField(nn.Module):
|
| 152 |
+
"""ODE-DiT: the vector field built from DiT blocks. [a, s] is projected to n_tokens tokens; every block's
|
| 153 |
+
LayerNorm scales/shifts/gates are regressed from the condition c (no time input: the field is autonomous); the
|
| 154 |
+
tokens are pooled for the output. Same interface and zero-initialized output as VectorField."""
|
| 155 |
+
|
| 156 |
+
def __init__(self, cond_dim, state_dim, hidden_dim, num_layers, out_dim, pose_dim, num_heads=8, n_tokens=4,
|
| 157 |
+
mlp_ratio=4.0):
|
| 158 |
+
super().__init__()
|
| 159 |
+
self.n_tokens, self.hidden_dim, self.feat_dim = n_tokens, hidden_dim, hidden_dim
|
| 160 |
+
self.inp = nn.Linear(pose_dim + state_dim, n_tokens * hidden_dim)
|
| 161 |
+
self.pos = nn.Parameter(torch.zeros(1, n_tokens, hidden_dim))
|
| 162 |
+
self.cond = nn.Linear(cond_dim, hidden_dim)
|
| 163 |
+
self.blocks = nn.ModuleList([AdaLNBlock(hidden_dim, num_heads, mlp_ratio) for _ in range(num_layers)])
|
| 164 |
+
self.norm = nn.LayerNorm(hidden_dim)
|
| 165 |
+
self.out = nn.Linear(hidden_dim, out_dim)
|
| 166 |
+
nn.init.zeros_(self.out.weight)
|
| 167 |
+
nn.init.zeros_(self.out.bias)
|
| 168 |
+
|
| 169 |
+
def precompute(self, c):
|
| 170 |
+
"""The adaLN scales/shifts/gates depend on c only: computed once per integration."""
|
| 171 |
+
cc = F.silu(self.cond(c))
|
| 172 |
+
return [blk.ada_ln(cc).view(c.shape[0], 6, 1, self.hidden_dim).unbind(1) for blk in self.blocks]
|
| 173 |
+
|
| 174 |
+
def forward(self, a, s, c, film=None):
|
| 175 |
+
B = a.shape[0]
|
| 176 |
+
x = self.inp(torch.cat([a, s], dim=-1)).view(B, self.n_tokens, self.hidden_dim) + self.pos
|
| 177 |
+
mods = self.precompute(c) if film is None else film
|
| 178 |
+
for blk, (g1, g2, sc1, sc2, sh1, sh2) in zip(self.blocks, mods):
|
| 179 |
+
x = x + blk.attn(blk.norm1(x) * (1 + sc1) + sh1) * g1
|
| 180 |
+
x = x + blk.mlp(blk.norm2(x) * (1 + sc2) + sh2) * g2
|
| 181 |
+
return self.out(self.norm(x).mean(dim=1))
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/policies.py
ADDED
|
@@ -0,0 +1,459 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
"""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 |
+
- `fm_dit_v2`, `fm_dit_v2.FMDiTv2Policy` (FLASH-Policy @ f47e490's own FM-DiT, owner 2026-11-25): flow matching from
|
| 11 |
+
noise as `fm_dit`, on FLASH's networks (DiT 512, one from-scratch GroupNorm ResNet18 per camera) and recipe; a
|
| 12 |
+
separate entry: `fm_dit` (v1) keeps its checkpoints and behaviour (fm_dit_v2.py's docstring).
|
| 13 |
+
|
| 14 |
+
Two follow ODE Policy's G1 port (Jia et al., github.com/NTUMARS/ODE-POLICY branch real-g1 @fd8bec47, maintained in
|
| 15 |
+
HumanWAM as packages/ode_g1: model.py `SonicLatentODE`, data.py), with its GR00T backbone replaced by ODE Policy's own
|
| 16 |
+
image encoder (ode_policy main @cea26d94, ode.yaml), each in its authors' configuration (not aligned with the others):
|
| 17 |
+
|
| 18 |
+
- `ode_mlp`, `ODEPolicy`: the body part of the action (G1: the SONIC motion token) is an ODE state, db/dt =
|
| 19 |
+
f(b, s | c) with a FiLM residual MLP field, integrated with Euler one row per step from the body row executed at t-1;
|
| 20 |
+
the hands are decoded from c; masked MSE of the integrated path and the hands;
|
| 21 |
+
- `ode_dit`, `ODEDiTPolicy`: the same with ODE Policy's DiT (adaLN) field (ode_dit.yaml).
|
| 22 |
+
|
| 23 |
+
Contract (every policy): `compute_loss(images, state, action) -> (loss, metrics)` and
|
| 24 |
+
`predict(images, state, generator) -> (action, normalized action)`; images (B, n_cameras, 3, H, W) float in [0, 1],
|
| 25 |
+
state (B, state_dim) and action (B, lead_rows + horizon, action_dim) in physical units. Each policy owns its
|
| 26 |
+
`Normalizer` (DextraVerse's LinearNormalizer 'limits' mode: state and action to [-1, 1] per dimension, constant
|
| 27 |
+
dimensions shifted to 0), saved in its state dict. One observation frame (n_obs_steps 1: the current images and
|
| 28 |
+
state); the chunk's row 0 is the action of the observation's own frame (the LeRobot rows t..t+horizon-1). A policy
|
| 29 |
+
with `lead_rows` 1 (the ODE policies) also reads the row before, t-1, and the rows' validity (ChunkDataset `lead`),
|
| 30 |
+
and its `predict` takes `previous`, the action row executed at t-1. The ODE policies normalize with their own bounds
|
| 31 |
+
(q01 / q99, the DFX6 hands fixed at [0, 1], clipped to [-5, 5]). The configuration that builds a policy is a plain
|
| 32 |
+
dict (`PolicyConfig` fields), stored in the checkpoint.
|
| 33 |
+
|
| 34 |
+
The ResNet18 of FM-DiT, DP and ACT starts from torchvision's ImageNet-1k weights (`backbone_weights` 'IMAGENET1K_V1',
|
| 35 |
+
the default since 2026-11-16) and is fine-tuned with the policy, its BatchNorm frozen at the pretrained statistics
|
| 36 |
+
(`backbone_norm` 'frozen_bn', as ACT always does); `backbone_weights` None trains from scratch with DextraVerse's
|
| 37 |
+
GroupNorm encoder (FM-DiT, DP) or ACT's frozen-BatchNorm one. The ODE policies default to ODE Policy's encoder: one
|
| 38 |
+
ResNet18 per camera, from scratch, GroupNorm. A checkpoint load builds the structure without fetching any weights.
|
| 39 |
+
"""
|
| 40 |
+
from __future__ import annotations
|
| 41 |
+
|
| 42 |
+
from dataclasses import asdict, dataclass, field, replace
|
| 43 |
+
|
| 44 |
+
import torch
|
| 45 |
+
import torch.nn as nn
|
| 46 |
+
import torch.nn.functional as F
|
| 47 |
+
|
| 48 |
+
from .act_nets import DETRVAE, Transformer, build_backbone, build_style_encoder, kl_divergence
|
| 49 |
+
from .nets import IMAGENET_MEAN, IMAGENET_STD, FlowTransformer, ImageStateEncoder
|
| 50 |
+
from .ode_nets import DiTVectorField, VectorField
|
| 51 |
+
|
| 52 |
+
ODE_POLICIES = ('ode_mlp', 'ode_dit')
|
| 53 |
+
# Defaults that differ by policy. horizon and backbone_weights resolve in PolicyConfig; backbone_lr_scale (and amp)
|
| 54 |
+
# are the training script's. The ODE policies: 16-row chunks (the G1 port's H16; its deployment re-plans about 4 rows
|
| 55 |
+
# before a chunk ends, as the benchmark clients' query every 12 rows), ODE Policy's encoder from scratch at the full
|
| 56 |
+
# learning rate (ode.yaml, default_train.yaml). Mixed precision as the G1 port: the encoder under bf16 autocast, the
|
| 57 |
+
# ODE head in FP32.
|
| 58 |
+
# The training recipe of ODE Policy's default_train.yaml (the same NTUMARS trainer as FLASH's): seed 42, lr 1e-4 at
|
| 59 |
+
# the benchmark's batch 512 without batch scaling (as every model of the protocol, HumanWAM REPRODUCIBILITY.md
|
| 60 |
+
# section 4), 500-step warm-up then diffusers' cosine, Diffusion Policy's EMAModel as upstream counts it.
|
| 61 |
+
POLICY_DEFAULTS = {name: dict(horizon=16, backbone_weights=None, backbone_lr_scale=1.0, seed=42,
|
| 62 |
+
schedule='diffusers_cosine', ema_schedule='diffusion_policy_emamodel')
|
| 63 |
+
for name in ODE_POLICIES}
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
@dataclass
|
| 67 |
+
class PolicyConfig:
|
| 68 |
+
"""Everything that builds a policy (stored in the checkpoint's config.json). Model defaults are DextraVerse's
|
| 69 |
+
configs/algorithm/il/model/{fm_dit,ddpm_dit,act}.yaml and, for the ODE policies (`ode_*` fields), ODE Policy's G1
|
| 70 |
+
port (HumanWAM packages/ode_g1 configs/g1.yaml `head`) and ode_dit.yaml for the DiT field."""
|
| 71 |
+
policy: str
|
| 72 |
+
n_cameras: int
|
| 73 |
+
state_dim: int
|
| 74 |
+
action_dim: int
|
| 75 |
+
horizon: int | None = None # None: the policy's default (POLICY_DEFAULTS, else 16)
|
| 76 |
+
backbone: str = 'resnet18'
|
| 77 |
+
# torchvision weights to initialize from; None = from scratch; 'default': IMAGENET1K_V1, the ODE policies None
|
| 78 |
+
backbone_weights: str | None = 'default'
|
| 79 |
+
backbone_norm: str | None = None # 'frozen_bn' or 'group'; None: frozen_bn when pretrained or ACT, else group
|
| 80 |
+
# FM-DiT / DP (DiT backbone)
|
| 81 |
+
hidden_dim: int = 384
|
| 82 |
+
num_layers: int = 4
|
| 83 |
+
num_heads: int = 8
|
| 84 |
+
mlp_ratio: float = 4.0
|
| 85 |
+
dropout: float = 0.1
|
| 86 |
+
time_embed_dim: int = 128
|
| 87 |
+
num_inference_steps: int | None = None # None: FM-DiT 10 midpoint steps, DP every training timestep (100)
|
| 88 |
+
# DP noise schedule (diffusers DDPMScheduler)
|
| 89 |
+
num_train_timesteps: int = 100
|
| 90 |
+
beta_schedule: str = 'squaredcos_cap_v2'
|
| 91 |
+
prediction_type: str = 'epsilon'
|
| 92 |
+
clip_sample: bool = True
|
| 93 |
+
# ACT
|
| 94 |
+
act_hidden_dim: int = 512
|
| 95 |
+
dim_feedforward: int = 3200
|
| 96 |
+
enc_layers: int = 4
|
| 97 |
+
dec_layers: int = 7
|
| 98 |
+
nheads: int = 8
|
| 99 |
+
latent_dim: int = 32
|
| 100 |
+
kl_weight: float = 10.0
|
| 101 |
+
# ODE policies (G1 port, configs/g1.yaml head: width 512, 4 FiLM layers, cond 512, field_scale 1). ode_body_dim:
|
| 102 |
+
# the leading action columns integrated as the ODE state, the rest decoded from the condition (G1: the token 64 and
|
| 103 |
+
# the DFX6 12; train.py sets it to the contract's first action group, H2: body_target 31). ODE-DiT: ODE Policy's
|
| 104 |
+
# DiT field, 512 wide, 4 blocks, 8 heads, 4 tokens (ode_dit.yaml).
|
| 105 |
+
ode_body_dim: int | None = None
|
| 106 |
+
ode_width: int = 512
|
| 107 |
+
ode_layers: int = 4
|
| 108 |
+
ode_cond_dim: int = 512
|
| 109 |
+
ode_field_scale: float = 1.0
|
| 110 |
+
ode_dit_hidden: int = 512
|
| 111 |
+
ode_dit_layers: int = 4
|
| 112 |
+
ode_dit_heads: int = 8
|
| 113 |
+
ode_dit_tokens: int = 4
|
| 114 |
+
extra: dict = field(default_factory=dict)
|
| 115 |
+
|
| 116 |
+
def __post_init__(self):
|
| 117 |
+
defaults = POLICY_DEFAULTS.get(self.policy, {})
|
| 118 |
+
if self.horizon is None:
|
| 119 |
+
self.horizon = int(defaults.get('horizon', 16))
|
| 120 |
+
if self.backbone_weights == 'default':
|
| 121 |
+
self.backbone_weights = defaults.get('backbone_weights', 'IMAGENET1K_V1')
|
| 122 |
+
if self.backbone_norm is None:
|
| 123 |
+
self.backbone_norm = 'frozen_bn' if self.backbone_weights or self.policy == 'act' else 'group'
|
| 124 |
+
if self.policy == 'act' and self.backbone_norm != 'frozen_bn':
|
| 125 |
+
raise ValueError("ACT's backbone keeps frozen BatchNorm (backbone_norm 'frozen_bn')")
|
| 126 |
+
|
| 127 |
+
@classmethod
|
| 128 |
+
def from_dict(cls, data: dict) -> PolicyConfig:
|
| 129 |
+
known = {k: v for k, v in data.items() if k in cls.__dataclass_fields__}
|
| 130 |
+
return cls(**known)
|
| 131 |
+
|
| 132 |
+
def to_dict(self) -> dict:
|
| 133 |
+
return asdict(self)
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
class Normalizer(nn.Module):
|
| 137 |
+
"""Per-dimension affine map to [-1, 1] from the training data's min/max (DextraVerse LinearNormalizer, mode
|
| 138 |
+
'limits', fit_offset, range_eps 1e-4): x_n = x * scale + offset; a dimension whose range is below range_eps gets
|
| 139 |
+
scale 1 and maps its value to 0."""
|
| 140 |
+
|
| 141 |
+
def __init__(self, dim: int):
|
| 142 |
+
super().__init__()
|
| 143 |
+
self.register_buffer('scale', torch.ones(dim))
|
| 144 |
+
self.register_buffer('offset', torch.zeros(dim))
|
| 145 |
+
|
| 146 |
+
@torch.no_grad()
|
| 147 |
+
def fit(self, minimum, maximum, range_eps=1e-4):
|
| 148 |
+
lo = torch.as_tensor(minimum, dtype=torch.float32)
|
| 149 |
+
hi = torch.as_tensor(maximum, dtype=torch.float32)
|
| 150 |
+
span = hi - lo
|
| 151 |
+
ignore = span < range_eps
|
| 152 |
+
span[ignore] = 2.0
|
| 153 |
+
scale = 2.0 / span
|
| 154 |
+
offset = -1.0 - scale * lo
|
| 155 |
+
offset[ignore] = -lo[ignore]
|
| 156 |
+
self.scale.copy_(scale)
|
| 157 |
+
self.offset.copy_(offset)
|
| 158 |
+
|
| 159 |
+
def normalize(self, x):
|
| 160 |
+
return x * self.scale + self.offset
|
| 161 |
+
|
| 162 |
+
def unnormalize(self, x):
|
| 163 |
+
return (x - self.offset) / self.scale
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
class BasePolicy(nn.Module):
|
| 167 |
+
name = ''
|
| 168 |
+
backbone_prefix = '' # state-dict prefix of the image backbone (its own learning rate in training)
|
| 169 |
+
lead_rows = 0 # action rows before the observation's frame that a training item carries (ODE: 1, the start)
|
| 170 |
+
|
| 171 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 172 |
+
super().__init__()
|
| 173 |
+
self.cfg = cfg
|
| 174 |
+
self.state_norm = Normalizer(cfg.state_dim)
|
| 175 |
+
self.action_norm = Normalizer(cfg.action_dim)
|
| 176 |
+
|
| 177 |
+
def fit_normalizers(self, stats: dict):
|
| 178 |
+
self.state_norm.fit(stats['state']['min'], stats['state']['max'])
|
| 179 |
+
self.action_norm.fit(stats['action']['min'], stats['action']['max'])
|
| 180 |
+
|
| 181 |
+
@property
|
| 182 |
+
def sampling_steps(self) -> int:
|
| 183 |
+
return 1
|
| 184 |
+
|
| 185 |
+
def compute_loss(self, images, state, action):
|
| 186 |
+
raise NotImplementedError
|
| 187 |
+
|
| 188 |
+
def predict(self, images, state, generator=None):
|
| 189 |
+
raise NotImplementedError
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
class DiTPolicy(BasePolicy):
|
| 193 |
+
"""Shared by FM-DiT and DP: the shared-ResNet image + state encoder and the AdaLN DiT over the action chunk
|
| 194 |
+
(global observation conditioning, DextraVerse obs_as_global_cond)."""
|
| 195 |
+
backbone_prefix = 'obs_encoder.rgb.'
|
| 196 |
+
|
| 197 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 198 |
+
super().__init__(cfg)
|
| 199 |
+
self.obs_encoder = ImageStateEncoder(cfg.n_cameras, cfg.state_dim, backbone=cfg.backbone,
|
| 200 |
+
weights=init_weights, norm=cfg.backbone_norm)
|
| 201 |
+
self.model = FlowTransformer(input_dim=cfg.action_dim, condition_dim=self.obs_encoder.feature_dim,
|
| 202 |
+
hidden_dim=cfg.hidden_dim, output_dim=cfg.action_dim, num_layers=cfg.num_layers,
|
| 203 |
+
num_heads=cfg.num_heads, mlp_ratio=cfg.mlp_ratio, dropout=cfg.dropout,
|
| 204 |
+
time_embed_dim=cfg.time_embed_dim)
|
| 205 |
+
|
| 206 |
+
def condition(self, images, state):
|
| 207 |
+
return self.obs_encoder(images, self.state_norm.normalize(state))
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
class FMDiTPolicy(DiTPolicy):
|
| 211 |
+
"""Flow-matching DiT (DextraVerse FlowMatchingDiTImagePolicy): x_t = (1 - t) noise + t a, t ~ U(0, 1), the DiT
|
| 212 |
+
regresses the velocity a - noise; sampling integrates t = 0 -> 1 with the midpoint rule."""
|
| 213 |
+
name = 'fm_dit'
|
| 214 |
+
|
| 215 |
+
@property
|
| 216 |
+
def sampling_steps(self) -> int:
|
| 217 |
+
return int(self.cfg.num_inference_steps or 10)
|
| 218 |
+
|
| 219 |
+
def compute_loss(self, images, state, action):
|
| 220 |
+
cond = self.condition(images, state)
|
| 221 |
+
target = self.action_norm.normalize(action)
|
| 222 |
+
noise = torch.randn_like(target)
|
| 223 |
+
t = torch.rand(target.shape[0], device=target.device)
|
| 224 |
+
te = t.view(-1, 1, 1)
|
| 225 |
+
x_t = (1 - te) * noise + te * target
|
| 226 |
+
loss = F.mse_loss(self.model(x_t, t, cond), target - noise)
|
| 227 |
+
return loss, dict(fm=float(loss.detach()))
|
| 228 |
+
|
| 229 |
+
@torch.no_grad()
|
| 230 |
+
def predict(self, images, state, generator=None):
|
| 231 |
+
cond = self.condition(images, state)
|
| 232 |
+
B, steps = images.shape[0], self.sampling_steps
|
| 233 |
+
x = torch.randn((B, self.cfg.horizon, self.cfg.action_dim), device=cond.device, dtype=cond.dtype,
|
| 234 |
+
generator=generator)
|
| 235 |
+
times = torch.linspace(0, 1.0, steps + 1, device=cond.device)
|
| 236 |
+
for i in range(steps):
|
| 237 |
+
t0 = times[i].view(1).expand(B)
|
| 238 |
+
t1 = times[i + 1].view(1).expand(B)
|
| 239 |
+
dt = (t1 - t0).view(-1, 1, 1)
|
| 240 |
+
x_mid = x + self.model(x, t0, cond) * dt / 2
|
| 241 |
+
x = x + dt * self.model(x_mid, t0 + (t1 - t0) / 2, cond)
|
| 242 |
+
return self.action_norm.unnormalize(x), x
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
class DPPolicy(DiTPolicy):
|
| 246 |
+
"""Diffusion Policy with the DiT backbone (DextraVerse DiffusionDiTImagePolicy, ddpm_dit.yaml): DDPM with 100
|
| 247 |
+
training steps, squaredcos_cap_v2 betas, fixed_small variance, clipped samples, epsilon prediction; sampled with
|
| 248 |
+
every training step (100 DiT calls)."""
|
| 249 |
+
name = 'dp'
|
| 250 |
+
|
| 251 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 252 |
+
super().__init__(cfg, init_weights)
|
| 253 |
+
from diffusers.schedulers.scheduling_ddpm import DDPMScheduler
|
| 254 |
+
self.noise_scheduler = DDPMScheduler(num_train_timesteps=cfg.num_train_timesteps, beta_start=0.0001,
|
| 255 |
+
beta_end=0.02, beta_schedule=cfg.beta_schedule,
|
| 256 |
+
variance_type='fixed_small', clip_sample=cfg.clip_sample,
|
| 257 |
+
prediction_type=cfg.prediction_type)
|
| 258 |
+
|
| 259 |
+
@property
|
| 260 |
+
def sampling_steps(self) -> int:
|
| 261 |
+
return int(self.cfg.num_inference_steps or self.cfg.num_train_timesteps)
|
| 262 |
+
|
| 263 |
+
def compute_loss(self, images, state, action):
|
| 264 |
+
cond = self.condition(images, state)
|
| 265 |
+
target = self.action_norm.normalize(action)
|
| 266 |
+
noise = torch.randn_like(target)
|
| 267 |
+
t = torch.randint(0, self.noise_scheduler.config.num_train_timesteps, (target.shape[0],),
|
| 268 |
+
device=target.device).long()
|
| 269 |
+
noisy = self.noise_scheduler.add_noise(target, noise, t)
|
| 270 |
+
pred = self.model(noisy, t, cond)
|
| 271 |
+
goal = noise if self.cfg.prediction_type == 'epsilon' else target
|
| 272 |
+
loss = F.mse_loss(pred, goal)
|
| 273 |
+
return loss, dict(ddpm=float(loss.detach()))
|
| 274 |
+
|
| 275 |
+
@torch.no_grad()
|
| 276 |
+
def predict(self, images, state, generator=None):
|
| 277 |
+
cond = self.condition(images, state)
|
| 278 |
+
scheduler = self.noise_scheduler
|
| 279 |
+
x = torch.randn((images.shape[0], self.cfg.horizon, self.cfg.action_dim), device=cond.device,
|
| 280 |
+
dtype=cond.dtype, generator=generator)
|
| 281 |
+
scheduler.set_timesteps(self.sampling_steps, device=cond.device)
|
| 282 |
+
for t in scheduler.timesteps:
|
| 283 |
+
x = scheduler.step(self.model(x, t.to(cond.device), cond), t, x, generator=generator).prev_sample
|
| 284 |
+
return self.action_norm.unnormalize(x), x
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
class ACTPolicy(BasePolicy):
|
| 288 |
+
"""ACT (DextraVerse ACTImagePolicy, act.yaml): ImageNet-normalized cameras through one ResNet with frozen
|
| 289 |
+
BatchNorm (spatial tokens, no pooling), the normalized state as qpos, a CVAE style encoder over the action chunk in
|
| 290 |
+
training, the DETR decoder with `horizon` queries; loss L1 + kl_weight x KL; inference decodes from the zero
|
| 291 |
+
latent (deterministic)."""
|
| 292 |
+
name = 'act'
|
| 293 |
+
backbone_prefix = 'model.backbone.'
|
| 294 |
+
|
| 295 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 296 |
+
super().__init__(cfg)
|
| 297 |
+
transformer = Transformer(d_model=cfg.act_hidden_dim, nhead=cfg.nheads, num_encoder_layers=cfg.enc_layers,
|
| 298 |
+
num_decoder_layers=cfg.dec_layers, dim_feedforward=cfg.dim_feedforward,
|
| 299 |
+
dropout=cfg.dropout, return_intermediate_dec=False)
|
| 300 |
+
self.model = DETRVAE(build_backbone(cfg.backbone, hidden_dim=cfg.act_hidden_dim, weights=init_weights),
|
| 301 |
+
transformer,
|
| 302 |
+
build_style_encoder(cfg.act_hidden_dim, cfg.nheads, cfg.dim_feedforward, cfg.enc_layers,
|
| 303 |
+
cfg.dropout),
|
| 304 |
+
qpos_dim=cfg.state_dim, action_dim=cfg.action_dim, num_queries=cfg.horizon,
|
| 305 |
+
latent_dim=cfg.latent_dim)
|
| 306 |
+
self.register_buffer('mean', torch.tensor(IMAGENET_MEAN).view(1, 1, 3, 1, 1), persistent=False)
|
| 307 |
+
self.register_buffer('std', torch.tensor(IMAGENET_STD).view(1, 1, 3, 1, 1), persistent=False)
|
| 308 |
+
|
| 309 |
+
def compute_loss(self, images, state, action):
|
| 310 |
+
target = self.action_norm.normalize(action)
|
| 311 |
+
a_hat, (mu, logvar) = self.model(self.state_norm.normalize(state), (images - self.mean) / self.std,
|
| 312 |
+
actions=target)
|
| 313 |
+
l1 = F.l1_loss(a_hat, target)
|
| 314 |
+
kl = kl_divergence(mu, logvar)
|
| 315 |
+
return l1 + self.cfg.kl_weight * kl, dict(l1=float(l1.detach()), kl=float(kl.detach()))
|
| 316 |
+
|
| 317 |
+
@torch.no_grad()
|
| 318 |
+
def predict(self, images, state, generator=None): # noqa: ARG002 - deterministic (zero latent)
|
| 319 |
+
a_hat, _ = self.model(self.state_norm.normalize(state), (images - self.mean) / self.std)
|
| 320 |
+
return self.action_norm.unnormalize(a_hat), a_hat
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
class ODEPolicy(BasePolicy):
|
| 324 |
+
"""ODE policy as ODE Policy's G1 port (`SonicLatentODE`): the body part b of the action row (the first
|
| 325 |
+
ode_body_dim columns; G1 the SONIC motion token 64) is integrated with Euler, one row per unit of time,
|
| 326 |
+
b_{k+1} = b_k + field_scale * f(b_k, s | c), from b_0 = the body row before the chunk; the remaining columns (G1:
|
| 327 |
+
the measured DFX6 12) are decoded from c for every row (linear, SiLU, linear; continuous, no sigmoid). c =
|
| 328 |
+
Linear(LayerNorm(image features)): one ResNet18 per view (ODE Policy's encoder, in place of the G1 port's GR00T
|
| 329 |
+
reader); the state enters the field only, never the condition or the hands.
|
| 330 |
+
|
| 331 |
+
Normalization (the G1 port's): per-dimension q01 / q99 of the training rows to [-1, 1], the UNIT_RANGE columns
|
| 332 |
+
(DFX6) fixed at [0, 1], constant dimensions shifted to 0, clipped to [-5, 5]; the executed body row at inference is
|
| 333 |
+
not clipped (a carried endpoint may leave the interval). Start: training teacher-forces b_0 = the recorded body row
|
| 334 |
+
t-1, the normalized-zero BOS at an episode's first frame; execution starts from the body part of the row executed
|
| 335 |
+
at t-1 (the interface's past_actions[-1]), BOS without one. Loss: masked MSE in normalized units (rows past the
|
| 336 |
+
episode's end left out), body and hands weighted by their widths. The ODE head runs in FP32 (the encoder under the
|
| 337 |
+
caller's autocast). Deterministic; no start perturbation (the G1 port's)."""
|
| 338 |
+
name = 'ode_mlp'
|
| 339 |
+
field_arch = 'mlp'
|
| 340 |
+
backbone_prefix = 'obs_encoder.rgb.'
|
| 341 |
+
lead_rows = 1
|
| 342 |
+
CLIP = 5.0
|
| 343 |
+
|
| 344 |
+
def __init__(self, cfg: PolicyConfig, init_weights=None):
|
| 345 |
+
super().__init__(cfg)
|
| 346 |
+
if cfg.ode_body_dim is None or not 0 < cfg.ode_body_dim <= cfg.action_dim:
|
| 347 |
+
raise ValueError(f'ode_body_dim must be in 1..{cfg.action_dim}, got {cfg.ode_body_dim}')
|
| 348 |
+
body, hands = cfg.ode_body_dim, cfg.action_dim - cfg.ode_body_dim
|
| 349 |
+
self.obs_encoder = ImageStateEncoder(cfg.n_cameras, 0, backbone=cfg.backbone, weights=init_weights,
|
| 350 |
+
norm=cfg.backbone_norm, shared=False) # images only
|
| 351 |
+
self.context_norm = nn.LayerNorm(self.obs_encoder.feature_dim)
|
| 352 |
+
self.context_proj = nn.Linear(self.obs_encoder.feature_dim, cfg.ode_cond_dim)
|
| 353 |
+
if self.field_arch == 'dit':
|
| 354 |
+
self.field = DiTVectorField(cfg.ode_cond_dim, cfg.state_dim, cfg.ode_dit_hidden, cfg.ode_dit_layers, body,
|
| 355 |
+
body, num_heads=cfg.ode_dit_heads, n_tokens=cfg.ode_dit_tokens)
|
| 356 |
+
else:
|
| 357 |
+
self.field = VectorField(cfg.ode_cond_dim, cfg.state_dim, cfg.ode_width, cfg.ode_layers, body, body)
|
| 358 |
+
self.hand_hidden = nn.Linear(cfg.ode_cond_dim, cfg.ode_cond_dim)
|
| 359 |
+
self.hand_output = nn.Linear(cfg.ode_cond_dim, cfg.horizon * hands) if hands else None
|
| 360 |
+
|
| 361 |
+
def fit_normalizers(self, stats: dict):
|
| 362 |
+
"""The G1 port's bounds: q01 / q99 (from stats, else min / max), the stats' unit_dims fixed at [0, 1]."""
|
| 363 |
+
for key, norm in (('state', self.state_norm), ('action', self.action_norm)):
|
| 364 |
+
entry = stats[key]
|
| 365 |
+
lo = torch.as_tensor(entry.get('q01', entry['min']), dtype=torch.float64).clone()
|
| 366 |
+
hi = torch.as_tensor(entry.get('q99', entry['max']), dtype=torch.float64).clone()
|
| 367 |
+
unit = torch.as_tensor(entry.get('unit_dims', []), dtype=torch.long)
|
| 368 |
+
lo[unit], hi[unit] = 0.0, 1.0
|
| 369 |
+
norm.fit(lo, hi)
|
| 370 |
+
|
| 371 |
+
@property
|
| 372 |
+
def sampling_steps(self) -> int:
|
| 373 |
+
"""Euler steps (field calls) per query."""
|
| 374 |
+
return int(self.cfg.horizon)
|
| 375 |
+
|
| 376 |
+
def features(self, images):
|
| 377 |
+
return self.obs_encoder(images, images.new_zeros(images.shape[0], 0))
|
| 378 |
+
|
| 379 |
+
def head(self, features, s, b0, n_steps):
|
| 380 |
+
"""FP32: (body path (B, n_steps, body), hands (B, n_steps, hands)) in normalized units."""
|
| 381 |
+
cfg = self.cfg
|
| 382 |
+
c = self.context_proj(self.context_norm(features.float()))
|
| 383 |
+
film = self.field.precompute(c) # c is fixed over the chunk
|
| 384 |
+
b, path = b0, []
|
| 385 |
+
for _ in range(n_steps): # Euler, dt = one row
|
| 386 |
+
b = b + cfg.ode_field_scale * self.field(b, s, c, film)
|
| 387 |
+
path.append(b)
|
| 388 |
+
path = torch.stack(path, dim=1)
|
| 389 |
+
hands = cfg.action_dim - cfg.ode_body_dim
|
| 390 |
+
if not hands:
|
| 391 |
+
return path, path[..., :0]
|
| 392 |
+
out = self.hand_output(F.silu(self.hand_hidden(c))).view(c.shape[0], cfg.horizon, hands)
|
| 393 |
+
return path, out[:, :n_steps]
|
| 394 |
+
|
| 395 |
+
def compute_loss(self, images, state, action, valid=None):
|
| 396 |
+
cfg = self.cfg
|
| 397 |
+
H, body = cfg.horizon, cfg.ode_body_dim
|
| 398 |
+
if action.shape[1] != H + 1:
|
| 399 |
+
raise ValueError(f'the ODE policy trains on the row before + {H} rows, got {action.shape[1]} rows')
|
| 400 |
+
valid = torch.ones(action.shape[:2], device=action.device) if valid is None else valid.to(action.device)
|
| 401 |
+
features = self.features(images)
|
| 402 |
+
with torch.autocast(device_type=images.device.type, enabled=False):
|
| 403 |
+
s = self.state_norm.normalize(state.float()).clamp(-self.CLIP, self.CLIP)
|
| 404 |
+
nact = self.action_norm.normalize(action.float()).clamp(-self.CLIP, self.CLIP)
|
| 405 |
+
b0 = nact[:, 0, :body] * valid[:, :1].float() # BOS (normalized zero) at an episode's first frame
|
| 406 |
+
path, hands = self.head(features, s, b0, H)
|
| 407 |
+
target, mask = nact[:, 1:], valid[:, 1:, None].float()
|
| 408 |
+
|
| 409 |
+
def masked(pred, goal):
|
| 410 |
+
m = mask.expand_as(goal)
|
| 411 |
+
return ((pred - goal).square() * m).sum() / m.sum().clamp_min(1)
|
| 412 |
+
|
| 413 |
+
body_loss = masked(path, target[..., :body])
|
| 414 |
+
hand_loss = masked(hands, target[..., body:]) if hands.shape[-1] else body_loss.new_zeros(())
|
| 415 |
+
loss = (body * body_loss + (cfg.action_dim - body) * hand_loss) / cfg.action_dim
|
| 416 |
+
return loss, dict(body=float(body_loss.detach()), hand=float(hand_loss.detach()))
|
| 417 |
+
|
| 418 |
+
@torch.no_grad()
|
| 419 |
+
def predict(self, images, state, generator=None, previous=None, has_previous=None): # noqa: ARG002
|
| 420 |
+
"""previous: (B, action_dim) physical, the row executed at t-1 (its body part is the start); None, or a False
|
| 421 |
+
in has_previous (B,), starts from the BOS."""
|
| 422 |
+
cfg = self.cfg
|
| 423 |
+
features = self.features(images)
|
| 424 |
+
with torch.autocast(device_type=images.device.type, enabled=False):
|
| 425 |
+
s = self.state_norm.normalize(state.float()).clamp(-self.CLIP, self.CLIP)
|
| 426 |
+
b0 = features.new_zeros(images.shape[0], cfg.ode_body_dim, dtype=torch.float32)
|
| 427 |
+
if previous is not None:
|
| 428 |
+
start = self.action_norm.normalize(previous.to(device=images.device, dtype=torch.float32))
|
| 429 |
+
keep = (torch.ones(images.shape[0], device=images.device) if has_previous is None else
|
| 430 |
+
has_previous.to(images.device).float())
|
| 431 |
+
b0 = start[:, :cfg.ode_body_dim] * keep[:, None] # unclipped carry
|
| 432 |
+
path, hands = self.head(features, s, b0, cfg.horizon)
|
| 433 |
+
raw = torch.cat([path, hands], dim=-1)
|
| 434 |
+
return self.action_norm.unnormalize(raw), raw
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
class ODEDiTPolicy(ODEPolicy):
|
| 438 |
+
"""ODE-DiT: the ODE policy with ODE Policy's DiT (adaLN) vector field (ode_dit.yaml) over [b, s]."""
|
| 439 |
+
name = 'ode_dit'
|
| 440 |
+
field_arch = 'dit'
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
from .flash import FlashPolicy # noqa: E402 - FLASH (flash.py) builds on this module's Normalizer and nets.py
|
| 444 |
+
from .fm_dit_v2 import FMDiTv2Policy # noqa: E402 - FM-DiT v2 (FLASH-Policy's FM-DiT) builds on flash.py's networks
|
| 445 |
+
|
| 446 |
+
POLICIES = {cls.name: cls for cls in (FMDiTPolicy, DPPolicy, ACTPolicy, FlashPolicy, ODEPolicy, ODEDiTPolicy,
|
| 447 |
+
FMDiTv2Policy)}
|
| 448 |
+
LABELS = {'fm_dit': 'FM-DiT', 'dp': 'DP (DDPM-DiT)', 'act': 'ACT', 'flash': 'FLASH', 'ode_mlp': 'ODE-MLP',
|
| 449 |
+
'ode_dit': 'ODE-DiT', 'fm_dit_v2': 'FM-DiT v2'}
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
def build_policy(cfg: PolicyConfig | dict, pretrained: bool = True) -> BasePolicy:
|
| 453 |
+
"""The policy of `cfg`; pretrained=True initializes the backbone from cfg.backbone_weights (training),
|
| 454 |
+
False builds the same structure with random weights (a checkpoint load, which must not download anything)."""
|
| 455 |
+
cfg = cfg if isinstance(cfg, PolicyConfig) else PolicyConfig.from_dict(cfg)
|
| 456 |
+
if cfg.policy not in POLICIES:
|
| 457 |
+
raise KeyError(f'unknown baseline {cfg.policy!r}; one of {sorted(POLICIES)}')
|
| 458 |
+
cfg = replace(cfg) # a copy (resolved backbone_norm)
|
| 459 |
+
return POLICIES[cfg.policy](cfg, init_weights=cfg.backbone_weights if pretrained else None)
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.lock.txt
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# pip freeze of the hb-baselines training environment (2026-11-27, Python 3.12.12, NAS
|
| 2 |
+
# preflight-20261104T1648Z/policies-20261109/envs/hb-baselines, used by the A800 trainings). The Aliyun DSW copy
|
| 3 |
+
# /root/.venvs/hb-baselines (Python 3.12.1, pillow 12.3.0) trained the 2026-11-24..26 DSW runs.
|
| 4 |
+
anyio==4.16.0
|
| 5 |
+
av==15.1.0
|
| 6 |
+
certifi==2026.11.20
|
| 7 |
+
charset-normalizer==3.5.3
|
| 8 |
+
click==8.5.1
|
| 9 |
+
diffusers==0.35.1
|
| 10 |
+
filelock==4.3.1
|
| 11 |
+
fsspec==2026.9.0
|
| 12 |
+
h11==0.16.0
|
| 13 |
+
hf-xet==1.8.0
|
| 14 |
+
httpcore2==2.16.2
|
| 15 |
+
httpx2==2.16.2
|
| 16 |
+
huggingface_hub==2.4.0
|
| 17 |
+
idna==3.20
|
| 18 |
+
importlib_metadata==10.2.0
|
| 19 |
+
iniconfig==2.3.1
|
| 20 |
+
Jinja2==3.1.6
|
| 21 |
+
lazy-importer==0.1.0
|
| 22 |
+
MarkupSafe==3.0.4
|
| 23 |
+
mpmath==1.3.0
|
| 24 |
+
networkx==3.7
|
| 25 |
+
numpy==2.2.6
|
| 26 |
+
nvidia-cublas-cu12==12.8.4.1
|
| 27 |
+
nvidia-cuda-cupti-cu12==12.8.90
|
| 28 |
+
nvidia-cuda-nvrtc-cu12==12.8.93
|
| 29 |
+
nvidia-cuda-runtime-cu12==12.8.90
|
| 30 |
+
nvidia-cudnn-cu12==9.10.2.21
|
| 31 |
+
nvidia-cufft-cu12==11.3.3.83
|
| 32 |
+
nvidia-cufile-cu12==1.13.1.3
|
| 33 |
+
nvidia-curand-cu12==10.3.9.90
|
| 34 |
+
nvidia-cusolver-cu12==11.7.3.90
|
| 35 |
+
nvidia-cusparse-cu12==12.5.8.93
|
| 36 |
+
nvidia-cusparselt-cu12==0.7.1
|
| 37 |
+
nvidia-nccl-cu12==2.27.5
|
| 38 |
+
nvidia-nvjitlink-cu12==12.8.93
|
| 39 |
+
nvidia-nvshmem-cu12==3.3.20
|
| 40 |
+
nvidia-nvtx-cu12==12.8.90
|
| 41 |
+
opencv-python-headless==4.11.0.86
|
| 42 |
+
packaging==26.4
|
| 43 |
+
pillow==13.0.0
|
| 44 |
+
pluggy==1.7.0
|
| 45 |
+
pyarrow==23.0.1
|
| 46 |
+
Pygments==2.21.0
|
| 47 |
+
pytest==8.4.2
|
| 48 |
+
PyYAML==6.0.4
|
| 49 |
+
regex==2026.11.19
|
| 50 |
+
requests==2.34.2
|
| 51 |
+
safetensors==0.8.0
|
| 52 |
+
setuptools==84.2.1
|
| 53 |
+
sympy==1.14.0
|
| 54 |
+
torch==2.9.0+cu128
|
| 55 |
+
torchvision==0.24.0+cu128
|
| 56 |
+
tqdm==4.70.1
|
| 57 |
+
triton==3.5.0
|
| 58 |
+
truststore==0.10.5
|
| 59 |
+
typing_extensions==4.16.0
|
| 60 |
+
urllib3==2.8.0
|
| 61 |
+
zipp==4.1.2
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/requirements.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# The full pinned set of the training environment (the A800 / NAS env, Python 3.12.12): requirements.lock.txt
|
| 6 |
+
# (HumanWAM hb_training/envs/hb-baselines.txt). Each run records its versions in config.json training.environment.
|
| 7 |
+
torch==2.9.0+cu128
|
| 8 |
+
torchvision==0.24.0+cu128
|
| 9 |
+
diffusers==0.35.1
|
| 10 |
+
av==15.1.0
|
| 11 |
+
pyarrow==23.0.1
|
| 12 |
+
numpy==2.2.6
|
| 13 |
+
opencv-python-headless==4.11.0.86
|
| 14 |
+
pytest==8.4.2
|
| 15 |
+
pillow==13.0.0 # the JPEG effect of the augmentation spec v2 depends on it (owner 2026-11-27: pin every version that changes the numerics)
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/runtime.py
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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, a seed and, for a policy that starts from it (the ODE
|
| 13 |
+
policies, `uses_previous`), the action row executed at the frame before; it returns the physical (horizon,
|
| 14 |
+
action_dim) chunk with its normalized form; row 0 is the action of the observation's frame.
|
| 15 |
+
"""
|
| 16 |
+
from __future__ import annotations
|
| 17 |
+
|
| 18 |
+
import hashlib
|
| 19 |
+
import json
|
| 20 |
+
from pathlib import Path
|
| 21 |
+
|
| 22 |
+
import numpy as np
|
| 23 |
+
|
| 24 |
+
FORMAT = 'hb_baselines/1'
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def sha256(path) -> str:
|
| 28 |
+
digest = hashlib.sha256()
|
| 29 |
+
with Path(path).open('rb') as stream:
|
| 30 |
+
for block in iter(lambda: stream.read(16 << 20), b''):
|
| 31 |
+
digest.update(block)
|
| 32 |
+
return digest.hexdigest()
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def save_checkpoint(folder, policy, config: dict):
|
| 36 |
+
"""Write model.pt, config.json and protocol.json of `policy` (an nn.Module) into `folder`."""
|
| 37 |
+
import torch
|
| 38 |
+
folder = Path(folder)
|
| 39 |
+
folder.mkdir(parents=True, exist_ok=True)
|
| 40 |
+
text = json.dumps(dict(config, format=FORMAT), indent=1)
|
| 41 |
+
state = {k: v.detach().cpu().contiguous() for k, v in policy.state_dict().items()}
|
| 42 |
+
torch.save(dict(format=FORMAT, config=text, state_dict=state), folder / 'model.pt.tmp')
|
| 43 |
+
(folder / 'model.pt.tmp').replace(folder / 'model.pt')
|
| 44 |
+
(folder / 'config.json').write_text(text)
|
| 45 |
+
tr, ds = config.get('training') or {}, config.get('dataset') or {}
|
| 46 |
+
# HumanWAM hb_training/REPRODUCIBILITY.md section 8 (2026-11-27): what the checkpoint is, beside config.json
|
| 47 |
+
summary = dict(task=config.get('task'), dataset_id=config.get('dataset_id'),
|
| 48 |
+
episodes=len(ds.get('train_episodes') or []), frames=ds.get('train_frames'), fps=ds.get('fps'),
|
| 49 |
+
steps=tr.get('steps'), total_steps=tr.get('total_steps'), save_steps=tr.get('save_steps'),
|
| 50 |
+
global_batch=tr.get('batch_size'), per_gpu_batch=tr.get('batch_size'), num_gpus=1,
|
| 51 |
+
gradient_accumulation_steps=1, lr=tr.get('lr'), warmup=tr.get('warmup'),
|
| 52 |
+
schedule=tr.get('schedule'), seed=tr.get('seed'), aug_seed=tr.get('aug_seed'),
|
| 53 |
+
code_commit=config.get('code_commit'), code_dirty=tr.get('code_dirty'),
|
| 54 |
+
environment=tr.get('environment'), continuation=tr.get('continuation'),
|
| 55 |
+
protocol_deviations=tr.get('protocol_deviations'), protocol_exceptions=tr.get('protocol_exceptions'))
|
| 56 |
+
(folder / 'protocol.json').write_text(json.dumps(dict(
|
| 57 |
+
format=FORMAT, step=config.get('step'), policy=config['policy']['policy'], **summary,
|
| 58 |
+
files={'model.pt': dict(bytes=(folder / 'model.pt').stat().st_size, sha256=sha256(folder / 'model.pt'))}),
|
| 59 |
+
indent=1, default=str))
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def load_checkpoint(folder, device='cpu', verify=True):
|
| 63 |
+
"""(policy in eval mode on `device`, config dict) of a checkpoint directory."""
|
| 64 |
+
import torch
|
| 65 |
+
from .policies import build_policy
|
| 66 |
+
folder = Path(folder)
|
| 67 |
+
if verify:
|
| 68 |
+
protocol = json.loads((folder / 'protocol.json').read_text())
|
| 69 |
+
entry = protocol['files']['model.pt']
|
| 70 |
+
if (folder / 'model.pt').stat().st_size != entry['bytes']:
|
| 71 |
+
raise ValueError(f'{folder}/model.pt differs from protocol.json')
|
| 72 |
+
payload = torch.load(folder / 'model.pt', map_location='cpu', weights_only=True)
|
| 73 |
+
if payload.get('format') != FORMAT:
|
| 74 |
+
raise ValueError(f"{folder}: format {payload.get('format')!r}, expected {FORMAT}")
|
| 75 |
+
config = json.loads(payload['config'])
|
| 76 |
+
if json.loads((folder / 'config.json').read_text()) != config:
|
| 77 |
+
raise ValueError(f'{folder}: config.json differs from the one inside model.pt')
|
| 78 |
+
policy = build_policy(config['policy'], pretrained=False) # every weight comes from model.pt
|
| 79 |
+
policy.load_state_dict(payload['state_dict'], strict=True)
|
| 80 |
+
return policy.to(device).eval(), config
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
class BaselinePolicy:
|
| 84 |
+
"""A loaded checkpoint for closed-loop inference (one request at a time)."""
|
| 85 |
+
|
| 86 |
+
def __init__(self, checkpoint, device='cuda:0', policy: str | None = None, robot: str | None = None):
|
| 87 |
+
import torch
|
| 88 |
+
self.torch = torch
|
| 89 |
+
self.device = torch.device(device)
|
| 90 |
+
self.model, self.config = load_checkpoint(checkpoint, device=self.device)
|
| 91 |
+
self.checkpoint = str(Path(checkpoint).resolve())
|
| 92 |
+
name, contract = self.config['policy']['policy'], self.config['contract']
|
| 93 |
+
if policy is not None and name != policy:
|
| 94 |
+
raise ValueError(f'{checkpoint} is a {name!r} checkpoint, not {policy!r}')
|
| 95 |
+
if robot is not None and contract['robot'] != robot:
|
| 96 |
+
raise ValueError(f"{checkpoint} was trained for {contract['robot']!r} ({contract['name']}), not {robot!r}")
|
| 97 |
+
self.name, self.contract = name, contract
|
| 98 |
+
self.cameras = tuple(contract['cameras'])
|
| 99 |
+
self.image_hw = tuple(self.config['image_hw'])
|
| 100 |
+
self.horizon = int(self.config['policy']['horizon'])
|
| 101 |
+
self.state_dim, self.action_dim = int(contract['state_dim']), int(contract['action_dim'])
|
| 102 |
+
self.sampling_steps = int(self.model.sampling_steps)
|
| 103 |
+
self.task_text = self.config.get('task_text')
|
| 104 |
+
self.uses_previous = bool(getattr(self.model, 'lead_rows', 0))
|
| 105 |
+
|
| 106 |
+
def info(self) -> dict:
|
| 107 |
+
out = dict(model=self.name, checkpoint=self.checkpoint, step=self.config.get('step'),
|
| 108 |
+
contract=self.contract['name'], views=list(self.cameras), image_hw=list(self.image_hw),
|
| 109 |
+
action_chunk=self.horizon, action_dim=self.action_dim, state_dim=self.state_dim,
|
| 110 |
+
sampling_steps=self.sampling_steps, task_text=self.task_text,
|
| 111 |
+
training_data=self.config.get('dataset', {}).get('name'))
|
| 112 |
+
if self.name == 'flash':
|
| 113 |
+
out['flash'] = dict(self.model.flash, history_rows=self.model.history_span)
|
| 114 |
+
out['first_history'] = ('no executed row: the frame-0 row from the query state, replicated (has_history '
|
| 115 |
+
'True)' if self.model.first_history == 'frame0' else
|
| 116 |
+
'no executed row: has_history False, the zero start')
|
| 117 |
+
if self.uses_previous:
|
| 118 |
+
out['starts_from'] = 'the body part of the row executed at t-1, else the normalized-zero BOS'
|
| 119 |
+
return out
|
| 120 |
+
|
| 121 |
+
def start_history(self, state, past_actions, history_valid):
|
| 122 |
+
"""(past_actions, history_valid) of a query, with the episode-start row of a 'frame0' FLASH (flash.py) when
|
| 123 |
+
no row is valid: one valid row, first_history_row of the query's physical state (history_rows replicates it,
|
| 124 |
+
as training does at an episode's first frame). Unchanged otherwise ('zero' FLASH, other policies, a query
|
| 125 |
+
that has an executed row, e.g. the H2 runner's --first-history state row)."""
|
| 126 |
+
if self.name != 'flash' or self.model.first_history_source is None:
|
| 127 |
+
return past_actions, history_valid
|
| 128 |
+
if past_actions is not None and history_valid is not None and (np.asarray(history_valid, np.float32).reshape(-1) > 0.5).any():
|
| 129 |
+
return past_actions, history_valid
|
| 130 |
+
row = self.model.first_history_row(np.asarray(state, np.float32).reshape(-1))
|
| 131 |
+
return row[None].astype(np.float32), np.ones(1, np.float32)
|
| 132 |
+
|
| 133 |
+
def history(self, past_actions, history_valid):
|
| 134 |
+
"""FLASH: (history (1, n_history, Da), has_history (1,)) tensors from the executed rows before the query
|
| 135 |
+
(past_actions (N, Da) oldest first, row N-1 = frame t-1; history_valid (N,) a contiguous valid suffix)."""
|
| 136 |
+
from .flash import history_rows
|
| 137 |
+
torch, span = self.torch, self.model.history_span
|
| 138 |
+
rows = np.asarray(past_actions, np.float32)
|
| 139 |
+
valid = np.asarray(history_valid, np.float32).reshape(-1) > 0.5
|
| 140 |
+
if rows.ndim != 2 or rows.shape[1] != self.action_dim or len(valid) != len(rows):
|
| 141 |
+
raise ValueError(f'past_actions {rows.shape} / history_valid {valid.shape}: '
|
| 142 |
+
f'expected (N, {self.action_dim})')
|
| 143 |
+
if len(rows) < span: # fewer rows than the history reaches back: the missing older rows are invalid
|
| 144 |
+
pad = span - len(rows)
|
| 145 |
+
rows = np.concatenate([np.zeros((pad, rows.shape[1]), np.float32), rows])
|
| 146 |
+
valid = np.concatenate([np.zeros(pad, bool), valid])
|
| 147 |
+
hist, has = history_rows(rows[-span:], valid[-span:], self.model.stride, self.model.n_history)
|
| 148 |
+
return (torch.from_numpy(hist)[None].to(self.device),
|
| 149 |
+
torch.tensor([bool(has)], device=self.device))
|
| 150 |
+
|
| 151 |
+
def images_tensor(self, images: dict):
|
| 152 |
+
from .data import resize_frame
|
| 153 |
+
missing = [c for c in self.cameras if c not in images]
|
| 154 |
+
if missing:
|
| 155 |
+
raise KeyError(f'missing cameras {missing}; the checkpoint reads {list(self.cameras)}')
|
| 156 |
+
frames = np.stack([resize_frame(np.asarray(images[c]), self.image_hw) for c in self.cameras])
|
| 157 |
+
x = self.torch.from_numpy(frames).to(self.device).permute(0, 3, 1, 2).float().div_(255.)
|
| 158 |
+
return x.unsqueeze(0) # (1, n_cameras, 3, h, w)
|
| 159 |
+
|
| 160 |
+
def predict(self, images: dict, state, seed: int = 0, previous=None, past_actions=None, history_valid=None):
|
| 161 |
+
"""(action (horizon, action_dim) float32 physical, normalized form (FLASH: the polynomial coefficients)).
|
| 162 |
+
The ODE policies (`uses_previous`) start from `previous`, the physical action row executed at the frame before
|
| 163 |
+
(else the last row of past_actions when history_valid marks it; with neither, their BOS). FLASH needs
|
| 164 |
+
past_actions / history_valid (the interface's executed rows before the query; a 'frame0' FLASH builds its
|
| 165 |
+
episode-start row from `state` when none is valid, start_history). The others ignore all three."""
|
| 166 |
+
torch = self.torch
|
| 167 |
+
state = np.asarray(state, np.float32).reshape(-1)
|
| 168 |
+
if state.shape != (self.state_dim,) or not np.isfinite(state).all():
|
| 169 |
+
raise ValueError(f'expected a finite state of {self.state_dim} values, got {state.shape}')
|
| 170 |
+
args, kwargs = (), {}
|
| 171 |
+
if self.uses_previous:
|
| 172 |
+
if previous is None and past_actions is not None and history_valid is not None:
|
| 173 |
+
valid = np.asarray(history_valid, np.float32).reshape(-1)
|
| 174 |
+
if len(valid) and valid[-1] > 0.5:
|
| 175 |
+
previous = np.asarray(past_actions, np.float32)[-1]
|
| 176 |
+
if previous is not None:
|
| 177 |
+
previous = np.asarray(previous, np.float32).reshape(-1)
|
| 178 |
+
if previous.shape != (self.action_dim,) or not np.isfinite(previous).all():
|
| 179 |
+
raise ValueError(f'expected a finite previous action row of {self.action_dim} values, '
|
| 180 |
+
f'got {previous.shape}')
|
| 181 |
+
kwargs['previous'] = torch.from_numpy(previous)[None].to(self.device)
|
| 182 |
+
if self.name == 'flash':
|
| 183 |
+
if past_actions is None or history_valid is None:
|
| 184 |
+
raise ValueError('FLASH needs past_actions and history_valid (the executed rows before the query)')
|
| 185 |
+
# a 'frame0' FLASH without a valid row: h0 from this state (the adapters pass it from the unmasked state)
|
| 186 |
+
past_actions, history_valid = self.start_history(state, past_actions, history_valid)
|
| 187 |
+
args = self.history(past_actions, history_valid)
|
| 188 |
+
generator = torch.Generator(device=self.device)
|
| 189 |
+
generator.manual_seed(int(seed) % (2 ** 63 - 1))
|
| 190 |
+
with torch.inference_mode():
|
| 191 |
+
action, raw = self.model.predict(self.images_tensor(images),
|
| 192 |
+
torch.from_numpy(state)[None].to(self.device), *args,
|
| 193 |
+
generator=generator, **kwargs)
|
| 194 |
+
action = action[0].float().cpu().numpy()
|
| 195 |
+
if action.shape != (self.horizon, self.action_dim) or not np.isfinite(action).all():
|
| 196 |
+
raise ValueError(f'invalid prediction {action.shape}')
|
| 197 |
+
return np.ascontiguousarray(action, np.float32), raw[0].float().cpu().numpy().astype(np.float32)
|
a15-hitting-nail/b512-s6000/step-006000/training_records/code_hb_bai_bf40b9df/evaluation/baselines/train.py
ADDED
|
@@ -0,0 +1,1029 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Train an FM-DiT, DP (DDPM-DiT), ACT, FLASH, ODE-MLP or ODE-DiT 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 |
+
FM-DiT v2 (--policy fm_dit_v2, evaluation/baselines/fm_dit_v2.py; owner 2026-11-25) is FLASH-Policy's own FM-DiT:
|
| 13 |
+
fm_dit.yaml's networks and the FLASH recipe below (FM_DIT_V2_TRAINING), on the plain 16-row chunks of every baseline;
|
| 14 |
+
it requires the in-training MSE as FLASH does. `--policy fm_dit` (v1, DextraVerse's) is unchanged.
|
| 15 |
+
|
| 16 |
+
FLASH (--policy flash, evaluation/baselines/flash.py) keeps its upstream recipe (FLASH-Policy f47e490,
|
| 17 |
+
default_train.yaml + flash.yaml) where the defaults differ: seed 42 (upstream's; the protocol keeps each model's
|
| 18 |
+
official seed), ResNet18 from scratch with GroupNorm trained at the full learning rate (--backbone-weights none,
|
| 19 |
+
--backbone-lr-scale 1), diffusers' cosine schedule with a 500-step warm-up, Diffusion Policy's EMAModel decay as
|
| 20 |
+
upstream counts it, and its own items (FlashChunkDataset: the polynomial targets at the sampling stride, the executed
|
| 21 |
+
history; at an episode's first frame, from 2026-11-29, the frame-0 row replicated as upstream: first_history 'frame0',
|
| 22 |
+
its sources and the G1 start token computed here from the dataset and recorded in the checkpoint's config; an
|
| 23 |
+
--init-from continuation keeps its parent's first_history - 'zero' without the key - and reuses a 'frame0' parent's
|
| 24 |
+
row, unless --flash first_history=... is given, which its continuation record notes: flash_run_settings).
|
| 25 |
+
--flash KEY=VALUE changes a FLASH setting (flash.FLASH_DEFAULTS: stride, n_history, ...). Its augmentation
|
| 26 |
+
stream is seeded from the training seed, as every model's (ChunkDataset aug_seed; logged as HB_AUG_SEED=<seed>).
|
| 27 |
+
|
| 28 |
+
ODE-MLP / ODE-DiT (--policy ode_mlp / ode_dit, policies.ODEPolicy) keep their G1 port's choices
|
| 29 |
+
(policies.POLICY_DEFAULTS): 16-row chunks, the ODE head in FP32, their own normalization bounds (q01 / q99 of the
|
| 30 |
+
training rows, the DFX6 hands fixed at [0, 1]: stats q01 / q99 / unit_dims), the body part = the contract's first
|
| 31 |
+
action group, the encoder from scratch at the full learning rate, seed 42 (ODE Policy's default_train.yaml, whose
|
| 32 |
+
optimizer, schedule and EMA are the recipe above). Their items carry the row before t and the rows' validity
|
| 33 |
+
(ChunkDataset lead 1).
|
| 34 |
+
|
| 35 |
+
Augmentation (2026-11-16): the Humanoid Benchmark spec v2 (docs/augmentation_v2.md, evaluation/augmentation), the
|
| 36 |
+
same for every model of the benchmark, is on by default (--augmentation hb-v2): per training item one hb_aug_v2 call
|
| 37 |
+
on the cached 168x224 frames of all cameras (colour shared, geometry / light patches / white balance per camera, one
|
| 38 |
+
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
|
| 39 |
+
body joint angles of the raw state (G1 29, H2 31), before the policy's normalizers; actions untouched. The native
|
| 40 |
+
random shift is off (--shift 0; a shift with hb-v2 is refused). Before the first step a preflight reads training items
|
| 41 |
+
through the augmented and the plain path and checks the state width (G1 44 / H2 78, no velocity), that only the body
|
| 42 |
+
joints move and by at most 2.75 deg, that the action rows (and FLASH's history) are bit-identical, that the images
|
| 43 |
+
change, and that the offline-check items are deterministic; it is stored in run.json (--preflight-only stops after it).
|
| 44 |
+
--augmentation none is an explicit exception to the spec, recorded in run.json and the checkpoints. The ResNet18
|
| 45 |
+
starts from torchvision's ImageNet-1k weights (--backbone-weights IMAGENET1K_V1, downloaded once to the torch hub
|
| 46 |
+
cache) and is fine-tuned at 0.1 x the learning rate (--backbone-lr-scale, the DETR practice) with its BatchNorm
|
| 47 |
+
frozen; --backbone-weights none trains it from scratch (DextraVerse's GroupNorm encoder for FM-DiT and DP).
|
| 48 |
+
|
| 49 |
+
In-training MSE (owner 2026-11-22, HumanWAM hb_training/REPRODUCIBILITY.md section 6): --inloop-task <key> with
|
| 50 |
+
--inloop-code <HumanWAM hb_training/eval-action-mse> evaluates the saved (EMA) weights every HB_INLOOP_EVERY (250)
|
| 51 |
+
steps on the protocol's cached episodes (inloop.py) into <out>/logs/inloop-mse.jsonl. FLASH refuses to train without
|
| 52 |
+
it unless --allow-no-inloop (an exception to the protocol, recorded in run.json); so do the ODE policies.
|
| 53 |
+
|
| 54 |
+
Writes into --out: run.json (arguments), train_log.jsonl, checkpoints/step-NNNNNN/ at the save points (runtime.py
|
| 55 |
+
format; owner 2026-11-27, every small model: 6 checkpoints spread evenly over the run's steps, each rounded to the
|
| 56 |
+
in-training MSE's 250-step grid, the last one at the end; save_points()), checkpoints/final -> the last one, and
|
| 57 |
+
train_state.pt (optimizer, schedule, EMA, step) that
|
| 58 |
+
--resume continues from (an interrupted run: the same schedule, not a continuation). Each save also measures the EMA
|
| 59 |
+
policy offline on fixed frames (held-out episodes with --val-episodes, else training frames): normalized-action MSE
|
| 60 |
+
overall and per action group.
|
| 61 |
+
|
| 62 |
+
Protocol and reproducibility (owner 2026-11-27, aligned with HumanWAM hb_training/protocol.yaml): the batch, steps
|
| 63 |
+
(long tasks x2), warm-up, workers and seed default to the protocol recipe of the policy (PROTOCOL_RECIPES); another
|
| 64 |
+
value, --save-every, a dataset not at 30 Hz or training without the in-training MSE (now required for every model) is
|
| 65 |
+
refused unless --protocol-exception / --allow-no-inloop records the owner's decision; uncommitted changes under
|
| 66 |
+
evaluation/ are refused unless --allow-dirty-tree. The order is EpochSampler's (epoch e: default_rng([seed, 1, e])),
|
| 67 |
+
each item augmented with default_rng([aug_seed, draw]) (its position in the run's stream), so worker count and an
|
| 68 |
+
interruption change nothing: train_state.pt keeps the torch / CUDA / numpy / python random states and --resume
|
| 69 |
+
continues bit-exactly. config.json and each protocol.json record the task, the dataset id (--dataset-id REPO@COMMIT
|
| 70 |
+
or inferred from <name>-<commit>/data), the save points, the environment (Python, torch, torchvision, numpy, Pillow,
|
| 71 |
+
CUDA, cuDNN, GPU, driver), the sha256 of hb_aug_v2.py and of the in-training MSE code, and the deviations.
|
| 72 |
+
|
| 73 |
+
Continuation (owner 2026-11-27, HumanWAM hb_training/protocol.yaml interface.continuation, as FastWAM's
|
| 74 |
+
hb_fastwam_cont.py): --init-from <run>/checkpoints/step-NNNNNN into a new --out loads that run's weights only (raw policy
|
| 75 |
+
and EMA from its train_state.pt when written at that step, else the saved EMA weights for both), then trains --steps
|
| 76 |
+
more steps with a fresh AdamW and schedule: peak --lr = 0.3 x the original peak (a peak equal to or above it is
|
| 77 |
+
refused without --continuation-exception; owner 2026-11-28: the long FM-DiT v1 continuations to the scaled step
|
| 78 |
+
count use the from-scratch peak and warm-up), --warmup = 5 % of --steps, then the policy's cosine. Same policy configuration, data, augmentation and seed
|
| 79 |
+
(checked). Checkpoints are named by the total step (e.g. a 12000-step run continued 2000 steps saves step-014000);
|
| 80 |
+
train_log, in-training MSE and the EMA decay also count the total steps; config.json training.continuation records
|
| 81 |
+
the source checkpoint (path, step, model.pt sha256, code commit) and the continuation's learning rate.
|
| 82 |
+
Owner 2026-11-28: with --continuation-exception a g1_sonic_dfx6 run (measured hands) may be continued as g1_sonic_cmd
|
| 83 |
+
(the commanded hands; same state, cameras and 76 values): the weights are loaded, then the state and action normalizers
|
| 84 |
+
are re-fit on this run's data (its config.json stats). A source checkpoint written by the collaborator's own
|
| 85 |
+
--init-from runs (028df1bb format: training.init_from.step) counts that parent step into the total.
|
| 86 |
+
"""
|
| 87 |
+
from __future__ import annotations
|
| 88 |
+
|
| 89 |
+
import argparse
|
| 90 |
+
import copy
|
| 91 |
+
from datetime import datetime, timezone
|
| 92 |
+
import json
|
| 93 |
+
import math
|
| 94 |
+
import os
|
| 95 |
+
from pathlib import Path
|
| 96 |
+
import subprocess
|
| 97 |
+
import sys
|
| 98 |
+
import time
|
| 99 |
+
|
| 100 |
+
import numpy as np
|
| 101 |
+
|
| 102 |
+
HERE = Path(__file__).resolve().parent
|
| 103 |
+
REPO = HERE.parents[1]
|
| 104 |
+
if str(HERE.parent) not in sys.path:
|
| 105 |
+
sys.path.insert(0, str(HERE.parent))
|
| 106 |
+
|
| 107 |
+
from baselines.data import (CONTRACTS, ChunkDataset, FlashChunkDataset, LeRobotDataset, # noqa: E402
|
| 108 |
+
augmentation_module, first_history_layout, first_history_start, frame_cache, load_lowdim,
|
| 109 |
+
parse_episodes, statistics, unit_range_dims)
|
| 110 |
+
from baselines.flash import FLASH_DEFAULTS, FLASH_POLICY_FIELDS # noqa: E402
|
| 111 |
+
from baselines.fm_dit_v2 import FM_DIT_V2_POLICY_FIELDS, UPSTREAM as FM_DIT_V2_UPSTREAM # noqa: E402
|
| 112 |
+
from baselines.policies import ODE_POLICIES, POLICIES, POLICY_DEFAULTS, PolicyConfig, build_policy # noqa: E402
|
| 113 |
+
from baselines.runtime import save_checkpoint # noqa: E402
|
| 114 |
+
|
| 115 |
+
DEFAULTS = dict(lr=1e-4, betas=(0.95, 0.999), weight_decay=1e-6, warmup=500, ema=0.9999, batch_size=64,
|
| 116 |
+
horizon=16, backbone_weights='IMAGENET1K_V1', backbone_lr_scale=0.1, seed=0, amp=True)
|
| 117 |
+
# FLASH-Policy f47e490 default_train.yaml / flash.yaml where they differ from DEFAULTS
|
| 118 |
+
FLASH_TRAINING = dict(seed=42, backbone_weights=None, backbone_lr_scale=1.0, schedule='diffusers_cosine',
|
| 119 |
+
ema_schedule='diffusion_policy_emamodel')
|
| 120 |
+
# FM-DiT v2 (fm_dit_v2.py): FLASH-Policy's FM-DiT trains with the same default_train.yaml
|
| 121 |
+
FM_DIT_V2_TRAINING = dict(FLASH_TRAINING)
|
| 122 |
+
# HumanWAM hb_training/protocol.yaml models.* (owner 2026-11-27: hb_baselines trains exactly the protocol's recipe; any
|
| 123 |
+
# other value is refused unless --protocol-exception records the owner's decision): the global batch (1 GPU), the
|
| 124 |
+
# steps of a training from scratch (long tasks x LONG_TASKS), the warm-up and the DataLoader workers. FM-DiT v1 and DP
|
| 125 |
+
# have no registered recipe (the collaborator's; FM-DiT v1 is superseded by v2): only the batch is checked for them.
|
| 126 |
+
PROTOCOL_RECIPES = {
|
| 127 |
+
'act': dict(batch_size=512, steps=4000, warmup=200, workers=32),
|
| 128 |
+
'flash': dict(batch_size=512, steps=12000, warmup=500, workers=40),
|
| 129 |
+
'fm_dit_v2': dict(batch_size=512, steps=12000, warmup=500, workers=32),
|
| 130 |
+
'ode_mlp': dict(batch_size=512, steps=5000, warmup=500, workers=32),
|
| 131 |
+
'ode_dit': dict(batch_size=512, steps=5000, warmup=500, workers=32),
|
| 132 |
+
'fm_dit': dict(batch_size=512),
|
| 133 |
+
'dp': dict(batch_size=512),
|
| 134 |
+
}
|
| 135 |
+
LONG_TASKS = {'c6': 2} # protocol.yaml interface.long_task_step_factor (A14 is not doubled)
|
| 136 |
+
DATASET_FPS = 30 # every dataset, training and evaluation (owner 2026-11-26)
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
def training_defaults(policy: str) -> dict:
|
| 140 |
+
"""DEFAULTS with the policy's own: FLASH_TRAINING (flash), FM_DIT_V2_TRAINING (fm_dit_v2),
|
| 141 |
+
policies.POLICY_DEFAULTS (the ODE policies)."""
|
| 142 |
+
# FM-DiT v1: seed 42 for every training from 2026-11-27 (owner: one seed per model, kept on every training;
|
| 143 |
+
# FM-DiT uses 42 as fm_dit_v2 / FLASH; its published seed-0 folders stay as recorded)
|
| 144 |
+
own = {'flash': FLASH_TRAINING, 'fm_dit_v2': FM_DIT_V2_TRAINING, 'fm_dit': dict(seed=42)}.get(policy, {})
|
| 145 |
+
return dict(DEFAULTS, **own, **POLICY_DEFAULTS.get(policy, {}))
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def policy_default(policy: str, key: str):
|
| 149 |
+
"""The training default of `key` for `policy`."""
|
| 150 |
+
return training_defaults(policy)[key]
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
FIRST_HISTORY_KEYS = ('first_history', 'first_history_state', 'first_history_value')
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
def first_history_of(flash: dict | None) -> dict:
|
| 157 |
+
"""The episode-start settings of a FLASH config (flash.py): a checkpoint without them (trained before 2026-11-29)
|
| 158 |
+
is 'zero'."""
|
| 159 |
+
flash = flash or {}
|
| 160 |
+
return dict(first_history=flash.get('first_history', 'zero'), first_history_state=flash.get('first_history_state'),
|
| 161 |
+
first_history_value=flash.get('first_history_value'))
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
def flash_run_settings(given: dict, parent: dict | None, frame0_row):
|
| 165 |
+
"""(FLASH settings of this run, first_history record of a continuation or None).
|
| 166 |
+
|
| 167 |
+
FLASH_DEFAULTS + `given` (--flash KEY=VALUE). first_history (owner 2026-11-29): a training from scratch defaults to
|
| 168 |
+
'frame0'; a continuation (`parent` = the --init-from checkpoint's policy.extra.flash) to the parent's ('zero' when
|
| 169 |
+
it has no key), a 'frame0' parent's first_history_state / first_history_value reused as they are (not recomputed).
|
| 170 |
+
Only an explicit --flash first_history=... sets another value; the record says so (changed, note). frame0_row():
|
| 171 |
+
(state, value) from this run's data, for a 'frame0' run that has none (from scratch, or switched explicitly)."""
|
| 172 |
+
settings = dict(FLASH_DEFAULTS, **given)
|
| 173 |
+
record = inherited = None
|
| 174 |
+
if parent is not None:
|
| 175 |
+
inherited = first_history_of(parent)
|
| 176 |
+
if 'first_history' not in given or given['first_history'] == inherited['first_history']:
|
| 177 |
+
settings.update({k: v for k, v in inherited.items() if k not in given})
|
| 178 |
+
record = dict(parent=inherited['first_history'], this=settings['first_history'],
|
| 179 |
+
source=('--flash first_history (explicit)' if 'first_history' in given else
|
| 180 |
+
'inherited from the --init-from checkpoint'))
|
| 181 |
+
recomputed = False
|
| 182 |
+
if settings['first_history'] == 'frame0' and settings['first_history_state'] is None:
|
| 183 |
+
state, value = frame0_row()
|
| 184 |
+
settings.update(first_history_state=state, first_history_value=value)
|
| 185 |
+
recomputed = True
|
| 186 |
+
if record is not None:
|
| 187 |
+
changed = first_history_of(settings) != inherited
|
| 188 |
+
record.update(changed=changed, recomputed_from_this_data=recomputed)
|
| 189 |
+
if changed:
|
| 190 |
+
record['note'] = (f"the episode-start history differs from the parent's ({inherited['first_history']} -> "
|
| 191 |
+
f"{settings['first_history']}{', frame-0 row computed on this run' if recomputed else ''}"
|
| 192 |
+
"), set explicitly with --flash; the parent was trained with its own")
|
| 193 |
+
return settings, record
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
def _comparable_policy(policy: dict, drop_first_history: bool) -> dict:
|
| 197 |
+
"""A policy configuration with FLASH's episode-start settings normalized (absent = 'zero') or left out."""
|
| 198 |
+
if policy.get('policy') != 'flash':
|
| 199 |
+
return policy
|
| 200 |
+
flash = dict((policy.get('extra') or {}).get('flash') or {})
|
| 201 |
+
normalized = first_history_of(flash)
|
| 202 |
+
for key in FIRST_HISTORY_KEYS:
|
| 203 |
+
flash.pop(key, None)
|
| 204 |
+
if not drop_first_history:
|
| 205 |
+
flash.update(normalized)
|
| 206 |
+
return dict(policy, extra=dict(policy.get('extra') or {}, flash=flash))
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
def same_policy_config(saved: dict, current: dict, ignore_first_history: bool = False) -> bool:
|
| 210 |
+
"""A saved policy configuration matches the current one; a field added to PolicyConfig after the save (absent
|
| 211 |
+
from it) matches when the current value is that field's default (e.g. the ode_* fields for an older FM-DiT run).
|
| 212 |
+
FLASH's first_history settings compare normalized (a config without them is 'zero'); a continuation ignores them
|
| 213 |
+
(ignore_first_history: an explicit change is in its continuation record, flash_run_settings)."""
|
| 214 |
+
from dataclasses import MISSING, fields
|
| 215 |
+
saved = _comparable_policy(saved, ignore_first_history)
|
| 216 |
+
current = _comparable_policy(current, ignore_first_history)
|
| 217 |
+
defaults = {f.name: f.default for f in fields(PolicyConfig) if f.default is not MISSING}
|
| 218 |
+
return all(saved[k] == v if k in saved else (k in defaults and defaults[k] == v) for k, v in current.items()) \
|
| 219 |
+
and set(saved) <= set(current)
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
def git_commit():
|
| 223 |
+
"""The code's commit: git HEAD, or outside a checkout (a tree copied file by file, e.g. onto the A800 NAS, which
|
| 224 |
+
cannot reach the private repository) the commit in <repo>/HB_CODE_COMMIT that the copier wrote and checked."""
|
| 225 |
+
try:
|
| 226 |
+
return subprocess.run(['git', '-C', str(REPO), 'rev-parse', 'HEAD'], capture_output=True, text=True,
|
| 227 |
+
check=True).stdout.strip()
|
| 228 |
+
except Exception: # noqa: BLE001 - outside a checkout
|
| 229 |
+
import re
|
| 230 |
+
try:
|
| 231 |
+
m = re.search(r'\b[0-9a-f]{7,40}\b', (REPO / 'HB_CODE_COMMIT').read_text())
|
| 232 |
+
except OSError:
|
| 233 |
+
return None
|
| 234 |
+
return m.group(0) if m else None
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
def git_dirty():
|
| 238 |
+
"""The uncommitted changes of the code a run trains with (evaluation/), [] when clean, None outside a checkout:
|
| 239 |
+
the recorded code_commit is that code only when the tree is clean."""
|
| 240 |
+
try:
|
| 241 |
+
out = subprocess.run(['git', '-C', str(REPO), 'status', '--porcelain', '--', 'evaluation'],
|
| 242 |
+
capture_output=True, text=True, check=True).stdout
|
| 243 |
+
except Exception: # noqa: BLE001 - outside a checkout
|
| 244 |
+
return None
|
| 245 |
+
return [line[3:] for line in out.splitlines() if line.strip()]
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
def file_sha256(path):
|
| 249 |
+
import hashlib
|
| 250 |
+
try:
|
| 251 |
+
return hashlib.sha256(Path(path).read_bytes()).hexdigest()
|
| 252 |
+
except OSError:
|
| 253 |
+
return None
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
def environment(device):
|
| 257 |
+
"""The versions that change the numerics (REPRODUCIBILITY.md principle 5): Python, torch, torchvision, numpy,
|
| 258 |
+
Pillow (the JPEG effect of the augmentation), CUDA, cuDNN, the GPU and its driver."""
|
| 259 |
+
import platform
|
| 260 |
+
import torch
|
| 261 |
+
env = dict(python=platform.python_version(), torch=torch.__version__, numpy=np.__version__,
|
| 262 |
+
cuda=torch.version.cuda,
|
| 263 |
+
cudnn=torch.backends.cudnn.version() if torch.backends.cudnn.is_available() else None)
|
| 264 |
+
for name, module in (('torchvision', 'torchvision'), ('pillow', 'PIL')):
|
| 265 |
+
try:
|
| 266 |
+
env[name] = __import__(module).__version__
|
| 267 |
+
except Exception: # noqa: BLE001
|
| 268 |
+
env[name] = None
|
| 269 |
+
if device.type == 'cuda':
|
| 270 |
+
env['gpu'] = torch.cuda.get_device_name(device)
|
| 271 |
+
try:
|
| 272 |
+
env['driver'] = subprocess.run(['nvidia-smi', '--query-gpu=driver_version', '--format=csv,noheader',
|
| 273 |
+
'-i', str(device.index or 0)], capture_output=True, text=True,
|
| 274 |
+
timeout=20).stdout.strip() or None
|
| 275 |
+
except Exception: # noqa: BLE001
|
| 276 |
+
env['driver'] = None
|
| 277 |
+
return env
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
class EpochSampler:
|
| 281 |
+
"""The training order (owner 2026-11-27, aligned with HumanWAM's resumable runs): epoch e is the permutation
|
| 282 |
+
numpy default_rng([seed, 1, e]) of the items, cut to whole batches (drop_last); each item comes with its draw
|
| 283 |
+
number (its position in the whole run's stream, e * batches_per_epoch * batch + j), which seeds its augmentation
|
| 284 |
+
(ChunkDataset: default_rng([aug_seed, draw])). Order and augmentations are thus a function of the seed and the
|
| 285 |
+
step only (not of the worker count or of an interruption): start_step skips the batches already trained."""
|
| 286 |
+
|
| 287 |
+
def __init__(self, n, batch_size, seed, start_step=0):
|
| 288 |
+
self.n, self.batch, self.seed = int(n), int(batch_size), int(seed)
|
| 289 |
+
self.per_epoch = self.n // self.batch
|
| 290 |
+
if self.per_epoch < 1:
|
| 291 |
+
raise SystemExit(f'{n} training items: fewer than one batch of {batch_size}')
|
| 292 |
+
self.epoch, self.offset = divmod(int(start_step), self.per_epoch)
|
| 293 |
+
|
| 294 |
+
def __len__(self):
|
| 295 |
+
return (self.per_epoch - self.offset) * self.batch
|
| 296 |
+
|
| 297 |
+
def __iter__(self):
|
| 298 |
+
perm = np.random.default_rng([self.seed, 1, self.epoch]).permutation(self.n)
|
| 299 |
+
base = self.epoch * self.per_epoch * self.batch
|
| 300 |
+
start = self.offset * self.batch
|
| 301 |
+
self.epoch, self.offset = self.epoch + 1, 0
|
| 302 |
+
for j in range(start, self.per_epoch * self.batch):
|
| 303 |
+
yield int(perm[j]), base + j
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
def rng_state():
|
| 307 |
+
import random
|
| 308 |
+
import torch
|
| 309 |
+
return dict(torch=torch.get_rng_state(), cuda=torch.cuda.get_rng_state_all() if torch.cuda.is_available() else None,
|
| 310 |
+
numpy=np.random.get_state(), python=random.getstate())
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
def set_rng_state(state):
|
| 314 |
+
import random
|
| 315 |
+
import torch
|
| 316 |
+
torch.set_rng_state(state['torch'])
|
| 317 |
+
if state.get('cuda') is not None and torch.cuda.is_available():
|
| 318 |
+
torch.cuda.set_rng_state_all(state['cuda'])
|
| 319 |
+
np.random.set_state(state['numpy'])
|
| 320 |
+
random.setstate(state['python'])
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
def parse_hw(text):
|
| 324 |
+
h, w = text.lower().split('x')
|
| 325 |
+
return int(h), int(w)
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
def random_shift(images, pad):
|
| 329 |
+
"""DrQ random shift: replicate-pad by `pad` pixels and crop back at a random offset per sample.
|
| 330 |
+
images (B, N, 3, H, W) float."""
|
| 331 |
+
import torch
|
| 332 |
+
import torch.nn.functional as F
|
| 333 |
+
if pad <= 0:
|
| 334 |
+
return images
|
| 335 |
+
B, N, C, H, W = images.shape
|
| 336 |
+
x = F.pad(images.reshape(B * N, C, H, W), (pad,) * 4, mode='replicate')
|
| 337 |
+
oy = torch.randint(0, 2 * pad + 1, (B * N,), device=images.device)
|
| 338 |
+
ox = torch.randint(0, 2 * pad + 1, (B * N,), device=images.device)
|
| 339 |
+
rows = (oy[:, None] + torch.arange(H, device=images.device)[None])[:, None, :, None].expand(-1, C, -1, W + 2 * pad)
|
| 340 |
+
x = x.gather(2, rows)
|
| 341 |
+
cols = (ox[:, None] + torch.arange(W, device=images.device)[None])[:, None, None, :].expand(-1, C, H, -1)
|
| 342 |
+
return x.gather(3, cols).reshape(B, N, C, H, W)
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
class EMA:
|
| 346 |
+
"""Diffusion Policy's EMAModel schedule: decay = min(max_decay, 1 - (1 + step) ** -0.75), parameters averaged,
|
| 347 |
+
buffers (normalizers) copied. schedule 'diffusion_policy_emamodel' counts the steps as upstream's EMAModel does
|
| 348 |
+
(decay 0 for the first two updates, then 1 - (step - 1) ** -0.75; FLASH)."""
|
| 349 |
+
|
| 350 |
+
def __init__(self, model, max_decay, schedule='hb'):
|
| 351 |
+
self.model = copy.deepcopy(model).eval().requires_grad_(False)
|
| 352 |
+
self.max_decay = float(max_decay)
|
| 353 |
+
self.schedule = schedule
|
| 354 |
+
|
| 355 |
+
def decay(self, step):
|
| 356 |
+
if self.schedule == 'diffusion_policy_emamodel':
|
| 357 |
+
return 0.0 if step <= 2 else min(self.max_decay, max(0.0, 1 - (step - 1) ** -0.75))
|
| 358 |
+
return 0.0 if step <= 0 else min(self.max_decay, max(0.0, 1 - (1 + step) ** -0.75))
|
| 359 |
+
|
| 360 |
+
def update(self, model, step):
|
| 361 |
+
import torch
|
| 362 |
+
decay = self.decay(step)
|
| 363 |
+
with torch.no_grad():
|
| 364 |
+
for e, p in zip(self.model.parameters(), model.parameters()):
|
| 365 |
+
e.mul_(decay).add_(p.detach(), alpha=1 - decay)
|
| 366 |
+
for e, b in zip(self.model.buffers(), model.buffers()):
|
| 367 |
+
e.copy_(b)
|
| 368 |
+
return decay
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
def preflight(train_set, eval_set, contract, samples=64, seed=0) -> dict:
|
| 372 |
+
"""Training items of `train_set` (augmented unless its body_dims is 0) against the same frames read without
|
| 373 |
+
augmentation, and two reads of the offline-check items; raises on any violation of docs/augmentation_v2.md.
|
| 374 |
+
Items are (images, state, *labels): every label (action rows; FLASH's polynomial rows and history) must be
|
| 375 |
+
bit-identical to the plain read."""
|
| 376 |
+
import torch
|
| 377 |
+
plain = train_set.plain() # the same frames without augmentation
|
| 378 |
+
picks = np.random.default_rng(seed).choice(len(plain), size=min(samples, len(plain)), replace=False)
|
| 379 |
+
nb, sd = train_set.body_dims, contract.state_dim
|
| 380 |
+
limit = augmentation_module().max_body_offset_rad() * (1 + 1e-5)
|
| 381 |
+
images_changed = body_moved = 0
|
| 382 |
+
worst = 0.0
|
| 383 |
+
for k in picks:
|
| 384 |
+
(im, st, *lab), (im0, st0, *lab0) = train_set[int(k)], plain[int(k)]
|
| 385 |
+
if st.shape != (sd,) or st0.shape != (sd,) or [x.shape for x in lab] != [x.shape for x in lab0]:
|
| 386 |
+
raise SystemExit(f'preflight: state {tuple(st.shape)} / labels {[tuple(x.shape) for x in lab]}, '
|
| 387 |
+
f'expected ({sd},)')
|
| 388 |
+
if not all(torch.equal(a, b) for a, b in zip(lab, lab0)):
|
| 389 |
+
raise SystemExit('preflight: an action label differs from the recorded data')
|
| 390 |
+
if not torch.equal(st[nb:], st0[nb:]):
|
| 391 |
+
raise SystemExit(f'preflight: a state value past the {nb} body joints changed')
|
| 392 |
+
delta = (st[:nb].double() - st0[:nb].double()).abs()
|
| 393 |
+
if nb:
|
| 394 |
+
worst = max(worst, float(delta.max()))
|
| 395 |
+
if worst > limit:
|
| 396 |
+
raise SystemExit(f'preflight: a body joint moved {math.degrees(worst):.3f} deg (> 2.75)')
|
| 397 |
+
body_moved += int((delta > 0).sum())
|
| 398 |
+
images_changed += int(not torch.equal(im, im0))
|
| 399 |
+
n = len(picks)
|
| 400 |
+
moved = body_moved / max(1, n * nb)
|
| 401 |
+
if nb and (images_changed < 0.9 * n or moved < 0.95):
|
| 402 |
+
raise SystemExit(f'preflight: augmentation inactive ({images_changed}/{n} images changed, {moved:.3f} of the '
|
| 403 |
+
'body joint values moved)')
|
| 404 |
+
if not nb and (images_changed or worst):
|
| 405 |
+
raise SystemExit('preflight: items changed with the augmentation off')
|
| 406 |
+
eval_picks = np.random.default_rng(seed + 1).choice(len(eval_set), size=min(8, len(eval_set)), replace=False)
|
| 407 |
+
for k in eval_picks:
|
| 408 |
+
a, b = eval_set[int(k)], eval_set[int(k)]
|
| 409 |
+
if eval_set.body_dims or not all(torch.equal(x, y) for x, y in zip(a, b)):
|
| 410 |
+
raise SystemExit('preflight: the offline-check items are not deterministic')
|
| 411 |
+
return dict(samples=n, state_dim=sd, body_dims=nb, images_changed=images_changed,
|
| 412 |
+
body_values_moved=round(moved, 4),
|
| 413 |
+
max_body_offset_deg=round(math.degrees(worst), 4), actions_bit_identical=True,
|
| 414 |
+
non_body_state_bit_identical=True, eval_items_deterministic=len(eval_picks))
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
def offline_eval(policy, dataset, samples, device, groups):
|
| 418 |
+
"""Normalized-action MSE of policy.predict on fixed dataset items (seeded), overall and per action group. FLASH:
|
| 419 |
+
its 30 Hz output rows against the recorded rows from the anchor (rows past the episode's end left out). A policy
|
| 420 |
+
with lead rows (ODE) starts from the recorded row before the frame (its BOS at an episode's first frame), as from
|
| 421 |
+
the executed row in closed loop, and is scored on the valid rows."""
|
| 422 |
+
import torch
|
| 423 |
+
policy.eval()
|
| 424 |
+
errs, masks = [], []
|
| 425 |
+
generator = torch.Generator(device=device)
|
| 426 |
+
generator.manual_seed(0)
|
| 427 |
+
lead = int(getattr(policy, 'lead_rows', 0))
|
| 428 |
+
for start in range(0, len(samples), 32):
|
| 429 |
+
batch = [dataset[int(k)] for k in samples[start:start + 32]]
|
| 430 |
+
images = torch.stack([b[0] for b in batch]).to(device).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 431 |
+
state = torch.stack([b[1] for b in batch]).to(device)
|
| 432 |
+
if policy.name == 'flash':
|
| 433 |
+
hist = torch.stack([b[3] for b in batch]).to(device)
|
| 434 |
+
has = torch.stack([b[4] for b in batch]).to(device)
|
| 435 |
+
target = torch.stack([b[5] for b in batch]).to(device)
|
| 436 |
+
valid = torch.stack([b[6] for b in batch]).numpy()
|
| 437 |
+
pred, _ = policy.predict(images, state, hist, has, generator=generator)
|
| 438 |
+
raw = policy.action_norm.normalize(pred.float())
|
| 439 |
+
elif lead:
|
| 440 |
+
rows = torch.stack([b[2] for b in batch]).to(device)
|
| 441 |
+
row_valid = torch.stack([b[3] for b in batch])
|
| 442 |
+
previous, target = rows[:, lead - 1], rows[:, lead:]
|
| 443 |
+
valid = (row_valid[:, lead:] > 0).numpy()
|
| 444 |
+
_, raw = policy.predict(images, state, generator=generator, previous=previous,
|
| 445 |
+
has_previous=(row_valid[:, lead - 1] > 0).to(device))
|
| 446 |
+
else:
|
| 447 |
+
target = torch.stack([b[2] for b in batch]).to(device)
|
| 448 |
+
valid = np.ones(target.shape[:2], bool)
|
| 449 |
+
_, raw = policy.predict(images, state, generator=generator)
|
| 450 |
+
errs.append((raw.float() - policy.action_norm.normalize(target)).pow(2).cpu().numpy())
|
| 451 |
+
masks.append(valid)
|
| 452 |
+
err, mask = np.concatenate(errs), np.concatenate(masks) # (S, horizon, action_dim), (S, horizon)
|
| 453 |
+
rows = err[mask]
|
| 454 |
+
out = dict(mse=float(rows.mean()), mse_row0=float(err[:, 0][mask[:, 0]].mean()))
|
| 455 |
+
offset = 0
|
| 456 |
+
for column, start, end in groups:
|
| 457 |
+
out[f'mse_{column.split(".")[-1]}'] = float(rows[:, offset:offset + end - start].mean())
|
| 458 |
+
offset += end - start
|
| 459 |
+
return out
|
| 460 |
+
|
| 461 |
+
|
| 462 |
+
SAVE_COUNT = 6 # owner 2026-11-27: small models keep 6 checkpoints per training, spread evenly over its steps
|
| 463 |
+
SAVE_GRID = 250 # the in-training MSE's interval: every save point has its nMSE
|
| 464 |
+
|
| 465 |
+
|
| 466 |
+
def save_points(steps: int, every=None) -> list:
|
| 467 |
+
"""The run's own steps (1..steps) at which it saves: k * steps / 6 for k = 1..6 rounded to the 250-step grid
|
| 468 |
+
(the last one is always `steps`); with `every` (a recorded deviation) every multiple of it and the end."""
|
| 469 |
+
if every:
|
| 470 |
+
return sorted({*range(every, steps + 1, every), steps})
|
| 471 |
+
if steps < SAVE_COUNT * SAVE_GRID:
|
| 472 |
+
return sorted({max(1, round(k * steps / SAVE_COUNT)) for k in range(1, SAVE_COUNT + 1)})
|
| 473 |
+
return sorted({min(steps, max(SAVE_GRID, SAVE_GRID * round(k * steps / SAVE_COUNT / SAVE_GRID)))
|
| 474 |
+
for k in range(1, SAVE_COUNT)} | {steps})
|
| 475 |
+
|
| 476 |
+
|
| 477 |
+
def init_continuation(args, policy, ema, pcfg, contract, cameras, hw, augmentation, train_episodes, out, stats):
|
| 478 |
+
"""--init-from (owner 2026-11-27: aligned with HumanWAM's continuation, hb_training/protocol.yaml
|
| 479 |
+
interface.continuation and fastwam_tools/hb_fastwam_cont.py): load only the weights of a finished run's checkpoint
|
| 480 |
+
into the freshly built policy (and EMA) before training; the optimizer and the schedule start new. The run it
|
| 481 |
+
continues must have the same policy configuration, contract, cameras, image size, augmentation and training
|
| 482 |
+
episodes, and the continuation's peak learning rate must be below the original one (REPRODUCIBILITY.md: a
|
| 483 |
+
continuation never reuses the original peak) unless --continuation-exception records the owner's decision (owner
|
| 484 |
+
2026-11-28: long FM-DiT v1 continuations use the from-scratch peak). Returns (record for config.training.continuation, original steps)."""
|
| 485 |
+
import torch
|
| 486 |
+
from baselines.runtime import sha256 as file_sha256
|
| 487 |
+
src = args.init_from.expanduser().resolve()
|
| 488 |
+
if not (src / 'model.pt').is_file() or not (src / 'config.json').is_file():
|
| 489 |
+
raise SystemExit(f'--init-from {src}: not a checkpoint folder (model.pt, config.json)')
|
| 490 |
+
if src.parent.parent == out:
|
| 491 |
+
raise SystemExit('--init-from: give the continuation its own --out (the original run stays as it is)')
|
| 492 |
+
before = json.loads((src / 'config.json').read_text())
|
| 493 |
+
problems = []
|
| 494 |
+
if not same_policy_config(before['policy'], pcfg.to_dict(), ignore_first_history=True):
|
| 495 |
+
problems.append('policy configuration') # FLASH first_history: recorded by flash_run_settings
|
| 496 |
+
hands_switch = False # owner 2026-11-28: a measured-hand G1 run continued on the commanded hands
|
| 497 |
+
if before['contract'] != contract.to_dict(cameras):
|
| 498 |
+
saved_c, want_c = before['contract'], contract.to_dict(cameras)
|
| 499 |
+
same_io = all(saved_c.get(k) == want_c.get(k) for k in ('robot', 'cameras', 'state', 'state_dim', 'action_dim',
|
| 500 |
+
'action_space', 'body_dims'))
|
| 501 |
+
if (saved_c.get('name'), want_c['name']) == ('g1_sonic_dfx6', 'g1_sonic_cmd') and same_io and args.continuation_exception:
|
| 502 |
+
hands_switch = True
|
| 503 |
+
else:
|
| 504 |
+
problems.append('contract / cameras')
|
| 505 |
+
if list(before['image_hw']) != list(hw):
|
| 506 |
+
problems.append('image size')
|
| 507 |
+
if (before['training'].get('augmentation') or {}).get('version') != augmentation.get('version') \
|
| 508 |
+
or before['training'].get('shift_px') != args.shift:
|
| 509 |
+
problems.append('augmentation')
|
| 510 |
+
if list(before['dataset']['train_episodes']) != list(train_episodes):
|
| 511 |
+
problems.append('training episodes')
|
| 512 |
+
if problems:
|
| 513 |
+
raise SystemExit(f'--init-from {src}: the run differs in {", ".join(problems)}; a continuation trains the '
|
| 514 |
+
'same model on the same data')
|
| 515 |
+
original_lr = float(before['training']['lr'])
|
| 516 |
+
if not args.lr < original_lr and not args.continuation_exception:
|
| 517 |
+
raise SystemExit(f'--init-from: --lr {args.lr} must be below the original peak {original_lr} (the protocol: '
|
| 518 |
+
f'0.3 x, i.e. {0.3 * original_lr:g})')
|
| 519 |
+
step0 = int(before['step'])
|
| 520 |
+
parent = (before['training'].get('init_from') or {}) if not before['training'].get('continuation') else {}
|
| 521 |
+
if isinstance(parent, dict) and parent.get('step') is not None:
|
| 522 |
+
# a checkpoint of the collaborator's own --init-from runs (028df1bb format): its 'step' counts that run only
|
| 523 |
+
step0 += int(parent['step'])
|
| 524 |
+
state_file = src.parent.parent / 'train_state.pt'
|
| 525 |
+
saved = torch.load(state_file, map_location='cpu', weights_only=False) if state_file.is_file() else None
|
| 526 |
+
total_saved = None # the total step train_state.pt was written at (its 'step' counts the run's own steps)
|
| 527 |
+
if saved is not None:
|
| 528 |
+
c = (saved['config'].get('training') or {}).get('continuation') or {}
|
| 529 |
+
total_saved = int(c.get('init_step', 0)) + int(saved['step'])
|
| 530 |
+
if saved is not None and total_saved == step0:
|
| 531 |
+
policy.load_state_dict(saved['policy'], strict=True)
|
| 532 |
+
if ema is not None:
|
| 533 |
+
if saved.get('ema') is None:
|
| 534 |
+
raise SystemExit(f'--init-from: {state_file} has no EMA weights')
|
| 535 |
+
ema.model.load_state_dict(saved['ema'], strict=True)
|
| 536 |
+
weights = f'raw policy and EMA from {state_file} (written at step {step0})'
|
| 537 |
+
else:
|
| 538 |
+
payload = torch.load(src / 'model.pt', map_location='cpu', weights_only=True)
|
| 539 |
+
policy.load_state_dict(payload['state_dict'], strict=True)
|
| 540 |
+
if ema is not None:
|
| 541 |
+
ema.model.load_state_dict(payload['state_dict'], strict=True)
|
| 542 |
+
weights = (f'the saved {before.get("weights", "ema")} weights of {src.name} for the policy and its EMA '
|
| 543 |
+
f'(no train_state.pt written at step {step0})')
|
| 544 |
+
if hands_switch: # the action normalizer follows this run's (commanded-hand) data, as its config.json stats
|
| 545 |
+
policy.fit_normalizers(stats)
|
| 546 |
+
if ema is not None:
|
| 547 |
+
ema.model.fit_normalizers(stats)
|
| 548 |
+
policy.to(next(policy.parameters()).device)
|
| 549 |
+
record = dict(init_from=str(src), init_step=step0, init_weights=weights, init_model_sha256=file_sha256(src / 'model.pt'),
|
| 550 |
+
init_code_commit=before.get('code_commit'), original_peak_lr=original_lr, peak_lr=args.lr,
|
| 551 |
+
peak_lr_factor=round(args.lr / original_lr, 6), warmup_steps=args.warmup,
|
| 552 |
+
warmup_ratio=round(args.warmup / max(1, args.steps), 6), more_steps=args.steps,
|
| 553 |
+
total_steps=step0 + args.steps, optimizer='fresh AdamW (same groups, betas, weight decay)',
|
| 554 |
+
schedule='fresh: warm-up then the policy\'s cosine over the continuation steps',
|
| 555 |
+
ema_decay_steps='total steps (the EMA keeps averaging as in the original run)',
|
| 556 |
+
init_contract=before['contract'].get('name'),
|
| 557 |
+
hands_switch=('measured -> commanded hands (owner 2026-11-28); state and action normalizers '
|
| 558 |
+
're-fit on the data of this run') if hands_switch else None)
|
| 559 |
+
print(json.dumps(dict(event='continuation', **record)), flush=True)
|
| 560 |
+
return record, step0
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
def main():
|
| 564 |
+
p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 565 |
+
p.add_argument('--policy', choices=sorted(POLICIES), required=True)
|
| 566 |
+
p.add_argument('--dataset', type=Path, required=True, help='LeRobot v2.1 dataset directory')
|
| 567 |
+
p.add_argument('--contract', choices=sorted(CONTRACTS), required=True)
|
| 568 |
+
p.add_argument('--cameras', help='comma-separated cameras (default: the contract\'s)')
|
| 569 |
+
p.add_argument('--episodes', help="episodes to use, e.g. '0:100' (default: all)")
|
| 570 |
+
p.add_argument('--val-episodes', type=int, default=0, help='hold out the last N of them for the offline check')
|
| 571 |
+
p.add_argument('--out', type=Path, required=True)
|
| 572 |
+
p.add_argument('--steps', type=int, default=None,
|
| 573 |
+
help="training steps (default: the protocol recipe's, long tasks x2; with --init-from 2000)")
|
| 574 |
+
p.add_argument('--batch-size', type=int, default=None, help="batch (default: the protocol recipe's, 512)")
|
| 575 |
+
p.add_argument('--dataset-id', metavar='REPO@COMMIT',
|
| 576 |
+
help='the HF dataset and revision the --dataset directory holds (recorded; default: inferred from '
|
| 577 |
+
'a directory named <name>-<commit>/data)')
|
| 578 |
+
p.add_argument('--allow-dirty-tree', action='store_true',
|
| 579 |
+
help='train with uncommitted changes under evaluation/ (recorded; otherwise refused)')
|
| 580 |
+
p.add_argument('--lr', type=float, default=None,
|
| 581 |
+
help=f"peak learning rate (default {DEFAULTS['lr']}; with --init-from 0.3 x the original peak)")
|
| 582 |
+
p.add_argument('--weight-decay', type=float, default=DEFAULTS['weight_decay'])
|
| 583 |
+
p.add_argument('--warmup', type=int, default=None,
|
| 584 |
+
help=f"warm-up steps (default {DEFAULTS['warmup']}; with --init-from 5 %% of --steps)")
|
| 585 |
+
p.add_argument('--ema', type=float, default=DEFAULTS['ema'], help='max EMA decay; 0 saves the raw weights')
|
| 586 |
+
p.add_argument('--horizon', type=int, default=None,
|
| 587 |
+
help="action rows per chunk (default: the policy's; 16; FLASH: --flash rows)")
|
| 588 |
+
p.add_argument('--image-size', default='168x224', help='HxW of the policy images')
|
| 589 |
+
p.add_argument('--augmentation', choices=['hb-v2', 'none'], default='hb-v2',
|
| 590 |
+
help='training augmentation: the benchmark spec v2 (default; docs/augmentation_v2.md) or none '
|
| 591 |
+
'(an explicit exception, recorded in run.json)')
|
| 592 |
+
p.add_argument('--shift', type=int, default=0,
|
| 593 |
+
help='native random-shift augmentation in pixels (default 0: off; only with --augmentation none)')
|
| 594 |
+
p.add_argument('--preflight-only', action='store_true', help='run the data preflight, write run.json and stop')
|
| 595 |
+
p.add_argument('--backbone-weights', default=None,
|
| 596 |
+
help="torchvision weights the ResNet18 starts from (default IMAGENET1K_V1; FLASH, ODE: none); "
|
| 597 |
+
"'none': from scratch")
|
| 598 |
+
p.add_argument('--backbone-lr-scale', type=float, default=None,
|
| 599 |
+
help='learning rate of the image backbone relative to --lr (default 0.1; FLASH, ODE: 1)')
|
| 600 |
+
p.add_argument('--model', action='append', default=[], metavar='KEY=VALUE',
|
| 601 |
+
help='override a PolicyConfig field (JSON value), e.g. num_layers=6; repeatable')
|
| 602 |
+
p.add_argument('--flash', action='append', default=[], metavar='KEY=VALUE',
|
| 603 |
+
help='FLASH setting (JSON value), e.g. stride=2; repeatable (flash.FLASH_DEFAULTS)')
|
| 604 |
+
p.add_argument('--cache-dir', type=Path, default=Path('~/hb_models/baselines/cache'))
|
| 605 |
+
p.add_argument('--workers', type=int, default=None,
|
| 606 |
+
help='DataLoader workers (and frame-cache decoders); the v2 augmentation costs ~17 ms of one CPU '
|
| 607 |
+
"core per item, so 8 workers feed only ~6 steps/s at batch 64 (default: the protocol "
|
| 608 |
+
"recipe's)")
|
| 609 |
+
p.add_argument('--prefetch', type=int, default=2, help='batches prefetched per worker')
|
| 610 |
+
p.add_argument('--save-every', type=int, default=None,
|
| 611 |
+
help="save every N steps instead of the protocol's 6 even save points (owner 2026-11-27); a "
|
| 612 |
+
'deviation: needs --protocol-exception')
|
| 613 |
+
p.add_argument('--log-every', type=int, default=100)
|
| 614 |
+
p.add_argument('--eval-samples', type=int, default=256)
|
| 615 |
+
p.add_argument('--seed', type=int, default=None,
|
| 616 |
+
help='training seed (default: the model\'s one fixed seed: ACT, DP 0; FM-DiT v1 / v2, FLASH, ODE 42; '
|
| 617 |
+
'another value needs --protocol-exception)')
|
| 618 |
+
p.add_argument('--device', default='cuda:0')
|
| 619 |
+
p.add_argument('--no-amp', action='store_true')
|
| 620 |
+
p.add_argument('--resume', action='store_true', help='continue from <out>/train_state.pt')
|
| 621 |
+
p.add_argument('--init-from', type=Path, metavar='CHECKPOINT',
|
| 622 |
+
help='continuation of a finished run (HumanWAM hb_training/protocol.yaml interface.continuation: '
|
| 623 |
+
'weights only): its checkpoint folder <run>/checkpoints/step-NNNNNN. Loads the raw policy and '
|
| 624 |
+
'its EMA from <run>/train_state.pt when that was written at the same step (else the saved '
|
| 625 |
+
'EMA weights for both); a fresh AdamW and schedule run --steps MORE steps with peak --lr '
|
| 626 |
+
'(the protocol: 0.3 x the original peak) and --warmup (5 %% of --steps). Checkpoints, logs, '
|
| 627 |
+
'the in-training MSE and the EMA decay count the total steps (original + continuation). '
|
| 628 |
+
'Use a new --out.')
|
| 629 |
+
p.add_argument('--protocol-exception', metavar='TEXT', action='append', default=[],
|
| 630 |
+
help="a setting other than the protocol's (e.g. --save-every): the owner's decision, recorded "
|
| 631 |
+
'verbatim in run.json and config.json (repeatable)')
|
| 632 |
+
p.add_argument('--continuation-exception', metavar='TEXT',
|
| 633 |
+
help='--init-from with a peak learning rate, warm-up or step count other than the protocol\'s '
|
| 634 |
+
'(0.3 x, 5 %%, 2000 or, long tasks, 4000 steps): the owner\'s decision, recorded verbatim')
|
| 635 |
+
p.add_argument('--inloop-task', help='in-training MSE: the task key of HumanWAM eval-action-mse hb_eval_common')
|
| 636 |
+
p.add_argument('--inloop-code', type=Path, help='in-training MSE: HumanWAM hb_training/eval-action-mse')
|
| 637 |
+
p.add_argument('--allow-no-inloop', action='store_true',
|
| 638 |
+
help='train without the in-training MSE (every model needs it, owner 2026-11-22/27; an exception '
|
| 639 |
+
'to the protocol, recorded)')
|
| 640 |
+
args = p.parse_args()
|
| 641 |
+
recipe = PROTOCOL_RECIPES.get(args.policy, {})
|
| 642 |
+
factor = LONG_TASKS.get(args.inloop_task, 1)
|
| 643 |
+
given = dict(warmup=args.warmup, seed=args.seed)
|
| 644 |
+
args.batch_size = recipe.get('batch_size', DEFAULTS['batch_size']) if args.batch_size is None else args.batch_size
|
| 645 |
+
args.workers = recipe.get('workers', 32) if args.workers is None else args.workers
|
| 646 |
+
if args.steps is None:
|
| 647 |
+
args.steps = (2000 * factor if args.init_from else
|
| 648 |
+
recipe['steps'] * factor if 'steps' in recipe else 60000)
|
| 649 |
+
if args.warmup is None and not args.init_from and 'warmup' in recipe:
|
| 650 |
+
args.warmup = recipe['warmup']
|
| 651 |
+
want_seed = training_defaults(args.policy)['seed']
|
| 652 |
+
deviations = [f'{k} {v} (protocol {w})' for k, v, w in (
|
| 653 |
+
('batch_size', args.batch_size, recipe.get('batch_size')),
|
| 654 |
+
('steps', args.steps, None if args.init_from or 'steps' not in recipe else recipe['steps'] * factor),
|
| 655 |
+
('warmup', given['warmup'], None if args.init_from else recipe.get('warmup')),
|
| 656 |
+
('workers', args.workers, recipe.get('workers')),
|
| 657 |
+
('seed', given['seed'], want_seed)) if w is not None and v is not None and v != w]
|
| 658 |
+
if args.save_every:
|
| 659 |
+
deviations.append(f'save_every {args.save_every} (protocol: 6 even save points)')
|
| 660 |
+
if deviations and not args.protocol_exception:
|
| 661 |
+
raise SystemExit(f"{args.policy}: {', '.join(deviations)} differ from the protocol (HumanWAM "
|
| 662 |
+
"hb_training/protocol.yaml); pass --protocol-exception with the owner's decision")
|
| 663 |
+
continuation_protocol = None
|
| 664 |
+
if args.init_from: # HumanWAM protocol.yaml interface.continuation
|
| 665 |
+
original_lr = float(json.loads((args.init_from.expanduser() / 'config.json').read_text())['training']['lr'])
|
| 666 |
+
want = dict(lr=0.3 * original_lr, warmup=round(0.05 * args.steps), steps=(2000, 4000))
|
| 667 |
+
args.lr = want['lr'] if args.lr is None else args.lr
|
| 668 |
+
args.warmup = want['warmup'] if args.warmup is None else args.warmup
|
| 669 |
+
off = [f'{k} {v}' for k, v, ok in (('lr', args.lr, math.isclose(args.lr, want['lr'], rel_tol=1e-6)),
|
| 670 |
+
('warmup', args.warmup, args.warmup == want['warmup']),
|
| 671 |
+
('steps', args.steps, args.steps in want['steps'])) if not ok]
|
| 672 |
+
if off and not args.continuation_exception:
|
| 673 |
+
raise SystemExit(f"--init-from: {', '.join(off)} differ from the protocol's continuation (lr "
|
| 674 |
+
f"{want['lr']:g} = 0.3 x {original_lr:g}, warm-up {want['warmup']} = 5 % of --steps, "
|
| 675 |
+
'2000 steps, long tasks 4000); pass --continuation-exception with the owner\'s decision')
|
| 676 |
+
continuation_protocol = dict(peak_lr_factor=0.3, warmup_ratio=0.05, steps=list(want['steps']),
|
| 677 |
+
deviations=off, exception=args.continuation_exception)
|
| 678 |
+
elif args.continuation_exception:
|
| 679 |
+
raise SystemExit('--continuation-exception goes with --init-from')
|
| 680 |
+
args.lr = DEFAULTS['lr'] if args.lr is None else args.lr
|
| 681 |
+
args.warmup = DEFAULTS['warmup'] if args.warmup is None else args.warmup
|
| 682 |
+
|
| 683 |
+
flash = args.policy == 'flash'
|
| 684 |
+
ode = args.policy in ODE_POLICIES
|
| 685 |
+
fm2 = args.policy == 'fm_dit_v2'
|
| 686 |
+
defaults = training_defaults(args.policy)
|
| 687 |
+
horizon = defaults['horizon'] if args.horizon is None else args.horizon
|
| 688 |
+
lead = int(getattr(POLICIES[args.policy], 'lead_rows', 0)) # FlashPolicy has none (no lead rows)
|
| 689 |
+
seed = defaults['seed'] if args.seed is None else args.seed
|
| 690 |
+
backbone_weights = defaults['backbone_weights'] if args.backbone_weights is None else args.backbone_weights
|
| 691 |
+
backbone_lr_scale = defaults['backbone_lr_scale'] if args.backbone_lr_scale is None else args.backbone_lr_scale
|
| 692 |
+
if not args.inloop_task and not args.allow_no_inloop:
|
| 693 |
+
raise SystemExit(f'{args.policy}: the protocol requires the in-training MSE for every model (--inloop-task, '
|
| 694 |
+
'--inloop-code), or --allow-no-inloop as a recorded exception')
|
| 695 |
+
dirty = git_dirty()
|
| 696 |
+
if dirty and not args.allow_dirty_tree:
|
| 697 |
+
raise SystemExit(f'uncommitted changes under evaluation/ ({", ".join(dirty[:5])}): the recorded code_commit '
|
| 698 |
+
'would not be the code trained; commit them or pass --allow-dirty-tree (recorded)')
|
| 699 |
+
if bool(args.inloop_task) != bool(args.inloop_code):
|
| 700 |
+
raise SystemExit('--inloop-task and --inloop-code go together')
|
| 701 |
+
|
| 702 |
+
out = args.out.expanduser().resolve()
|
| 703 |
+
out.mkdir(parents=True, exist_ok=True)
|
| 704 |
+
contract = CONTRACTS[args.contract]
|
| 705 |
+
aug = augmentation_module()
|
| 706 |
+
aug.check_state_layout(contract.robot, contract.state_dim, [column for column, _, _ in contract.state])
|
| 707 |
+
hb_aug = args.augmentation == 'hb-v2'
|
| 708 |
+
if hb_aug and args.shift:
|
| 709 |
+
raise SystemExit('--shift is the native random shift, which the augmentation spec v2 turns off '
|
| 710 |
+
'(docs/augmentation_v2.md); use it only with --augmentation none')
|
| 711 |
+
if contract.body_dims != aug.BODY_JOINTS[contract.robot]:
|
| 712 |
+
raise SystemExit(f'contract {contract.name}: body_dims {contract.body_dims}, the spec perturbs '
|
| 713 |
+
f'{aug.BODY_JOINTS[contract.robot]} body joints')
|
| 714 |
+
augmentation = (aug.describe(contract.robot, contract.body_dims) if hb_aug else
|
| 715 |
+
dict(version=None, exception='--augmentation none (not the benchmark default)'))
|
| 716 |
+
cameras = tuple(args.cameras.split(',')) if args.cameras else contract.cameras
|
| 717 |
+
hw = parse_hw(args.image_size)
|
| 718 |
+
dataset = LeRobotDataset(args.dataset)
|
| 719 |
+
dataset.check_contract(contract, cameras)
|
| 720 |
+
if dataset.fps != DATASET_FPS and not args.protocol_exception:
|
| 721 |
+
raise SystemExit(f'{dataset.root}: {dataset.fps} Hz; every dataset, training and evaluation is {DATASET_FPS} '
|
| 722 |
+
"Hz (owner 2026-11-26); pass --protocol-exception with the owner's decision")
|
| 723 |
+
dataset_id = args.dataset_id
|
| 724 |
+
if dataset_id is None:
|
| 725 |
+
import re
|
| 726 |
+
root = Path(dataset.root)
|
| 727 |
+
m = re.fullmatch(r'(.+)-([0-9a-f]{7,40})', (root.parent if root.name == 'data' else root).name)
|
| 728 |
+
dataset_id = f'{m.group(1)}@{m.group(2)} (inferred from the directory name)' if m else None
|
| 729 |
+
if dataset_id is None:
|
| 730 |
+
raise SystemExit(f'{dataset.root}: give --dataset-id REPO@COMMIT (the HF dataset and revision it holds)')
|
| 731 |
+
episodes = parse_episodes(args.episodes, dataset.lengths)
|
| 732 |
+
if not 0 <= args.val_episodes < len(episodes):
|
| 733 |
+
raise SystemExit('--val-episodes must leave training episodes')
|
| 734 |
+
lowdim = load_lowdim(dataset, contract, episodes)
|
| 735 |
+
if len(lowdim['tasks']) != 1:
|
| 736 |
+
raise SystemExit(f"the baselines take no language: one task per dataset, found {lowdim['tasks']}")
|
| 737 |
+
n_train = len(episodes) - args.val_episodes
|
| 738 |
+
train_pos, val_pos = list(range(n_train)), list(range(n_train, len(episodes)))
|
| 739 |
+
train_rows = np.concatenate([np.arange(s, s + n) for s, n in
|
| 740 |
+
zip(lowdim['starts'][:n_train], lowdim['lengths'][:n_train])])
|
| 741 |
+
stats = statistics(lowdim, train_rows, quantiles=ode)
|
| 742 |
+
if ode: # the G1 port's normalization: the DFX6 values fixed at [0, 1]
|
| 743 |
+
for key, dims in unit_range_dims(contract).items():
|
| 744 |
+
stats[key]['unit_dims'] = dims
|
| 745 |
+
frames = frame_cache(dataset, lowdim, cameras, hw, args.cache_dir, workers=args.workers)
|
| 746 |
+
|
| 747 |
+
overrides = {k: json.loads(v) for k, v in (item.split('=', 1) for item in args.model)}
|
| 748 |
+
base = dict(policy=args.policy, n_cameras=len(cameras), state_dim=contract.state_dim,
|
| 749 |
+
action_dim=contract.action_dim, horizon=horizon)
|
| 750 |
+
if ode: # the body part integrated as the ODE state: the contract's first action group (G1 token 64, H2 body 31)
|
| 751 |
+
_, first, last = contract.action[0]
|
| 752 |
+
overrides.setdefault('ode_body_dim', last - first)
|
| 753 |
+
first_history_record = None
|
| 754 |
+
if flash:
|
| 755 |
+
def frame0_row():
|
| 756 |
+
# the episode-start history row (flash.py, owner 2026-11-29): its sources in the state, and the median
|
| 757 |
+
# frame-0 value of what no observation measures (the G1 token) over the training episodes
|
| 758 |
+
try:
|
| 759 |
+
layout = first_history_layout(contract, dataset.info['features'])
|
| 760 |
+
except ValueError as error:
|
| 761 |
+
raise SystemExit(f'FLASH first_history frame0: {error}')
|
| 762 |
+
return layout, first_history_start(lowdim, layout, train_pos)
|
| 763 |
+
|
| 764 |
+
parent_flash = None
|
| 765 |
+
if args.init_from: # a continuation keeps its parent's episode start unless --flash first_history says so
|
| 766 |
+
parent_cfg = json.loads((args.init_from.expanduser() / 'config.json').read_text())['policy']
|
| 767 |
+
parent_flash = (parent_cfg.get('extra') or {}).get('flash') or {}
|
| 768 |
+
settings, first_history_record = flash_run_settings(
|
| 769 |
+
{k: json.loads(v) for k, v in (i.split('=', 1) for i in args.flash)}, parent_flash, frame0_row)
|
| 770 |
+
if args.horizon is not None and args.horizon != settings['rows']:
|
| 771 |
+
raise SystemExit('FLASH: the output rows are --flash rows=N, not --horizon')
|
| 772 |
+
base.update(FLASH_POLICY_FIELDS, horizon=int(settings['rows']), extra=dict(flash=settings))
|
| 773 |
+
elif args.flash:
|
| 774 |
+
raise SystemExit('--flash applies to --policy flash only')
|
| 775 |
+
if fm2:
|
| 776 |
+
base.update(FM_DIT_V2_POLICY_FIELDS)
|
| 777 |
+
weights = None if str(backbone_weights).lower() in ('none', '') else backbone_weights
|
| 778 |
+
pcfg = PolicyConfig.from_dict({**base, 'backbone_weights': weights, **overrides})
|
| 779 |
+
aug_seed = seed if hb_aug else None # every model: the seeded augmentation stream (REPRODUCIBILITY.md section 3)
|
| 780 |
+
if flash:
|
| 781 |
+
from baselines.flash import FlashPolicy, first_history_source, flash_settings
|
| 782 |
+
fs = flash_settings(pcfg)
|
| 783 |
+
H_ext = fs['poly_prefix'] + fs['n_action'] + fs['poly_suffix'] + 2 * fs['fit_pad']
|
| 784 |
+
offsets = (np.arange(H_ext) - (fs['fit_pad'] + fs['poly_prefix'])) * fs['stride']
|
| 785 |
+
kw = dict(offsets=offsets, stride=fs['stride'], n_history=fs['n_history'], rows=fs['rows'],
|
| 786 |
+
first=first_history_source(fs))
|
| 787 |
+
train_set = FlashChunkDataset(lowdim, frames, cameras, hw, train_pos,
|
| 788 |
+
body_dims=contract.body_dims if hb_aug else 0, aug_seed=aug_seed, **kw)
|
| 789 |
+
eval_set = FlashChunkDataset(lowdim, frames, cameras, hw, val_pos or train_pos, with_dense=True, **kw)
|
| 790 |
+
assert FlashPolicy.name == 'flash'
|
| 791 |
+
else:
|
| 792 |
+
train_set = ChunkDataset(lowdim, frames, cameras, hw, horizon, train_pos,
|
| 793 |
+
body_dims=contract.body_dims if hb_aug else 0, lead=lead, aug_seed=aug_seed)
|
| 794 |
+
eval_set = ChunkDataset(lowdim, frames, cameras, hw, horizon, val_pos or train_pos,
|
| 795 |
+
lead=lead) # never augmented
|
| 796 |
+
print(f'HB_AUG_SEED={aug_seed}', file=sys.stderr, flush=True)
|
| 797 |
+
checks = preflight(train_set, eval_set, contract, seed=seed)
|
| 798 |
+
print(json.dumps(dict(event='preflight', augmentation=augmentation.get('version'), **checks)), flush=True)
|
| 799 |
+
if args.save_every and not args.protocol_exception:
|
| 800 |
+
raise SystemExit('--save-every: the protocol saves 6 checkpoints spread evenly over the steps (owner '
|
| 801 |
+
"2026-11-27); pass --protocol-exception with the owner's decision to save otherwise")
|
| 802 |
+
save_at = set(save_points(args.steps, args.save_every))
|
| 803 |
+
print(json.dumps(dict(event='save_points', steps=sorted(save_at))), flush=True)
|
| 804 |
+
layout = dict(nodes=1, gpus=1, per_gpu_batch=args.batch_size, global_batch=args.batch_size,
|
| 805 |
+
gradient_accumulation=1, num_workers=args.workers, prefetch=args.prefetch)
|
| 806 |
+
if args.preflight_only:
|
| 807 |
+
(out / 'run.json').write_text(json.dumps(dict(
|
| 808 |
+
argv=sys.argv, started=datetime.now().isoformat(timespec='seconds'), host=os.uname().nodename,
|
| 809 |
+
contract=contract.to_dict(cameras), image_hw=list(hw), augmentation=augmentation, preflight=checks,
|
| 810 |
+
shift_px=args.shift, seed=seed, aug_seed=aug_seed, layout=layout, policy=pcfg.to_dict(),
|
| 811 |
+
code_commit=git_commit()), indent=1, default=str))
|
| 812 |
+
return
|
| 813 |
+
|
| 814 |
+
import torch
|
| 815 |
+
torch.manual_seed(seed)
|
| 816 |
+
np.random.seed(seed)
|
| 817 |
+
device = torch.device(args.device)
|
| 818 |
+
policy = build_policy(pcfg)
|
| 819 |
+
policy.fit_normalizers(stats)
|
| 820 |
+
policy.to(device)
|
| 821 |
+
ema = EMA(policy, args.ema, defaults.get('ema_schedule', 'hb')) if args.ema > 0 else None
|
| 822 |
+
named = list(policy.named_parameters())
|
| 823 |
+
backbone = [p for n, p in named if n.startswith(policy.backbone_prefix)]
|
| 824 |
+
rest = [p for n, p in named if not n.startswith(policy.backbone_prefix)]
|
| 825 |
+
if not backbone:
|
| 826 |
+
raise SystemExit(f'no backbone parameters under {policy.backbone_prefix!r}')
|
| 827 |
+
optimizer = torch.optim.AdamW([dict(params=rest), dict(params=backbone, lr=args.lr * backbone_lr_scale)],
|
| 828 |
+
lr=args.lr, betas=DEFAULTS['betas'], weight_decay=args.weight_decay)
|
| 829 |
+
schedule = defaults.get('schedule', 'hb')
|
| 830 |
+
|
| 831 |
+
def lr_lambda(step):
|
| 832 |
+
if schedule == 'diffusers_cosine': # diffusers get_cosine_schedule_with_warmup (FLASH's lr_scheduler)
|
| 833 |
+
if step < args.warmup:
|
| 834 |
+
return step / max(1, args.warmup)
|
| 835 |
+
progress = (step - args.warmup) / max(1, args.steps - args.warmup)
|
| 836 |
+
return max(0.0, 0.5 * (1.0 + math.cos(math.pi * progress)))
|
| 837 |
+
if step < args.warmup:
|
| 838 |
+
return (step + 1) / max(1, args.warmup)
|
| 839 |
+
return 0.5 * (1 + math.cos(math.pi * min(1.0, (step - args.warmup) / max(1, args.steps - args.warmup))))
|
| 840 |
+
|
| 841 |
+
scheduler = torch.optim.lr_scheduler.LambdaLR(optimizer, lr_lambda)
|
| 842 |
+
step = 0
|
| 843 |
+
step0 = 0 # continuation: the steps of the run it starts from (0 for a training from scratch)
|
| 844 |
+
continuation = None
|
| 845 |
+
state_path = out / 'train_state.pt'
|
| 846 |
+
resuming = args.resume and state_path.exists()
|
| 847 |
+
resume_rng = None
|
| 848 |
+
if args.init_from and not resuming:
|
| 849 |
+
continuation, step0 = init_continuation(args, policy, ema, pcfg, contract, cameras, hw, augmentation,
|
| 850 |
+
episodes[:n_train], out, stats)
|
| 851 |
+
continuation['protocol'] = continuation_protocol
|
| 852 |
+
if first_history_record is not None: # FLASH: the episode start inherited or explicitly changed
|
| 853 |
+
continuation['first_history'] = first_history_record
|
| 854 |
+
if resuming:
|
| 855 |
+
saved = torch.load(state_path, map_location='cpu', weights_only=False)
|
| 856 |
+
if not same_policy_config(saved['config']['policy'], pcfg.to_dict()):
|
| 857 |
+
raise SystemExit('train_state.pt was written for another policy configuration')
|
| 858 |
+
before = saved['config'].get('training', {})
|
| 859 |
+
if (before.get('augmentation') or {}).get('version') != augmentation.get('version') \
|
| 860 |
+
or before.get('shift_px') != args.shift:
|
| 861 |
+
raise SystemExit('train_state.pt was trained with another augmentation (version / --shift); resuming '
|
| 862 |
+
'would change it mid-run')
|
| 863 |
+
policy.load_state_dict(saved['policy'])
|
| 864 |
+
optimizer.load_state_dict(saved['optimizer'])
|
| 865 |
+
scheduler.load_state_dict(saved['scheduler'])
|
| 866 |
+
if ema is not None:
|
| 867 |
+
ema.model.load_state_dict(saved['ema'])
|
| 868 |
+
step = int(saved['step'])
|
| 869 |
+
continuation = before.get('continuation')
|
| 870 |
+
if bool(continuation) != bool(args.init_from) or (
|
| 871 |
+
continuation and Path(continuation['init_from']) != args.init_from.expanduser().resolve()):
|
| 872 |
+
raise SystemExit('--resume: give the same --init-from as the interrupted run (none for a run from '
|
| 873 |
+
'scratch)')
|
| 874 |
+
step0 = int(continuation['init_step']) if continuation else 0
|
| 875 |
+
resume_rng = saved.get('rng')
|
| 876 |
+
if resume_rng is None:
|
| 877 |
+
print('HB_RESUME no random state in train_state.pt (written before 2026-11-27): the streams restart',
|
| 878 |
+
flush=True)
|
| 879 |
+
print(json.dumps(dict(event='resumed', step=step0 + step, local_step=step)), flush=True)
|
| 880 |
+
|
| 881 |
+
inloop = None
|
| 882 |
+
if args.inloop_task:
|
| 883 |
+
# one GPU: hb_inloop_core shards by RANK / WORLD_SIZE, which a DLC node sets for its own launcher
|
| 884 |
+
for key, value in (('RANK', '0'), ('WORLD_SIZE', '1'), ('LOCAL_RANK', '0')):
|
| 885 |
+
if os.environ.get(key, value) != value:
|
| 886 |
+
print(f'HB_INLOOP {key}={os.environ[key]} -> {value} (one-GPU training)', flush=True)
|
| 887 |
+
os.environ[key] = value
|
| 888 |
+
from baselines import inloop as inloop_mod
|
| 889 |
+
inloop = inloop_mod.install(args.inloop_code, args.inloop_task, out,
|
| 890 |
+
lambda: ema.model if ema is not None else policy, contract, cameras, hw, lowdim,
|
| 891 |
+
args.policy, lowdim_loader=lambda eps: load_lowdim(dataset, contract, eps))
|
| 892 |
+
else:
|
| 893 |
+
print(f'HB_INLOOP {args.policy} disabled: no --inloop-task', flush=True)
|
| 894 |
+
|
| 895 |
+
samples = np.random.default_rng(1).choice(len(eval_set), size=min(args.eval_samples, len(eval_set)), replace=False)
|
| 896 |
+
training = dict(steps=args.steps, batch_size=args.batch_size, lr=args.lr, betas=list(DEFAULTS['betas']),
|
| 897 |
+
weight_decay=args.weight_decay, warmup=args.warmup,
|
| 898 |
+
schedule='linear warm-up + cosine' if schedule == 'hb' else schedule,
|
| 899 |
+
backbone_lr_scale=backbone_lr_scale,
|
| 900 |
+
ema=args.ema, shift_px=args.shift, amp=(not args.no_amp) and bool(defaults['amp']), seed=seed,
|
| 901 |
+
augmentation=augmentation, preflight=checks, aug_seed=aug_seed, layout=layout,
|
| 902 |
+
continuation=continuation, total_steps=step0 + args.steps,
|
| 903 |
+
save_steps=[step0 + k for k in sorted(save_at)],
|
| 904 |
+
save_rule=(f'every {args.save_every} steps (exception)' if args.save_every else
|
| 905 |
+
f'{SAVE_COUNT} checkpoints spread evenly over the steps on the {SAVE_GRID}-step grid '
|
| 906 |
+
'(owner 2026-11-27)'),
|
| 907 |
+
protocol_exceptions=args.protocol_exception)
|
| 908 |
+
training.update(ema_schedule=defaults.get('ema_schedule', 'hb'),
|
| 909 |
+
inloop=dict(task=args.inloop_task, code=str(args.inloop_code) if args.inloop_code else None,
|
| 910 |
+
every=int(os.environ.get('HB_INLOOP_EVERY', '250')) if args.inloop_task else 0,
|
| 911 |
+
exception=None if args.inloop_task else '--allow-no-inloop',
|
| 912 |
+
code_sha256={f: file_sha256(Path(args.inloop_code) / f) for f in
|
| 913 |
+
('hb_inloop_core.py', 'hb_eval_common.py')} if args.inloop_code else None))
|
| 914 |
+
training.update(protocol_recipe=dict(recipe, long_task_factor=factor), protocol_deviations=deviations,
|
| 915 |
+
environment=environment(device), code_dirty=dirty, allow_dirty_tree=args.allow_dirty_tree,
|
| 916 |
+
augmentation_sha256=file_sha256(HERE.parent / 'augmentation' / 'hb_aug_v2.py'),
|
| 917 |
+
order='EpochSampler: default_rng([seed, 1, epoch]) permutation; augmentation default_rng([aug_seed, '
|
| 918 |
+
'draw])')
|
| 919 |
+
if flash:
|
| 920 |
+
training.update(upstream='NTUMARS/FLASH-Policy@f47e490')
|
| 921 |
+
if fm2:
|
| 922 |
+
training.update(upstream=FM_DIT_V2_UPSTREAM)
|
| 923 |
+
if ode:
|
| 924 |
+
training.update(upstream='NTUMARS/ODE-POLICY real-g1@fd8bec47 (G1 port, HumanWAM packages/ode_g1) + '
|
| 925 |
+
'main@cea26d94 (encoder, ode_dit field, default_train.yaml)')
|
| 926 |
+
config = dict(
|
| 927 |
+
policy=pcfg.to_dict(), contract=contract.to_dict(cameras), image_hw=list(hw), task_text=lowdim['tasks'][0],
|
| 928 |
+
dataset=dict(name=dataset.name,
|
| 929 |
+
root=str(dataset.root), robot_type=dataset.info.get('robot_type'), fps=dataset.fps,
|
| 930 |
+
episodes=episodes, train_episodes=episodes[:n_train], val_episodes=episodes[n_train:],
|
| 931 |
+
train_frames=int(len(train_set)),
|
| 932 |
+
git_commit=dataset.info.get('script_config', {}).get('git_commit')),
|
| 933 |
+
training=training, stats=stats, code_commit=git_commit(), task=args.inloop_task, dataset_id=dataset_id)
|
| 934 |
+
run = dict(argv=sys.argv, started=datetime.now().isoformat(timespec='seconds'), host=os.uname().nodename,
|
| 935 |
+
torch=torch.__version__, **config)
|
| 936 |
+
(out / 'run.json').write_text(json.dumps(run, indent=1, default=str))
|
| 937 |
+
sampler = EpochSampler(len(train_set), args.batch_size, seed, start_step=step)
|
| 938 |
+
# its own generator: creating the iterator (here and after a --resume) must not draw from the global stream that
|
| 939 |
+
# the model's noise and dropout use, or a resumed run would be one draw off
|
| 940 |
+
loader = torch.utils.data.DataLoader(train_set, batch_size=args.batch_size, sampler=sampler, drop_last=True,
|
| 941 |
+
generator=torch.Generator().manual_seed(seed),
|
| 942 |
+
num_workers=args.workers, pin_memory=True, persistent_workers=True,
|
| 943 |
+
prefetch_factor=args.prefetch)
|
| 944 |
+
params = sum(x.numel() for x in policy.parameters())
|
| 945 |
+
print(json.dumps(dict(event='start', policy=args.policy, params=params,
|
| 946 |
+
backbone_params=sum(x.numel() for x in backbone), backbone_weights=pcfg.backbone_weights,
|
| 947 |
+
backbone_norm=pcfg.backbone_norm, train_frames=len(train_set), steps=args.steps,
|
| 948 |
+
from_step=step0 + step, total_steps=step0 + args.steps, cameras=list(cameras), hw=list(hw),
|
| 949 |
+
seed=seed)), flush=True)
|
| 950 |
+
log = (out / 'train_log.jsonl').open('a')
|
| 951 |
+
amp = (not args.no_amp) and device.type == 'cuda' and bool(defaults['amp'])
|
| 952 |
+
|
| 953 |
+
def save(step): # step: this run's own steps; checkpoints are named and stamped with the total
|
| 954 |
+
total = step0 + step
|
| 955 |
+
folder = out / f'checkpoints/step-{total:06d}'
|
| 956 |
+
model = ema.model if ema is not None else policy
|
| 957 |
+
metrics = offline_eval(model, eval_set, samples, device, contract.action)
|
| 958 |
+
save_checkpoint(folder, model, dict(config, step=total, weights='ema' if ema is not None else 'raw',
|
| 959 |
+
offline_eval=dict(metrics, samples=len(samples),
|
| 960 |
+
frames='val' if val_pos else 'train')))
|
| 961 |
+
final = out / 'checkpoints/final'
|
| 962 |
+
if final.is_symlink() or final.exists():
|
| 963 |
+
final.unlink()
|
| 964 |
+
final.symlink_to(folder.name)
|
| 965 |
+
torch.save(dict(policy=policy.state_dict(), optimizer=optimizer.state_dict(), scheduler=scheduler.state_dict(),
|
| 966 |
+
ema=None if ema is None else ema.model.state_dict(), step=step, config=config,
|
| 967 |
+
rng=rng_state()),
|
| 968 |
+
out / 'train_state.pt.tmp')
|
| 969 |
+
(out / 'train_state.pt.tmp').replace(state_path)
|
| 970 |
+
record = dict(event='save', step=total, checkpoint=str(folder), **metrics)
|
| 971 |
+
print(json.dumps(record), flush=True)
|
| 972 |
+
log.write(json.dumps(record) + '\n')
|
| 973 |
+
log.flush()
|
| 974 |
+
policy.train()
|
| 975 |
+
|
| 976 |
+
if resume_rng is not None: # the interrupted run's random streams (model noise, dropout) at its last save
|
| 977 |
+
set_rng_state(resume_rng)
|
| 978 |
+
policy.train()
|
| 979 |
+
t0, data_s, acc = time.monotonic(), 0.0, {}
|
| 980 |
+
while step < args.steps:
|
| 981 |
+
tick = time.monotonic()
|
| 982 |
+
for images, *labels in loader:
|
| 983 |
+
data_s += time.monotonic() - tick
|
| 984 |
+
images = images.to(device, non_blocking=True).permute(0, 1, 4, 2, 3).float().div_(255.)
|
| 985 |
+
images = random_shift(images, args.shift)
|
| 986 |
+
labels = [x.to(device, non_blocking=True) for x in labels]
|
| 987 |
+
with torch.autocast(device.type, dtype=torch.bfloat16, enabled=amp):
|
| 988 |
+
loss, metrics = policy.compute_loss(images, *labels)
|
| 989 |
+
optimizer.zero_grad(set_to_none=True)
|
| 990 |
+
loss.backward()
|
| 991 |
+
optimizer.step()
|
| 992 |
+
scheduler.step()
|
| 993 |
+
step += 1
|
| 994 |
+
decay = ema.update(policy, step0 + step) if ema is not None else 0.0
|
| 995 |
+
for k, v in dict(metrics, loss=float(loss.detach())).items():
|
| 996 |
+
acc[k] = acc.get(k, 0.0) + v
|
| 997 |
+
if step % args.log_every == 0:
|
| 998 |
+
elapsed = time.monotonic() - t0
|
| 999 |
+
record = dict(event='train', step=step0 + step, lr=scheduler.get_last_lr()[0],
|
| 1000 |
+
backbone_lr=scheduler.get_last_lr()[1], ema_decay=round(decay, 6),
|
| 1001 |
+
it_s=round(args.log_every / elapsed, 2), data_frac=round(data_s / elapsed, 3),
|
| 1002 |
+
**{k: v / args.log_every for k, v in acc.items()})
|
| 1003 |
+
print(json.dumps(record), flush=True)
|
| 1004 |
+
log.write(json.dumps(record) + '\n')
|
| 1005 |
+
log.flush()
|
| 1006 |
+
t0, data_s, acc = time.monotonic(), 0.0, {}
|
| 1007 |
+
if inloop is not None and (step0 + step) % inloop.every == 0:
|
| 1008 |
+
inloop.evaluate(step0 + step, ema.model if ema is not None else policy)
|
| 1009 |
+
policy.train()
|
| 1010 |
+
if step in save_at:
|
| 1011 |
+
save(step)
|
| 1012 |
+
if step >= args.steps:
|
| 1013 |
+
break
|
| 1014 |
+
tick = time.monotonic()
|
| 1015 |
+
log.close()
|
| 1016 |
+
if step >= args.steps: # as HumanWAM's launchers (e.g. fastwam_cont.sh): what the finished run is
|
| 1017 |
+
c = continuation or {}
|
| 1018 |
+
(out / 'complete.json').write_text(json.dumps(dict(
|
| 1019 |
+
run=out.name, policy=args.policy, contract=contract.name, steps=args.steps, total_steps_after=step0 + step,
|
| 1020 |
+
per_gpu_batch=args.batch_size, global_batch=args.batch_size, gradient_accumulation_steps=1,
|
| 1021 |
+
save_steps=[step0 + k for k in sorted(save_at)], seed=seed, aug_seed=aug_seed, peak_lr=args.lr, warmup=args.warmup,
|
| 1022 |
+
continued_from=c.get('init_from'), continued_from_step=c.get('init_step'),
|
| 1023 |
+
continuation=continuation, code_commit=config['code_commit'],
|
| 1024 |
+
finished_utc=datetime.now(timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ')), indent=1))
|
| 1025 |
+
print(json.dumps(dict(event='done', step=step0 + step, checkpoint=str(out / 'checkpoints/final'))), flush=True)
|
| 1026 |
+
|
| 1027 |
+
|
| 1028 |
+
if __name__ == '__main__':
|
| 1029 |
+
main()
|
a15-hitting-nail/b512-s6000/step-006000/training_records/complete.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run": "a15v3-ode_mlp-b512-s6000",
|
| 3 |
+
"policy": "ode_mlp",
|
| 4 |
+
"contract": "h2_sharpa",
|
| 5 |
+
"steps": 6000,
|
| 6 |
+
"total_steps_after": 6000,
|
| 7 |
+
"per_gpu_batch": 512,
|
| 8 |
+
"global_batch": 512,
|
| 9 |
+
"gradient_accumulation_steps": 1,
|
| 10 |
+
"save_steps": [
|
| 11 |
+
1000,
|
| 12 |
+
2000,
|
| 13 |
+
3000,
|
| 14 |
+
4000,
|
| 15 |
+
5000,
|
| 16 |
+
6000
|
| 17 |
+
],
|
| 18 |
+
"seed": 42,
|
| 19 |
+
"aug_seed": 42,
|
| 20 |
+
"peak_lr": 0.0001,
|
| 21 |
+
"warmup": 500,
|
| 22 |
+
"continued_from": null,
|
| 23 |
+
"continued_from_step": null,
|
| 24 |
+
"continuation": null,
|
| 25 |
+
"code_commit": "bf40b9df05f60870ac9e4ab3acef11a871925a40",
|
| 26 |
+
"finished_utc": "2026-11-30T10:53:32Z"
|
| 27 |
+
}
|
a15-hitting-nail/b512-s6000/step-006000/training_records/launch.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# launch.sh (2026-11-30, team01): ode A15 v3 (HF a15-hitting-nail @139187e6, 3-factor stall trim, 150 episodes, H2
|
| 3 |
+
# head + chest) on card 1 (RTX 4090D 24 GB); code /mnt/vepfs/baijiaqi/hb_team01_20261130/code/hb_bai_bf40b9df (bai bf40b9df); see /mnt/vepfs/baijiaqi/hb_team01_20261130/mk_team01_a15.py.
|
| 4 |
+
# Start: setsid nohup bash launch.sh > launch.out 2>&1 < /dev/null &
|
| 5 |
+
set -u
|
| 6 |
+
RUN=/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000
|
| 7 |
+
mkdir -p $RUN
|
| 8 |
+
cd /mnt/vepfs/baijiaqi/hb_team01_20261130/code/hb_bai_bf40b9df
|
| 9 |
+
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True CUDA_DEVICE_ORDER=PCI_BUS_ID CUDA_VISIBLE_DEVICES=1
|
| 10 |
+
export G=/mnt/vepfs/baijiaqi/hb_team01_20261130/policies HB_EVAL_CACHE=/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache
|
| 11 |
+
exec taskset -c 90-179 /root/.venvs/hb-baselines/bin/python -I evaluation/baselines/train.py \
|
| 12 |
+
--policy ode_mlp --contract h2_sharpa --steps 6000 --seed 42 --lr 1e-4 --warmup 500 --batch-size 512 --workers 32 --log-every 50 --protocol-exception 'owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000' --protocol-exception 'owner 2026-11-30 (「team01 这两张卡先装好环境,然后分担我们这边其他的任务,训练、评估都可以」): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)' --dataset /mnt/vepfs/baijiaqi/hb_team01_20261130/a15-hitting-nail-v3-139187e/data --dataset-id humanoid-benchmark/a15-hitting-nail@139187e6d5e4547aae01629bca39fc4b2045153d --cache-dir /dev/shm/hb_team01_cache --inloop-task a15v3 --inloop-code /mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse --out /mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000 >> $RUN/train.log 2>&1
|
a15-hitting-nail/b512-s6000/step-006000/training_records/logs/inloop-mse.jsonl
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"step": 250, "utc": "2026-11-30T09:41:33Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 8.7, "infer_s_per_query": 0.0073, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.017092383183707614, "mae_raw": 0.07782900899714368, "nmse": 0.19468087532455533, "groups": {"body_target": {"mse_raw": 0.006765115867746013, "nmse": 0.0950550138946424}, "hands": {"mse_raw": 0.021317174358419174, "nmse": 0.23543690954588328}}, "nmse_by_step": [0.18944556153432288, 0.1793180427570152, 0.17564960707666258, 0.19230158504324998, 0.18300773421468358, 0.1805648147420304, 0.18733957791721323, 0.20575175760813816, 0.19086884408423893, 0.20042514786118876, 0.20227641225136933, 0.20369607460752787, 0.18973858546469655, 0.20508770386998632, 0.2074835858261333, 0.22340477474997075], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 0.0027973949616016108, "rms_raw": 0.052890405194152286, "mae_raw": 0.02834340301148945}, "nmse_per_episode": {"0": 0.21500560417571302, "17": 0.1921420768390033, "33": 0.20586739401190382, "50": 0.19017352304325486, "66": 0.19296955080005768, "83": 0.1904589547851842, "99": 0.190225033246872, "116": 0.18815674453246406, "132": 0.2109489467397163, "149": 0.17618858543906285}, "nmse_episode_sem": 0.003729675466540804}
|
| 2 |
+
{"step": 500, "utc": "2026-11-30T09:44:13Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.2, "infer_s_per_query": 0.0034, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0037043591525040016, "mae_raw": 0.02852951923944539, "nmse": 0.044266859335117634, "groups": {"body_target": {"mse_raw": 0.0038284754350628152, "nmse": 0.054417809435968696}, "hands": {"mse_raw": 0.0036535843096390324, "nmse": 0.04011419793022403}}, "nmse_by_step": [0.05854788376008704, 0.05099102597111877, 0.04335632449433125, 0.04203490417686294, 0.039212033449203494, 0.03986734747061098, 0.0405373712514096, 0.038946368342969634, 0.03777412554091978, 0.042604327023308644, 0.04456789510560801, 0.04121603040505888, 0.0422485329544514, 0.04404267570436342, 0.04898302052299256, 0.053367655325027234], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 0.0003902485264950354, "rms_raw": 0.019754708970142674, "mae_raw": 0.010420400973231226}, "nmse_per_episode": {"0": 0.048919457879532814, "17": 0.04044120125525205, "33": 0.052222070306059847, "50": 0.03833017818366681, "66": 0.04047120345272104, "83": 0.03967027010431155, "99": 0.039848771097496245, "116": 0.04751988104864255, "132": 0.05110161287232732, "149": 0.04366621798210953}, "nmse_episode_sem": 0.0016583157156772053}
|
| 3 |
+
{"step": 750, "utc": "2026-11-30T09:47:39Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.5, "infer_s_per_query": 0.004, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0021071829406600537, "mae_raw": 0.020941764734462374, "nmse": 0.024189614702426056, "groups": {"body_target": {"mse_raw": 0.0029610152645074567, "nmse": 0.040575755310808856}, "hands": {"mse_raw": 0.001757887899086116, "nmse": 0.017486193544451276}}, "nmse_by_step": [0.0407011278319316, 0.03372778753337679, 0.027355955533171203, 0.024800814783720534, 0.02227242024931975, 0.02174600319852583, 0.02068695467727571, 0.01918366628201192, 0.017654046800076616, 0.01916859066075191, 0.02001257850077179, 0.019746843613441315, 0.02093424862074097, 0.02299715095622333, 0.025858681807258112, 0.02988006446903617], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 0.00021031289194076846, "rms_raw": 0.01450216852545744, "mae_raw": 0.007853456885063066}, "nmse_per_episode": {"0": 0.025412486365912864, "17": 0.020625901080790262, "33": 0.029824548520829636, "50": 0.021016889236297465, "66": 0.021716700197752035, "83": 0.021973177146737546, "99": 0.021929420074714642, "116": 0.025615802261263757, "132": 0.02817232133598941, "149": 0.02509028294990292}, "nmse_episode_sem": 0.0010046048818128552}
|
| 4 |
+
{"step": 1000, "utc": "2026-11-30T09:50:27Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.5, "infer_s_per_query": 0.0041, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0013835664600252305, "mae_raw": 0.01690600271379139, "nmse": 0.016833803999294832, "groups": {"body_target": {"mse_raw": 0.002264575230489786, "nmse": 0.030965731858408403}, "hands": {"mse_raw": 0.0010231537811988217, "nmse": 0.011052560784202917}}, "nmse_by_step": [0.030302751833729526, 0.02279623731554596, 0.017356160938170863, 0.015146845684337155, 0.013860084500538425, 0.01465835900774963, 0.01473254122701552, 0.0136132039283497, 0.012695977836298313, 0.013500027730522949, 0.014211133626390994, 0.014577104836974513, 0.015428334155928442, 0.016622736794005954, 0.018477335598027157, 0.02123034363848152], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 0.0001412292958634792, "rms_raw": 0.011883993262514044, "mae_raw": 0.006607441563025071}, "nmse_per_episode": {"0": 0.01678139951592166, "17": 0.01420507479684621, "33": 0.022397491855554032, "50": 0.014698341635533792, "66": 0.015470573662100721, "83": 0.015518912717284507, "99": 0.015562622132217024, "116": 0.016904115824117612, "132": 0.018908314299787298, "149": 0.017644984601846894}, "nmse_episode_sem": 0.0007644279903465559}
|
| 5 |
+
{"step": 1250, "utc": "2026-11-30T09:53:45Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0068, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0009214113038670265, "mae_raw": 0.014087963395998666, "nmse": 0.01184328696812796, "groups": {"body_target": {"mse_raw": 0.0013919071822910951, "nmse": 0.02029280289930658}, "hands": {"mse_raw": 0.0007289357172389982, "nmse": 0.008386666814463983}}, "nmse_by_step": [0.021226077643990905, 0.012826962559941221, 0.008792457251427188, 0.00827153251158317, 0.008852319596714068, 0.0109547820762577, 0.012039186090901453, 0.011164991420053191, 0.010479336803547784, 0.010776032439180381, 0.010964856792782422, 0.011108582670850405, 0.011552998105663858, 0.01214149856064552, 0.013364216918726555, 0.015025986598627765], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 0.00010266468345861134, "rms_raw": 0.010132358237775219, "mae_raw": 0.00569126917770188}, "nmse_per_episode": {"0": 0.011553670126332396, "17": 0.009512842949110197, "33": 0.016877529232726264, "50": 0.010082592915658542, "66": 0.010794241998442878, "83": 0.010561378979932989, "99": 0.010820264366442353, "116": 0.011858804247685938, "132": 0.013185287700137872, "149": 0.012903141884074116}, "nmse_episode_sem": 0.0006721882045924688}
|
| 6 |
+
{"step": 1500, "utc": "2026-11-30T09:56:43Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.6, "infer_s_per_query": 0.0044, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0006780897110605563, "mae_raw": 0.012382374669156655, "nmse": 0.009037511851269981, "groups": {"body_target": {"mse_raw": 0.0008418225080835181, "nmse": 0.013892086809391095}, "hands": {"mse_raw": 0.0006111081122784356, "nmse": 0.007051549368402246}}, "nmse_by_step": [0.012454724304620515, 0.00680398841616309, 0.005444370495512373, 0.006229494374287614, 0.007308014445271957, 0.009407975923392809, 0.010426573302839479, 0.00948486810246796, 0.00883193138231634, 0.008874778820495189, 0.008851135364666064, 0.008951628953330352, 0.009252475272589704, 0.0097402060218927, 0.010709253402970204, 0.011983487636987047], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 8.17170114799754e-05, "rms_raw": 0.00903974620661307, "mae_raw": 0.005106343350445204}, "nmse_per_episode": {"0": 0.008564500921834398, "17": 0.006846096513930434, "33": 0.013386393150685929, "50": 0.007523616969143658, "66": 0.008009644216173575, "83": 0.0076070170242732325, "99": 0.008099730813090497, "116": 0.009107281383208307, "132": 0.010229022160158462, "149": 0.010592019216634153}, "nmse_episode_sem": 0.0006149725545489388}
|
| 7 |
+
{"step": 1750, "utc": "2026-11-30T09:59:58Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.4, "infer_s_per_query": 0.0067, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0005406873235088972, "mae_raw": 0.011220250136306552, "nmse": 0.007426017793910322, "groups": {"body_target": {"mse_raw": 0.0006185043600813802, "nmse": 0.010937296976538714}, "hands": {"mse_raw": 0.0005088530812746996, "nmse": 0.0059895854010168885}}, "nmse_by_step": [0.007453792548730298, 0.005458326209569801, 0.0048398315715955965, 0.005408235365490132, 0.0062574399791710195, 0.007925647908180119, 0.008752255419668752, 0.007834610276138904, 0.0072826394194554, 0.007354169830480067, 0.0073852291475108665, 0.007531618620563353, 0.007856680247983881, 0.008323575186671282, 0.00913014664419576, 0.010191253696134541], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 6.913150481550698e-05, "rms_raw": 0.008314535754659244, "mae_raw": 0.004647151113535198}, "nmse_per_episode": {"0": 0.007170998613608384, "17": 0.00541193560414369, "33": 0.011251902163004259, "50": 0.006050500402676061, "66": 0.006363270798032899, "83": 0.0059152453151724285, "99": 0.0063751365196208, "116": 0.007791153353485959, "132": 0.008798920980284574, "149": 0.008733088233261252}, "nmse_episode_sem": 0.0005664508909226041}
|
| 8 |
+
{"step": 2000, "utc": "2026-11-30T10:02:57Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.4, "infer_s_per_query": 0.0038, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.000470863360055769, "mae_raw": 0.010433582772069747, "nmse": 0.006473116031135367, "groups": {"body_target": {"mse_raw": 0.0005269631575920007, "nmse": 0.009436220028304859}, "hands": {"mse_raw": 0.0004479134428818561, "nmse": 0.005260937123202393}}, "nmse_by_step": [0.005282776564272517, 0.004707213177270535, 0.0043279357754157375, 0.0049601623244117255, 0.005689739746136298, 0.007246096760534908, 0.00783095986860882, 0.006773019729616334, 0.006245287582953215, 0.006222085153593212, 0.0062725110402781815, 0.006540624619201235, 0.006913578209579468, 0.007394244147576769, 0.008168489416569334, 0.009158467279603176], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 6.0341398848335405e-05, "rms_raw": 0.007767972634370915, "mae_raw": 0.004325821094036868}, "nmse_per_episode": {"0": 0.006344586199860846, "17": 0.004679171874697871, "33": 0.009508026186786839, "50": 0.005194702237031379, "66": 0.005480052644673395, "83": 0.005066616770131202, "99": 0.005511047986254757, "116": 0.006778545238188703, "132": 0.007815633378787918, "149": 0.007927712748062345}, "nmse_episode_sem": 0.0004939994425126039}
|
| 9 |
+
{"step": 2250, "utc": "2026-11-30T10:06:34Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0067, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0004360840696486446, "mae_raw": 0.009857906152379485, "nmse": 0.0058093161842279585, "groups": {"body_target": {"mse_raw": 0.00047363569257800783, "nmse": 0.008456880532680865}, "hands": {"mse_raw": 0.00042072204208663225, "nmse": 0.0047262216780426785}}, "nmse_by_step": [0.0043786169846570565, 0.004223136251978595, 0.003925480830273922, 0.004453908088528642, 0.005098598074250895, 0.006437716136892693, 0.006949593142095846, 0.006048448742143736, 0.005560796175896917, 0.0056513615827162985, 0.005725066929833898, 0.006017364246365102, 0.006307024865737173, 0.006717545994325012, 0.007353983821981984, 0.008255587009108415], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 5.354219094627835e-05, "rms_raw": 0.007317252964485945, "mae_raw": 0.004071683073078852}, "nmse_per_episode": {"0": 0.005614983221869802, "17": 0.004113849360643383, "33": 0.008216440728189996, "50": 0.004784190311328289, "66": 0.004837252581472864, "83": 0.004329457361572806, "99": 0.004838661747916626, "116": 0.006032999421202203, "132": 0.006990934739147715, "149": 0.007795656444227265}, "nmse_episode_sem": 0.0004618482805443661}
|
| 10 |
+
{"step": 2500, "utc": "2026-11-30T10:09:30Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.6, "infer_s_per_query": 0.0044, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0004074108477221601, "mae_raw": 0.009347992244283213, "nmse": 0.0052839278893067635, "groups": {"body_target": {"mse_raw": 0.00043555087648812333, "nmse": 0.007688514802838644}, "hands": {"mse_raw": 0.00039589901777244786, "nmse": 0.004300233242861905}}, "nmse_by_step": [0.0037559951996538484, 0.003695130820741251, 0.003495192483381015, 0.004039764194651596, 0.004624631246050603, 0.0058384674121491524, 0.006299175280954709, 0.005516027849359171, 0.005015088336293687, 0.005155572071170214, 0.005249012643066392, 0.0055545528971135535, 0.005800371062393747, 0.0061975550610642045, 0.006791256049103165, 0.007668241784523191], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 4.7939148867253956e-05, "rms_raw": 0.006923810285330899, "mae_raw": 0.003854853675425957}, "nmse_per_episode": {"0": 0.004964923619774043, "17": 0.003654071415836156, "33": 0.00714224059792294, "50": 0.004261778266770146, "66": 0.004380906915925733, "83": 0.003921945105933996, "99": 0.004315505677995331, "116": 0.005419959152511626, "132": 0.00623165817402665, "149": 0.007876615519154983}, "nmse_episode_sem": 0.00045287326334157626}
|
| 11 |
+
{"step": 2750, "utc": "2026-11-30T10:12:46Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0069, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00038235172184901325, "mae_raw": 0.008933271178049873, "nmse": 0.0048804669343853494, "groups": {"body_target": {"mse_raw": 0.00040860672245735604, "nmse": 0.007130515730348359}, "hands": {"mse_raw": 0.00037161103978196395, "nmse": 0.003959992426945936}}, "nmse_by_step": [0.0033046650486005585, 0.003343805195117902, 0.003262524794813185, 0.00381721939286768, 0.004342884134298096, 0.00542491637065684, 0.005756492856654492, 0.005000506137050087, 0.00450923181030739, 0.004686386558200104, 0.004821093792230691, 0.005135442172193074, 0.0053806556821475275, 0.005777585407784005, 0.006374594408954154, 0.007297225774250015], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 4.3446723763834554e-05, "rms_raw": 0.006591412880698231, "mae_raw": 0.003672527319668535}, "nmse_per_episode": {"0": 0.004598092706334404, "17": 0.0032774583307156415, "33": 0.006338175264776395, "50": 0.003945968180011371, "66": 0.0039678986687983996, "83": 0.003464350437472923, "99": 0.003916759919376734, "116": 0.004969127683267466, "132": 0.005723794772940414, "149": 0.007850348030846083}, "nmse_episode_sem": 0.00045822207788347456}
|
| 12 |
+
{"step": 3000, "utc": "2026-11-30T10:15:42Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.6, "infer_s_per_query": 0.0043, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00037346806819891045, "mae_raw": 0.008617244952658105, "nmse": 0.0046022584254817415, "groups": {"body_target": {"mse_raw": 0.0003850279418662182, "nmse": 0.006695183257724894}, "hands": {"mse_raw": 0.00036873902897137546, "nmse": 0.003746061903200452}}, "nmse_by_step": [0.0030077077033764496, 0.003116588199685453, 0.003106446376538332, 0.0036245560523108355, 0.004124198835404833, 0.005097453784280369, 0.005352376636504975, 0.004654157793297383, 0.004203271951776573, 0.0044075147336648975, 0.0045605779194925235, 0.004887078798652214, 0.005107407442000774, 0.005483523141634491, 0.006063542655590314, 0.006983493146791527], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 4.005096866428132e-05, "rms_raw": 0.006328583464273922, "mae_raw": 0.003515097535477395}, "nmse_per_episode": {"0": 0.0042317914784048, "17": 0.0029692283503210556, "33": 0.0057519006284116846, "50": 0.003745030285677892, "66": 0.0035933754827396757, "83": 0.003215648212451065, "99": 0.003678454599401652, "116": 0.004632326538798799, "132": 0.00539624946059845, "149": 0.007967148012127194}, "nmse_episode_sem": 0.00047769706330334387}
|
| 13 |
+
{"step": 3250, "utc": "2026-11-30T10:18:58Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.4, "infer_s_per_query": 0.0038, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00035950565531813394, "mae_raw": 0.008353502914042556, "nmse": 0.004345140434363812, "groups": {"body_target": {"mse_raw": 0.00036893478141067777, "nmse": 0.006390208699343442}, "hands": {"mse_raw": 0.00035564828555300227, "nmse": 0.003508521598690327}}, "nmse_by_step": [0.002718186382484338, 0.0028916124778877164, 0.0029805097793168126, 0.0034863937395501828, 0.0039449463258405286, 0.004842890397864678, 0.0049997824407252275, 0.004298627969008196, 0.0039026881673261396, 0.00409638351564875, 0.004289457028789417, 0.004631010743405995, 0.004828894265383515, 0.005219123852412461, 0.005803125546155435, 0.00672834610199427], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 3.748692769175911e-05, "rms_raw": 0.006122656914425232, "mae_raw": 0.0033943190969328366}, "nmse_per_episode": {"0": 0.00397230099119089, "17": 0.002738690803058616, "33": 0.005318334871719145, "50": 0.0034198243829245737, "66": 0.0032958387079320664, "83": 0.003065333217519514, "99": 0.003473492331556729, "116": 0.004353251348234266, "132": 0.005098661565700116, "149": 0.007843601577392192}, "nmse_episode_sem": 0.00048019390489545535}
|
| 14 |
+
{"step": 3500, "utc": "2026-11-30T10:21:57Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.7, "infer_s_per_query": 0.0046, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00034282531994542166, "mae_raw": 0.008130273814300093, "nmse": 0.004123346290652162, "groups": {"body_target": {"mse_raw": 0.00035384380550405723, "nmse": 0.006118376883429144}, "hands": {"mse_raw": 0.0003383177576714344, "nmse": 0.003307197411788852}}, "nmse_by_step": [0.0024653433248120705, 0.0026895285987470767, 0.0028525874661595703, 0.0033361641799170413, 0.00376617875384152, 0.004595681861974873, 0.004735280226163487, 0.004085687734260343, 0.003713522600700629, 0.003910536026688611, 0.004084948789333439, 0.004373446928736886, 0.004546665107013973, 0.004940577236545978, 0.005532609800516514, 0.0064799046607925525], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 3.5244025942716755e-05, "rms_raw": 0.005936667915819173, "mae_raw": 0.003282278898086236}, "nmse_per_episode": {"0": 0.0037466915796178653, "17": 0.0025582624086683387, "33": 0.004971777168861709, "50": 0.0032504719984332384, "66": 0.003120998887694917, "83": 0.002857127402622955, "99": 0.003330282051633093, "116": 0.004188177127664548, "132": 0.004940636326336996, "149": 0.007433105307694197}, "nmse_episode_sem": 0.00045785556603706955}
|
| 15 |
+
{"step": 3750, "utc": "2026-11-30T10:25:00Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.4, "infer_s_per_query": 0.0063, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00032996412354602977, "mae_raw": 0.00792213936428366, "nmse": 0.003947897253391957, "groups": {"body_target": {"mse_raw": 0.00034119779108324807, "nmse": 0.00590774016428912}, "hands": {"mse_raw": 0.0003253685322808041, "nmse": 0.003146143335297663}}, "nmse_by_step": [0.0023236291815039796, 0.0025486618294940193, 0.0027406648068002324, 0.0031990944725317225, 0.0035997750432399194, 0.00436345995013197, 0.004500345655181946, 0.003911616068021365, 0.0035554438383985027, 0.0037429271159791686, 0.0038949903153613456, 0.00416288023463627, 0.004333233613513366, 0.004745810890659437, 0.005353958102600551, 0.0063224761996990755], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 3.330483893811531e-05, "rms_raw": 0.005771034477293937, "mae_raw": 0.0031883099192773186}, "nmse_per_episode": {"0": 0.003514643098240385, "17": 0.0024109393465741413, "33": 0.004715627764518121, "50": 0.0030642803774135106, "66": 0.0029835417159053087, "83": 0.0028464447832178843, "99": 0.0031701238675744623, "116": 0.003982657263344057, "132": 0.004781153609509004, "149": 0.00719311615030191}, "nmse_episode_sem": 0.0004450787721613445}
|
| 16 |
+
{"step": 4000, "utc": "2026-11-30T10:28:15Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.6, "infer_s_per_query": 0.0043, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0003174640577015131, "mae_raw": 0.007747488385996187, "nmse": 0.0037741288801971377, "groups": {"body_target": {"mse_raw": 0.0003302706747972407, "nmse": 0.005721143978207504}, "hands": {"mse_raw": 0.00031222498707144275, "nmse": 0.0029776227037383524}}, "nmse_by_step": [0.0022121698667566282, 0.002452052553625137, 0.002650641980588665, 0.003063257114416419, 0.003448656001619024, 0.004132939150658894, 0.004265941170413769, 0.0037464440681717775, 0.003417389831259372, 0.0035999733922264816, 0.003716605478457613, 0.003965417559115469, 0.004103010678907622, 0.0045151483278365176, 0.005117378597755561, 0.006105601302995785], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 3.1849754451750266e-05, "rms_raw": 0.005643558669115638, "mae_raw": 0.0031154680350376127}, "nmse_per_episode": {"0": 0.003304792852327254, "17": 0.0022904027382887595, "33": 0.004426039728410774, "50": 0.002980325635468923, "66": 0.0028524234263474484, "83": 0.002796110536831714, "99": 0.0030323733264649637, "116": 0.0038509146277236127, "132": 0.004679053106176419, "149": 0.006766162466782052}, "nmse_episode_sem": 0.000415691823251812}
|
| 17 |
+
{"step": 4250, "utc": "2026-11-30T10:31:27Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.6, "infer_s_per_query": 0.0072, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.000303907288743238, "mae_raw": 0.0075999161281004425, "nmse": 0.003622068915128214, "groups": {"body_target": {"mse_raw": 0.000321401601146887, "nmse": 0.0055748230725426885}, "hands": {"mse_raw": 0.0002967505245781089, "nmse": 0.002823214941640475}}, "nmse_by_step": [0.0020960862846190814, 0.0023404674063670907, 0.0025646021093700903, 0.0029555559738612836, 0.0033263352513751175, 0.003974993256728729, 0.004095588122401216, 0.003612988591363448, 0.0033107833654487857, 0.003460366814763405, 0.003560932205215338, 0.003795465755889927, 0.0039054077699090194, 0.004314630887346541, 0.004889029514896202, 0.005870383881187718], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 3.064764520600698e-05, "rms_raw": 0.005536031539470037, "mae_raw": 0.003057594525182119}, "nmse_per_episode": {"0": 0.0031475381235298544, "17": 0.0022128356982544363, "33": 0.004209073852323578, "50": 0.002917979960414469, "66": 0.0027592908503948446, "83": 0.002879356888267194, "99": 0.002949740797586872, "116": 0.003731932614282505, "132": 0.0044371072213005135, "149": 0.006288214303595046}, "nmse_episode_sem": 0.0003732272582026219}
|
| 18 |
+
{"step": 4500, "utc": "2026-11-30T10:34:44Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.3, "infer_s_per_query": 0.0036, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00029499702437682133, "mae_raw": 0.007475467454205459, "nmse": 0.0035106566458010693, "groups": {"body_target": {"mse_raw": 0.00031377690598338005, "nmse": 0.005449404676376923}, "hands": {"mse_raw": 0.0002873143455377746, "nmse": 0.002717532451474583}}, "nmse_by_step": [0.002056079247037825, 0.002323183297875136, 0.0025479889046042615, 0.0028857586810298896, 0.0032437383293610605, 0.0038232362028783485, 0.003920666967974498, 0.0034724384581827712, 0.0031969009349929233, 0.003338427167863428, 0.003443290366218613, 0.0036708934825548612, 0.003763351707927334, 0.004169837006807694, 0.0047286071511487655, 0.005700509841424781], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 2.978389690944569e-05, "rms_raw": 0.005457462497300892, "mae_raw": 0.00301794395438934}, "nmse_per_episode": {"0": 0.003034396256421795, "17": 0.0021389901198243955, "33": 0.004072558519522804, "50": 0.0028755796014308097, "66": 0.0026877387376933203, "83": 0.0027582806898896767, "99": 0.0028568883799553633, "116": 0.0036005992797999336, "132": 0.004274719920678849, "149": 0.006134277786154757}, "nmse_episode_sem": 0.00036405227985959054}
|
| 19 |
+
{"step": 4750, "utc": "2026-11-30T10:38:01Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0069, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0002880804840280459, "mae_raw": 0.0073916820704380245, "nmse": 0.003427501857786941, "groups": {"body_target": {"mse_raw": 0.00030845573297980534, "nmse": 0.005365712924846547}, "hands": {"mse_raw": 0.00027974515491141705, "nmse": 0.0026345973303534666}}, "nmse_by_step": [0.0020408287976407154, 0.0023326519596428156, 0.0025613459881989546, 0.00283800642995726, 0.003194201308845474, 0.003698106725254253, 0.003769306224285275, 0.003346004285417917, 0.003087200108819091, 0.00324173591467024, 0.0033434417637301993, 0.0035612330177379778, 0.0036586988669580567, 0.004071453597762881, 0.004621536782387617, 0.005583615873519271], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 2.9069861543280713e-05, "rms_raw": 0.005391647386771571, "mae_raw": 0.002981140320071307}, "nmse_per_episode": {"0": 0.0029736948502905374, "17": 0.0020683456719321684, "33": 0.004046852642123382, "50": 0.0028619861250850274, "66": 0.0026375987312601975, "83": 0.002484337153390679, "99": 0.002811884675049588, "116": 0.003569397188057626, "132": 0.004169791894121517, "149": 0.005987924404732856}, "nmse_episode_sem": 0.0003610486144953868}
|
| 20 |
+
{"step": 5000, "utc": "2026-11-30T10:40:57Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0064, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0002789562612786247, "mae_raw": 0.00729676406425063, "nmse": 0.003333952385206724, "groups": {"body_target": {"mse_raw": 0.0003021386899951731, "nmse": 0.005261770908020731}, "hands": {"mse_raw": 0.0002694725404400366, "nmse": 0.002545299353146448}}, "nmse_by_step": [0.002000638537815237, 0.00228994359821633, 0.0025276481870120816, 0.0027943488917394513, 0.003138513792274504, 0.003627612192039249, 0.003671181000955982, 0.0032333867109828594, 0.0029888796279031126, 0.003125277583643885, 0.003214525565129694, 0.0034346586444459004, 0.003525242999011333, 0.003943119706269014, 0.004488938904452209, 0.005443179073765947], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 2.850180192808893e-05, "rms_raw": 0.005338707889376317, "mae_raw": 0.002951885519379888}, "nmse_per_episode": {"0": 0.0029252758032571042, "17": 0.0020099852304200417, "33": 0.003908464156858365, "50": 0.0028215696416538875, "66": 0.0025984147026460523, "83": 0.0023445623650729915, "99": 0.002778130346992698, "116": 0.003499216683368971, "132": 0.004056719823673507, "149": 0.00576344514001513}, "nmse_episode_sem": 0.00034566086993512146}
|
| 21 |
+
{"step": 5250, "utc": "2026-11-30T10:44:17Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0068, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0002737706706157698, "mae_raw": 0.007224538605780468, "nmse": 0.0032696478508411936, "groups": {"body_target": {"mse_raw": 0.0002980480879990502, "nmse": 0.0051899552002743505}, "hands": {"mse_raw": 0.00026383899986806423, "nmse": 0.002484067571527628}}, "nmse_by_step": [0.0019814960436450573, 0.0022629695535008286, 0.002489827341708976, 0.002739515103128946, 0.0030797045166061194, 0.003554954584255022, 0.003593178219431054, 0.003171006341857857, 0.002936054562379091, 0.003058989496610681, 0.003148582572633027, 0.003368248488674075, 0.003441135170858219, 0.0038632030152672796, 0.004392727151808777, 0.005333614201913355], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 2.8087578146252976e-05, "rms_raw": 0.005299771518306518, "mae_raw": 0.00293317654998567}, "nmse_per_episode": {"0": 0.0028632443658194438, "17": 0.0019636361569493497, "33": 0.0037770889085290177, "50": 0.002786896913289871, "66": 0.00254490972490097, "83": 0.0022432822737594327, "99": 0.0027684432631056586, "116": 0.00342106219636576, "132": 0.003989342768974525, "149": 0.005705475580227401}, "nmse_episode_sem": 0.0003435972388088372}
|
| 22 |
+
{"step": 5500, "utc": "2026-11-30T10:47:06Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.4, "infer_s_per_query": 0.0066, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00026189494329103066, "mae_raw": 0.007149285141593932, "nmse": 0.0031875180416259838, "groups": {"body_target": {"mse_raw": 0.00029523933585591067, "nmse": 0.005141028365063742}, "hands": {"mse_raw": 0.00024825405542357973, "nmse": 0.002388354727492356}}, "nmse_by_step": [0.0019494143441309232, 0.002236155027220969, 0.002463491703551936, 0.0026933627749988593, 0.0030297363086204654, 0.0034744364027758426, 0.003501498975857445, 0.003087853549139001, 0.0028522776727134794, 0.0029666718654185907, 0.0030512665240432792, 0.0032602132744177516, 0.0033224424069877734, 0.0037498226558536447, 0.004261682320823817, 0.005195604257740588], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 2.7767926221256224e-05, "rms_raw": 0.0052695280833539755, "mae_raw": 0.0029185768536959286}, "nmse_per_episode": {"0": 0.002824934530872678, "17": 0.0019324913220781811, "33": 0.003701952838378804, "50": 0.00275440441789532, "66": 0.0025041512477974384, "83": 0.002162655303087, "99": 0.0027435639063702524, "116": 0.0033587923587548264, "132": 0.0039016563609511326, "149": 0.005407564737752061}, "nmse_episode_sem": 0.0003215788105311777}
|
| 23 |
+
{"step": 5750, "utc": "2026-11-30T10:50:25Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 1.4, "infer_s_per_query": 0.0037, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.0002538920639865934, "mae_raw": 0.007102571569819892, "nmse": 0.0031323114900574742, "groups": {"body_target": {"mse_raw": 0.00029321412327474336, "nmse": 0.005106898889522361}, "hands": {"mse_raw": 0.0002378057670050774, "nmse": 0.00232452573573093}}, "nmse_by_step": [0.0019242126003423757, 0.0022144946520114873, 0.002451656090582046, 0.0026752761413470867, 0.0030083251967716507, 0.00344059623676152, 0.0034399682895493765, 0.003014641779537583, 0.002790952250474365, 0.002889488438769337, 0.0029763765159290137, 0.003189611349479311, 0.0032386408719417663, 0.0036733203257611796, 0.004177242722108904, 0.0051039765101194255], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 2.7602550900320538e-05, "rms_raw": 0.005253812986804968, "mae_raw": 0.002912879548092334}, "nmse_per_episode": {"0": 0.002823970597677463, "17": 0.0019129871472026538, "33": 0.0036598937159879512, "50": 0.0027396615332342593, "66": 0.0024912397409410634, "83": 0.0021198647665698848, "99": 0.0027376828144714017, "116": 0.0032957748938331156, "132": 0.0037824276302350023, "149": 0.005213286002140555}, "nmse_episode_sem": 0.00030470523248890796}
|
| 24 |
+
{"step": 6000, "utc": "2026-11-30T10:53:22Z", "model": "ode_mlp", "task": "a15v3", "split": "train10", "queries": 362, "ranks": 1, "wall_s": 2.5, "infer_s_per_query": 0.0067, "seed": 1234, "weights": "ema", "policy": "ode_mlp", "cache_checked_episodes": [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], "inloop_code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse", "cache": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse/cache/a15v3/train10", "rows": 5723, "metric": "nmse-v2: dims constant over training excluded", "dims_scored": 31, "mse_raw": 0.00024916889266412255, "mae_raw": 0.007070792266212751, "nmse": 0.003097752366481208, "groups": {"body_target": {"mse_raw": 0.0002917976911773665, "nmse": 0.005083969253556711}, "hands": {"mse_raw": 0.00023172983872688635, "nmse": 0.002285209094495776}}, "nmse_by_step": [0.0019107317363174852, 0.002201833434275653, 0.0024415418603021557, 0.0026592491745632027, 0.0029905404592617075, 0.003410704952000322, 0.0033943541182315136, 0.002965407210909287, 0.0027506686283796516, 0.00284056352481394, 0.002930951957151926, 0.0031463772571127526, 0.0031920753737057638, 0.0036306286771362623, 0.0041304436436521135, 0.005057886785440694], "const_dims": {"n": 44, "idx": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], "mse_raw": 2.7489418179453187e-05, "rms_raw": 0.0052430352067722365, "mae_raw": 0.0029086574280012484}, "nmse_per_episode": {"0": 0.002819148421395862, "17": 0.0018967465686488688, "33": 0.0036360943614446727, "50": 0.002716143090178732, "66": 0.0024768343415198127, "83": 0.0020812361942730605, "99": 0.0027268561375624265, "116": 0.003256533330404607, "132": 0.003707146093326434, "149": 0.005128409825593669}, "nmse_episode_sem": 0.00029821097382132407}
|
a15-hitting-nail/b512-s6000/step-006000/training_records/pip_freeze_hb-baselines.txt
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
anyio==4.14.1
|
| 2 |
+
av==15.1.0
|
| 3 |
+
certifi==2026.6.17
|
| 4 |
+
charset-normalizer==3.4.7
|
| 5 |
+
click==8.4.2
|
| 6 |
+
diffusers==0.35.1
|
| 7 |
+
filelock==3.29.4
|
| 8 |
+
fsspec==2026.6.0
|
| 9 |
+
h11==0.16.0
|
| 10 |
+
hf-xet==1.8.0
|
| 11 |
+
httpcore==1.0.9
|
| 12 |
+
httpx==0.28.1
|
| 13 |
+
huggingface_hub==1.33.0
|
| 14 |
+
idna==3.18
|
| 15 |
+
importlib_metadata==9.0.0
|
| 16 |
+
iniconfig==2.3.0
|
| 17 |
+
Jinja2==3.1.6
|
| 18 |
+
MarkupSafe==3.0.3
|
| 19 |
+
mpmath==1.3.0
|
| 20 |
+
networkx==3.7
|
| 21 |
+
numpy==2.2.6
|
| 22 |
+
nvidia-cublas-cu12==12.8.4.1
|
| 23 |
+
nvidia-cuda-cupti-cu12==12.8.90
|
| 24 |
+
nvidia-cuda-nvrtc-cu12==12.8.93
|
| 25 |
+
nvidia-cuda-runtime-cu12==12.8.90
|
| 26 |
+
nvidia-cudnn-cu12==9.10.2.21
|
| 27 |
+
nvidia-cufft-cu12==11.3.3.83
|
| 28 |
+
nvidia-cufile-cu12==1.13.1.3
|
| 29 |
+
nvidia-curand-cu12==10.3.9.90
|
| 30 |
+
nvidia-cusolver-cu12==11.7.3.90
|
| 31 |
+
nvidia-cusparse-cu12==12.5.8.93
|
| 32 |
+
nvidia-cusparselt-cu12==0.7.1
|
| 33 |
+
nvidia-nccl-cu12==2.27.5
|
| 34 |
+
nvidia-nvjitlink-cu12==12.8.93
|
| 35 |
+
nvidia-nvshmem-cu12==3.3.20
|
| 36 |
+
nvidia-nvtx-cu12==12.8.90
|
| 37 |
+
opencv-python-headless==4.11.0.86
|
| 38 |
+
packaging==26.2
|
| 39 |
+
pillow==12.3.0
|
| 40 |
+
pluggy==1.6.0
|
| 41 |
+
pyarrow==23.0.1
|
| 42 |
+
Pygments==2.20.0
|
| 43 |
+
pytest==8.4.2
|
| 44 |
+
PyYAML==6.0.3
|
| 45 |
+
regex==2026.5.9
|
| 46 |
+
requests==2.34.2
|
| 47 |
+
safetensors==0.8.0
|
| 48 |
+
setuptools==82.0.1
|
| 49 |
+
sympy==1.14.0
|
| 50 |
+
torch==2.9.0+cu128
|
| 51 |
+
torchvision==0.24.0+cu128
|
| 52 |
+
tqdm==4.67.1
|
| 53 |
+
triton==3.5.0
|
| 54 |
+
typing_extensions==4.16.0
|
| 55 |
+
urllib3==2.5.0
|
| 56 |
+
zipp==3.23.0
|
a15-hitting-nail/b512-s6000/step-006000/training_records/run.json
ADDED
|
@@ -0,0 +1,1518 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"argv": [
|
| 3 |
+
"evaluation/baselines/train.py",
|
| 4 |
+
"--policy",
|
| 5 |
+
"ode_mlp",
|
| 6 |
+
"--contract",
|
| 7 |
+
"h2_sharpa",
|
| 8 |
+
"--steps",
|
| 9 |
+
"6000",
|
| 10 |
+
"--seed",
|
| 11 |
+
"42",
|
| 12 |
+
"--lr",
|
| 13 |
+
"1e-4",
|
| 14 |
+
"--warmup",
|
| 15 |
+
"500",
|
| 16 |
+
"--batch-size",
|
| 17 |
+
"512",
|
| 18 |
+
"--workers",
|
| 19 |
+
"32",
|
| 20 |
+
"--log-every",
|
| 21 |
+
"50",
|
| 22 |
+
"--protocol-exception",
|
| 23 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 24 |
+
"--protocol-exception",
|
| 25 |
+
"owner 2026-11-30 (\u300cteam01 \u8fd9\u4e24\u5f20\u5361\u5148\u88c5\u597d\u73af\u5883\uff0c\u7136\u540e\u5206\u62c5\u6211\u4eec\u8fd9\u8fb9\u5176\u4ed6\u7684\u4efb\u52a1\uff0c\u8bad\u7ec3\u3001\u8bc4\u4f30\u90fd\u53ef\u4ee5\u300d): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)",
|
| 26 |
+
"--dataset",
|
| 27 |
+
"/mnt/vepfs/baijiaqi/hb_team01_20261130/a15-hitting-nail-v3-139187e/data",
|
| 28 |
+
"--dataset-id",
|
| 29 |
+
"humanoid-benchmark/a15-hitting-nail@139187e6d5e4547aae01629bca39fc4b2045153d",
|
| 30 |
+
"--cache-dir",
|
| 31 |
+
"/dev/shm/hb_team01_cache",
|
| 32 |
+
"--inloop-task",
|
| 33 |
+
"a15v3",
|
| 34 |
+
"--inloop-code",
|
| 35 |
+
"/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse",
|
| 36 |
+
"--out",
|
| 37 |
+
"/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000"
|
| 38 |
+
],
|
| 39 |
+
"started": "2026-11-30T09:37:52",
|
| 40 |
+
"host": "di-20261105175253-4b79v",
|
| 41 |
+
"torch": "2.9.0+cu128",
|
| 42 |
+
"policy": {
|
| 43 |
+
"policy": "ode_mlp",
|
| 44 |
+
"n_cameras": 2,
|
| 45 |
+
"state_dim": 78,
|
| 46 |
+
"action_dim": 75,
|
| 47 |
+
"horizon": 16,
|
| 48 |
+
"backbone": "resnet18",
|
| 49 |
+
"backbone_weights": null,
|
| 50 |
+
"backbone_norm": "group",
|
| 51 |
+
"hidden_dim": 384,
|
| 52 |
+
"num_layers": 4,
|
| 53 |
+
"num_heads": 8,
|
| 54 |
+
"mlp_ratio": 4.0,
|
| 55 |
+
"dropout": 0.1,
|
| 56 |
+
"time_embed_dim": 128,
|
| 57 |
+
"num_inference_steps": null,
|
| 58 |
+
"num_train_timesteps": 100,
|
| 59 |
+
"beta_schedule": "squaredcos_cap_v2",
|
| 60 |
+
"prediction_type": "epsilon",
|
| 61 |
+
"clip_sample": true,
|
| 62 |
+
"act_hidden_dim": 512,
|
| 63 |
+
"dim_feedforward": 3200,
|
| 64 |
+
"enc_layers": 4,
|
| 65 |
+
"dec_layers": 7,
|
| 66 |
+
"nheads": 8,
|
| 67 |
+
"latent_dim": 32,
|
| 68 |
+
"kl_weight": 10.0,
|
| 69 |
+
"ode_body_dim": 31,
|
| 70 |
+
"ode_width": 512,
|
| 71 |
+
"ode_layers": 4,
|
| 72 |
+
"ode_cond_dim": 512,
|
| 73 |
+
"ode_field_scale": 1.0,
|
| 74 |
+
"ode_dit_hidden": 512,
|
| 75 |
+
"ode_dit_layers": 4,
|
| 76 |
+
"ode_dit_heads": 8,
|
| 77 |
+
"ode_dit_tokens": 4,
|
| 78 |
+
"extra": {}
|
| 79 |
+
},
|
| 80 |
+
"contract": {
|
| 81 |
+
"name": "h2_sharpa",
|
| 82 |
+
"robot": "h2_sharpa",
|
| 83 |
+
"cameras": [
|
| 84 |
+
"head",
|
| 85 |
+
"chest"
|
| 86 |
+
],
|
| 87 |
+
"state": [
|
| 88 |
+
[
|
| 89 |
+
"observation.state",
|
| 90 |
+
0,
|
| 91 |
+
75
|
| 92 |
+
],
|
| 93 |
+
[
|
| 94 |
+
"observation.projected_gravity",
|
| 95 |
+
0,
|
| 96 |
+
3
|
| 97 |
+
]
|
| 98 |
+
],
|
| 99 |
+
"action": [
|
| 100 |
+
[
|
| 101 |
+
"action.body_target",
|
| 102 |
+
0,
|
| 103 |
+
31
|
| 104 |
+
],
|
| 105 |
+
[
|
| 106 |
+
"action.hands",
|
| 107 |
+
0,
|
| 108 |
+
44
|
| 109 |
+
]
|
| 110 |
+
],
|
| 111 |
+
"state_dim": 78,
|
| 112 |
+
"action_dim": 75,
|
| 113 |
+
"action_space": null,
|
| 114 |
+
"body_dims": 31
|
| 115 |
+
},
|
| 116 |
+
"image_hw": [
|
| 117 |
+
168,
|
| 118 |
+
224
|
| 119 |
+
],
|
| 120 |
+
"task_text": "Facing the workbench, pick up the hammer lying on its stand with the right hand, roll it in the palm until the face points down, then hammer the nail into the wooden block and hold the hammer up.",
|
| 121 |
+
"dataset": {
|
| 122 |
+
"name": "data",
|
| 123 |
+
"root": "/mnt/vepfs/baijiaqi/hb_team01_20261130/a15-hitting-nail-v3-139187e/data",
|
| 124 |
+
"robot_type": "h2_sharpa",
|
| 125 |
+
"fps": 30.0,
|
| 126 |
+
"episodes": [
|
| 127 |
+
0,
|
| 128 |
+
1,
|
| 129 |
+
2,
|
| 130 |
+
3,
|
| 131 |
+
4,
|
| 132 |
+
5,
|
| 133 |
+
6,
|
| 134 |
+
7,
|
| 135 |
+
8,
|
| 136 |
+
9,
|
| 137 |
+
10,
|
| 138 |
+
11,
|
| 139 |
+
12,
|
| 140 |
+
13,
|
| 141 |
+
14,
|
| 142 |
+
15,
|
| 143 |
+
16,
|
| 144 |
+
17,
|
| 145 |
+
18,
|
| 146 |
+
19,
|
| 147 |
+
20,
|
| 148 |
+
21,
|
| 149 |
+
22,
|
| 150 |
+
23,
|
| 151 |
+
24,
|
| 152 |
+
25,
|
| 153 |
+
26,
|
| 154 |
+
27,
|
| 155 |
+
28,
|
| 156 |
+
29,
|
| 157 |
+
30,
|
| 158 |
+
31,
|
| 159 |
+
32,
|
| 160 |
+
33,
|
| 161 |
+
34,
|
| 162 |
+
35,
|
| 163 |
+
36,
|
| 164 |
+
37,
|
| 165 |
+
38,
|
| 166 |
+
39,
|
| 167 |
+
40,
|
| 168 |
+
41,
|
| 169 |
+
42,
|
| 170 |
+
43,
|
| 171 |
+
44,
|
| 172 |
+
45,
|
| 173 |
+
46,
|
| 174 |
+
47,
|
| 175 |
+
48,
|
| 176 |
+
49,
|
| 177 |
+
50,
|
| 178 |
+
51,
|
| 179 |
+
52,
|
| 180 |
+
53,
|
| 181 |
+
54,
|
| 182 |
+
55,
|
| 183 |
+
56,
|
| 184 |
+
57,
|
| 185 |
+
58,
|
| 186 |
+
59,
|
| 187 |
+
60,
|
| 188 |
+
61,
|
| 189 |
+
62,
|
| 190 |
+
63,
|
| 191 |
+
64,
|
| 192 |
+
65,
|
| 193 |
+
66,
|
| 194 |
+
67,
|
| 195 |
+
68,
|
| 196 |
+
69,
|
| 197 |
+
70,
|
| 198 |
+
71,
|
| 199 |
+
72,
|
| 200 |
+
73,
|
| 201 |
+
74,
|
| 202 |
+
75,
|
| 203 |
+
76,
|
| 204 |
+
77,
|
| 205 |
+
78,
|
| 206 |
+
79,
|
| 207 |
+
80,
|
| 208 |
+
81,
|
| 209 |
+
82,
|
| 210 |
+
83,
|
| 211 |
+
84,
|
| 212 |
+
85,
|
| 213 |
+
86,
|
| 214 |
+
87,
|
| 215 |
+
88,
|
| 216 |
+
89,
|
| 217 |
+
90,
|
| 218 |
+
91,
|
| 219 |
+
92,
|
| 220 |
+
93,
|
| 221 |
+
94,
|
| 222 |
+
95,
|
| 223 |
+
96,
|
| 224 |
+
97,
|
| 225 |
+
98,
|
| 226 |
+
99,
|
| 227 |
+
100,
|
| 228 |
+
101,
|
| 229 |
+
102,
|
| 230 |
+
103,
|
| 231 |
+
104,
|
| 232 |
+
105,
|
| 233 |
+
106,
|
| 234 |
+
107,
|
| 235 |
+
108,
|
| 236 |
+
109,
|
| 237 |
+
110,
|
| 238 |
+
111,
|
| 239 |
+
112,
|
| 240 |
+
113,
|
| 241 |
+
114,
|
| 242 |
+
115,
|
| 243 |
+
116,
|
| 244 |
+
117,
|
| 245 |
+
118,
|
| 246 |
+
119,
|
| 247 |
+
120,
|
| 248 |
+
121,
|
| 249 |
+
122,
|
| 250 |
+
123,
|
| 251 |
+
124,
|
| 252 |
+
125,
|
| 253 |
+
126,
|
| 254 |
+
127,
|
| 255 |
+
128,
|
| 256 |
+
129,
|
| 257 |
+
130,
|
| 258 |
+
131,
|
| 259 |
+
132,
|
| 260 |
+
133,
|
| 261 |
+
134,
|
| 262 |
+
135,
|
| 263 |
+
136,
|
| 264 |
+
137,
|
| 265 |
+
138,
|
| 266 |
+
139,
|
| 267 |
+
140,
|
| 268 |
+
141,
|
| 269 |
+
142,
|
| 270 |
+
143,
|
| 271 |
+
144,
|
| 272 |
+
145,
|
| 273 |
+
146,
|
| 274 |
+
147,
|
| 275 |
+
148,
|
| 276 |
+
149
|
| 277 |
+
],
|
| 278 |
+
"train_episodes": [
|
| 279 |
+
0,
|
| 280 |
+
1,
|
| 281 |
+
2,
|
| 282 |
+
3,
|
| 283 |
+
4,
|
| 284 |
+
5,
|
| 285 |
+
6,
|
| 286 |
+
7,
|
| 287 |
+
8,
|
| 288 |
+
9,
|
| 289 |
+
10,
|
| 290 |
+
11,
|
| 291 |
+
12,
|
| 292 |
+
13,
|
| 293 |
+
14,
|
| 294 |
+
15,
|
| 295 |
+
16,
|
| 296 |
+
17,
|
| 297 |
+
18,
|
| 298 |
+
19,
|
| 299 |
+
20,
|
| 300 |
+
21,
|
| 301 |
+
22,
|
| 302 |
+
23,
|
| 303 |
+
24,
|
| 304 |
+
25,
|
| 305 |
+
26,
|
| 306 |
+
27,
|
| 307 |
+
28,
|
| 308 |
+
29,
|
| 309 |
+
30,
|
| 310 |
+
31,
|
| 311 |
+
32,
|
| 312 |
+
33,
|
| 313 |
+
34,
|
| 314 |
+
35,
|
| 315 |
+
36,
|
| 316 |
+
37,
|
| 317 |
+
38,
|
| 318 |
+
39,
|
| 319 |
+
40,
|
| 320 |
+
41,
|
| 321 |
+
42,
|
| 322 |
+
43,
|
| 323 |
+
44,
|
| 324 |
+
45,
|
| 325 |
+
46,
|
| 326 |
+
47,
|
| 327 |
+
48,
|
| 328 |
+
49,
|
| 329 |
+
50,
|
| 330 |
+
51,
|
| 331 |
+
52,
|
| 332 |
+
53,
|
| 333 |
+
54,
|
| 334 |
+
55,
|
| 335 |
+
56,
|
| 336 |
+
57,
|
| 337 |
+
58,
|
| 338 |
+
59,
|
| 339 |
+
60,
|
| 340 |
+
61,
|
| 341 |
+
62,
|
| 342 |
+
63,
|
| 343 |
+
64,
|
| 344 |
+
65,
|
| 345 |
+
66,
|
| 346 |
+
67,
|
| 347 |
+
68,
|
| 348 |
+
69,
|
| 349 |
+
70,
|
| 350 |
+
71,
|
| 351 |
+
72,
|
| 352 |
+
73,
|
| 353 |
+
74,
|
| 354 |
+
75,
|
| 355 |
+
76,
|
| 356 |
+
77,
|
| 357 |
+
78,
|
| 358 |
+
79,
|
| 359 |
+
80,
|
| 360 |
+
81,
|
| 361 |
+
82,
|
| 362 |
+
83,
|
| 363 |
+
84,
|
| 364 |
+
85,
|
| 365 |
+
86,
|
| 366 |
+
87,
|
| 367 |
+
88,
|
| 368 |
+
89,
|
| 369 |
+
90,
|
| 370 |
+
91,
|
| 371 |
+
92,
|
| 372 |
+
93,
|
| 373 |
+
94,
|
| 374 |
+
95,
|
| 375 |
+
96,
|
| 376 |
+
97,
|
| 377 |
+
98,
|
| 378 |
+
99,
|
| 379 |
+
100,
|
| 380 |
+
101,
|
| 381 |
+
102,
|
| 382 |
+
103,
|
| 383 |
+
104,
|
| 384 |
+
105,
|
| 385 |
+
106,
|
| 386 |
+
107,
|
| 387 |
+
108,
|
| 388 |
+
109,
|
| 389 |
+
110,
|
| 390 |
+
111,
|
| 391 |
+
112,
|
| 392 |
+
113,
|
| 393 |
+
114,
|
| 394 |
+
115,
|
| 395 |
+
116,
|
| 396 |
+
117,
|
| 397 |
+
118,
|
| 398 |
+
119,
|
| 399 |
+
120,
|
| 400 |
+
121,
|
| 401 |
+
122,
|
| 402 |
+
123,
|
| 403 |
+
124,
|
| 404 |
+
125,
|
| 405 |
+
126,
|
| 406 |
+
127,
|
| 407 |
+
128,
|
| 408 |
+
129,
|
| 409 |
+
130,
|
| 410 |
+
131,
|
| 411 |
+
132,
|
| 412 |
+
133,
|
| 413 |
+
134,
|
| 414 |
+
135,
|
| 415 |
+
136,
|
| 416 |
+
137,
|
| 417 |
+
138,
|
| 418 |
+
139,
|
| 419 |
+
140,
|
| 420 |
+
141,
|
| 421 |
+
142,
|
| 422 |
+
143,
|
| 423 |
+
144,
|
| 424 |
+
145,
|
| 425 |
+
146,
|
| 426 |
+
147,
|
| 427 |
+
148,
|
| 428 |
+
149
|
| 429 |
+
],
|
| 430 |
+
"val_episodes": [],
|
| 431 |
+
"train_frames": 86267,
|
| 432 |
+
"git_commit": "6ce120cceb6bbe5dda177208dc99f48a8820699a"
|
| 433 |
+
},
|
| 434 |
+
"training": {
|
| 435 |
+
"steps": 6000,
|
| 436 |
+
"batch_size": 512,
|
| 437 |
+
"lr": 0.0001,
|
| 438 |
+
"betas": [
|
| 439 |
+
0.95,
|
| 440 |
+
0.999
|
| 441 |
+
],
|
| 442 |
+
"weight_decay": 1e-06,
|
| 443 |
+
"warmup": 500,
|
| 444 |
+
"schedule": "diffusers_cosine",
|
| 445 |
+
"backbone_lr_scale": 1.0,
|
| 446 |
+
"ema": 0.9999,
|
| 447 |
+
"shift_px": 0,
|
| 448 |
+
"amp": true,
|
| 449 |
+
"seed": 42,
|
| 450 |
+
"augmentation": {
|
| 451 |
+
"spec": "docs/augmentation_v2.md",
|
| 452 |
+
"version": "hb-aug-v2-20261109",
|
| 453 |
+
"implementation": "evaluation/augmentation/hb_aug_v2.py",
|
| 454 |
+
"visual": {
|
| 455 |
+
"effects": [
|
| 456 |
+
"exposure",
|
| 457 |
+
"contrast",
|
| 458 |
+
"saturation",
|
| 459 |
+
"hue",
|
| 460 |
+
"gamma",
|
| 461 |
+
"temperature",
|
| 462 |
+
"rotation_crop",
|
| 463 |
+
"noise",
|
| 464 |
+
"gaussian_blur",
|
| 465 |
+
"jpeg",
|
| 466 |
+
"motion_blur",
|
| 467 |
+
"sharpen",
|
| 468 |
+
"defocus",
|
| 469 |
+
"light_shadow",
|
| 470 |
+
"wb_channel"
|
| 471 |
+
],
|
| 472 |
+
"boosted_per_sample": 1,
|
| 473 |
+
"boost": 1.5,
|
| 474 |
+
"pixel_scale": "H / 224",
|
| 475 |
+
"future_targets": "none (one observation frame)"
|
| 476 |
+
},
|
| 477 |
+
"proprio": {
|
| 478 |
+
"robot": "h2_sharpa",
|
| 479 |
+
"body_dims": 31,
|
| 480 |
+
"bias_deg": 2.0,
|
| 481 |
+
"bias_scope": "per_sample",
|
| 482 |
+
"noise_deg": 0.25,
|
| 483 |
+
"noise_clip_sigma": 3,
|
| 484 |
+
"delay_probability": 0.0,
|
| 485 |
+
"history_drop_probability": 0.0,
|
| 486 |
+
"velocity": false
|
| 487 |
+
},
|
| 488 |
+
"native_image_augmentation": "off",
|
| 489 |
+
"evaluation": "off"
|
| 490 |
+
},
|
| 491 |
+
"preflight": {
|
| 492 |
+
"samples": 64,
|
| 493 |
+
"state_dim": 78,
|
| 494 |
+
"body_dims": 31,
|
| 495 |
+
"images_changed": 64,
|
| 496 |
+
"body_values_moved": 1.0,
|
| 497 |
+
"max_body_offset_deg": 2.6647,
|
| 498 |
+
"actions_bit_identical": true,
|
| 499 |
+
"non_body_state_bit_identical": true,
|
| 500 |
+
"eval_items_deterministic": 8
|
| 501 |
+
},
|
| 502 |
+
"aug_seed": 42,
|
| 503 |
+
"layout": {
|
| 504 |
+
"nodes": 1,
|
| 505 |
+
"gpus": 1,
|
| 506 |
+
"per_gpu_batch": 512,
|
| 507 |
+
"global_batch": 512,
|
| 508 |
+
"gradient_accumulation": 1,
|
| 509 |
+
"num_workers": 32,
|
| 510 |
+
"prefetch": 2
|
| 511 |
+
},
|
| 512 |
+
"continuation": null,
|
| 513 |
+
"total_steps": 6000,
|
| 514 |
+
"save_steps": [
|
| 515 |
+
1000,
|
| 516 |
+
2000,
|
| 517 |
+
3000,
|
| 518 |
+
4000,
|
| 519 |
+
5000,
|
| 520 |
+
6000
|
| 521 |
+
],
|
| 522 |
+
"save_rule": "6 checkpoints spread evenly over the steps on the 250-step grid (owner 2026-11-27)",
|
| 523 |
+
"protocol_exceptions": [
|
| 524 |
+
"owner 2026-11-29: tail on 3-factor trimmed data; step rule (HumanWAM main dfa3a26); small models before big models; ODE base 5000",
|
| 525 |
+
"owner 2026-11-30 (\u300cteam01 \u8fd9\u4e24\u5f20\u5361\u5148\u88c5\u597d\u73af\u5883\uff0c\u7136\u540e\u5206\u62c5\u6211\u4eec\u8fd9\u8fb9\u5176\u4ed6\u7684\u4efb\u52a1\uff0c\u8bad\u7ec3\u3001\u8bc4\u4f30\u90fd\u53ef\u4ee5\u300d): trained on Volcengine team01, one RTX 4090D 24 GB (driver 550), batch 512 unchanged, no gradient accumulation; environment /root/.venvs/hb-baselines (Python 3.12.1, torch 2.9.0+cu128, Pillow 12.3.0; the A800 runs: Python 3.12.12, Pillow 13.0.0)"
|
| 526 |
+
],
|
| 527 |
+
"ema_schedule": "diffusion_policy_emamodel",
|
| 528 |
+
"inloop": {
|
| 529 |
+
"task": "a15v3",
|
| 530 |
+
"code": "/mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse",
|
| 531 |
+
"every": 250,
|
| 532 |
+
"exception": null,
|
| 533 |
+
"code_sha256": {
|
| 534 |
+
"hb_inloop_core.py": "154fa6d905e32d61c0def546caf6979c3a148b7bef0c1284e773b9051dddce97",
|
| 535 |
+
"hb_eval_common.py": "d89b1bfc1ac03d489b6ba2ac7c61eab3f318023ec37677dd5ee02b93d851d6ac"
|
| 536 |
+
}
|
| 537 |
+
},
|
| 538 |
+
"protocol_recipe": {
|
| 539 |
+
"batch_size": 512,
|
| 540 |
+
"steps": 5000,
|
| 541 |
+
"warmup": 500,
|
| 542 |
+
"workers": 32,
|
| 543 |
+
"long_task_factor": 1
|
| 544 |
+
},
|
| 545 |
+
"protocol_deviations": [
|
| 546 |
+
"steps 6000 (protocol 5000)"
|
| 547 |
+
],
|
| 548 |
+
"environment": {
|
| 549 |
+
"python": "3.12.1",
|
| 550 |
+
"torch": "2.9.0+cu128",
|
| 551 |
+
"numpy": "2.2.6",
|
| 552 |
+
"cuda": "12.8",
|
| 553 |
+
"cudnn": 91002,
|
| 554 |
+
"torchvision": "0.24.0+cu128",
|
| 555 |
+
"pillow": "12.3.0",
|
| 556 |
+
"gpu": "NVIDIA GeForce RTX 4090 D",
|
| 557 |
+
"driver": "550.127.05"
|
| 558 |
+
},
|
| 559 |
+
"code_dirty": null,
|
| 560 |
+
"allow_dirty_tree": false,
|
| 561 |
+
"augmentation_sha256": "9f7713cea4f846efcfc924234267ced48210357f419d67915c10b504316bedde",
|
| 562 |
+
"order": "EpochSampler: default_rng([seed, 1, epoch]) permutation; augmentation default_rng([aug_seed, draw])",
|
| 563 |
+
"upstream": "NTUMARS/ODE-POLICY real-g1@fd8bec47 (G1 port, HumanWAM packages/ode_g1) + main@cea26d94 (encoder, ode_dit field, default_train.yaml)"
|
| 564 |
+
},
|
| 565 |
+
"stats": {
|
| 566 |
+
"state": {
|
| 567 |
+
"min": [
|
| 568 |
+
-0.09997769445180893,
|
| 569 |
+
-0.00021537415159400553,
|
| 570 |
+
-0.0018031895160675049,
|
| 571 |
+
0.23896919190883636,
|
| 572 |
+
-0.0032215823885053396,
|
| 573 |
+
-0.16552682220935822,
|
| 574 |
+
-0.10010066628456116,
|
| 575 |
+
-0.005005246959626675,
|
| 576 |
+
-0.0010331370867788792,
|
| 577 |
+
0.2388608306646347,
|
| 578 |
+
-0.0007713548839092255,
|
| 579 |
+
-0.16637399792671204,
|
| 580 |
+
-0.0036116293631494045,
|
| 581 |
+
-0.0005855314084328711,
|
| 582 |
+
-0.012959281913936138,
|
| 583 |
+
0.2377660870552063,
|
| 584 |
+
0.10000789910554886,
|
| 585 |
+
0.0028428281657397747,
|
| 586 |
+
0.993225634098053,
|
| 587 |
+
-0.002429646672680974,
|
| 588 |
+
-0.005298535339534283,
|
| 589 |
+
0.005146781913936138,
|
| 590 |
+
-0.7949823141098022,
|
| 591 |
+
-1.1849690675735474,
|
| 592 |
+
-0.764089822769165,
|
| 593 |
+
-0.20890109241008759,
|
| 594 |
+
0.0010743907187134027,
|
| 595 |
+
-0.4016851782798767,
|
| 596 |
+
-1.223796010017395,
|
| 597 |
+
0.003484983928501606,
|
| 598 |
+
-0.5965985059738159,
|
| 599 |
+
8.041491128096823e-06,
|
| 600 |
+
7.787263712089043e-06,
|
| 601 |
+
-2.0799054709641496e-06,
|
| 602 |
+
7.4421236604393926e-06,
|
| 603 |
+
0.001140148495323956,
|
| 604 |
+
-0.0007875783485360444,
|
| 605 |
+
-0.0007883345242589712,
|
| 606 |
+
7.089955033734441e-06,
|
| 607 |
+
-0.0007868656539358199,
|
| 608 |
+
-0.08961887657642365,
|
| 609 |
+
1.387537508890091e-06,
|
| 610 |
+
1.3565856988861924e-06,
|
| 611 |
+
-0.0007850074907764792,
|
| 612 |
+
1.3112578471918823e-06,
|
| 613 |
+
0.0007804867927916348,
|
| 614 |
+
2.1667759142474097e-07,
|
| 615 |
+
2.1437449504446704e-07,
|
| 616 |
+
1.2650284588744398e-06,
|
| 617 |
+
2.100367879620535e-07,
|
| 618 |
+
0.0004996865172870457,
|
| 619 |
+
2.0562282543323818e-07,
|
| 620 |
+
1.8338482732360717e-07,
|
| 621 |
+
3.5120523534715176e-05,
|
| 622 |
+
2.6369834813522175e-05,
|
| 623 |
+
-0.0008715128060430288,
|
| 624 |
+
1.6693044017301872e-05,
|
| 625 |
+
-0.0002734147710725665,
|
| 626 |
+
-0.06660658866167068,
|
| 627 |
+
-0.1113005056977272,
|
| 628 |
+
1.06078668977716e-05,
|
| 629 |
+
-0.09395170956850052,
|
| 630 |
+
-0.19489309191703796,
|
| 631 |
+
2.1877663129998837e-06,
|
| 632 |
+
2.11020801543782e-06,
|
| 633 |
+
-0.03943561017513275,
|
| 634 |
+
1.9952312868554145e-06,
|
| 635 |
+
0.001209239475429058,
|
| 636 |
+
3.277772577803262e-07,
|
| 637 |
+
3.2084344070426596e-07,
|
| 638 |
+
1.877936597338703e-06,
|
| 639 |
+
3.0860724109516013e-07,
|
| 640 |
+
0.0008695685537531972,
|
| 641 |
+
2.961393192890682e-07,
|
| 642 |
+
4.9229495147073976e-08,
|
| 643 |
+
0.0008595046238042414,
|
| 644 |
+
-0.0009253888856619596,
|
| 645 |
+
-0.9999996423721313
|
| 646 |
+
],
|
| 647 |
+
"max": [
|
| 648 |
+
-0.09415019303560257,
|
| 649 |
+
0.004828622564673424,
|
| 650 |
+
0.0008512705680914223,
|
| 651 |
+
0.2468973845243454,
|
| 652 |
+
0.0011205088812857866,
|
| 653 |
+
-0.14899034798145294,
|
| 654 |
+
-0.09456837922334671,
|
| 655 |
+
-0.00035856530303135514,
|
| 656 |
+
0.001164556248113513,
|
| 657 |
+
0.24686793982982635,
|
| 658 |
+
0.002884133020415902,
|
| 659 |
+
-0.14915470778942108,
|
| 660 |
+
0.003393669379875064,
|
| 661 |
+
0.011874571442604065,
|
| 662 |
+
0.004470391198992729,
|
| 663 |
+
0.25079748034477234,
|
| 664 |
+
0.11245691776275635,
|
| 665 |
+
0.005373213440179825,
|
| 666 |
+
0.9999775290489197,
|
| 667 |
+
-0.0004550613812170923,
|
| 668 |
+
-0.0006144921062514186,
|
| 669 |
+
0.017257247120141983,
|
| 670 |
+
0.6067484021186829,
|
| 671 |
+
-0.03932846337556839,
|
| 672 |
+
0.8707330822944641,
|
| 673 |
+
1.1787530183792114,
|
| 674 |
+
2.6213066577911377,
|
| 675 |
+
0.4448302388191223,
|
| 676 |
+
0.17772707343101501,
|
| 677 |
+
0.6958374381065369,
|
| 678 |
+
1.7674472474027425e-05,
|
| 679 |
+
0.0021774214692413807,
|
| 680 |
+
0.002177412388846278,
|
| 681 |
+
0.000286454422166571,
|
| 682 |
+
0.0021773858461529016,
|
| 683 |
+
0.048038650304079056,
|
| 684 |
+
-1.918966336234007e-05,
|
| 685 |
+
-2.0099716493859887e-05,
|
| 686 |
+
0.0021775541827082634,
|
| 687 |
+
-1.8466966139385477e-05,
|
| 688 |
+
-0.004215856548398733,
|
| 689 |
+
0.0004085846012458205,
|
| 690 |
+
0.00040858410648070276,
|
| 691 |
+
-1.7040652892319486e-05,
|
| 692 |
+
0.00040858116699382663,
|
| 693 |
+
0.004995528608560562,
|
| 694 |
+
7.248025212902576e-05,
|
| 695 |
+
7.248033944051713e-05,
|
| 696 |
+
0.000408606487326324,
|
| 697 |
+
7.248002657433972e-05,
|
| 698 |
+
0.005003098398447037,
|
| 699 |
+
7.248362089740112e-05,
|
| 700 |
+
0.0001694808161118999,
|
| 701 |
+
1.4606938362121582,
|
| 702 |
+
1.3873600959777832,
|
| 703 |
+
0.24172371625900269,
|
| 704 |
+
1.5354737043380737,
|
| 705 |
+
1.282624363899231,
|
| 706 |
+
0.21544072031974792,
|
| 707 |
+
0.1536547690629959,
|
| 708 |
+
1.5726174116134644,
|
| 709 |
+
0.08847889304161072,
|
| 710 |
+
-0.002909993752837181,
|
| 711 |
+
1.6941105127334595,
|
| 712 |
+
1.7474862337112427,
|
| 713 |
+
0.12235886603593826,
|
| 714 |
+
1.7342374324798584,
|
| 715 |
+
1.1012191772460938,
|
| 716 |
+
1.3934080600738525,
|
| 717 |
+
1.3533018827438354,
|
| 718 |
+
1.7458083629608154,
|
| 719 |
+
1.0872085094451904,
|
| 720 |
+
0.34997692704200745,
|
| 721 |
+
1.0156328678131104,
|
| 722 |
+
0.386565238237381,
|
| 723 |
+
0.011892342939972878,
|
| 724 |
+
0.00036274068406783044,
|
| 725 |
+
-0.9999292492866516
|
| 726 |
+
],
|
| 727 |
+
"mean": [
|
| 728 |
+
-0.09785526093611452,
|
| 729 |
+
0.0029796540751150223,
|
| 730 |
+
-0.00011749093636783019,
|
| 731 |
+
0.24078336613300713,
|
| 732 |
+
-0.001483745781117172,
|
| 733 |
+
-0.16094673989096656,
|
| 734 |
+
-0.09784785629628794,
|
| 735 |
+
-0.003286792622055945,
|
| 736 |
+
6.359669603595921e-05,
|
| 737 |
+
0.24135650970587674,
|
| 738 |
+
0.0014481086974793924,
|
| 739 |
+
-0.16157293961249933,
|
| 740 |
+
-0.00055516285977429,
|
| 741 |
+
0.004176521286819223,
|
| 742 |
+
0.001051175742497642,
|
| 743 |
+
0.2395181341710026,
|
| 744 |
+
0.10792622612743608,
|
| 745 |
+
0.004581044781537889,
|
| 746 |
+
0.9944883175184331,
|
| 747 |
+
-0.0011651024131686418,
|
| 748 |
+
-0.004377417567246881,
|
| 749 |
+
0.006125923884388435,
|
| 750 |
+
-0.35644952192305274,
|
| 751 |
+
-0.46418886003898757,
|
| 752 |
+
-0.013048485006977669,
|
| 753 |
+
0.17741333217133373,
|
| 754 |
+
1.905103833607418,
|
| 755 |
+
0.30614702442260283,
|
| 756 |
+
-0.7054572112394577,
|
| 757 |
+
0.5088922210153903,
|
| 758 |
+
-0.32759722949323195,
|
| 759 |
+
0.00155383075415595,
|
| 760 |
+
0.0015537752436624434,
|
| 761 |
+
0.00020132537563169773,
|
| 762 |
+
0.0015537100449893638,
|
| 763 |
+
0.033465170018071755,
|
| 764 |
+
-0.0005566219677073042,
|
| 765 |
+
-0.0005569153729970776,
|
| 766 |
+
0.0015537284846230618,
|
| 767 |
+
-0.0005563826282825237,
|
| 768 |
+
-0.0861267614232954,
|
| 769 |
+
0.00029127273341124105,
|
| 770 |
+
0.00029126452302906614,
|
| 771 |
+
-0.0005556223184502122,
|
| 772 |
+
0.00029125536324850346,
|
| 773 |
+
0.0043675904196599285,
|
| 774 |
+
5.153174948852545e-05,
|
| 775 |
+
5.1530702786641114e-05,
|
| 776 |
+
0.00029125860617560865,
|
| 777 |
+
5.1529519222620906e-05,
|
| 778 |
+
0.00420368666799645,
|
| 779 |
+
5.153006054694349e-05,
|
| 780 |
+
0.00011943137353283142,
|
| 781 |
+
0.8160156590570241,
|
| 782 |
+
0.9389792287318086,
|
| 783 |
+
0.1490323148686384,
|
| 784 |
+
1.2093103380214947,
|
| 785 |
+
0.7972762943083992,
|
| 786 |
+
-0.0029631480957493486,
|
| 787 |
+
-0.055737382939839715,
|
| 788 |
+
1.2004745719955285,
|
| 789 |
+
-0.044283933876475896,
|
| 790 |
+
-0.08029388535325555,
|
| 791 |
+
1.2305006590593395,
|
| 792 |
+
1.2743632885109408,
|
| 793 |
+
0.03205499904873027,
|
| 794 |
+
1.3778912931374658,
|
| 795 |
+
0.4899848887858702,
|
| 796 |
+
0.9868204909239197,
|
| 797 |
+
0.780929127787715,
|
| 798 |
+
1.1804992306569957,
|
| 799 |
+
0.8426924277583776,
|
| 800 |
+
0.20458252311803743,
|
| 801 |
+
0.7181666232938461,
|
| 802 |
+
0.15684561085752854,
|
| 803 |
+
0.007212025231518785,
|
| 804 |
+
-0.00018580798599419722,
|
| 805 |
+
-0.9999714100548942
|
| 806 |
+
],
|
| 807 |
+
"std": [
|
| 808 |
+
0.0009067670789237834,
|
| 809 |
+
0.0008727894346167395,
|
| 810 |
+
0.0002777191972242325,
|
| 811 |
+
0.0006466220604173187,
|
| 812 |
+
0.0007346710346997718,
|
| 813 |
+
0.0017976988752153227,
|
| 814 |
+
0.0007769208980955679,
|
| 815 |
+
0.0006779111896897012,
|
| 816 |
+
0.00020889763962404415,
|
| 817 |
+
0.0005150219641825996,
|
| 818 |
+
0.0006882885320503921,
|
| 819 |
+
0.0017855112589450538,
|
| 820 |
+
0.0007098681864201253,
|
| 821 |
+
0.0024662644695297446,
|
| 822 |
+
0.0033463154916504646,
|
| 823 |
+
0.0009304211235617237,
|
| 824 |
+
0.0008408055498402711,
|
| 825 |
+
0.00019948119403078555,
|
| 826 |
+
0.0008665865887054094,
|
| 827 |
+
0.0001838611778494026,
|
| 828 |
+
0.0007190760615107812,
|
| 829 |
+
0.001141946161740247,
|
| 830 |
+
0.2633559095218504,
|
| 831 |
+
0.1844559478015024,
|
| 832 |
+
0.23941128485327795,
|
| 833 |
+
0.28156390062770453,
|
| 834 |
+
0.5549049949709923,
|
| 835 |
+
0.14039245872370573,
|
| 836 |
+
0.2860102014074455,
|
| 837 |
+
0.14344760466848627,
|
| 838 |
+
0.18510505690932832,
|
| 839 |
+
0.0005225765840522694,
|
| 840 |
+
0.0005225690372026028,
|
| 841 |
+
6.575214921290484e-05,
|
| 842 |
+
0.0005225621051523737,
|
| 843 |
+
0.0029143773124083,
|
| 844 |
+
0.0001843525411469115,
|
| 845 |
+
0.0001841359459697739,
|
| 846 |
+
0.0005226020795211893,
|
| 847 |
+
0.0001845250039153968,
|
| 848 |
+
0.0047760096669896114,
|
| 849 |
+
9.812322688642312e-05,
|
| 850 |
+
9.812203457502503e-05,
|
| 851 |
+
0.00018469305540414234,
|
| 852 |
+
9.812084743566436e-05,
|
| 853 |
+
0.0002908526544858428,
|
| 854 |
+
1.742548075238556e-05,
|
| 855 |
+
1.7425327866510986e-05,
|
| 856 |
+
9.812715294628039e-05,
|
| 857 |
+
1.7425186916470698e-05,
|
| 858 |
+
0.0004960553666509786,
|
| 859 |
+
1.7426072624276864e-05,
|
| 860 |
+
4.089342148594891e-05,
|
| 861 |
+
0.3662403907404729,
|
| 862 |
+
0.3885310127888585,
|
| 863 |
+
0.08083219424718499,
|
| 864 |
+
0.4977664762172315,
|
| 865 |
+
0.4876249899076184,
|
| 866 |
+
0.04674606850641643,
|
| 867 |
+
0.049665436463866286,
|
| 868 |
+
0.4795121047941493,
|
| 869 |
+
0.02788045856296372,
|
| 870 |
+
0.024717666341607568,
|
| 871 |
+
0.5321873529292879,
|
| 872 |
+
0.5013715940954119,
|
| 873 |
+
0.021384402536122157,
|
| 874 |
+
0.5500727925731698,
|
| 875 |
+
0.3764727797613653,
|
| 876 |
+
0.40516620301013545,
|
| 877 |
+
0.32029078359450514,
|
| 878 |
+
0.5812045384233172,
|
| 879 |
+
0.35930818560330374,
|
| 880 |
+
0.13998244790577968,
|
| 881 |
+
0.3201486052619058,
|
| 882 |
+
0.10190235433527584,
|
| 883 |
+
0.0022605747284818113,
|
| 884 |
+
0.00014482477039994416,
|
| 885 |
+
1.420976945599524e-05
|
| 886 |
+
],
|
| 887 |
+
"q01": [
|
| 888 |
+
-0.09850119099020958,
|
| 889 |
+
0.0008640509913675487,
|
| 890 |
+
-0.0013354859687387944,
|
| 891 |
+
0.23958615839481354,
|
| 892 |
+
-0.0025275377416983246,
|
| 893 |
+
-0.16435931086540223,
|
| 894 |
+
-0.09866525486111641,
|
| 895 |
+
-0.004544122843071818,
|
| 896 |
+
-0.000575557000702247,
|
| 897 |
+
0.24074132561683656,
|
| 898 |
+
-0.0001615556830074638,
|
| 899 |
+
-0.1650536412000656,
|
| 900 |
+
-0.0024056987091898917,
|
| 901 |
+
0.0008230352459941059,
|
| 902 |
+
-0.009928395040333271,
|
| 903 |
+
0.23857873946428299,
|
| 904 |
+
0.10606704607605934,
|
| 905 |
+
0.003956269128248095,
|
| 906 |
+
0.9938164746761322,
|
| 907 |
+
-0.001539693505037576,
|
| 908 |
+
-0.005080912876874209,
|
| 909 |
+
0.005361183704808354,
|
| 910 |
+
-0.701295336484909,
|
| 911 |
+
-0.9814284694194794,
|
| 912 |
+
-0.619218373298645,
|
| 913 |
+
-0.15970112800598144,
|
| 914 |
+
0.0012465573311783373,
|
| 915 |
+
-0.020751330591738226,
|
| 916 |
+
-1.1978226280212403,
|
| 917 |
+
0.005782165098935366,
|
| 918 |
+
-0.5843974411487579,
|
| 919 |
+
5.5685082770651206e-05,
|
| 920 |
+
5.575544491875917e-05,
|
| 921 |
+
1.1438586625445168e-05,
|
| 922 |
+
5.578377022175118e-05,
|
| 923 |
+
0.03149609334766865,
|
| 924 |
+
-0.0007608840032480657,
|
| 925 |
+
-0.0007609407871495932,
|
| 926 |
+
5.581375808105804e-05,
|
| 927 |
+
-0.0007608092855662107,
|
| 928 |
+
-0.08835047483444214,
|
| 929 |
+
1.0384754205006175e-05,
|
| 930 |
+
1.0395733625045978e-05,
|
| 931 |
+
-0.0007601524202618748,
|
| 932 |
+
1.0400010978628416e-05,
|
| 933 |
+
0.004061101069673896,
|
| 934 |
+
1.8193740061178687e-06,
|
| 935 |
+
1.8208826304544345e-06,
|
| 936 |
+
1.04044147519744e-05,
|
| 937 |
+
1.8214138890471077e-06,
|
| 938 |
+
0.002980961464345455,
|
| 939 |
+
1.8219617459180881e-06,
|
| 940 |
+
4.006936705991393e-06,
|
| 941 |
+
8.382547821383923e-05,
|
| 942 |
+
7.428319077007473e-05,
|
| 943 |
+
-2.2172567223606166e-05,
|
| 944 |
+
6.400699203368276e-05,
|
| 945 |
+
0.031931091770529746,
|
| 946 |
+
-0.06078811451792717,
|
| 947 |
+
-0.10554235592484475,
|
| 948 |
+
5.808875721413642e-05,
|
| 949 |
+
-0.0833454391360283,
|
| 950 |
+
-0.13375658839941024,
|
| 951 |
+
1.078577679436421e-05,
|
| 952 |
+
1.0795828529808205e-05,
|
| 953 |
+
-0.02222786143422127,
|
| 954 |
+
1.0798270523082465e-05,
|
| 955 |
+
0.005258570266887546,
|
| 956 |
+
1.8745749912341125e-06,
|
| 957 |
+
1.8758527176032658e-06,
|
| 958 |
+
1.0800773452501744e-05,
|
| 959 |
+
1.875971065601334e-06,
|
| 960 |
+
0.005282324487343431,
|
| 961 |
+
1.876095211628126e-06,
|
| 962 |
+
3.2027537599788047e-06,
|
| 963 |
+
0.0013345605693757534,
|
| 964 |
+
-0.000605643637245521,
|
| 965 |
+
-0.9999991059303284
|
| 966 |
+
],
|
| 967 |
+
"q99": [
|
| 968 |
+
-0.09460046887397766,
|
| 969 |
+
0.004371109576895832,
|
| 970 |
+
0.00038374101219233075,
|
| 971 |
+
0.2427612990140915,
|
| 972 |
+
0.000562165722949429,
|
| 973 |
+
-0.1576434600353241,
|
| 974 |
+
-0.09517786651849747,
|
| 975 |
+
-0.0016454175347462296,
|
| 976 |
+
0.0006539086590055373,
|
| 977 |
+
0.2431977242231369,
|
| 978 |
+
0.0025224683387205,
|
| 979 |
+
-0.15848641932010651,
|
| 980 |
+
0.0021284108096733677,
|
| 981 |
+
0.010720436889678239,
|
| 982 |
+
0.0036060637608170505,
|
| 983 |
+
0.24132926225662232,
|
| 984 |
+
0.11057938635349274,
|
| 985 |
+
0.005188127979636192,
|
| 986 |
+
0.9976410865783691,
|
| 987 |
+
-0.00053376954048872,
|
| 988 |
+
-0.0012399926781654358,
|
| 989 |
+
0.012605562806129456,
|
| 990 |
+
0.5652764868736264,
|
| 991 |
+
-0.08248741999268538,
|
| 992 |
+
0.6294910681247707,
|
| 993 |
+
0.9960867166519165,
|
| 994 |
+
2.6078319597244257,
|
| 995 |
+
0.4364731413125992,
|
| 996 |
+
0.1169470515847205,
|
| 997 |
+
0.6803933727741241,
|
| 998 |
+
-9.349087122245692e-06,
|
| 999 |
+
0.0021375684905797243,
|
| 1000 |
+
0.0021375125600025056,
|
| 1001 |
+
0.000276203085668385,
|
| 1002 |
+
0.002137404466047883,
|
| 1003 |
+
0.04510190337896347,
|
| 1004 |
+
-3.0469611374428496e-05,
|
| 1005 |
+
-3.1369836506200954e-05,
|
| 1006 |
+
0.0021374762523919343,
|
| 1007 |
+
-2.9749740861007012e-05,
|
| 1008 |
+
-0.08416056245565415,
|
| 1009 |
+
0.00040105835360009217,
|
| 1010 |
+
0.00040104385174345226,
|
| 1011 |
+
-2.8378133720252663e-05,
|
| 1012 |
+
0.00040102897211909296,
|
| 1013 |
+
0.00496477410197258,
|
| 1014 |
+
7.111685394193045e-05,
|
| 1015 |
+
7.111564045771956e-05,
|
| 1016 |
+
0.00040104796527884896,
|
| 1017 |
+
7.111543440259992e-05,
|
| 1018 |
+
0.0047313511185348035,
|
| 1019 |
+
7.11158437479753e-05,
|
| 1020 |
+
0.00016601720359176396,
|
| 1021 |
+
1.3917556595802305,
|
| 1022 |
+
1.2549091958999632,
|
| 1023 |
+
0.2342953011393547,
|
| 1024 |
+
1.5228514790534973,
|
| 1025 |
+
1.281657338142395,
|
| 1026 |
+
0.18650823861360544,
|
| 1027 |
+
0.1220307160913944,
|
| 1028 |
+
1.5645131540298463,
|
| 1029 |
+
0.05879297986626625,
|
| 1030 |
+
-0.01600564777851105,
|
| 1031 |
+
1.6867665481567382,
|
| 1032 |
+
1.6438835501670837,
|
| 1033 |
+
0.07475225746631602,
|
| 1034 |
+
1.7114433479309081,
|
| 1035 |
+
1.0851153564453124,
|
| 1036 |
+
1.3932189154624939,
|
| 1037 |
+
1.1691025447845456,
|
| 1038 |
+
1.7413175559043885,
|
| 1039 |
+
1.0792978668212891,
|
| 1040 |
+
0.34871641933918,
|
| 1041 |
+
1.003419451713562,
|
| 1042 |
+
0.375705896615982,
|
| 1043 |
+
0.010849302671849727,
|
| 1044 |
+
7.791171374264991e-05,
|
| 1045 |
+
-0.9999411499500275
|
| 1046 |
+
],
|
| 1047 |
+
"unit_dims": []
|
| 1048 |
+
},
|
| 1049 |
+
"action": {
|
| 1050 |
+
"min": [
|
| 1051 |
+
-0.10000000149011612,
|
| 1052 |
+
0.0,
|
| 1053 |
+
0.0,
|
| 1054 |
+
0.25,
|
| 1055 |
+
0.0,
|
| 1056 |
+
-0.15000000596046448,
|
| 1057 |
+
-0.10000000149011612,
|
| 1058 |
+
0.0,
|
| 1059 |
+
0.0,
|
| 1060 |
+
0.25,
|
| 1061 |
+
0.0,
|
| 1062 |
+
-0.15000000596046448,
|
| 1063 |
+
0.0,
|
| 1064 |
+
0.0,
|
| 1065 |
+
0.0,
|
| 1066 |
+
0.25,
|
| 1067 |
+
0.10000000149011612,
|
| 1068 |
+
0.0,
|
| 1069 |
+
1.0,
|
| 1070 |
+
0.0,
|
| 1071 |
+
0.0,
|
| 1072 |
+
0.0,
|
| 1073 |
+
-0.7830644845962524,
|
| 1074 |
+
-1.15714693069458,
|
| 1075 |
+
-0.7234516739845276,
|
| 1076 |
+
-0.2137162834405899,
|
| 1077 |
+
0.0,
|
| 1078 |
+
-0.4363322854042053,
|
| 1079 |
+
-1.2217304706573486,
|
| 1080 |
+
0.0,
|
| 1081 |
+
-0.6005052924156189,
|
| 1082 |
+
0.0,
|
| 1083 |
+
0.0,
|
| 1084 |
+
0.0,
|
| 1085 |
+
0.0,
|
| 1086 |
+
0.0,
|
| 1087 |
+
0.0,
|
| 1088 |
+
0.0,
|
| 1089 |
+
0.0,
|
| 1090 |
+
0.0,
|
| 1091 |
+
0.0,
|
| 1092 |
+
0.0,
|
| 1093 |
+
0.0,
|
| 1094 |
+
0.0,
|
| 1095 |
+
0.0,
|
| 1096 |
+
0.0,
|
| 1097 |
+
0.0,
|
| 1098 |
+
0.0,
|
| 1099 |
+
0.0,
|
| 1100 |
+
0.0,
|
| 1101 |
+
0.0,
|
| 1102 |
+
0.0,
|
| 1103 |
+
0.0,
|
| 1104 |
+
0.0,
|
| 1105 |
+
0.0,
|
| 1106 |
+
0.0,
|
| 1107 |
+
0.0,
|
| 1108 |
+
0.0,
|
| 1109 |
+
-0.033399999141693115,
|
| 1110 |
+
-0.10440000146627426,
|
| 1111 |
+
0.0,
|
| 1112 |
+
-0.05559999868273735,
|
| 1113 |
+
-0.029100000858306885,
|
| 1114 |
+
0.0,
|
| 1115 |
+
0.0,
|
| 1116 |
+
0.0,
|
| 1117 |
+
0.0,
|
| 1118 |
+
0.0,
|
| 1119 |
+
0.0,
|
| 1120 |
+
0.0,
|
| 1121 |
+
0.0,
|
| 1122 |
+
0.0,
|
| 1123 |
+
0.0,
|
| 1124 |
+
0.0,
|
| 1125 |
+
0.0
|
| 1126 |
+
],
|
| 1127 |
+
"max": [
|
| 1128 |
+
-0.10000000149011612,
|
| 1129 |
+
0.0,
|
| 1130 |
+
0.0,
|
| 1131 |
+
0.25,
|
| 1132 |
+
0.0,
|
| 1133 |
+
-0.15000000596046448,
|
| 1134 |
+
-0.10000000149011612,
|
| 1135 |
+
0.0,
|
| 1136 |
+
0.0,
|
| 1137 |
+
0.25,
|
| 1138 |
+
0.0,
|
| 1139 |
+
-0.15000000596046448,
|
| 1140 |
+
0.0,
|
| 1141 |
+
0.0,
|
| 1142 |
+
0.0,
|
| 1143 |
+
0.25,
|
| 1144 |
+
0.10000000149011612,
|
| 1145 |
+
0.0,
|
| 1146 |
+
1.0,
|
| 1147 |
+
0.0,
|
| 1148 |
+
0.0,
|
| 1149 |
+
0.0,
|
| 1150 |
+
0.5866223573684692,
|
| 1151 |
+
-0.06458767503499985,
|
| 1152 |
+
0.8743140697479248,
|
| 1153 |
+
1.1923998594284058,
|
| 1154 |
+
2.6179938316345215,
|
| 1155 |
+
0.4363322854042053,
|
| 1156 |
+
0.18158245086669922,
|
| 1157 |
+
0.6523595452308655,
|
| 1158 |
+
0.0,
|
| 1159 |
+
0.0,
|
| 1160 |
+
0.0,
|
| 1161 |
+
0.0,
|
| 1162 |
+
0.0,
|
| 1163 |
+
0.0,
|
| 1164 |
+
0.0,
|
| 1165 |
+
0.0,
|
| 1166 |
+
0.0,
|
| 1167 |
+
0.0,
|
| 1168 |
+
0.0,
|
| 1169 |
+
0.0,
|
| 1170 |
+
0.0,
|
| 1171 |
+
0.0,
|
| 1172 |
+
0.0,
|
| 1173 |
+
0.0,
|
| 1174 |
+
0.0,
|
| 1175 |
+
0.0,
|
| 1176 |
+
0.0,
|
| 1177 |
+
0.0,
|
| 1178 |
+
0.0,
|
| 1179 |
+
0.0,
|
| 1180 |
+
0.0,
|
| 1181 |
+
1.5707999467849731,
|
| 1182 |
+
1.4276299476623535,
|
| 1183 |
+
0.251800000667572,
|
| 1184 |
+
1.5707999467849731,
|
| 1185 |
+
1.4098104238510132,
|
| 1186 |
+
0.2409999966621399,
|
| 1187 |
+
0.16740000247955322,
|
| 1188 |
+
1.5707999467849731,
|
| 1189 |
+
0.0,
|
| 1190 |
+
0.3490999937057495,
|
| 1191 |
+
1.7408000230789185,
|
| 1192 |
+
1.745300054550171,
|
| 1193 |
+
0.04050000011920929,
|
| 1194 |
+
1.745300054550171,
|
| 1195 |
+
1.233299970626831,
|
| 1196 |
+
1.396299958229065,
|
| 1197 |
+
1.3615000247955322,
|
| 1198 |
+
1.745300054550171,
|
| 1199 |
+
1.0814000368118286,
|
| 1200 |
+
0.3490999937057495,
|
| 1201 |
+
0.9969000220298767,
|
| 1202 |
+
0.4447999894618988
|
| 1203 |
+
],
|
| 1204 |
+
"mean": [
|
| 1205 |
+
-0.10000000149011612,
|
| 1206 |
+
0.0,
|
| 1207 |
+
0.0,
|
| 1208 |
+
0.25,
|
| 1209 |
+
0.0,
|
| 1210 |
+
-0.15000000596046448,
|
| 1211 |
+
-0.10000000149011612,
|
| 1212 |
+
0.0,
|
| 1213 |
+
0.0,
|
| 1214 |
+
0.25,
|
| 1215 |
+
0.0,
|
| 1216 |
+
-0.15000000596046448,
|
| 1217 |
+
0.0,
|
| 1218 |
+
0.0,
|
| 1219 |
+
0.0,
|
| 1220 |
+
0.25,
|
| 1221 |
+
0.10000000149011612,
|
| 1222 |
+
0.0,
|
| 1223 |
+
1.0,
|
| 1224 |
+
0.0,
|
| 1225 |
+
0.0,
|
| 1226 |
+
0.0,
|
| 1227 |
+
-0.3844676993563776,
|
| 1228 |
+
-0.4635392729059665,
|
| 1229 |
+
-0.025321531695698816,
|
| 1230 |
+
0.1565658989158264,
|
| 1231 |
+
1.9096198221052831,
|
| 1232 |
+
0.3027108377102684,
|
| 1233 |
+
-0.6802851635135142,
|
| 1234 |
+
0.4717552163889123,
|
| 1235 |
+
-0.3293787508809817,
|
| 1236 |
+
0.0,
|
| 1237 |
+
0.0,
|
| 1238 |
+
0.0,
|
| 1239 |
+
0.0,
|
| 1240 |
+
0.0,
|
| 1241 |
+
0.0,
|
| 1242 |
+
0.0,
|
| 1243 |
+
0.0,
|
| 1244 |
+
0.0,
|
| 1245 |
+
0.0,
|
| 1246 |
+
0.0,
|
| 1247 |
+
0.0,
|
| 1248 |
+
0.0,
|
| 1249 |
+
0.0,
|
| 1250 |
+
0.0,
|
| 1251 |
+
0.0,
|
| 1252 |
+
0.0,
|
| 1253 |
+
0.0,
|
| 1254 |
+
0.0,
|
| 1255 |
+
0.0,
|
| 1256 |
+
0.0,
|
| 1257 |
+
0.0,
|
| 1258 |
+
0.9163668700463455,
|
| 1259 |
+
1.0774307526623856,
|
| 1260 |
+
0.18450656518916894,
|
| 1261 |
+
1.2577362062853386,
|
| 1262 |
+
0.8662071389505672,
|
| 1263 |
+
0.014139693930753192,
|
| 1264 |
+
-0.0783472468063956,
|
| 1265 |
+
1.3026880926927225,
|
| 1266 |
+
-0.049635624906086466,
|
| 1267 |
+
0.16960392906218702,
|
| 1268 |
+
1.350968706312699,
|
| 1269 |
+
1.4543478794042892,
|
| 1270 |
+
0.004224006560807533,
|
| 1271 |
+
1.4160855530328746,
|
| 1272 |
+
0.50399988500309,
|
| 1273 |
+
1.0411720162838662,
|
| 1274 |
+
0.8450646923517636,
|
| 1275 |
+
1.3060351313492584,
|
| 1276 |
+
0.8567824521623536,
|
| 1277 |
+
0.21634492012668474,
|
| 1278 |
+
0.7710784049796209,
|
| 1279 |
+
0.1639630493265118
|
| 1280 |
+
],
|
| 1281 |
+
"std": [
|
| 1282 |
+
0.0,
|
| 1283 |
+
0.0,
|
| 1284 |
+
0.0,
|
| 1285 |
+
0.0,
|
| 1286 |
+
0.0,
|
| 1287 |
+
0.0,
|
| 1288 |
+
0.0,
|
| 1289 |
+
0.0,
|
| 1290 |
+
0.0,
|
| 1291 |
+
0.0,
|
| 1292 |
+
0.0,
|
| 1293 |
+
0.0,
|
| 1294 |
+
0.0,
|
| 1295 |
+
0.0,
|
| 1296 |
+
0.0,
|
| 1297 |
+
0.0,
|
| 1298 |
+
0.0,
|
| 1299 |
+
0.0,
|
| 1300 |
+
0.0,
|
| 1301 |
+
0.0,
|
| 1302 |
+
0.0,
|
| 1303 |
+
0.0,
|
| 1304 |
+
0.27101139510542965,
|
| 1305 |
+
0.18306758167232656,
|
| 1306 |
+
0.2321427862317003,
|
| 1307 |
+
0.2921806368614239,
|
| 1308 |
+
0.5575150219880946,
|
| 1309 |
+
0.14082600312771132,
|
| 1310 |
+
0.2889364190439442,
|
| 1311 |
+
0.13317078744611063,
|
| 1312 |
+
0.1862851560996197,
|
| 1313 |
+
0.0,
|
| 1314 |
+
0.0,
|
| 1315 |
+
0.0,
|
| 1316 |
+
0.0,
|
| 1317 |
+
0.0,
|
| 1318 |
+
0.0,
|
| 1319 |
+
0.0,
|
| 1320 |
+
0.0,
|
| 1321 |
+
0.0,
|
| 1322 |
+
0.0,
|
| 1323 |
+
0.0,
|
| 1324 |
+
0.0,
|
| 1325 |
+
0.0,
|
| 1326 |
+
0.0,
|
| 1327 |
+
0.0,
|
| 1328 |
+
0.0,
|
| 1329 |
+
0.0,
|
| 1330 |
+
0.0,
|
| 1331 |
+
0.0,
|
| 1332 |
+
0.0,
|
| 1333 |
+
0.0,
|
| 1334 |
+
0.0,
|
| 1335 |
+
0.41432510347711093,
|
| 1336 |
+
0.4441289438708921,
|
| 1337 |
+
0.10036169364443552,
|
| 1338 |
+
0.5129014869126945,
|
| 1339 |
+
0.5543047289959324,
|
| 1340 |
+
0.051528101258709685,
|
| 1341 |
+
0.05980456667607573,
|
| 1342 |
+
0.5129086732788993,
|
| 1343 |
+
0.014518427034505595,
|
| 1344 |
+
0.18576907372151935,
|
| 1345 |
+
0.5885033266135186,
|
| 1346 |
+
0.5690668726302637,
|
| 1347 |
+
0.012073895925927702,
|
| 1348 |
+
0.5545709581524755,
|
| 1349 |
+
0.39820855145902984,
|
| 1350 |
+
0.41600444476329074,
|
| 1351 |
+
0.34343361130221534,
|
| 1352 |
+
0.6451957528324598,
|
| 1353 |
+
0.3560204635861576,
|
| 1354 |
+
0.13912312189696266,
|
| 1355 |
+
0.3411755546820009,
|
| 1356 |
+
0.10772567046676199
|
| 1357 |
+
],
|
| 1358 |
+
"q01": [
|
| 1359 |
+
-0.10000000149011612,
|
| 1360 |
+
0.0,
|
| 1361 |
+
0.0,
|
| 1362 |
+
0.25,
|
| 1363 |
+
0.0,
|
| 1364 |
+
-0.15000000596046448,
|
| 1365 |
+
-0.10000000149011612,
|
| 1366 |
+
0.0,
|
| 1367 |
+
0.0,
|
| 1368 |
+
0.25,
|
| 1369 |
+
0.0,
|
| 1370 |
+
-0.15000000596046448,
|
| 1371 |
+
0.0,
|
| 1372 |
+
0.0,
|
| 1373 |
+
0.0,
|
| 1374 |
+
0.25,
|
| 1375 |
+
0.10000000149011612,
|
| 1376 |
+
0.0,
|
| 1377 |
+
1.0,
|
| 1378 |
+
0.0,
|
| 1379 |
+
0.0,
|
| 1380 |
+
0.0,
|
| 1381 |
+
-0.7070445740222931,
|
| 1382 |
+
-0.9821006107330322,
|
| 1383 |
+
-0.5814823317527771,
|
| 1384 |
+
-0.16660345375537872,
|
| 1385 |
+
0.0,
|
| 1386 |
+
-0.026732677631080153,
|
| 1387 |
+
-1.190130457878113,
|
| 1388 |
+
0.0,
|
| 1389 |
+
-0.5883647525310516,
|
| 1390 |
+
0.0,
|
| 1391 |
+
0.0,
|
| 1392 |
+
0.0,
|
| 1393 |
+
0.0,
|
| 1394 |
+
0.0,
|
| 1395 |
+
0.0,
|
| 1396 |
+
0.0,
|
| 1397 |
+
0.0,
|
| 1398 |
+
0.0,
|
| 1399 |
+
0.0,
|
| 1400 |
+
0.0,
|
| 1401 |
+
0.0,
|
| 1402 |
+
0.0,
|
| 1403 |
+
0.0,
|
| 1404 |
+
0.0,
|
| 1405 |
+
0.0,
|
| 1406 |
+
0.0,
|
| 1407 |
+
0.0,
|
| 1408 |
+
0.0,
|
| 1409 |
+
0.0,
|
| 1410 |
+
0.0,
|
| 1411 |
+
0.0,
|
| 1412 |
+
0.0,
|
| 1413 |
+
0.0,
|
| 1414 |
+
0.0,
|
| 1415 |
+
0.0,
|
| 1416 |
+
0.0,
|
| 1417 |
+
-0.030105212703347206,
|
| 1418 |
+
-0.10440000146627426,
|
| 1419 |
+
0.0,
|
| 1420 |
+
-0.05559999868273735,
|
| 1421 |
+
-0.029100000858306885,
|
| 1422 |
+
0.0,
|
| 1423 |
+
0.0,
|
| 1424 |
+
0.0,
|
| 1425 |
+
0.0,
|
| 1426 |
+
0.0,
|
| 1427 |
+
0.0,
|
| 1428 |
+
0.0,
|
| 1429 |
+
0.0,
|
| 1430 |
+
0.0,
|
| 1431 |
+
0.0,
|
| 1432 |
+
0.0,
|
| 1433 |
+
0.0
|
| 1434 |
+
],
|
| 1435 |
+
"q99": [
|
| 1436 |
+
-0.10000000149011612,
|
| 1437 |
+
0.0,
|
| 1438 |
+
0.0,
|
| 1439 |
+
0.25,
|
| 1440 |
+
0.0,
|
| 1441 |
+
-0.15000000596046448,
|
| 1442 |
+
-0.10000000149011612,
|
| 1443 |
+
0.0,
|
| 1444 |
+
0.0,
|
| 1445 |
+
0.25,
|
| 1446 |
+
0.0,
|
| 1447 |
+
-0.15000000596046448,
|
| 1448 |
+
0.0,
|
| 1449 |
+
0.0,
|
| 1450 |
+
0.0,
|
| 1451 |
+
0.25,
|
| 1452 |
+
0.10000000149011612,
|
| 1453 |
+
0.0,
|
| 1454 |
+
1.0,
|
| 1455 |
+
0.0,
|
| 1456 |
+
0.0,
|
| 1457 |
+
0.0,
|
| 1458 |
+
0.5514356398582456,
|
| 1459 |
+
-0.09763230487704284,
|
| 1460 |
+
0.6034356474876394,
|
| 1461 |
+
1.0,
|
| 1462 |
+
2.611392502784729,
|
| 1463 |
+
0.4363322854042053,
|
| 1464 |
+
0.12147992059588404,
|
| 1465 |
+
0.6338406205177307,
|
| 1466 |
+
0.0,
|
| 1467 |
+
0.0,
|
| 1468 |
+
0.0,
|
| 1469 |
+
0.0,
|
| 1470 |
+
0.0,
|
| 1471 |
+
0.0,
|
| 1472 |
+
0.0,
|
| 1473 |
+
0.0,
|
| 1474 |
+
0.0,
|
| 1475 |
+
0.0,
|
| 1476 |
+
0.0,
|
| 1477 |
+
0.0,
|
| 1478 |
+
0.0,
|
| 1479 |
+
0.0,
|
| 1480 |
+
0.0,
|
| 1481 |
+
0.0,
|
| 1482 |
+
0.0,
|
| 1483 |
+
0.0,
|
| 1484 |
+
0.0,
|
| 1485 |
+
0.0,
|
| 1486 |
+
0.0,
|
| 1487 |
+
0.0,
|
| 1488 |
+
0.0,
|
| 1489 |
+
1.5707999467849731,
|
| 1490 |
+
1.4246050119400024,
|
| 1491 |
+
0.251800000667572,
|
| 1492 |
+
1.5707999467849731,
|
| 1493 |
+
1.4098104238510132,
|
| 1494 |
+
0.23754914104938507,
|
| 1495 |
+
0.1664000004529953,
|
| 1496 |
+
1.5707999467849731,
|
| 1497 |
+
0.0,
|
| 1498 |
+
0.3490999937057495,
|
| 1499 |
+
1.7408000230789185,
|
| 1500 |
+
1.745300054550171,
|
| 1501 |
+
0.04050000011920929,
|
| 1502 |
+
1.745300054550171,
|
| 1503 |
+
1.233299970626831,
|
| 1504 |
+
1.396299958229065,
|
| 1505 |
+
1.3562606573104858,
|
| 1506 |
+
1.745300054550171,
|
| 1507 |
+
1.0814000368118286,
|
| 1508 |
+
0.3490999937057495,
|
| 1509 |
+
0.9969000220298767,
|
| 1510 |
+
0.4447999894618988
|
| 1511 |
+
],
|
| 1512 |
+
"unit_dims": []
|
| 1513 |
+
}
|
| 1514 |
+
},
|
| 1515 |
+
"code_commit": "bf40b9df05f60870ac9e4ab3acef11a871925a40",
|
| 1516 |
+
"task": "a15v3",
|
| 1517 |
+
"dataset_id": "humanoid-benchmark/a15-hitting-nail@139187e6d5e4547aae01629bca39fc4b2045153d"
|
| 1518 |
+
}
|
a15-hitting-nail/b512-s6000/step-006000/training_records/train.log
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
HB_AUG_SEED=42
|
| 2 |
+
{"event": "preflight", "augmentation": "hb-aug-v2-20261109", "samples": 64, "state_dim": 78, "body_dims": 31, "images_changed": 64, "body_values_moved": 1.0, "max_body_offset_deg": 2.6647, "actions_bit_identical": true, "non_body_state_bit_identical": true, "eval_items_deterministic": 8}
|
| 3 |
+
{"event": "save_points", "steps": [1000, 2000, 3000, 4000, 5000, 6000]}
|
| 4 |
+
HB_INLOOP ode_mlp installed: task a15v3 split train10, every 250 steps, cache checked on episodes [0, 17, 33, 50, 66, 83, 99, 116, 132, 149], code /mnt/vepfs/baijiaqi/hb_team01_20261130/policies/eval-action-mse, G=/mnt/vepfs/baijiaqi/hb_team01_20261130/policies
|
| 5 |
+
{"event": "start", "policy": "ode_mlp", "params": 26727775, "backbone_params": 22353024, "backbone_weights": null, "backbone_norm": "group", "train_frames": 86267, "steps": 6000, "from_step": 0, "total_steps": 6000, "cameras": ["head", "chest"], "hw": [168, 224], "seed": 42}
|
| 6 |
+
{"event": "train", "step": 50, "lr": 1e-05, "backbone_lr": 1e-05, "ema_decay": 0.946005, "it_s": 0.86, "data_frac": 0.617, "body": 0.008942945385351777, "hand": 0.3302614486217499, "loss": 0.19744980543851853}
|
| 7 |
+
{"event": "train", "step": 100, "lr": 2e-05, "backbone_lr": 2e-05, "ema_decay": 0.968138, "it_s": 1.14, "data_frac": 0.578, "body": 0.006747324839234352, "hand": 0.25558522701263425, "loss": 0.15273223280906678}
|
| 8 |
+
{"event": "train", "step": 150, "lr": 3e-05, "backbone_lr": 3e-05, "ema_decay": 0.976552, "it_s": 2.18, "data_frac": 0.229, "body": 0.0055722920689731835, "hand": 0.1470387800037861, "loss": 0.08856596678495407}
|
| 9 |
+
{"event": "train", "step": 200, "lr": 4e-05, "backbone_lr": 4e-05, "ema_decay": 0.981126, "it_s": 1.13, "data_frac": 0.594, "body": 0.004564231224358082, "hand": 0.07240551561117173, "loss": 0.04436445217579603}
|
| 10 |
+
{"event": "train", "step": 250, "lr": 5e-05, "backbone_lr": 5e-05, "ema_decay": 0.984047, "it_s": 1.16, "data_frac": 0.57, "body": 0.0037299791583791375, "hand": 0.03218183197081089, "loss": 0.02042173333466053}
|
| 11 |
+
HB_INLOOP ode_mlp ready: task a15v3 split train10 queries 362 (rank 0/1: 362), every 250 steps, batch 8, cams ['head', 'chest']
|
| 12 |
+
HB_INLOOP ode_mlp step 250: a15v3/train10 nMSE 0.1947 (body_target 0.0951 hands 0.2354) on 362 queries, 8.7 s
|
| 13 |
+
{"event": "train", "step": 300, "lr": 6e-05, "backbone_lr": 6e-05, "ema_decay": 0.986093, "it_s": 1.56, "data_frac": 0.169, "body": 0.0033659244468435645, "hand": 0.01831059854477644, "loss": 0.012133466936647892}
|
| 14 |
+
{"event": "train", "step": 350, "lr": 7e-05, "backbone_lr": 7e-05, "ema_decay": 0.987615, "it_s": 1.1, "data_frac": 0.601, "body": 0.0030159280309453606, "hand": 0.011139878761023283, "loss": 0.0077819792833179234}
|
| 15 |
+
{"event": "train", "step": 400, "lr": 8e-05, "backbone_lr": 8e-05, "ema_decay": 0.988799, "it_s": 1.6, "data_frac": 0.386, "body": 0.0026762836240231992, "hand": 0.0091291434597224, "loss": 0.006461961576715112}
|
| 16 |
+
{"event": "train", "step": 450, "lr": 9e-05, "backbone_lr": 9e-05, "ema_decay": 0.989748, "it_s": 1.35, "data_frac": 0.49, "body": 0.0026077809650450947, "hand": 0.007485613878816366, "loss": 0.005469443099573254}
|
| 17 |
+
{"event": "train", "step": 500, "lr": 0.0001, "backbone_lr": 0.0001, "ema_decay": 0.990528, "it_s": 2.29, "data_frac": 0.201, "body": 0.0024297181935980915, "hand": 0.005665757423266768, "loss": 0.004328194684349001}
|
| 18 |
+
HB_INLOOP ode_mlp step 500: a15v3/train10 nMSE 0.0443 (body_target 0.0544 hands 0.0401) on 362 queries, 1.2 s
|
| 19 |
+
{"event": "train", "step": 550, "lr": 9.997960964140947e-05, "backbone_lr": 9.997960964140947e-05, "ema_decay": 0.991183, "it_s": 0.85, "data_frac": 0.659, "body": 0.0020884548826143145, "hand": 0.004592315433546901, "loss": 0.0035573864961043}
|
| 20 |
+
{"event": "train", "step": 600, "lr": 9.991845519630678e-05, "backbone_lr": 9.991845519630678e-05, "ema_decay": 0.991741, "it_s": 1.64, "data_frac": 0.413, "body": 0.0018456398113630712, "hand": 0.004312180448323488, "loss": 0.0032926770392805336}
|
| 21 |
+
{"event": "train", "step": 650, "lr": 9.981658654313457e-05, "backbone_lr": 9.981658654313457e-05, "ema_decay": 0.992223, "it_s": 1.63, "data_frac": 0.42, "body": 0.0018125665839761496, "hand": 0.003818772449158132, "loss": 0.0029895408032462}
|
| 22 |
+
{"event": "train", "step": 700, "lr": 9.967408676742751e-05, "backbone_lr": 9.967408676742751e-05, "ema_decay": 0.992644, "it_s": 1.07, "data_frac": 0.616, "body": 0.0016731315362267197, "hand": 0.003281355774961412, "loss": 0.0026166231464594602}
|
| 23 |
+
{"event": "train", "step": 750, "lr": 9.949107209404665e-05, "backbone_lr": 9.949107209404665e-05, "ema_decay": 0.993015, "it_s": 1.3, "data_frac": 0.528, "body": 0.0016651901695877314, "hand": 0.003089994341135025, "loss": 0.0025010753516107797}
|
| 24 |
+
HB_INLOOP ode_mlp step 750: a15v3/train10 nMSE 0.0242 (body_target 0.0406 hands 0.0175) on 362 queries, 1.5 s
|
| 25 |
+
{"event": "train", "step": 800, "lr": 9.926769179238466e-05, "backbone_lr": 9.926769179238466e-05, "ema_decay": 0.993346, "it_s": 2.35, "data_frac": 0.085, "body": 0.00152487067040056, "hand": 0.0026287291711196304, "loss": 0.0021724677016027273}
|
| 26 |
+
{"event": "train", "step": 850, "lr": 9.900412805461967e-05, "backbone_lr": 9.900412805461967e-05, "ema_decay": 0.993642, "it_s": 0.88, "data_frac": 0.684, "body": 0.0015072407876141369, "hand": 0.002494825855828822, "loss": 0.0020866240770556032}
|
| 27 |
+
{"event": "train", "step": 900, "lr": 9.870059584711668e-05, "backbone_lr": 9.870059584711668e-05, "ema_decay": 0.993909, "it_s": 1.63, "data_frac": 0.401, "body": 0.0014303367724642158, "hand": 0.00247648349031806, "loss": 0.0020440762233920394}
|
| 28 |
+
{"event": "train", "step": 950, "lr": 9.835734273509786e-05, "backbone_lr": 9.835734273509786e-05, "ema_decay": 0.994151, "it_s": 1.64, "data_frac": 0.414, "body": 0.0013269083225168287, "hand": 0.0021265064249746503, "loss": 0.0017960059107281269}
|
| 29 |
+
{"event": "train", "step": 1000, "lr": 9.797464868072488e-05, "backbone_lr": 9.797464868072488e-05, "ema_decay": 0.994372, "it_s": 1.69, "data_frac": 0.39, "body": 0.0012169216247275472, "hand": 0.0019452105415984989, "loss": 0.0016441844985820354}
|
| 30 |
+
HB_INLOOP ode_mlp step 1000: a15v3/train10 nMSE 0.0168 (body_target 0.0310 hands 0.0111) on 362 queries, 1.5 s
|
| 31 |
+
{"event": "save", "step": 1000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-001000", "mse": 0.0017163170268759131, "mse_row0": 0.00215937290340662, "mse_body_target": 0.0012588517274707556, "mse_hands": 0.002038622507825494}
|
| 32 |
+
{"event": "train", "step": 1050, "lr": 9.755282581475769e-05, "backbone_lr": 9.755282581475769e-05, "ema_decay": 0.994575, "it_s": 0.86, "data_frac": 0.635, "body": 0.0011750341171864421, "hand": 0.0018878440093249083, "loss": 0.001593215954490006}
|
| 33 |
+
{"event": "train", "step": 1100, "lr": 9.709221818197624e-05, "backbone_lr": 9.709221818197624e-05, "ema_decay": 0.994761, "it_s": 2.47, "data_frac": 0.124, "body": 0.0011224224977195263, "hand": 0.0017926020896993577, "loss": 0.001515594555530697}
|
| 34 |
+
{"event": "train", "step": 1150, "lr": 9.659320146057262e-05, "backbone_lr": 9.659320146057262e-05, "ema_decay": 0.994933, "it_s": 1.19, "data_frac": 0.555, "body": 0.0010389454732649028, "hand": 0.0017810889217071235, "loss": 0.0014743363205343485}
|
| 35 |
+
{"event": "train", "step": 1200, "lr": 9.60561826557425e-05, "backbone_lr": 9.60561826557425e-05, "ema_decay": 0.995092, "it_s": 1.07, "data_frac": 0.614, "body": 0.001086637122789398, "hand": 0.0019845795491710305, "loss": 0.0016134300571866334}
|
| 36 |
+
{"event": "train", "step": 1250, "lr": 9.548159976772592e-05, "backbone_lr": 9.548159976772592e-05, "ema_decay": 0.99524, "it_s": 1.66, "data_frac": 0.411, "body": 0.001092224856838584, "hand": 0.0018250014004297555, "loss": 0.0015221204631961883}
|
| 37 |
+
HB_INLOOP ode_mlp step 1250: a15v3/train10 nMSE 0.0118 (body_target 0.0203 hands 0.0084) on 362 queries, 2.5 s
|
| 38 |
+
{"event": "train", "step": 1300, "lr": 9.486992143456792e-05, "backbone_lr": 9.486992143456792e-05, "ema_decay": 0.995378, "it_s": 1.6, "data_frac": 0.316, "body": 0.0010014975909143687, "hand": 0.0018754642060957848, "loss": 0.001514224715065211}
|
| 39 |
+
{"event": "train", "step": 1350, "lr": 9.422164654989072e-05, "backbone_lr": 9.422164654989072e-05, "ema_decay": 0.995507, "it_s": 0.88, "data_frac": 0.693, "body": 0.001055228553013876, "hand": 0.0015021352702751756, "loss": 0.001317413852084428}
|
| 40 |
+
{"event": "train", "step": 1400, "lr": 9.353730385598887e-05, "backbone_lr": 9.353730385598887e-05, "ema_decay": 0.995628, "it_s": 2.43, "data_frac": 0.15, "body": 0.0009641726093832404, "hand": 0.001468106887768954, "loss": 0.0012598140817135573}
|
| 41 |
+
{"event": "train", "step": 1450, "lr": 9.281745151257946e-05, "backbone_lr": 9.281745151257946e-05, "ema_decay": 0.995742, "it_s": 1.23, "data_frac": 0.539, "body": 0.0009674629289656878, "hand": 0.0016307994374074042, "loss": 0.0013566203857772053}
|
| 42 |
+
{"event": "train", "step": 1500, "lr": 9.206267664155907e-05, "backbone_lr": 9.206267664155907e-05, "ema_decay": 0.995849, "it_s": 1.71, "data_frac": 0.381, "body": 0.0009065269015263766, "hand": 0.0015863592154346407, "loss": 0.001305361888371408}
|
| 43 |
+
HB_INLOOP ode_mlp step 1500: a15v3/train10 nMSE 0.0090 (body_target 0.0139 hands 0.0071) on 362 queries, 1.6 s
|
| 44 |
+
{"event": "train", "step": 1550, "lr": 9.12735948481387e-05, "backbone_lr": 9.12735948481387e-05, "ema_decay": 0.99595, "it_s": 1.11, "data_frac": 0.579, "body": 0.0008638363110367209, "hand": 0.0015562999434769154, "loss": 0.0012700816779397427}
|
| 45 |
+
{"event": "train", "step": 1600, "lr": 9.045084971874738e-05, "backbone_lr": 9.045084971874738e-05, "ema_decay": 0.996045, "it_s": 1.62, "data_frac": 0.393, "body": 0.000807761384639889, "hand": 0.001372241147328168, "loss": 0.0011389228806365282}
|
| 46 |
+
{"event": "train", "step": 1650, "lr": 8.959511229611376e-05, "backbone_lr": 8.959511229611376e-05, "ema_decay": 0.996136, "it_s": 1.17, "data_frac": 0.571, "body": 0.0008194958930835128, "hand": 0.0013295661099255085, "loss": 0.0011187371122650801}
|
| 47 |
+
{"event": "train", "step": 1700, "lr": 8.870708053195413e-05, "backbone_lr": 8.870708053195413e-05, "ema_decay": 0.996221, "it_s": 1.35, "data_frac": 0.531, "body": 0.0008120186906307936, "hand": 0.0012922482087742537, "loss": 0.0010937533678952605}
|
| 48 |
+
{"event": "train", "step": 1750, "lr": 8.778747871771292e-05, "backbone_lr": 8.778747871771292e-05, "ema_decay": 0.996303, "it_s": 1.3, "data_frac": 0.518, "body": 0.0007558859512209892, "hand": 0.0012708400259725749, "loss": 0.0010579923656769098}
|
| 49 |
+
HB_INLOOP ode_mlp step 1750: a15v3/train10 nMSE 0.0074 (body_target 0.0109 hands 0.0060) on 362 queries, 2.4 s
|
| 50 |
+
{"event": "train", "step": 1800, "lr": 8.683705689382024e-05, "backbone_lr": 8.683705689382024e-05, "ema_decay": 0.99638, "it_s": 1.59, "data_frac": 0.312, "body": 0.0007787608669605106, "hand": 0.0012314797274302692, "loss": 0.0010443559649866074}
|
| 51 |
+
{"event": "train", "step": 1850, "lr": 8.585659023794818e-05, "backbone_lr": 8.585659023794818e-05, "ema_decay": 0.996454, "it_s": 1.1, "data_frac": 0.613, "body": 0.0007491814310196787, "hand": 0.0012241607962641865, "loss": 0.0010278360184747726}
|
| 52 |
+
{"event": "train", "step": 1900, "lr": 8.484687843276469e-05, "backbone_lr": 8.484687843276469e-05, "ema_decay": 0.996524, "it_s": 1.78, "data_frac": 0.336, "body": 0.0007135725987609476, "hand": 0.0010860987042542547, "loss": 0.000932121267542243}
|
| 53 |
+
{"event": "train", "step": 1950, "lr": 8.380874501370097e-05, "backbone_lr": 8.380874501370097e-05, "ema_decay": 0.996591, "it_s": 1.14, "data_frac": 0.567, "body": 0.0006694926228374243, "hand": 0.001135620146524161, "loss": 0.0009429541253484785}
|
| 54 |
+
{"event": "train", "step": 2000, "lr": 8.274303669726426e-05, "backbone_lr": 8.274303669726426e-05, "ema_decay": 0.996655, "it_s": 1.62, "data_frac": 0.416, "body": 0.000658004746073857, "hand": 0.0010714721074327827, "loss": 0.0009005722869187594}
|
| 55 |
+
HB_INLOOP ode_mlp step 2000: a15v3/train10 nMSE 0.0065 (body_target 0.0094 hands 0.0053) on 362 queries, 1.4 s
|
| 56 |
+
{"event": "save", "step": 2000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-002000", "mse": 0.0007933821761980653, "mse_row0": 0.0007886386010795832, "mse_body_target": 0.0006141253979876637, "mse_hands": 0.0009196768514811993}
|
| 57 |
+
{"event": "train", "step": 2050, "lr": 8.165062269044353e-05, "backbone_lr": 8.165062269044353e-05, "ema_decay": 0.996716, "it_s": 0.96, "data_frac": 0.6, "body": 0.0007074783684220165, "hand": 0.0010987928067333996, "loss": 0.0009370495309121906}
|
| 58 |
+
{"event": "train", "step": 2100, "lr": 8.053239398177191e-05, "backbone_lr": 8.053239398177191e-05, "ema_decay": 0.996775, "it_s": 1.57, "data_frac": 0.404, "body": 0.0006614706211257726, "hand": 0.001085988701088354, "loss": 0.0009105212474241853}
|
| 59 |
+
{"event": "train", "step": 2150, "lr": 7.938926261462366e-05, "backbone_lr": 7.938926261462366e-05, "ema_decay": 0.996832, "it_s": 1.08, "data_frac": 0.597, "body": 0.0006319638050626963, "hand": 0.001095063815591857, "loss": 0.0009036491659935564}
|
| 60 |
+
{"event": "train", "step": 2200, "lr": 7.822216094333847e-05, "backbone_lr": 7.822216094333847e-05, "ema_decay": 0.996886, "it_s": 1.18, "data_frac": 0.588, "body": 0.0006247472309041768, "hand": 0.001115795464720577, "loss": 0.0009128288889769465}
|
| 61 |
+
{"event": "train", "step": 2250, "lr": 7.703204087277988e-05, "backbone_lr": 7.703204087277988e-05, "ema_decay": 0.996938, "it_s": 1.15, "data_frac": 0.573, "body": 0.0006531203095801175, "hand": 0.0009896997141186149, "loss": 0.0008505802520085127}
|
| 62 |
+
HB_INLOOP ode_mlp step 2250: a15v3/train10 nMSE 0.0058 (body_target 0.0085 hands 0.0047) on 362 queries, 2.5 s
|
| 63 |
+
{"event": "train", "step": 2300, "lr": 7.58198730819481e-05, "backbone_lr": 7.58198730819481e-05, "ema_decay": 0.996988, "it_s": 1.56, "data_frac": 0.327, "body": 0.0006136822269763798, "hand": 0.0008950322587043046, "loss": 0.0007787409238517284}
|
| 64 |
+
{"event": "train", "step": 2350, "lr": 7.45866462322802e-05, "backbone_lr": 7.45866462322802e-05, "ema_decay": 0.997036, "it_s": 2.16, "data_frac": 0.252, "body": 0.0005930536275263876, "hand": 0.0009056566923391074, "loss": 0.0007764474477153271}
|
| 65 |
+
{"event": "train", "step": 2400, "lr": 7.333336616128369e-05, "backbone_lr": 7.333336616128369e-05, "ema_decay": 0.997083, "it_s": 0.88, "data_frac": 0.669, "body": 0.0005634581431513652, "hand": 0.0008994523365981877, "loss": 0.0007605747575871646}
|
| 66 |
+
{"event": "train", "step": 2450, "lr": 7.206105506216106e-05, "backbone_lr": 7.206105506216106e-05, "ema_decay": 0.997128, "it_s": 1.15, "data_frac": 0.57, "body": 0.0005693358602002263, "hand": 0.0009543616510927677, "loss": 0.0007952176744583994}
|
| 67 |
+
{"event": "train", "step": 2500, "lr": 7.077075065009433e-05, "backbone_lr": 7.077075065009433e-05, "ema_decay": 0.997171, "it_s": 2.33, "data_frac": 0.189, "body": 0.0006045211851596833, "hand": 0.0009191927092615515, "loss": 0.0007891285000368953}
|
| 68 |
+
HB_INLOOP ode_mlp step 2500: a15v3/train10 nMSE 0.0053 (body_target 0.0077 hands 0.0043) on 362 queries, 1.6 s
|
| 69 |
+
{"event": "train", "step": 2550, "lr": 6.946350531586959e-05, "backbone_lr": 6.946350531586959e-05, "ema_decay": 0.997212, "it_s": 1.1, "data_frac": 0.567, "body": 0.0005841109773609787, "hand": 0.0008409372309688478, "loss": 0.0007347823935560882}
|
| 70 |
+
{"event": "train", "step": 2600, "lr": 6.814038526753205e-05, "backbone_lr": 6.814038526753205e-05, "ema_decay": 0.997253, "it_s": 1.13, "data_frac": 0.563, "body": 0.0005770360655151307, "hand": 0.0008521500008646398, "loss": 0.0007384362537413836}
|
| 71 |
+
{"event": "train", "step": 2650, "lr": 6.680246966077151e-05, "backbone_lr": 6.680246966077151e-05, "ema_decay": 0.997292, "it_s": 1.72, "data_frac": 0.394, "body": 0.0005476687784539536, "hand": 0.0008734220825135707, "loss": 0.0007387774076778442}
|
| 72 |
+
{"event": "train", "step": 2700, "lr": 6.545084971874738e-05, "backbone_lr": 6.545084971874738e-05, "ema_decay": 0.997329, "it_s": 1.09, "data_frac": 0.615, "body": 0.0005280505400151014, "hand": 0.0008943112625274807, "loss": 0.0007429235184099525}
|
| 73 |
+
{"event": "train", "step": 2750, "lr": 6.408662784207149e-05, "backbone_lr": 6.408662784207149e-05, "ema_decay": 0.997366, "it_s": 1.65, "data_frac": 0.392, "body": 0.00051177445682697, "hand": 0.0008820914418902248, "loss": 0.0007290271052625031}
|
| 74 |
+
HB_INLOOP ode_mlp step 2750: a15v3/train10 nMSE 0.0049 (body_target 0.0071 hands 0.0040) on 362 queries, 2.5 s
|
| 75 |
+
{"event": "train", "step": 2800, "lr": 6.271091670967436e-05, "backbone_lr": 6.271091670967436e-05, "ema_decay": 0.997401, "it_s": 1.4, "data_frac": 0.438, "body": 0.0005245043232571334, "hand": 0.0008231646672356874, "loss": 0.0006997184094507247}
|
| 76 |
+
{"event": "train", "step": 2850, "lr": 6.132483837128823e-05, "backbone_lr": 6.132483837128823e-05, "ema_decay": 0.997436, "it_s": 2.06, "data_frac": 0.275, "body": 0.0005264287337195128, "hand": 0.0007814527279697359, "loss": 0.0006760428263805807}
|
| 77 |
+
{"event": "train", "step": 2900, "lr": 5.992952333228728e-05, "backbone_lr": 5.992952333228728e-05, "ema_decay": 0.997469, "it_s": 0.88, "data_frac": 0.67, "body": 0.0005308353173313663, "hand": 0.0007779459375888109, "loss": 0.0006758068990893661}
|
| 78 |
+
{"event": "train", "step": 2950, "lr": 5.85261096316312e-05, "backbone_lr": 5.85261096316312e-05, "ema_decay": 0.997501, "it_s": 1.75, "data_frac": 0.37, "body": 0.0005252961441874504, "hand": 0.0007247084320988506, "loss": 0.0006422846997156739}
|
| 79 |
+
{"event": "train", "step": 3000, "lr": 5.7115741913664264e-05, "backbone_lr": 5.7115741913664264e-05, "ema_decay": 0.997532, "it_s": 1.56, "data_frac": 0.441, "body": 0.0004900711914524437, "hand": 0.0007640412694308907, "loss": 0.0006508003186900169}
|
| 80 |
+
HB_INLOOP ode_mlp step 3000: a15v3/train10 nMSE 0.0046 (body_target 0.0067 hands 0.0037) on 362 queries, 1.6 s
|
| 81 |
+
{"event": "save", "step": 3000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-003000", "mse": 0.0004984563565813005, "mse_row0": 0.000446044810814783, "mse_body_target": 0.0004049523558933288, "mse_hands": 0.0005643342155963182}
|
| 82 |
+
{"event": "train", "step": 3050, "lr": 5.569957049452703e-05, "backbone_lr": 5.569957049452703e-05, "ema_decay": 0.997563, "it_s": 1.05, "data_frac": 0.564, "body": 0.0004779635975137353, "hand": 0.0008413845172617584, "loss": 0.0006911705539096146}
|
| 83 |
+
{"event": "train", "step": 3100, "lr": 5.427875042394199e-05, "backbone_lr": 5.427875042394199e-05, "ema_decay": 0.997592, "it_s": 1.37, "data_frac": 0.51, "body": 0.0005011160700814798, "hand": 0.0007804550684522838, "loss": 0.0006649949692655355}
|
| 84 |
+
{"event": "train", "step": 3150, "lr": 5.2854440543138406e-05, "backbone_lr": 5.2854440543138406e-05, "ema_decay": 0.997621, "it_s": 2.0, "data_frac": 0.271, "body": 0.0004890032217372209, "hand": 0.0007047525735106319, "loss": 0.0006155761948321015}
|
| 85 |
+
{"event": "train", "step": 3200, "lr": 5.142780253968481e-05, "backbone_lr": 5.142780253968481e-05, "ema_decay": 0.997649, "it_s": 0.87, "data_frac": 0.69, "body": 0.00047219492902513595, "hand": 0.000682897450751625, "loss": 0.0005958070885390043}
|
| 86 |
+
{"event": "train", "step": 3250, "lr": 5e-05, "backbone_lr": 5e-05, "ema_decay": 0.997676, "it_s": 1.71, "data_frac": 0.366, "body": 0.00045039135089609773, "hand": 0.0006521196273388341, "loss": 0.0005687386222416535}
|
| 87 |
+
HB_INLOOP ode_mlp step 3250: a15v3/train10 nMSE 0.0043 (body_target 0.0064 hands 0.0035) on 362 queries, 1.4 s
|
| 88 |
+
{"event": "train", "step": 3300, "lr": 4.85721974603152e-05, "backbone_lr": 4.85721974603152e-05, "ema_decay": 0.997703, "it_s": 1.58, "data_frac": 0.383, "body": 0.0004630569403525442, "hand": 0.0006559932098025456, "loss": 0.0005762462283018977}
|
| 89 |
+
{"event": "train", "step": 3350, "lr": 4.71455594568616e-05, "backbone_lr": 4.71455594568616e-05, "ema_decay": 0.997728, "it_s": 1.7, "data_frac": 0.388, "body": 0.00045203640474937855, "hand": 0.000682547768810764, "loss": 0.0005872697522863745}
|
| 90 |
+
{"event": "train", "step": 3400, "lr": 4.5721249576058027e-05, "backbone_lr": 4.5721249576058027e-05, "ema_decay": 0.997754, "it_s": 0.96, "data_frac": 0.634, "body": 0.00046082111191935837, "hand": 0.0006859189982060343, "loss": 0.0005928785563446581}
|
| 91 |
+
{"event": "train", "step": 3450, "lr": 4.4300429505472976e-05, "backbone_lr": 4.4300429505472976e-05, "ema_decay": 0.997778, "it_s": 2.18, "data_frac": 0.216, "body": 0.0004479140107287094, "hand": 0.0005788117507472634, "loss": 0.0005247073678765446}
|
| 92 |
+
{"event": "train", "step": 3500, "lr": 4.288425808633575e-05, "backbone_lr": 4.288425808633575e-05, "ema_decay": 0.997802, "it_s": 1.16, "data_frac": 0.578, "body": 0.0004414545849431306, "hand": 0.0007016194309107959, "loss": 0.0005940846394514665}
|
| 93 |
+
HB_INLOOP ode_mlp step 3500: a15v3/train10 nMSE 0.0041 (body_target 0.0061 hands 0.0033) on 362 queries, 1.7 s
|
| 94 |
+
{"event": "train", "step": 3550, "lr": 4.147389036836881e-05, "backbone_lr": 4.147389036836881e-05, "ema_decay": 0.997825, "it_s": 1.08, "data_frac": 0.586, "body": 0.00045463186339475217, "hand": 0.0006085024605272338, "loss": 0.0005449026310816407}
|
| 95 |
+
{"event": "train", "step": 3600, "lr": 4.007047666771274e-05, "backbone_lr": 4.007047666771274e-05, "ema_decay": 0.997848, "it_s": 1.65, "data_frac": 0.407, "body": 0.00044191966590005903, "hand": 0.0005940950260264799, "loss": 0.0005311958905076608}
|
| 96 |
+
{"event": "train", "step": 3650, "lr": 3.8675161628711776e-05, "backbone_lr": 3.8675161628711776e-05, "ema_decay": 0.99787, "it_s": 1.6, "data_frac": 0.412, "body": 0.00041872578556649385, "hand": 0.0006186846434138715, "loss": 0.0005360349966213107}
|
| 97 |
+
{"event": "train", "step": 3700, "lr": 3.728908329032567e-05, "backbone_lr": 3.728908329032567e-05, "ema_decay": 0.997892, "it_s": 0.94, "data_frac": 0.669, "body": 0.0004368418117519468, "hand": 0.0006334184680599719, "loss": 0.0005521667975699529}
|
| 98 |
+
{"event": "train", "step": 3750, "lr": 3.591337215792852e-05, "backbone_lr": 3.591337215792852e-05, "ema_decay": 0.997913, "it_s": 2.33, "data_frac": 0.152, "body": 0.0004359503189334646, "hand": 0.000591104095801711, "loss": 0.0005269738793140278}
|
| 99 |
+
HB_INLOOP ode_mlp step 3750: a15v3/train10 nMSE 0.0039 (body_target 0.0059 hands 0.0031) on 362 queries, 2.4 s
|
| 100 |
+
{"event": "train", "step": 3800, "lr": 3.4549150281252636e-05, "backbone_lr": 3.4549150281252636e-05, "ema_decay": 0.997933, "it_s": 1.15, "data_frac": 0.51, "body": 0.0003970919590210542, "hand": 0.0005600943043828011, "loss": 0.0004927200131351128}
|
| 101 |
+
{"event": "train", "step": 3850, "lr": 3.3197530339228487e-05, "backbone_lr": 3.3197530339228487e-05, "ema_decay": 0.997954, "it_s": 1.69, "data_frac": 0.382, "body": 0.0004095749434782192, "hand": 0.0005571305664489046, "loss": 0.000496140923933126}
|
| 102 |
+
{"event": "train", "step": 3900, "lr": 3.1859614732467954e-05, "backbone_lr": 3.1859614732467954e-05, "ema_decay": 0.997973, "it_s": 1.09, "data_frac": 0.614, "body": 0.0003992964333156124, "hand": 0.0005694213206879795, "loss": 0.0004991030471865088}
|
| 103 |
+
{"event": "train", "step": 3950, "lr": 3.053649468413043e-05, "backbone_lr": 3.053649468413043e-05, "ema_decay": 0.997993, "it_s": 1.59, "data_frac": 0.391, "body": 0.0003940245317062363, "hand": 0.0005459436023375019, "loss": 0.00048315039370208976}
|
| 104 |
+
{"event": "train", "step": 4000, "lr": 2.9229249349905684e-05, "backbone_lr": 2.9229249349905684e-05, "ema_decay": 0.998011, "it_s": 1.1, "data_frac": 0.573, "body": 0.00039856961055193094, "hand": 0.0005240307678468525, "loss": 0.0004721735027851537}
|
| 105 |
+
HB_INLOOP ode_mlp step 4000: a15v3/train10 nMSE 0.0038 (body_target 0.0057 hands 0.0030) on 362 queries, 1.6 s
|
| 106 |
+
{"event": "save", "step": 4000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-004000", "mse": 0.0003833608061540872, "mse_row0": 0.00033442804124206305, "mse_body_target": 0.0003294014895800501, "mse_hands": 0.00042137756827287376}
|
| 107 |
+
{"event": "train", "step": 4050, "lr": 2.7938944937838923e-05, "backbone_lr": 2.7938944937838923e-05, "ema_decay": 0.99803, "it_s": 1.35, "data_frac": 0.417, "body": 0.00039594879373908046, "hand": 0.0005113364104181528, "loss": 0.00046364287205506114}
|
| 108 |
+
{"event": "train", "step": 4100, "lr": 2.6666633838716314e-05, "backbone_lr": 2.6666633838716314e-05, "ema_decay": 0.998048, "it_s": 1.15, "data_frac": 0.561, "body": 0.00038807772449217737, "hand": 0.0005819700140273199, "loss": 0.0005018278764327988}
|
| 109 |
+
{"event": "train", "step": 4150, "lr": 2.5413353767719805e-05, "backbone_lr": 2.5413353767719805e-05, "ema_decay": 0.998066, "it_s": 1.58, "data_frac": 0.41, "body": 0.0003966153180226684, "hand": 0.0005639858433278277, "loss": 0.0004948060330934823}
|
| 110 |
+
{"event": "train", "step": 4200, "lr": 2.418012691805191e-05, "backbone_lr": 2.418012691805191e-05, "ema_decay": 0.998083, "it_s": 1.69, "data_frac": 0.412, "body": 0.00040598605817649514, "hand": 0.0005235624249326066, "loss": 0.00047496420040261}
|
| 111 |
+
{"event": "train", "step": 4250, "lr": 2.296795912722014e-05, "backbone_lr": 2.296795912722014e-05, "ema_decay": 0.9981, "it_s": 1.03, "data_frac": 0.619, "body": 0.0003895751084201038, "hand": 0.000501455144258216, "loss": 0.0004552114091347903}
|
| 112 |
+
HB_INLOOP ode_mlp step 4250: a15v3/train10 nMSE 0.0036 (body_target 0.0056 hands 0.0028) on 362 queries, 2.6 s
|
| 113 |
+
{"event": "train", "step": 4300, "lr": 2.1777839056661554e-05, "backbone_lr": 2.1777839056661554e-05, "ema_decay": 0.998116, "it_s": 1.13, "data_frac": 0.498, "body": 0.000393288399791345, "hand": 0.0005004149384330958, "loss": 0.00045613598194904625}
|
| 114 |
+
{"event": "train", "step": 4350, "lr": 2.061073738537635e-05, "backbone_lr": 2.061073738537635e-05, "ema_decay": 0.998133, "it_s": 1.67, "data_frac": 0.4, "body": 0.000369826527312398, "hand": 0.0005011487513547763, "loss": 0.0004468689090572298}
|
| 115 |
+
{"event": "train", "step": 4400, "lr": 1.946760601822809e-05, "backbone_lr": 1.946760601822809e-05, "ema_decay": 0.998149, "it_s": 1.2, "data_frac": 0.555, "body": 0.0003561410791007802, "hand": 0.0005148308101342991, "loss": 0.00044923906389158217}
|
| 116 |
+
{"event": "train", "step": 4450, "lr": 1.8349377309556486e-05, "backbone_lr": 1.8349377309556486e-05, "ema_decay": 0.998164, "it_s": 1.15, "data_frac": 0.564, "body": 0.0003720097767654806, "hand": 0.0005403754254803061, "loss": 0.0004707842972129583}
|
| 117 |
+
{"event": "train", "step": 4500, "lr": 1.725696330273575e-05, "backbone_lr": 1.725696330273575e-05, "ema_decay": 0.99818, "it_s": 1.29, "data_frac": 0.518, "body": 0.0003757041390053928, "hand": 0.0005172225495334715, "loss": 0.0004587282851571217}
|
| 118 |
+
HB_INLOOP ode_mlp step 4500: a15v3/train10 nMSE 0.0035 (body_target 0.0054 hands 0.0027) on 362 queries, 1.3 s
|
| 119 |
+
{"event": "train", "step": 4550, "lr": 1.619125498629904e-05, "backbone_lr": 1.619125498629904e-05, "ema_decay": 0.998195, "it_s": 1.07, "data_frac": 0.587, "body": 0.0003765748004661873, "hand": 0.0005201461794786155, "loss": 0.0004608033545082435}
|
| 120 |
+
{"event": "train", "step": 4600, "lr": 1.5153121567235335e-05, "backbone_lr": 1.5153121567235335e-05, "ema_decay": 0.998209, "it_s": 1.64, "data_frac": 0.377, "body": 0.00037570591317489746, "hand": 0.000484347571618855, "loss": 0.00043944236007519065}
|
| 121 |
+
{"event": "train", "step": 4650, "lr": 1.414340976205183e-05, "backbone_lr": 1.414340976205183e-05, "ema_decay": 0.998224, "it_s": 1.19, "data_frac": 0.568, "body": 0.000365269630565308, "hand": 0.0005022452853154391, "loss": 0.0004456286906497553}
|
| 122 |
+
{"event": "train", "step": 4700, "lr": 1.3162943106179749e-05, "backbone_lr": 1.3162943106179749e-05, "ema_decay": 0.998238, "it_s": 2.48, "data_frac": 0.144, "body": 0.0003562510944902897, "hand": 0.00046015394444111736, "loss": 0.00041720744222402574}
|
| 123 |
+
{"event": "train", "step": 4750, "lr": 1.2212521282287092e-05, "backbone_lr": 1.2212521282287092e-05, "ema_decay": 0.998252, "it_s": 0.88, "data_frac": 0.669, "body": 0.000351097576203756, "hand": 0.0004569012689171359, "loss": 0.00041316909017041325}
|
| 124 |
+
HB_INLOOP ode_mlp step 4750: a15v3/train10 nMSE 0.0034 (body_target 0.0054 hands 0.0026) on 362 queries, 2.5 s
|
| 125 |
+
{"event": "train", "step": 4800, "lr": 1.1292919468045877e-05, "backbone_lr": 1.1292919468045877e-05, "ema_decay": 0.998266, "it_s": 1.58, "data_frac": 0.327, "body": 0.00036064456740859897, "hand": 0.00047667149628978224, "loss": 0.0004287137091159821}
|
| 126 |
+
{"event": "train", "step": 4850, "lr": 1.0404887703886251e-05, "backbone_lr": 1.0404887703886251e-05, "ema_decay": 0.998279, "it_s": 1.62, "data_frac": 0.435, "body": 0.0003531818895135075, "hand": 0.00047310271009337157, "loss": 0.00042353545024525374}
|
| 127 |
+
{"event": "train", "step": 4900, "lr": 9.549150281252633e-06, "backbone_lr": 9.549150281252633e-06, "ema_decay": 0.998292, "it_s": 1.09, "data_frac": 0.606, "body": 0.00035288386745378373, "hand": 0.0004396939859725535, "loss": 0.0004038124816725031}
|
| 128 |
+
{"event": "train", "step": 4950, "lr": 8.7264051518613e-06, "backbone_lr": 8.7264051518613e-06, "ema_decay": 0.998305, "it_s": 1.15, "data_frac": 0.573, "body": 0.00034328964538872243, "hand": 0.00046722416882403193, "loss": 0.00041599790507461875}
|
| 129 |
+
{"event": "train", "step": 5000, "lr": 7.937323358440935e-06, "backbone_lr": 7.937323358440935e-06, "ema_decay": 0.998318, "it_s": 2.15, "data_frac": 0.223, "body": 0.000343332719639875, "hand": 0.00045573414070531725, "loss": 0.0004092748987022787}
|
| 130 |
+
HB_INLOOP ode_mlp step 5000: a15v3/train10 nMSE 0.0033 (body_target 0.0053 hands 0.0025) on 362 queries, 2.5 s
|
| 131 |
+
{"event": "save", "step": 5000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-005000", "mse": 0.00033353304024785757, "mse_row0": 0.00029920373344793916, "mse_body_target": 0.0002915423538070172, "mse_hands": 0.0003631174040492624}
|
| 132 |
+
{"event": "train", "step": 5050, "lr": 7.182548487420554e-06, "backbone_lr": 7.182548487420554e-06, "ema_decay": 0.99833, "it_s": 0.95, "data_frac": 0.504, "body": 0.0003375531017081812, "hand": 0.000442089072894305, "loss": 0.00039888088125735523}
|
| 133 |
+
{"event": "train", "step": 5100, "lr": 6.462696144011149e-06, "backbone_lr": 6.462696144011149e-06, "ema_decay": 0.998343, "it_s": 1.62, "data_frac": 0.386, "body": 0.0003365023445803672, "hand": 0.00042316507373470815, "loss": 0.0003873444884084165}
|
| 134 |
+
{"event": "train", "step": 5150, "lr": 5.778353450109286e-06, "backbone_lr": 5.778353450109286e-06, "ema_decay": 0.998355, "it_s": 1.55, "data_frac": 0.451, "body": 0.0003398943319916725, "hand": 0.0004292125499341637, "loss": 0.00039229436195455493}
|
| 135 |
+
{"event": "train", "step": 5200, "lr": 5.13007856543209e-06, "backbone_lr": 5.13007856543209e-06, "ema_decay": 0.998367, "it_s": 1.9, "data_frac": 0.321, "body": 0.00033922937291208655, "hand": 0.00040756987989880143, "loss": 0.0003793224779656157}
|
| 136 |
+
{"event": "train", "step": 5250, "lr": 4.5184002322740785e-06, "backbone_lr": 4.5184002322740785e-06, "ema_decay": 0.998378, "it_s": 0.85, "data_frac": 0.679, "body": 0.0003333256993209943, "hand": 0.00042171769600827245, "loss": 0.0003851823473814875}
|
| 137 |
+
HB_INLOOP ode_mlp step 5250: a15v3/train10 nMSE 0.0033 (body_target 0.0052 hands 0.0025) on 362 queries, 2.5 s
|
| 138 |
+
{"event": "train", "step": 5300, "lr": 3.9438173442575e-06, "backbone_lr": 3.9438173442575e-06, "ema_decay": 0.99839, "it_s": 1.88, "data_frac": 0.235, "body": 0.0003338591899955645, "hand": 0.0004290421592304483, "loss": 0.00038969987654127183}
|
| 139 |
+
{"event": "train", "step": 5350, "lr": 3.406798539427386e-06, "backbone_lr": 3.406798539427386e-06, "ema_decay": 0.998401, "it_s": 1.5, "data_frac": 0.455, "body": 0.00033384227310307324, "hand": 0.0004197469539940357, "loss": 0.0003842396952677518}
|
| 140 |
+
{"event": "train", "step": 5400, "lr": 2.9077818180237693e-06, "backbone_lr": 2.9077818180237693e-06, "ema_decay": 0.998412, "it_s": 1.07, "data_frac": 0.61, "body": 0.0003343547781696543, "hand": 0.0004218385700369254, "loss": 0.0003856786101823673}
|
| 141 |
+
{"event": "train", "step": 5450, "lr": 2.4471741852423237e-06, "backbone_lr": 2.4471741852423237e-06, "ema_decay": 0.998423, "it_s": 1.4, "data_frac": 0.492, "body": 0.0003244561632163823, "hand": 0.00042440087825525554, "loss": 0.0003830904042115435}
|
| 142 |
+
{"event": "train", "step": 5500, "lr": 2.0253513192751373e-06, "backbone_lr": 2.0253513192751373e-06, "ema_decay": 0.998434, "it_s": 1.88, "data_frac": 0.313, "body": 0.0003334176557837054, "hand": 0.000415673705865629, "loss": 0.00038167454593349246}
|
| 143 |
+
HB_INLOOP ode_mlp step 5500: a15v3/train10 nMSE 0.0032 (body_target 0.0051 hands 0.0024) on 362 queries, 2.4 s
|
| 144 |
+
{"event": "train", "step": 5550, "lr": 1.6426572649021476e-06, "backbone_lr": 1.6426572649021476e-06, "ema_decay": 0.998445, "it_s": 0.88, "data_frac": 0.645, "body": 0.0003271696506999433, "hand": 0.0004157233593286946, "loss": 0.00037912116618826986}
|
| 145 |
+
{"event": "train", "step": 5600, "lr": 1.2994041528833266e-06, "backbone_lr": 1.2994041528833266e-06, "ema_decay": 0.998455, "it_s": 1.79, "data_frac": 0.358, "body": 0.00032870883762370795, "hand": 0.0004151110869133845, "loss": 0.00037939816480502485}
|
| 146 |
+
{"event": "train", "step": 5650, "lr": 9.958719453803278e-07, "backbone_lr": 9.958719453803278e-07, "ema_decay": 0.998465, "it_s": 1.5, "data_frac": 0.453, "body": 0.00032628645421937106, "hand": 0.0004234639590140432, "loss": 0.0003832972660893574}
|
| 147 |
+
{"event": "train", "step": 5700, "lr": 7.323082076153509e-07, "backbone_lr": 7.323082076153509e-07, "ema_decay": 0.998475, "it_s": 1.66, "data_frac": 0.404, "body": 0.0003237018850632012, "hand": 0.0004125738044967875, "loss": 0.00037584008416160944}
|
| 148 |
+
{"event": "train", "step": 5750, "lr": 5.089279059533658e-07, "backbone_lr": 5.089279059533658e-07, "ema_decay": 0.998485, "it_s": 0.98, "data_frac": 0.654, "body": 0.000326011145953089, "hand": 0.0004190678580198437, "loss": 0.00038060442835558206}
|
| 149 |
+
HB_INLOOP ode_mlp step 5750: a15v3/train10 nMSE 0.0031 (body_target 0.0051 hands 0.0023) on 362 queries, 1.4 s
|
| 150 |
+
{"event": "train", "step": 5800, "lr": 3.2591323257248893e-07, "backbone_lr": 3.2591323257248893e-07, "ema_decay": 0.998495, "it_s": 2.02, "data_frac": 0.212, "body": 0.00032178887689951805, "hand": 0.0004141000739764422, "loss": 0.00037594478810206057}
|
| 151 |
+
{"event": "train", "step": 5850, "lr": 1.8341345686543332e-07, "backbone_lr": 1.8341345686543332e-07, "ema_decay": 0.998505, "it_s": 1.16, "data_frac": 0.576, "body": 0.00032644716091454026, "hand": 0.00040040140505880116, "loss": 0.00036983365891501307}
|
| 152 |
+
{"event": "train", "step": 5900, "lr": 8.15448036932176e-08, "backbone_lr": 8.15448036932176e-08, "ema_decay": 0.998514, "it_s": 1.16, "data_frac": 0.598, "body": 0.0003280899371020496, "hand": 0.00040426979714538905, "loss": 0.000372782131889835}
|
| 153 |
+
{"event": "train", "step": 5950, "lr": 2.0390358590538504e-08, "backbone_lr": 2.0390358590538504e-08, "ema_decay": 0.998524, "it_s": 1.52, "data_frac": 0.446, "body": 0.0003264900227077305, "hand": 0.0004052475921344012, "loss": 0.00037269447406288234}
|
| 154 |
+
{"event": "train", "step": 6000, "lr": 0.0, "backbone_lr": 0.0, "ema_decay": 0.998533, "it_s": 1.58, "data_frac": 0.408, "body": 0.0003203001111978665, "hand": 0.0004032066999934614, "loss": 0.0003689386497717351}
|
| 155 |
+
HB_INLOOP ode_mlp step 6000: a15v3/train10 nMSE 0.0031 (body_target 0.0051 hands 0.0023) on 362 queries, 2.5 s
|
| 156 |
+
{"event": "save", "step": 6000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-006000", "mse": 0.00031560371280647814, "mse_row0": 0.00028117926558479667, "mse_body_target": 0.00027806719299405813, "mse_hands": 0.00034204983967356384}
|
| 157 |
+
{"event": "done", "step": 6000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/final"}
|
| 158 |
+
[W1130 10:53:40.936149473 AllocatorConfig.cpp:28] Warning: PYTORCH_CUDA_ALLOC_CONF is deprecated, use PYTORCH_ALLOC_CONF instead (function operator())
|
a15-hitting-nail/b512-s6000/step-006000/training_records/train_log.jsonl
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"event": "train", "step": 50, "lr": 1e-05, "backbone_lr": 1e-05, "ema_decay": 0.946005, "it_s": 0.86, "data_frac": 0.617, "body": 0.008942945385351777, "hand": 0.3302614486217499, "loss": 0.19744980543851853}
|
| 2 |
+
{"event": "train", "step": 100, "lr": 2e-05, "backbone_lr": 2e-05, "ema_decay": 0.968138, "it_s": 1.14, "data_frac": 0.578, "body": 0.006747324839234352, "hand": 0.25558522701263425, "loss": 0.15273223280906678}
|
| 3 |
+
{"event": "train", "step": 150, "lr": 3e-05, "backbone_lr": 3e-05, "ema_decay": 0.976552, "it_s": 2.18, "data_frac": 0.229, "body": 0.0055722920689731835, "hand": 0.1470387800037861, "loss": 0.08856596678495407}
|
| 4 |
+
{"event": "train", "step": 200, "lr": 4e-05, "backbone_lr": 4e-05, "ema_decay": 0.981126, "it_s": 1.13, "data_frac": 0.594, "body": 0.004564231224358082, "hand": 0.07240551561117173, "loss": 0.04436445217579603}
|
| 5 |
+
{"event": "train", "step": 250, "lr": 5e-05, "backbone_lr": 5e-05, "ema_decay": 0.984047, "it_s": 1.16, "data_frac": 0.57, "body": 0.0037299791583791375, "hand": 0.03218183197081089, "loss": 0.02042173333466053}
|
| 6 |
+
{"event": "train", "step": 300, "lr": 6e-05, "backbone_lr": 6e-05, "ema_decay": 0.986093, "it_s": 1.56, "data_frac": 0.169, "body": 0.0033659244468435645, "hand": 0.01831059854477644, "loss": 0.012133466936647892}
|
| 7 |
+
{"event": "train", "step": 350, "lr": 7e-05, "backbone_lr": 7e-05, "ema_decay": 0.987615, "it_s": 1.1, "data_frac": 0.601, "body": 0.0030159280309453606, "hand": 0.011139878761023283, "loss": 0.0077819792833179234}
|
| 8 |
+
{"event": "train", "step": 400, "lr": 8e-05, "backbone_lr": 8e-05, "ema_decay": 0.988799, "it_s": 1.6, "data_frac": 0.386, "body": 0.0026762836240231992, "hand": 0.0091291434597224, "loss": 0.006461961576715112}
|
| 9 |
+
{"event": "train", "step": 450, "lr": 9e-05, "backbone_lr": 9e-05, "ema_decay": 0.989748, "it_s": 1.35, "data_frac": 0.49, "body": 0.0026077809650450947, "hand": 0.007485613878816366, "loss": 0.005469443099573254}
|
| 10 |
+
{"event": "train", "step": 500, "lr": 0.0001, "backbone_lr": 0.0001, "ema_decay": 0.990528, "it_s": 2.29, "data_frac": 0.201, "body": 0.0024297181935980915, "hand": 0.005665757423266768, "loss": 0.004328194684349001}
|
| 11 |
+
{"event": "train", "step": 550, "lr": 9.997960964140947e-05, "backbone_lr": 9.997960964140947e-05, "ema_decay": 0.991183, "it_s": 0.85, "data_frac": 0.659, "body": 0.0020884548826143145, "hand": 0.004592315433546901, "loss": 0.0035573864961043}
|
| 12 |
+
{"event": "train", "step": 600, "lr": 9.991845519630678e-05, "backbone_lr": 9.991845519630678e-05, "ema_decay": 0.991741, "it_s": 1.64, "data_frac": 0.413, "body": 0.0018456398113630712, "hand": 0.004312180448323488, "loss": 0.0032926770392805336}
|
| 13 |
+
{"event": "train", "step": 650, "lr": 9.981658654313457e-05, "backbone_lr": 9.981658654313457e-05, "ema_decay": 0.992223, "it_s": 1.63, "data_frac": 0.42, "body": 0.0018125665839761496, "hand": 0.003818772449158132, "loss": 0.0029895408032462}
|
| 14 |
+
{"event": "train", "step": 700, "lr": 9.967408676742751e-05, "backbone_lr": 9.967408676742751e-05, "ema_decay": 0.992644, "it_s": 1.07, "data_frac": 0.616, "body": 0.0016731315362267197, "hand": 0.003281355774961412, "loss": 0.0026166231464594602}
|
| 15 |
+
{"event": "train", "step": 750, "lr": 9.949107209404665e-05, "backbone_lr": 9.949107209404665e-05, "ema_decay": 0.993015, "it_s": 1.3, "data_frac": 0.528, "body": 0.0016651901695877314, "hand": 0.003089994341135025, "loss": 0.0025010753516107797}
|
| 16 |
+
{"event": "train", "step": 800, "lr": 9.926769179238466e-05, "backbone_lr": 9.926769179238466e-05, "ema_decay": 0.993346, "it_s": 2.35, "data_frac": 0.085, "body": 0.00152487067040056, "hand": 0.0026287291711196304, "loss": 0.0021724677016027273}
|
| 17 |
+
{"event": "train", "step": 850, "lr": 9.900412805461967e-05, "backbone_lr": 9.900412805461967e-05, "ema_decay": 0.993642, "it_s": 0.88, "data_frac": 0.684, "body": 0.0015072407876141369, "hand": 0.002494825855828822, "loss": 0.0020866240770556032}
|
| 18 |
+
{"event": "train", "step": 900, "lr": 9.870059584711668e-05, "backbone_lr": 9.870059584711668e-05, "ema_decay": 0.993909, "it_s": 1.63, "data_frac": 0.401, "body": 0.0014303367724642158, "hand": 0.00247648349031806, "loss": 0.0020440762233920394}
|
| 19 |
+
{"event": "train", "step": 950, "lr": 9.835734273509786e-05, "backbone_lr": 9.835734273509786e-05, "ema_decay": 0.994151, "it_s": 1.64, "data_frac": 0.414, "body": 0.0013269083225168287, "hand": 0.0021265064249746503, "loss": 0.0017960059107281269}
|
| 20 |
+
{"event": "train", "step": 1000, "lr": 9.797464868072488e-05, "backbone_lr": 9.797464868072488e-05, "ema_decay": 0.994372, "it_s": 1.69, "data_frac": 0.39, "body": 0.0012169216247275472, "hand": 0.0019452105415984989, "loss": 0.0016441844985820354}
|
| 21 |
+
{"event": "save", "step": 1000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-001000", "mse": 0.0017163170268759131, "mse_row0": 0.00215937290340662, "mse_body_target": 0.0012588517274707556, "mse_hands": 0.002038622507825494}
|
| 22 |
+
{"event": "train", "step": 1050, "lr": 9.755282581475769e-05, "backbone_lr": 9.755282581475769e-05, "ema_decay": 0.994575, "it_s": 0.86, "data_frac": 0.635, "body": 0.0011750341171864421, "hand": 0.0018878440093249083, "loss": 0.001593215954490006}
|
| 23 |
+
{"event": "train", "step": 1100, "lr": 9.709221818197624e-05, "backbone_lr": 9.709221818197624e-05, "ema_decay": 0.994761, "it_s": 2.47, "data_frac": 0.124, "body": 0.0011224224977195263, "hand": 0.0017926020896993577, "loss": 0.001515594555530697}
|
| 24 |
+
{"event": "train", "step": 1150, "lr": 9.659320146057262e-05, "backbone_lr": 9.659320146057262e-05, "ema_decay": 0.994933, "it_s": 1.19, "data_frac": 0.555, "body": 0.0010389454732649028, "hand": 0.0017810889217071235, "loss": 0.0014743363205343485}
|
| 25 |
+
{"event": "train", "step": 1200, "lr": 9.60561826557425e-05, "backbone_lr": 9.60561826557425e-05, "ema_decay": 0.995092, "it_s": 1.07, "data_frac": 0.614, "body": 0.001086637122789398, "hand": 0.0019845795491710305, "loss": 0.0016134300571866334}
|
| 26 |
+
{"event": "train", "step": 1250, "lr": 9.548159976772592e-05, "backbone_lr": 9.548159976772592e-05, "ema_decay": 0.99524, "it_s": 1.66, "data_frac": 0.411, "body": 0.001092224856838584, "hand": 0.0018250014004297555, "loss": 0.0015221204631961883}
|
| 27 |
+
{"event": "train", "step": 1300, "lr": 9.486992143456792e-05, "backbone_lr": 9.486992143456792e-05, "ema_decay": 0.995378, "it_s": 1.6, "data_frac": 0.316, "body": 0.0010014975909143687, "hand": 0.0018754642060957848, "loss": 0.001514224715065211}
|
| 28 |
+
{"event": "train", "step": 1350, "lr": 9.422164654989072e-05, "backbone_lr": 9.422164654989072e-05, "ema_decay": 0.995507, "it_s": 0.88, "data_frac": 0.693, "body": 0.001055228553013876, "hand": 0.0015021352702751756, "loss": 0.001317413852084428}
|
| 29 |
+
{"event": "train", "step": 1400, "lr": 9.353730385598887e-05, "backbone_lr": 9.353730385598887e-05, "ema_decay": 0.995628, "it_s": 2.43, "data_frac": 0.15, "body": 0.0009641726093832404, "hand": 0.001468106887768954, "loss": 0.0012598140817135573}
|
| 30 |
+
{"event": "train", "step": 1450, "lr": 9.281745151257946e-05, "backbone_lr": 9.281745151257946e-05, "ema_decay": 0.995742, "it_s": 1.23, "data_frac": 0.539, "body": 0.0009674629289656878, "hand": 0.0016307994374074042, "loss": 0.0013566203857772053}
|
| 31 |
+
{"event": "train", "step": 1500, "lr": 9.206267664155907e-05, "backbone_lr": 9.206267664155907e-05, "ema_decay": 0.995849, "it_s": 1.71, "data_frac": 0.381, "body": 0.0009065269015263766, "hand": 0.0015863592154346407, "loss": 0.001305361888371408}
|
| 32 |
+
{"event": "train", "step": 1550, "lr": 9.12735948481387e-05, "backbone_lr": 9.12735948481387e-05, "ema_decay": 0.99595, "it_s": 1.11, "data_frac": 0.579, "body": 0.0008638363110367209, "hand": 0.0015562999434769154, "loss": 0.0012700816779397427}
|
| 33 |
+
{"event": "train", "step": 1600, "lr": 9.045084971874738e-05, "backbone_lr": 9.045084971874738e-05, "ema_decay": 0.996045, "it_s": 1.62, "data_frac": 0.393, "body": 0.000807761384639889, "hand": 0.001372241147328168, "loss": 0.0011389228806365282}
|
| 34 |
+
{"event": "train", "step": 1650, "lr": 8.959511229611376e-05, "backbone_lr": 8.959511229611376e-05, "ema_decay": 0.996136, "it_s": 1.17, "data_frac": 0.571, "body": 0.0008194958930835128, "hand": 0.0013295661099255085, "loss": 0.0011187371122650801}
|
| 35 |
+
{"event": "train", "step": 1700, "lr": 8.870708053195413e-05, "backbone_lr": 8.870708053195413e-05, "ema_decay": 0.996221, "it_s": 1.35, "data_frac": 0.531, "body": 0.0008120186906307936, "hand": 0.0012922482087742537, "loss": 0.0010937533678952605}
|
| 36 |
+
{"event": "train", "step": 1750, "lr": 8.778747871771292e-05, "backbone_lr": 8.778747871771292e-05, "ema_decay": 0.996303, "it_s": 1.3, "data_frac": 0.518, "body": 0.0007558859512209892, "hand": 0.0012708400259725749, "loss": 0.0010579923656769098}
|
| 37 |
+
{"event": "train", "step": 1800, "lr": 8.683705689382024e-05, "backbone_lr": 8.683705689382024e-05, "ema_decay": 0.99638, "it_s": 1.59, "data_frac": 0.312, "body": 0.0007787608669605106, "hand": 0.0012314797274302692, "loss": 0.0010443559649866074}
|
| 38 |
+
{"event": "train", "step": 1850, "lr": 8.585659023794818e-05, "backbone_lr": 8.585659023794818e-05, "ema_decay": 0.996454, "it_s": 1.1, "data_frac": 0.613, "body": 0.0007491814310196787, "hand": 0.0012241607962641865, "loss": 0.0010278360184747726}
|
| 39 |
+
{"event": "train", "step": 1900, "lr": 8.484687843276469e-05, "backbone_lr": 8.484687843276469e-05, "ema_decay": 0.996524, "it_s": 1.78, "data_frac": 0.336, "body": 0.0007135725987609476, "hand": 0.0010860987042542547, "loss": 0.000932121267542243}
|
| 40 |
+
{"event": "train", "step": 1950, "lr": 8.380874501370097e-05, "backbone_lr": 8.380874501370097e-05, "ema_decay": 0.996591, "it_s": 1.14, "data_frac": 0.567, "body": 0.0006694926228374243, "hand": 0.001135620146524161, "loss": 0.0009429541253484785}
|
| 41 |
+
{"event": "train", "step": 2000, "lr": 8.274303669726426e-05, "backbone_lr": 8.274303669726426e-05, "ema_decay": 0.996655, "it_s": 1.62, "data_frac": 0.416, "body": 0.000658004746073857, "hand": 0.0010714721074327827, "loss": 0.0009005722869187594}
|
| 42 |
+
{"event": "save", "step": 2000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-002000", "mse": 0.0007933821761980653, "mse_row0": 0.0007886386010795832, "mse_body_target": 0.0006141253979876637, "mse_hands": 0.0009196768514811993}
|
| 43 |
+
{"event": "train", "step": 2050, "lr": 8.165062269044353e-05, "backbone_lr": 8.165062269044353e-05, "ema_decay": 0.996716, "it_s": 0.96, "data_frac": 0.6, "body": 0.0007074783684220165, "hand": 0.0010987928067333996, "loss": 0.0009370495309121906}
|
| 44 |
+
{"event": "train", "step": 2100, "lr": 8.053239398177191e-05, "backbone_lr": 8.053239398177191e-05, "ema_decay": 0.996775, "it_s": 1.57, "data_frac": 0.404, "body": 0.0006614706211257726, "hand": 0.001085988701088354, "loss": 0.0009105212474241853}
|
| 45 |
+
{"event": "train", "step": 2150, "lr": 7.938926261462366e-05, "backbone_lr": 7.938926261462366e-05, "ema_decay": 0.996832, "it_s": 1.08, "data_frac": 0.597, "body": 0.0006319638050626963, "hand": 0.001095063815591857, "loss": 0.0009036491659935564}
|
| 46 |
+
{"event": "train", "step": 2200, "lr": 7.822216094333847e-05, "backbone_lr": 7.822216094333847e-05, "ema_decay": 0.996886, "it_s": 1.18, "data_frac": 0.588, "body": 0.0006247472309041768, "hand": 0.001115795464720577, "loss": 0.0009128288889769465}
|
| 47 |
+
{"event": "train", "step": 2250, "lr": 7.703204087277988e-05, "backbone_lr": 7.703204087277988e-05, "ema_decay": 0.996938, "it_s": 1.15, "data_frac": 0.573, "body": 0.0006531203095801175, "hand": 0.0009896997141186149, "loss": 0.0008505802520085127}
|
| 48 |
+
{"event": "train", "step": 2300, "lr": 7.58198730819481e-05, "backbone_lr": 7.58198730819481e-05, "ema_decay": 0.996988, "it_s": 1.56, "data_frac": 0.327, "body": 0.0006136822269763798, "hand": 0.0008950322587043046, "loss": 0.0007787409238517284}
|
| 49 |
+
{"event": "train", "step": 2350, "lr": 7.45866462322802e-05, "backbone_lr": 7.45866462322802e-05, "ema_decay": 0.997036, "it_s": 2.16, "data_frac": 0.252, "body": 0.0005930536275263876, "hand": 0.0009056566923391074, "loss": 0.0007764474477153271}
|
| 50 |
+
{"event": "train", "step": 2400, "lr": 7.333336616128369e-05, "backbone_lr": 7.333336616128369e-05, "ema_decay": 0.997083, "it_s": 0.88, "data_frac": 0.669, "body": 0.0005634581431513652, "hand": 0.0008994523365981877, "loss": 0.0007605747575871646}
|
| 51 |
+
{"event": "train", "step": 2450, "lr": 7.206105506216106e-05, "backbone_lr": 7.206105506216106e-05, "ema_decay": 0.997128, "it_s": 1.15, "data_frac": 0.57, "body": 0.0005693358602002263, "hand": 0.0009543616510927677, "loss": 0.0007952176744583994}
|
| 52 |
+
{"event": "train", "step": 2500, "lr": 7.077075065009433e-05, "backbone_lr": 7.077075065009433e-05, "ema_decay": 0.997171, "it_s": 2.33, "data_frac": 0.189, "body": 0.0006045211851596833, "hand": 0.0009191927092615515, "loss": 0.0007891285000368953}
|
| 53 |
+
{"event": "train", "step": 2550, "lr": 6.946350531586959e-05, "backbone_lr": 6.946350531586959e-05, "ema_decay": 0.997212, "it_s": 1.1, "data_frac": 0.567, "body": 0.0005841109773609787, "hand": 0.0008409372309688478, "loss": 0.0007347823935560882}
|
| 54 |
+
{"event": "train", "step": 2600, "lr": 6.814038526753205e-05, "backbone_lr": 6.814038526753205e-05, "ema_decay": 0.997253, "it_s": 1.13, "data_frac": 0.563, "body": 0.0005770360655151307, "hand": 0.0008521500008646398, "loss": 0.0007384362537413836}
|
| 55 |
+
{"event": "train", "step": 2650, "lr": 6.680246966077151e-05, "backbone_lr": 6.680246966077151e-05, "ema_decay": 0.997292, "it_s": 1.72, "data_frac": 0.394, "body": 0.0005476687784539536, "hand": 0.0008734220825135707, "loss": 0.0007387774076778442}
|
| 56 |
+
{"event": "train", "step": 2700, "lr": 6.545084971874738e-05, "backbone_lr": 6.545084971874738e-05, "ema_decay": 0.997329, "it_s": 1.09, "data_frac": 0.615, "body": 0.0005280505400151014, "hand": 0.0008943112625274807, "loss": 0.0007429235184099525}
|
| 57 |
+
{"event": "train", "step": 2750, "lr": 6.408662784207149e-05, "backbone_lr": 6.408662784207149e-05, "ema_decay": 0.997366, "it_s": 1.65, "data_frac": 0.392, "body": 0.00051177445682697, "hand": 0.0008820914418902248, "loss": 0.0007290271052625031}
|
| 58 |
+
{"event": "train", "step": 2800, "lr": 6.271091670967436e-05, "backbone_lr": 6.271091670967436e-05, "ema_decay": 0.997401, "it_s": 1.4, "data_frac": 0.438, "body": 0.0005245043232571334, "hand": 0.0008231646672356874, "loss": 0.0006997184094507247}
|
| 59 |
+
{"event": "train", "step": 2850, "lr": 6.132483837128823e-05, "backbone_lr": 6.132483837128823e-05, "ema_decay": 0.997436, "it_s": 2.06, "data_frac": 0.275, "body": 0.0005264287337195128, "hand": 0.0007814527279697359, "loss": 0.0006760428263805807}
|
| 60 |
+
{"event": "train", "step": 2900, "lr": 5.992952333228728e-05, "backbone_lr": 5.992952333228728e-05, "ema_decay": 0.997469, "it_s": 0.88, "data_frac": 0.67, "body": 0.0005308353173313663, "hand": 0.0007779459375888109, "loss": 0.0006758068990893661}
|
| 61 |
+
{"event": "train", "step": 2950, "lr": 5.85261096316312e-05, "backbone_lr": 5.85261096316312e-05, "ema_decay": 0.997501, "it_s": 1.75, "data_frac": 0.37, "body": 0.0005252961441874504, "hand": 0.0007247084320988506, "loss": 0.0006422846997156739}
|
| 62 |
+
{"event": "train", "step": 3000, "lr": 5.7115741913664264e-05, "backbone_lr": 5.7115741913664264e-05, "ema_decay": 0.997532, "it_s": 1.56, "data_frac": 0.441, "body": 0.0004900711914524437, "hand": 0.0007640412694308907, "loss": 0.0006508003186900169}
|
| 63 |
+
{"event": "save", "step": 3000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-003000", "mse": 0.0004984563565813005, "mse_row0": 0.000446044810814783, "mse_body_target": 0.0004049523558933288, "mse_hands": 0.0005643342155963182}
|
| 64 |
+
{"event": "train", "step": 3050, "lr": 5.569957049452703e-05, "backbone_lr": 5.569957049452703e-05, "ema_decay": 0.997563, "it_s": 1.05, "data_frac": 0.564, "body": 0.0004779635975137353, "hand": 0.0008413845172617584, "loss": 0.0006911705539096146}
|
| 65 |
+
{"event": "train", "step": 3100, "lr": 5.427875042394199e-05, "backbone_lr": 5.427875042394199e-05, "ema_decay": 0.997592, "it_s": 1.37, "data_frac": 0.51, "body": 0.0005011160700814798, "hand": 0.0007804550684522838, "loss": 0.0006649949692655355}
|
| 66 |
+
{"event": "train", "step": 3150, "lr": 5.2854440543138406e-05, "backbone_lr": 5.2854440543138406e-05, "ema_decay": 0.997621, "it_s": 2.0, "data_frac": 0.271, "body": 0.0004890032217372209, "hand": 0.0007047525735106319, "loss": 0.0006155761948321015}
|
| 67 |
+
{"event": "train", "step": 3200, "lr": 5.142780253968481e-05, "backbone_lr": 5.142780253968481e-05, "ema_decay": 0.997649, "it_s": 0.87, "data_frac": 0.69, "body": 0.00047219492902513595, "hand": 0.000682897450751625, "loss": 0.0005958070885390043}
|
| 68 |
+
{"event": "train", "step": 3250, "lr": 5e-05, "backbone_lr": 5e-05, "ema_decay": 0.997676, "it_s": 1.71, "data_frac": 0.366, "body": 0.00045039135089609773, "hand": 0.0006521196273388341, "loss": 0.0005687386222416535}
|
| 69 |
+
{"event": "train", "step": 3300, "lr": 4.85721974603152e-05, "backbone_lr": 4.85721974603152e-05, "ema_decay": 0.997703, "it_s": 1.58, "data_frac": 0.383, "body": 0.0004630569403525442, "hand": 0.0006559932098025456, "loss": 0.0005762462283018977}
|
| 70 |
+
{"event": "train", "step": 3350, "lr": 4.71455594568616e-05, "backbone_lr": 4.71455594568616e-05, "ema_decay": 0.997728, "it_s": 1.7, "data_frac": 0.388, "body": 0.00045203640474937855, "hand": 0.000682547768810764, "loss": 0.0005872697522863745}
|
| 71 |
+
{"event": "train", "step": 3400, "lr": 4.5721249576058027e-05, "backbone_lr": 4.5721249576058027e-05, "ema_decay": 0.997754, "it_s": 0.96, "data_frac": 0.634, "body": 0.00046082111191935837, "hand": 0.0006859189982060343, "loss": 0.0005928785563446581}
|
| 72 |
+
{"event": "train", "step": 3450, "lr": 4.4300429505472976e-05, "backbone_lr": 4.4300429505472976e-05, "ema_decay": 0.997778, "it_s": 2.18, "data_frac": 0.216, "body": 0.0004479140107287094, "hand": 0.0005788117507472634, "loss": 0.0005247073678765446}
|
| 73 |
+
{"event": "train", "step": 3500, "lr": 4.288425808633575e-05, "backbone_lr": 4.288425808633575e-05, "ema_decay": 0.997802, "it_s": 1.16, "data_frac": 0.578, "body": 0.0004414545849431306, "hand": 0.0007016194309107959, "loss": 0.0005940846394514665}
|
| 74 |
+
{"event": "train", "step": 3550, "lr": 4.147389036836881e-05, "backbone_lr": 4.147389036836881e-05, "ema_decay": 0.997825, "it_s": 1.08, "data_frac": 0.586, "body": 0.00045463186339475217, "hand": 0.0006085024605272338, "loss": 0.0005449026310816407}
|
| 75 |
+
{"event": "train", "step": 3600, "lr": 4.007047666771274e-05, "backbone_lr": 4.007047666771274e-05, "ema_decay": 0.997848, "it_s": 1.65, "data_frac": 0.407, "body": 0.00044191966590005903, "hand": 0.0005940950260264799, "loss": 0.0005311958905076608}
|
| 76 |
+
{"event": "train", "step": 3650, "lr": 3.8675161628711776e-05, "backbone_lr": 3.8675161628711776e-05, "ema_decay": 0.99787, "it_s": 1.6, "data_frac": 0.412, "body": 0.00041872578556649385, "hand": 0.0006186846434138715, "loss": 0.0005360349966213107}
|
| 77 |
+
{"event": "train", "step": 3700, "lr": 3.728908329032567e-05, "backbone_lr": 3.728908329032567e-05, "ema_decay": 0.997892, "it_s": 0.94, "data_frac": 0.669, "body": 0.0004368418117519468, "hand": 0.0006334184680599719, "loss": 0.0005521667975699529}
|
| 78 |
+
{"event": "train", "step": 3750, "lr": 3.591337215792852e-05, "backbone_lr": 3.591337215792852e-05, "ema_decay": 0.997913, "it_s": 2.33, "data_frac": 0.152, "body": 0.0004359503189334646, "hand": 0.000591104095801711, "loss": 0.0005269738793140278}
|
| 79 |
+
{"event": "train", "step": 3800, "lr": 3.4549150281252636e-05, "backbone_lr": 3.4549150281252636e-05, "ema_decay": 0.997933, "it_s": 1.15, "data_frac": 0.51, "body": 0.0003970919590210542, "hand": 0.0005600943043828011, "loss": 0.0004927200131351128}
|
| 80 |
+
{"event": "train", "step": 3850, "lr": 3.3197530339228487e-05, "backbone_lr": 3.3197530339228487e-05, "ema_decay": 0.997954, "it_s": 1.69, "data_frac": 0.382, "body": 0.0004095749434782192, "hand": 0.0005571305664489046, "loss": 0.000496140923933126}
|
| 81 |
+
{"event": "train", "step": 3900, "lr": 3.1859614732467954e-05, "backbone_lr": 3.1859614732467954e-05, "ema_decay": 0.997973, "it_s": 1.09, "data_frac": 0.614, "body": 0.0003992964333156124, "hand": 0.0005694213206879795, "loss": 0.0004991030471865088}
|
| 82 |
+
{"event": "train", "step": 3950, "lr": 3.053649468413043e-05, "backbone_lr": 3.053649468413043e-05, "ema_decay": 0.997993, "it_s": 1.59, "data_frac": 0.391, "body": 0.0003940245317062363, "hand": 0.0005459436023375019, "loss": 0.00048315039370208976}
|
| 83 |
+
{"event": "train", "step": 4000, "lr": 2.9229249349905684e-05, "backbone_lr": 2.9229249349905684e-05, "ema_decay": 0.998011, "it_s": 1.1, "data_frac": 0.573, "body": 0.00039856961055193094, "hand": 0.0005240307678468525, "loss": 0.0004721735027851537}
|
| 84 |
+
{"event": "save", "step": 4000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-004000", "mse": 0.0003833608061540872, "mse_row0": 0.00033442804124206305, "mse_body_target": 0.0003294014895800501, "mse_hands": 0.00042137756827287376}
|
| 85 |
+
{"event": "train", "step": 4050, "lr": 2.7938944937838923e-05, "backbone_lr": 2.7938944937838923e-05, "ema_decay": 0.99803, "it_s": 1.35, "data_frac": 0.417, "body": 0.00039594879373908046, "hand": 0.0005113364104181528, "loss": 0.00046364287205506114}
|
| 86 |
+
{"event": "train", "step": 4100, "lr": 2.6666633838716314e-05, "backbone_lr": 2.6666633838716314e-05, "ema_decay": 0.998048, "it_s": 1.15, "data_frac": 0.561, "body": 0.00038807772449217737, "hand": 0.0005819700140273199, "loss": 0.0005018278764327988}
|
| 87 |
+
{"event": "train", "step": 4150, "lr": 2.5413353767719805e-05, "backbone_lr": 2.5413353767719805e-05, "ema_decay": 0.998066, "it_s": 1.58, "data_frac": 0.41, "body": 0.0003966153180226684, "hand": 0.0005639858433278277, "loss": 0.0004948060330934823}
|
| 88 |
+
{"event": "train", "step": 4200, "lr": 2.418012691805191e-05, "backbone_lr": 2.418012691805191e-05, "ema_decay": 0.998083, "it_s": 1.69, "data_frac": 0.412, "body": 0.00040598605817649514, "hand": 0.0005235624249326066, "loss": 0.00047496420040261}
|
| 89 |
+
{"event": "train", "step": 4250, "lr": 2.296795912722014e-05, "backbone_lr": 2.296795912722014e-05, "ema_decay": 0.9981, "it_s": 1.03, "data_frac": 0.619, "body": 0.0003895751084201038, "hand": 0.000501455144258216, "loss": 0.0004552114091347903}
|
| 90 |
+
{"event": "train", "step": 4300, "lr": 2.1777839056661554e-05, "backbone_lr": 2.1777839056661554e-05, "ema_decay": 0.998116, "it_s": 1.13, "data_frac": 0.498, "body": 0.000393288399791345, "hand": 0.0005004149384330958, "loss": 0.00045613598194904625}
|
| 91 |
+
{"event": "train", "step": 4350, "lr": 2.061073738537635e-05, "backbone_lr": 2.061073738537635e-05, "ema_decay": 0.998133, "it_s": 1.67, "data_frac": 0.4, "body": 0.000369826527312398, "hand": 0.0005011487513547763, "loss": 0.0004468689090572298}
|
| 92 |
+
{"event": "train", "step": 4400, "lr": 1.946760601822809e-05, "backbone_lr": 1.946760601822809e-05, "ema_decay": 0.998149, "it_s": 1.2, "data_frac": 0.555, "body": 0.0003561410791007802, "hand": 0.0005148308101342991, "loss": 0.00044923906389158217}
|
| 93 |
+
{"event": "train", "step": 4450, "lr": 1.8349377309556486e-05, "backbone_lr": 1.8349377309556486e-05, "ema_decay": 0.998164, "it_s": 1.15, "data_frac": 0.564, "body": 0.0003720097767654806, "hand": 0.0005403754254803061, "loss": 0.0004707842972129583}
|
| 94 |
+
{"event": "train", "step": 4500, "lr": 1.725696330273575e-05, "backbone_lr": 1.725696330273575e-05, "ema_decay": 0.99818, "it_s": 1.29, "data_frac": 0.518, "body": 0.0003757041390053928, "hand": 0.0005172225495334715, "loss": 0.0004587282851571217}
|
| 95 |
+
{"event": "train", "step": 4550, "lr": 1.619125498629904e-05, "backbone_lr": 1.619125498629904e-05, "ema_decay": 0.998195, "it_s": 1.07, "data_frac": 0.587, "body": 0.0003765748004661873, "hand": 0.0005201461794786155, "loss": 0.0004608033545082435}
|
| 96 |
+
{"event": "train", "step": 4600, "lr": 1.5153121567235335e-05, "backbone_lr": 1.5153121567235335e-05, "ema_decay": 0.998209, "it_s": 1.64, "data_frac": 0.377, "body": 0.00037570591317489746, "hand": 0.000484347571618855, "loss": 0.00043944236007519065}
|
| 97 |
+
{"event": "train", "step": 4650, "lr": 1.414340976205183e-05, "backbone_lr": 1.414340976205183e-05, "ema_decay": 0.998224, "it_s": 1.19, "data_frac": 0.568, "body": 0.000365269630565308, "hand": 0.0005022452853154391, "loss": 0.0004456286906497553}
|
| 98 |
+
{"event": "train", "step": 4700, "lr": 1.3162943106179749e-05, "backbone_lr": 1.3162943106179749e-05, "ema_decay": 0.998238, "it_s": 2.48, "data_frac": 0.144, "body": 0.0003562510944902897, "hand": 0.00046015394444111736, "loss": 0.00041720744222402574}
|
| 99 |
+
{"event": "train", "step": 4750, "lr": 1.2212521282287092e-05, "backbone_lr": 1.2212521282287092e-05, "ema_decay": 0.998252, "it_s": 0.88, "data_frac": 0.669, "body": 0.000351097576203756, "hand": 0.0004569012689171359, "loss": 0.00041316909017041325}
|
| 100 |
+
{"event": "train", "step": 4800, "lr": 1.1292919468045877e-05, "backbone_lr": 1.1292919468045877e-05, "ema_decay": 0.998266, "it_s": 1.58, "data_frac": 0.327, "body": 0.00036064456740859897, "hand": 0.00047667149628978224, "loss": 0.0004287137091159821}
|
| 101 |
+
{"event": "train", "step": 4850, "lr": 1.0404887703886251e-05, "backbone_lr": 1.0404887703886251e-05, "ema_decay": 0.998279, "it_s": 1.62, "data_frac": 0.435, "body": 0.0003531818895135075, "hand": 0.00047310271009337157, "loss": 0.00042353545024525374}
|
| 102 |
+
{"event": "train", "step": 4900, "lr": 9.549150281252633e-06, "backbone_lr": 9.549150281252633e-06, "ema_decay": 0.998292, "it_s": 1.09, "data_frac": 0.606, "body": 0.00035288386745378373, "hand": 0.0004396939859725535, "loss": 0.0004038124816725031}
|
| 103 |
+
{"event": "train", "step": 4950, "lr": 8.7264051518613e-06, "backbone_lr": 8.7264051518613e-06, "ema_decay": 0.998305, "it_s": 1.15, "data_frac": 0.573, "body": 0.00034328964538872243, "hand": 0.00046722416882403193, "loss": 0.00041599790507461875}
|
| 104 |
+
{"event": "train", "step": 5000, "lr": 7.937323358440935e-06, "backbone_lr": 7.937323358440935e-06, "ema_decay": 0.998318, "it_s": 2.15, "data_frac": 0.223, "body": 0.000343332719639875, "hand": 0.00045573414070531725, "loss": 0.0004092748987022787}
|
| 105 |
+
{"event": "save", "step": 5000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-005000", "mse": 0.00033353304024785757, "mse_row0": 0.00029920373344793916, "mse_body_target": 0.0002915423538070172, "mse_hands": 0.0003631174040492624}
|
| 106 |
+
{"event": "train", "step": 5050, "lr": 7.182548487420554e-06, "backbone_lr": 7.182548487420554e-06, "ema_decay": 0.99833, "it_s": 0.95, "data_frac": 0.504, "body": 0.0003375531017081812, "hand": 0.000442089072894305, "loss": 0.00039888088125735523}
|
| 107 |
+
{"event": "train", "step": 5100, "lr": 6.462696144011149e-06, "backbone_lr": 6.462696144011149e-06, "ema_decay": 0.998343, "it_s": 1.62, "data_frac": 0.386, "body": 0.0003365023445803672, "hand": 0.00042316507373470815, "loss": 0.0003873444884084165}
|
| 108 |
+
{"event": "train", "step": 5150, "lr": 5.778353450109286e-06, "backbone_lr": 5.778353450109286e-06, "ema_decay": 0.998355, "it_s": 1.55, "data_frac": 0.451, "body": 0.0003398943319916725, "hand": 0.0004292125499341637, "loss": 0.00039229436195455493}
|
| 109 |
+
{"event": "train", "step": 5200, "lr": 5.13007856543209e-06, "backbone_lr": 5.13007856543209e-06, "ema_decay": 0.998367, "it_s": 1.9, "data_frac": 0.321, "body": 0.00033922937291208655, "hand": 0.00040756987989880143, "loss": 0.0003793224779656157}
|
| 110 |
+
{"event": "train", "step": 5250, "lr": 4.5184002322740785e-06, "backbone_lr": 4.5184002322740785e-06, "ema_decay": 0.998378, "it_s": 0.85, "data_frac": 0.679, "body": 0.0003333256993209943, "hand": 0.00042171769600827245, "loss": 0.0003851823473814875}
|
| 111 |
+
{"event": "train", "step": 5300, "lr": 3.9438173442575e-06, "backbone_lr": 3.9438173442575e-06, "ema_decay": 0.99839, "it_s": 1.88, "data_frac": 0.235, "body": 0.0003338591899955645, "hand": 0.0004290421592304483, "loss": 0.00038969987654127183}
|
| 112 |
+
{"event": "train", "step": 5350, "lr": 3.406798539427386e-06, "backbone_lr": 3.406798539427386e-06, "ema_decay": 0.998401, "it_s": 1.5, "data_frac": 0.455, "body": 0.00033384227310307324, "hand": 0.0004197469539940357, "loss": 0.0003842396952677518}
|
| 113 |
+
{"event": "train", "step": 5400, "lr": 2.9077818180237693e-06, "backbone_lr": 2.9077818180237693e-06, "ema_decay": 0.998412, "it_s": 1.07, "data_frac": 0.61, "body": 0.0003343547781696543, "hand": 0.0004218385700369254, "loss": 0.0003856786101823673}
|
| 114 |
+
{"event": "train", "step": 5450, "lr": 2.4471741852423237e-06, "backbone_lr": 2.4471741852423237e-06, "ema_decay": 0.998423, "it_s": 1.4, "data_frac": 0.492, "body": 0.0003244561632163823, "hand": 0.00042440087825525554, "loss": 0.0003830904042115435}
|
| 115 |
+
{"event": "train", "step": 5500, "lr": 2.0253513192751373e-06, "backbone_lr": 2.0253513192751373e-06, "ema_decay": 0.998434, "it_s": 1.88, "data_frac": 0.313, "body": 0.0003334176557837054, "hand": 0.000415673705865629, "loss": 0.00038167454593349246}
|
| 116 |
+
{"event": "train", "step": 5550, "lr": 1.6426572649021476e-06, "backbone_lr": 1.6426572649021476e-06, "ema_decay": 0.998445, "it_s": 0.88, "data_frac": 0.645, "body": 0.0003271696506999433, "hand": 0.0004157233593286946, "loss": 0.00037912116618826986}
|
| 117 |
+
{"event": "train", "step": 5600, "lr": 1.2994041528833266e-06, "backbone_lr": 1.2994041528833266e-06, "ema_decay": 0.998455, "it_s": 1.79, "data_frac": 0.358, "body": 0.00032870883762370795, "hand": 0.0004151110869133845, "loss": 0.00037939816480502485}
|
| 118 |
+
{"event": "train", "step": 5650, "lr": 9.958719453803278e-07, "backbone_lr": 9.958719453803278e-07, "ema_decay": 0.998465, "it_s": 1.5, "data_frac": 0.453, "body": 0.00032628645421937106, "hand": 0.0004234639590140432, "loss": 0.0003832972660893574}
|
| 119 |
+
{"event": "train", "step": 5700, "lr": 7.323082076153509e-07, "backbone_lr": 7.323082076153509e-07, "ema_decay": 0.998475, "it_s": 1.66, "data_frac": 0.404, "body": 0.0003237018850632012, "hand": 0.0004125738044967875, "loss": 0.00037584008416160944}
|
| 120 |
+
{"event": "train", "step": 5750, "lr": 5.089279059533658e-07, "backbone_lr": 5.089279059533658e-07, "ema_decay": 0.998485, "it_s": 0.98, "data_frac": 0.654, "body": 0.000326011145953089, "hand": 0.0004190678580198437, "loss": 0.00038060442835558206}
|
| 121 |
+
{"event": "train", "step": 5800, "lr": 3.2591323257248893e-07, "backbone_lr": 3.2591323257248893e-07, "ema_decay": 0.998495, "it_s": 2.02, "data_frac": 0.212, "body": 0.00032178887689951805, "hand": 0.0004141000739764422, "loss": 0.00037594478810206057}
|
| 122 |
+
{"event": "train", "step": 5850, "lr": 1.8341345686543332e-07, "backbone_lr": 1.8341345686543332e-07, "ema_decay": 0.998505, "it_s": 1.16, "data_frac": 0.576, "body": 0.00032644716091454026, "hand": 0.00040040140505880116, "loss": 0.00036983365891501307}
|
| 123 |
+
{"event": "train", "step": 5900, "lr": 8.15448036932176e-08, "backbone_lr": 8.15448036932176e-08, "ema_decay": 0.998514, "it_s": 1.16, "data_frac": 0.598, "body": 0.0003280899371020496, "hand": 0.00040426979714538905, "loss": 0.000372782131889835}
|
| 124 |
+
{"event": "train", "step": 5950, "lr": 2.0390358590538504e-08, "backbone_lr": 2.0390358590538504e-08, "ema_decay": 0.998524, "it_s": 1.52, "data_frac": 0.446, "body": 0.0003264900227077305, "hand": 0.0004052475921344012, "loss": 0.00037269447406288234}
|
| 125 |
+
{"event": "train", "step": 6000, "lr": 0.0, "backbone_lr": 0.0, "ema_decay": 0.998533, "it_s": 1.58, "data_frac": 0.408, "body": 0.0003203001111978665, "hand": 0.0004032066999934614, "loss": 0.0003689386497717351}
|
| 126 |
+
{"event": "save", "step": 6000, "checkpoint": "/mnt/vepfs/baijiaqi/hb_team01_20261130/runs/a15v3-ode_mlp-b512-s6000/checkpoints/step-006000", "mse": 0.00031560371280647814, "mse_row0": 0.00028117926558479667, "mse_body_target": 0.00027806719299405813, "mse_hands": 0.00034204983967356384}
|