Polish rendered instructions and retain all official aliases and reproducible media revision
Browse files- README.md +42 -42
- data/all.parquet +2 -2
- data/long_horizon.parquet +2 -2
- data/pick.parquet +2 -2
- data/place.parquet +2 -2
- data/task_000000.parquet +2 -2
- data/task_000070.parquet +2 -2
- data/task_000080.parquet +2 -2
- data/task_000135.parquet +2 -2
- data/task_000196.parquet +2 -2
- data/task_000246.parquet +2 -2
- data/task_010235.parquet +2 -2
- data/task_010588.parquet +2 -2
- data/task_042175.parquet +2 -2
- data/task_060569.parquet +2 -2
- data/task_060993.parquet +2 -2
- data/task_077667.parquet +2 -2
- data/task_111207.parquet +2 -2
- provenance/media_publication.json +3 -0
- provenance/samples.json +12 -12
- provenance/tasks.json +36 -36
- scripts/build_browser.py +94 -94
- scripts/build_examples.py +9 -2
README.md
CHANGED
|
@@ -113,12 +113,12 @@ DOM has 3 task families, not 3 task_index values: 140,932 structured instruction
|
|
| 113 |
|
| 114 |
| 官方 task_index | Task / instruction scenario | 分类 | 直接浏览 |
|
| 115 |
|---|---|---|---|
|
| 116 |
-
| 0 | Long Horizon ·
|
| 117 |
-
| 70 | Long Horizon ·
|
| 118 |
-
| 80 | Long Horizon ·
|
| 119 |
-
| 135 | Long Horizon ·
|
| 120 |
-
| 196 | Long Horizon ·
|
| 121 |
-
| 246 | Long Horizon ·
|
| 122 |
| 10235 | Pick · the moving object with the lower initial velocity | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=10235) |
|
| 123 |
| 10588 | Pick · the object in the middle from left to right at the start | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=10588) |
|
| 124 |
| 42175 | Pick · the object moving in the robot's forward-left direction | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=42175) |
|
|
@@ -132,9 +132,9 @@ DOM has 3 task families, not 3 task_index values: 140,932 structured instruction
|
|
| 132 |
| 140471 | Place · black cylinder water bottle | Place | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=140471) |
|
| 133 |
| 140594 | Place · water bottle | Place | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=140594) |
|
| 134 |
|
| 135 |
-
## task_index=0 · Long Horizon ·
|
| 136 |
|
| 137 |
-
**Instruction:** Pick up the entire set of objects and place
|
| 138 |
|
| 139 |
**Description:** Official DOM simulation scenario long-horizon_franka_apple00d_O03_00772319_1dc5-tr. Object/container aliases are preserved in the metadata.
|
| 140 |
|
|
@@ -160,7 +160,7 @@ DOM has 3 task families, not 3 task_index values: 140,932 structured instruction
|
|
| 160 |
}
|
| 161 |
```
|
| 162 |
|
| 163 |
-
|
| 164 |
|
| 165 |
**episode_index=0** · 194 frames / 7.76 s
|
| 166 |
|
|
@@ -168,9 +168,9 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 168 |
|
| 169 |
[同步 MP4](media/task_000000/episode_000000/synchronized.mp4) · [opst_cam MP4](media/task_000000/episode_000000/opst_cam.mp4) · [wrist_cam MP4](media/task_000000/episode_000000/wrist_cam.mp4) · [side_cam MP4](media/task_000000/episode_000000/side_cam.mp4) · [官方轨迹](trajectories/task_000000/episode_000000.parquet)
|
| 170 |
|
| 171 |
-
## task_index=135 · Long Horizon ·
|
| 172 |
|
| 173 |
-
**Instruction:** Pick up the entire set of objects and place
|
| 174 |
|
| 175 |
**Description:** Official DOM simulation scenario long-horizon_franka_apple08d_O03_00819030_04bc-tr. Object/container aliases are preserved in the metadata.
|
| 176 |
|
|
@@ -195,7 +195,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 195 |
}
|
| 196 |
```
|
| 197 |
|
| 198 |
-
|
| 199 |
|
| 200 |
**episode_index=200** · 227 frames / 9.08 s
|
| 201 |
|
|
@@ -203,9 +203,9 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 203 |
|
| 204 |
[同步 MP4](media/task_000135/episode_000200/synchronized.mp4) · [opst_cam MP4](media/task_000135/episode_000200/opst_cam.mp4) · [wrist_cam MP4](media/task_000135/episode_000200/wrist_cam.mp4) · [side_cam MP4](media/task_000135/episode_000200/side_cam.mp4) · [官方轨迹](trajectories/task_000135/episode_000200.parquet)
|
| 205 |
|
| 206 |
-
## task_index=196 · Long Horizon ·
|
| 207 |
|
| 208 |
-
**Instruction:** Pick up the entire set of objects and place
|
| 209 |
|
| 210 |
**Description:** Official DOM simulation scenario long-horizon_franka_apple14d_O03_00888109_ee3b-tr. Object/container aliases are preserved in the metadata.
|
| 211 |
|
|
@@ -230,7 +230,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 230 |
}
|
| 231 |
```
|
| 232 |
|
| 233 |
-
|
| 234 |
|
| 235 |
**episode_index=400** · 205 frames / 8.20 s
|
| 236 |
|
|
@@ -238,7 +238,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 238 |
|
| 239 |
[同步 MP4](media/task_000196/episode_000400/synchronized.mp4) · [opst_cam MP4](media/task_000196/episode_000400/opst_cam.mp4) · [wrist_cam MP4](media/task_000196/episode_000400/wrist_cam.mp4) · [side_cam MP4](media/task_000196/episode_000400/side_cam.mp4) · [官方轨迹](trajectories/task_000196/episode_000400.parquet)
|
| 240 |
|
| 241 |
-
## task_index=246 · Long Horizon ·
|
| 242 |
|
| 243 |
**Instruction:** Pick up the fusiform avocado and place it in/on the box.
|
| 244 |
|
|
@@ -271,7 +271,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 271 |
}
|
| 272 |
```
|
| 273 |
|
| 274 |
-
|
| 275 |
|
| 276 |
**episode_index=600** · 220 frames / 8.80 s
|
| 277 |
|
|
@@ -279,9 +279,9 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 279 |
|
| 280 |
[同步 MP4](media/task_000246/episode_000600/synchronized.mp4) · [opst_cam MP4](media/task_000246/episode_000600/opst_cam.mp4) · [wrist_cam MP4](media/task_000246/episode_000600/wrist_cam.mp4) · [side_cam MP4](media/task_000246/episode_000600/side_cam.mp4) · [官方轨迹](trajectories/task_000246/episode_000600.parquet)
|
| 281 |
|
| 282 |
-
## task_index=80 · Long Horizon ·
|
| 283 |
|
| 284 |
-
**Instruction:** Pick up the entire set of objects and place
|
| 285 |
|
| 286 |
**Description:** Official DOM simulation scenario long-horizon_franka_avocado04d_O03_00878095_8d75-tr. Object/container aliases are preserved in the metadata.
|
| 287 |
|
|
@@ -307,7 +307,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 307 |
}
|
| 308 |
```
|
| 309 |
|
| 310 |
-
|
| 311 |
|
| 312 |
**episode_index=800** · 232 frames / 9.28 s
|
| 313 |
|
|
@@ -315,9 +315,9 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 315 |
|
| 316 |
[同步 MP4](media/task_000080/episode_000800/synchronized.mp4) · [opst_cam MP4](media/task_000080/episode_000800/opst_cam.mp4) · [wrist_cam MP4](media/task_000080/episode_000800/wrist_cam.mp4) · [side_cam MP4](media/task_000080/episode_000800/side_cam.mp4) · [官方轨迹](trajectories/task_000080/episode_000800.parquet)
|
| 317 |
|
| 318 |
-
## task_index=70 · Long Horizon ·
|
| 319 |
|
| 320 |
-
**Instruction:** Pick up the entire set of objects and place
|
| 321 |
|
| 322 |
**Description:** Official DOM simulation scenario long-horizon_franka_beer01d_O03_00794991_f96b-tr. Object/container aliases are preserved in the metadata.
|
| 323 |
|
|
@@ -343,7 +343,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 343 |
}
|
| 344 |
```
|
| 345 |
|
| 346 |
-
|
| 347 |
|
| 348 |
**episode_index=1000** · 209 frames / 8.36 s
|
| 349 |
|
|
@@ -353,7 +353,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 353 |
|
| 354 |
## task_index=10235 · Pick · the moving object with the lower initial velocity
|
| 355 |
|
| 356 |
-
**Instruction:** Pick up the
|
| 357 |
|
| 358 |
**Description:** Official DOM simulation scenario pick_franka_avocado01d_O03_01140437_873f-tr. Object/container aliases are preserved in the metadata.
|
| 359 |
|
|
@@ -383,7 +383,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 383 |
}
|
| 384 |
```
|
| 385 |
|
| 386 |
-
|
| 387 |
|
| 388 |
**episode_index=16460** · 83 frames / 3.32 s
|
| 389 |
|
|
@@ -393,7 +393,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 393 |
|
| 394 |
## task_index=10588 · Pick · the object in the middle from left to right at the start
|
| 395 |
|
| 396 |
-
**Instruction:** Pick up the
|
| 397 |
|
| 398 |
**Description:** Official DOM simulation scenario pick_franka_avocado02d_O04_01042912_e0d2-tr. Object/container aliases are preserved in the metadata.
|
| 399 |
|
|
@@ -423,7 +423,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 423 |
}
|
| 424 |
```
|
| 425 |
|
| 426 |
-
|
| 427 |
|
| 428 |
**episode_index=16837** · 89 frames / 3.56 s
|
| 429 |
|
|
@@ -433,7 +433,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 433 |
|
| 434 |
## task_index=42175 · Pick · the object moving in the robot's forward-left direction
|
| 435 |
|
| 436 |
-
**Instruction:** Pick up the
|
| 437 |
|
| 438 |
**Description:** Official DOM simulation scenario pick_franka_lime00d_O03_01174264_30d7-tr. Object/container aliases are preserved in the metadata.
|
| 439 |
|
|
@@ -462,7 +462,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 462 |
}
|
| 463 |
```
|
| 464 |
|
| 465 |
-
|
| 466 |
|
| 467 |
**episode_index=51235** · 87 frames / 3.48 s
|
| 468 |
|
|
@@ -505,7 +505,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 505 |
}
|
| 506 |
```
|
| 507 |
|
| 508 |
-
|
| 509 |
|
| 510 |
**episode_index=51658** · 87 frames / 3.48 s
|
| 511 |
|
|
@@ -515,7 +515,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 515 |
|
| 516 |
## task_index=60569 · Pick · the object that is closest to the robot's left at the start
|
| 517 |
|
| 518 |
-
**Instruction:** Pick up the
|
| 519 |
|
| 520 |
**Description:** Official DOM simulation scenario pick_franka_tangerine00d_O04_01057450_ee6d-tr. Object/container aliases are preserved in the metadata.
|
| 521 |
|
|
@@ -541,7 +541,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 541 |
}
|
| 542 |
```
|
| 543 |
|
| 544 |
-
|
| 545 |
|
| 546 |
**episode_index=71104** · 95 frames / 3.80 s
|
| 547 |
|
|
@@ -551,7 +551,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 551 |
|
| 552 |
## task_index=60993 · Pick · the object that is closest to the robot's left at the start
|
| 553 |
|
| 554 |
-
**Instruction:** Pick up the
|
| 555 |
|
| 556 |
**Description:** Official DOM simulation scenario pick_franka_tangerine03d_O04_01097900_93cd-tr. Object/container aliases are preserved in the metadata.
|
| 557 |
|
|
@@ -577,7 +577,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 577 |
}
|
| 578 |
```
|
| 579 |
|
| 580 |
-
|
| 581 |
|
| 582 |
**episode_index=71578** · 85 frames / 3.40 s
|
| 583 |
|
|
@@ -621,7 +621,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 621 |
}
|
| 622 |
```
|
| 623 |
|
| 624 |
-
|
| 625 |
|
| 626 |
**episode_index=98470** · 111 frames / 4.44 s
|
| 627 |
|
|
@@ -631,7 +631,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 631 |
|
| 632 |
## task_index=77667 · Place · beer bottle
|
| 633 |
|
| 634 |
-
**Instruction:** Pick up the beer bottle and place it in/on the
|
| 635 |
|
| 636 |
**Description:** Official DOM simulation scenario place_franka_beer03d_O04_00340177_6e45-tr. Object/container aliases are preserved in the metadata.
|
| 637 |
|
|
@@ -661,7 +661,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 661 |
}
|
| 662 |
```
|
| 663 |
|
| 664 |
-
|
| 665 |
|
| 666 |
**episode_index=98947** · 117 frames / 4.68 s
|
| 667 |
|
|
@@ -696,7 +696,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 696 |
}
|
| 697 |
```
|
| 698 |
|
| 699 |
-
|
| 700 |
|
| 701 |
**episode_index=153474** · 108 frames / 4.32 s
|
| 702 |
|
|
@@ -706,7 +706,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 706 |
|
| 707 |
## task_index=111207 · Place · lemon
|
| 708 |
|
| 709 |
-
**Instruction:** Pick up the lemon and place it in/on the
|
| 710 |
|
| 711 |
**Description:** Official DOM simulation scenario place_franka_lemon06d_O04_00340971_5a64-tr. Object/container aliases are preserved in the metadata.
|
| 712 |
|
|
@@ -732,7 +732,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 732 |
}
|
| 733 |
```
|
| 734 |
|
| 735 |
-
|
| 736 |
|
| 737 |
**episode_index=154278** · 110 frames / 4.40 s
|
| 738 |
|
|
@@ -774,7 +774,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 774 |
}
|
| 775 |
```
|
| 776 |
|
| 777 |
-
|
| 778 |
|
| 779 |
**episode_index=206737** · 124 frames / 4.96 s
|
| 780 |
|
|
@@ -816,7 +816,7 @@ Readable deterministic rendering of structured official instruction metadata; th
|
|
| 816 |
}
|
| 817 |
```
|
| 818 |
|
| 819 |
-
|
| 820 |
|
| 821 |
**episode_index=207108** · 105 frames / 4.20 s
|
| 822 |
|
|
|
|
| 113 |
|
| 114 |
| 官方 task_index | Task / instruction scenario | 分类 | 直接浏览 |
|
| 115 |
|---|---|---|---|
|
| 116 |
+
| 0 | Long Horizon · white box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=0) |
|
| 117 |
+
| 70 | Long Horizon · white box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=70) |
|
| 118 |
+
| 80 | Long Horizon · box with Tencent Logo | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=80) |
|
| 119 |
+
| 135 | Long Horizon · plastic box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=135) |
|
| 120 |
+
| 196 | Long Horizon · box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=196) |
|
| 121 |
+
| 246 | Long Horizon · box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=246) |
|
| 122 |
| 10235 | Pick · the moving object with the lower initial velocity | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=10235) |
|
| 123 |
| 10588 | Pick · the object in the middle from left to right at the start | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=10588) |
|
| 124 |
| 42175 | Pick · the object moving in the robot's forward-left direction | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=42175) |
|
|
|
|
| 132 |
| 140471 | Place · black cylinder water bottle | Place | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=140471) |
|
| 133 |
| 140594 | Place · water bottle | Place | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=140594) |
|
| 134 |
|
| 135 |
+
## task_index=0 · Long Horizon · white box
|
| 136 |
|
| 137 |
+
**Instruction:** Pick up the entire set of objects and place them in/on the white box.
|
| 138 |
|
| 139 |
**Description:** Official DOM simulation scenario long-horizon_franka_apple00d_O03_00772319_1dc5-tr. Object/container aliases are preserved in the metadata.
|
| 140 |
|
|
|
|
| 160 |
}
|
| 161 |
```
|
| 162 |
|
| 163 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 164 |
|
| 165 |
**episode_index=0** · 194 frames / 7.76 s
|
| 166 |
|
|
|
|
| 168 |
|
| 169 |
[同步 MP4](media/task_000000/episode_000000/synchronized.mp4) · [opst_cam MP4](media/task_000000/episode_000000/opst_cam.mp4) · [wrist_cam MP4](media/task_000000/episode_000000/wrist_cam.mp4) · [side_cam MP4](media/task_000000/episode_000000/side_cam.mp4) · [官方轨迹](trajectories/task_000000/episode_000000.parquet)
|
| 170 |
|
| 171 |
+
## task_index=135 · Long Horizon · plastic box
|
| 172 |
|
| 173 |
+
**Instruction:** Pick up the entire set of objects and place them in/on the plastic box.
|
| 174 |
|
| 175 |
**Description:** Official DOM simulation scenario long-horizon_franka_apple08d_O03_00819030_04bc-tr. Object/container aliases are preserved in the metadata.
|
| 176 |
|
|
|
|
| 195 |
}
|
| 196 |
```
|
| 197 |
|
| 198 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 199 |
|
| 200 |
**episode_index=200** · 227 frames / 9.08 s
|
| 201 |
|
|
|
|
| 203 |
|
| 204 |
[同步 MP4](media/task_000135/episode_000200/synchronized.mp4) · [opst_cam MP4](media/task_000135/episode_000200/opst_cam.mp4) · [wrist_cam MP4](media/task_000135/episode_000200/wrist_cam.mp4) · [side_cam MP4](media/task_000135/episode_000200/side_cam.mp4) · [官方轨迹](trajectories/task_000135/episode_000200.parquet)
|
| 205 |
|
| 206 |
+
## task_index=196 · Long Horizon · box
|
| 207 |
|
| 208 |
+
**Instruction:** Pick up the entire set of objects and place them in/on the box.
|
| 209 |
|
| 210 |
**Description:** Official DOM simulation scenario long-horizon_franka_apple14d_O03_00888109_ee3b-tr. Object/container aliases are preserved in the metadata.
|
| 211 |
|
|
|
|
| 230 |
}
|
| 231 |
```
|
| 232 |
|
| 233 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 234 |
|
| 235 |
**episode_index=400** · 205 frames / 8.20 s
|
| 236 |
|
|
|
|
| 238 |
|
| 239 |
[同步 MP4](media/task_000196/episode_000400/synchronized.mp4) · [opst_cam MP4](media/task_000196/episode_000400/opst_cam.mp4) · [wrist_cam MP4](media/task_000196/episode_000400/wrist_cam.mp4) · [side_cam MP4](media/task_000196/episode_000400/side_cam.mp4) · [官方轨迹](trajectories/task_000196/episode_000400.parquet)
|
| 240 |
|
| 241 |
+
## task_index=246 · Long Horizon · box
|
| 242 |
|
| 243 |
**Instruction:** Pick up the fusiform avocado and place it in/on the box.
|
| 244 |
|
|
|
|
| 271 |
}
|
| 272 |
```
|
| 273 |
|
| 274 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 275 |
|
| 276 |
**episode_index=600** · 220 frames / 8.80 s
|
| 277 |
|
|
|
|
| 279 |
|
| 280 |
[同步 MP4](media/task_000246/episode_000600/synchronized.mp4) · [opst_cam MP4](media/task_000246/episode_000600/opst_cam.mp4) · [wrist_cam MP4](media/task_000246/episode_000600/wrist_cam.mp4) · [side_cam MP4](media/task_000246/episode_000600/side_cam.mp4) · [官方轨迹](trajectories/task_000246/episode_000600.parquet)
|
| 281 |
|
| 282 |
+
## task_index=80 · Long Horizon · box with Tencent Logo
|
| 283 |
|
| 284 |
+
**Instruction:** Pick up the entire set of objects and place them in/on the box with Tencent Logo.
|
| 285 |
|
| 286 |
**Description:** Official DOM simulation scenario long-horizon_franka_avocado04d_O03_00878095_8d75-tr. Object/container aliases are preserved in the metadata.
|
| 287 |
|
|
|
|
| 307 |
}
|
| 308 |
```
|
| 309 |
|
| 310 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 311 |
|
| 312 |
**episode_index=800** · 232 frames / 9.28 s
|
| 313 |
|
|
|
|
| 315 |
|
| 316 |
[同步 MP4](media/task_000080/episode_000800/synchronized.mp4) · [opst_cam MP4](media/task_000080/episode_000800/opst_cam.mp4) · [wrist_cam MP4](media/task_000080/episode_000800/wrist_cam.mp4) · [side_cam MP4](media/task_000080/episode_000800/side_cam.mp4) · [官方轨迹](trajectories/task_000080/episode_000800.parquet)
|
| 317 |
|
| 318 |
+
## task_index=70 · Long Horizon · white box
|
| 319 |
|
| 320 |
+
**Instruction:** Pick up the entire set of objects and place them in/on the white box.
|
| 321 |
|
| 322 |
**Description:** Official DOM simulation scenario long-horizon_franka_beer01d_O03_00794991_f96b-tr. Object/container aliases are preserved in the metadata.
|
| 323 |
|
|
|
|
| 343 |
}
|
| 344 |
```
|
| 345 |
|
| 346 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 347 |
|
| 348 |
**episode_index=1000** · 209 frames / 8.36 s
|
| 349 |
|
|
|
|
| 353 |
|
| 354 |
## task_index=10235 · Pick · the moving object with the lower initial velocity
|
| 355 |
|
| 356 |
+
**Instruction:** Pick up the moving object with the lower initial velocity.
|
| 357 |
|
| 358 |
**Description:** Official DOM simulation scenario pick_franka_avocado01d_O03_01140437_873f-tr. Object/container aliases are preserved in the metadata.
|
| 359 |
|
|
|
|
| 383 |
}
|
| 384 |
```
|
| 385 |
|
| 386 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 387 |
|
| 388 |
**episode_index=16460** · 83 frames / 3.32 s
|
| 389 |
|
|
|
|
| 393 |
|
| 394 |
## task_index=10588 · Pick · the object in the middle from left to right at the start
|
| 395 |
|
| 396 |
+
**Instruction:** Pick up the object in the middle from left to right at the start.
|
| 397 |
|
| 398 |
**Description:** Official DOM simulation scenario pick_franka_avocado02d_O04_01042912_e0d2-tr. Object/container aliases are preserved in the metadata.
|
| 399 |
|
|
|
|
| 423 |
}
|
| 424 |
```
|
| 425 |
|
| 426 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 427 |
|
| 428 |
**episode_index=16837** · 89 frames / 3.56 s
|
| 429 |
|
|
|
|
| 433 |
|
| 434 |
## task_index=42175 · Pick · the object moving in the robot's forward-left direction
|
| 435 |
|
| 436 |
+
**Instruction:** Pick up the object moving in the robot's forward-left direction.
|
| 437 |
|
| 438 |
**Description:** Official DOM simulation scenario pick_franka_lime00d_O03_01174264_30d7-tr. Object/container aliases are preserved in the metadata.
|
| 439 |
|
|
|
|
| 462 |
}
|
| 463 |
```
|
| 464 |
|
| 465 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 466 |
|
| 467 |
**episode_index=51235** · 87 frames / 3.48 s
|
| 468 |
|
|
|
|
| 505 |
}
|
| 506 |
```
|
| 507 |
|
| 508 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 509 |
|
| 510 |
**episode_index=51658** · 87 frames / 3.48 s
|
| 511 |
|
|
|
|
| 515 |
|
| 516 |
## task_index=60569 · Pick · the object that is closest to the robot's left at the start
|
| 517 |
|
| 518 |
+
**Instruction:** Pick up the object that is closest to the robot's left at the start.
|
| 519 |
|
| 520 |
**Description:** Official DOM simulation scenario pick_franka_tangerine00d_O04_01057450_ee6d-tr. Object/container aliases are preserved in the metadata.
|
| 521 |
|
|
|
|
| 541 |
}
|
| 542 |
```
|
| 543 |
|
| 544 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 545 |
|
| 546 |
**episode_index=71104** · 95 frames / 3.80 s
|
| 547 |
|
|
|
|
| 551 |
|
| 552 |
## task_index=60993 · Pick · the object that is closest to the robot's left at the start
|
| 553 |
|
| 554 |
+
**Instruction:** Pick up the object that is closest to the robot's left at the start.
|
| 555 |
|
| 556 |
**Description:** Official DOM simulation scenario pick_franka_tangerine03d_O04_01097900_93cd-tr. Object/container aliases are preserved in the metadata.
|
| 557 |
|
|
|
|
| 577 |
}
|
| 578 |
```
|
| 579 |
|
| 580 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 581 |
|
| 582 |
**episode_index=71578** · 85 frames / 3.40 s
|
| 583 |
|
|
|
|
| 621 |
}
|
| 622 |
```
|
| 623 |
|
| 624 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 625 |
|
| 626 |
**episode_index=98470** · 111 frames / 4.44 s
|
| 627 |
|
|
|
|
| 631 |
|
| 632 |
## task_index=77667 · Place · beer bottle
|
| 633 |
|
| 634 |
+
**Instruction:** Pick up the beer bottle and place it in/on the placemat that is closer to the robot's left at the start.
|
| 635 |
|
| 636 |
**Description:** Official DOM simulation scenario place_franka_beer03d_O04_00340177_6e45-tr. Object/container aliases are preserved in the metadata.
|
| 637 |
|
|
|
|
| 661 |
}
|
| 662 |
```
|
| 663 |
|
| 664 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 665 |
|
| 666 |
**episode_index=98947** · 117 frames / 4.68 s
|
| 667 |
|
|
|
|
| 696 |
}
|
| 697 |
```
|
| 698 |
|
| 699 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 700 |
|
| 701 |
**episode_index=153474** · 108 frames / 4.32 s
|
| 702 |
|
|
|
|
| 706 |
|
| 707 |
## task_index=111207 · Place · lemon
|
| 708 |
|
| 709 |
+
**Instruction:** Pick up the lemon and place it in/on the placemat farther from the robot mounting edge at the start.
|
| 710 |
|
| 711 |
**Description:** Official DOM simulation scenario place_franka_lemon06d_O04_00340971_5a64-tr. Object/container aliases are preserved in the metadata.
|
| 712 |
|
|
|
|
| 732 |
}
|
| 733 |
```
|
| 734 |
|
| 735 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 736 |
|
| 737 |
**episode_index=154278** · 110 frames / 4.40 s
|
| 738 |
|
|
|
|
| 774 |
}
|
| 775 |
```
|
| 776 |
|
| 777 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 778 |
|
| 779 |
**episode_index=206737** · 124 frames / 4.96 s
|
| 780 |
|
|
|
|
| 816 |
}
|
| 817 |
```
|
| 818 |
|
| 819 |
+
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
|
| 820 |
|
| 821 |
**episode_index=207108** · 105 frames / 4.20 s
|
| 822 |
|
data/all.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a01554916d695c62ae67b3151c762d6a4f3b2c835155db9578953fdda8b4c191
|
| 3 |
+
size 32214
|
data/long_horizon.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a943c26bf4308d82db34eabaeedfea939aa812072ce1e5548aae8c43b5671df5
|
| 3 |
+
size 23633
|
data/pick.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08900758c956a3c6e667f0f2d88a317bd33c0383d99207279adc4de32de55004
|
| 3 |
+
size 23999
|
data/place.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bce4a3a42e1494a0a1f72fbe69007aec7b3771cfd95040aa83d3292ce6cfb9ad
|
| 3 |
+
size 24769
|
data/task_000000.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:818133dc427126a2c3c7ef64f09db9552850f542064ef2ef342828dab15ed0e5
|
| 3 |
+
size 20046
|
data/task_000070.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a4e41b1f502a1f6c6dd88c7db8c34e8280a0eda0279e261a406a8a8e93ec3ec
|
| 3 |
+
size 20061
|
data/task_000080.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:decca79a8a0937a6a77583a0b2d2f6c61717110793eef9135e1d2c91a43f15e2
|
| 3 |
+
size 20254
|
data/task_000135.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:683d24d61f3d286d71478447a462b3e5a8b203519a164c6cffff27513a4ecb81
|
| 3 |
+
size 19913
|
data/task_000196.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:561e274e87cba08e80e2e78a6e35f112883f44fa23741901ffb33e0631696726
|
| 3 |
+
size 19836
|
data/task_000246.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b415588c7adf8bde5c8d52f874334255e3949cc5e62c16f5a3e267455c15c240
|
| 3 |
+
size 20959
|
data/task_010235.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e573a2765e8973a8215ce87a1a8f59f2e73c846fc5ff8a68afcdb6301460e0a5
|
| 3 |
+
size 20546
|
data/task_010588.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71267692bfb837dfb5198b3e8b84fddb913cf73636951f4c1730e6be103be786
|
| 3 |
+
size 21112
|
data/task_042175.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11471be5946588df92e655b86eabbfd3d7f9e5ef348aa4661d1c86c43af7f19b
|
| 3 |
+
size 20573
|
data/task_060569.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31563c92b6a2f5305e43706fcfb8fea1ba99145d03471498808fe7621a3bd4d9
|
| 3 |
+
size 19965
|
data/task_060993.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1936f9514db61cbf1f85568cc6cacff2214f153b2fdb68b9e4702717a7f5a269
|
| 3 |
+
size 20040
|
data/task_077667.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05404e73ba951823fbb6d835bb9ae21c69241a2c205991470e16ec0a54eb695c
|
| 3 |
+
size 21469
|
data/task_111207.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:008feb494b91e0e866d42110d2e035e215373101e90aec94c52ccf89ca1ebc1f
|
| 3 |
+
size 20835
|
provenance/media_publication.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_commit_sha": "adf2e2265215e821d178ba4d23c7d249a555bc01"
|
| 3 |
+
}
|
provenance/samples.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
"episode_index": 0,
|
| 6 |
"frame_count": 194,
|
| 7 |
"fps": 25,
|
| 8 |
-
"instruction": "Pick up the entire set of objects and place
|
| 9 |
"instruction_metadata": {
|
| 10 |
"task": "long_horizon",
|
| 11 |
"objects": [
|
|
@@ -142,7 +142,7 @@
|
|
| 142 |
"episode_index": 200,
|
| 143 |
"frame_count": 227,
|
| 144 |
"fps": 25,
|
| 145 |
-
"instruction": "Pick up the entire set of objects and place
|
| 146 |
"instruction_metadata": {
|
| 147 |
"task": "long_horizon",
|
| 148 |
"objects": [
|
|
@@ -278,7 +278,7 @@
|
|
| 278 |
"episode_index": 400,
|
| 279 |
"frame_count": 205,
|
| 280 |
"fps": 25,
|
| 281 |
-
"instruction": "Pick up the entire set of objects and place
|
| 282 |
"instruction_metadata": {
|
| 283 |
"task": "long_horizon",
|
| 284 |
"objects": [
|
|
@@ -556,7 +556,7 @@
|
|
| 556 |
"episode_index": 800,
|
| 557 |
"frame_count": 232,
|
| 558 |
"fps": 25,
|
| 559 |
-
"instruction": "Pick up the entire set of objects and place
|
| 560 |
"instruction_metadata": {
|
| 561 |
"task": "long_horizon",
|
| 562 |
"objects": [
|
|
@@ -693,7 +693,7 @@
|
|
| 693 |
"episode_index": 1000,
|
| 694 |
"frame_count": 209,
|
| 695 |
"fps": 25,
|
| 696 |
-
"instruction": "Pick up the entire set of objects and place
|
| 697 |
"instruction_metadata": {
|
| 698 |
"task": "long_horizon",
|
| 699 |
"objects": [
|
|
@@ -830,7 +830,7 @@
|
|
| 830 |
"episode_index": 16460,
|
| 831 |
"frame_count": 83,
|
| 832 |
"fps": 25,
|
| 833 |
-
"instruction": "Pick up the
|
| 834 |
"instruction_metadata": {
|
| 835 |
"task": "pick",
|
| 836 |
"objects": [
|
|
@@ -971,7 +971,7 @@
|
|
| 971 |
"episode_index": 16837,
|
| 972 |
"frame_count": 89,
|
| 973 |
"fps": 25,
|
| 974 |
-
"instruction": "Pick up the
|
| 975 |
"instruction_metadata": {
|
| 976 |
"task": "pick",
|
| 977 |
"objects": [
|
|
@@ -1112,7 +1112,7 @@
|
|
| 1112 |
"episode_index": 51235,
|
| 1113 |
"frame_count": 87,
|
| 1114 |
"fps": 25,
|
| 1115 |
-
"instruction": "Pick up the
|
| 1116 |
"instruction_metadata": {
|
| 1117 |
"task": "pick",
|
| 1118 |
"objects": [
|
|
@@ -1396,7 +1396,7 @@
|
|
| 1396 |
"episode_index": 71104,
|
| 1397 |
"frame_count": 95,
|
| 1398 |
"fps": 25,
|
| 1399 |
-
"instruction": "Pick up the
|
| 1400 |
"instruction_metadata": {
|
| 1401 |
"task": "pick",
|
| 1402 |
"objects": [
|
|
@@ -1533,7 +1533,7 @@
|
|
| 1533 |
"episode_index": 71578,
|
| 1534 |
"frame_count": 85,
|
| 1535 |
"fps": 25,
|
| 1536 |
-
"instruction": "Pick up the
|
| 1537 |
"instruction_metadata": {
|
| 1538 |
"task": "pick",
|
| 1539 |
"objects": [
|
|
@@ -1815,7 +1815,7 @@
|
|
| 1815 |
"episode_index": 98947,
|
| 1816 |
"frame_count": 117,
|
| 1817 |
"fps": 25,
|
| 1818 |
-
"instruction": "Pick up the beer bottle and place it in/on the
|
| 1819 |
"instruction_metadata": {
|
| 1820 |
"task": "place",
|
| 1821 |
"objects": [
|
|
@@ -2092,7 +2092,7 @@
|
|
| 2092 |
"episode_index": 154278,
|
| 2093 |
"frame_count": 110,
|
| 2094 |
"fps": 25,
|
| 2095 |
-
"instruction": "Pick up the lemon and place it in/on the
|
| 2096 |
"instruction_metadata": {
|
| 2097 |
"task": "place",
|
| 2098 |
"objects": [
|
|
|
|
| 5 |
"episode_index": 0,
|
| 6 |
"frame_count": 194,
|
| 7 |
"fps": 25,
|
| 8 |
+
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
|
| 9 |
"instruction_metadata": {
|
| 10 |
"task": "long_horizon",
|
| 11 |
"objects": [
|
|
|
|
| 142 |
"episode_index": 200,
|
| 143 |
"frame_count": 227,
|
| 144 |
"fps": 25,
|
| 145 |
+
"instruction": "Pick up the entire set of objects and place them in/on the plastic box.",
|
| 146 |
"instruction_metadata": {
|
| 147 |
"task": "long_horizon",
|
| 148 |
"objects": [
|
|
|
|
| 278 |
"episode_index": 400,
|
| 279 |
"frame_count": 205,
|
| 280 |
"fps": 25,
|
| 281 |
+
"instruction": "Pick up the entire set of objects and place them in/on the box.",
|
| 282 |
"instruction_metadata": {
|
| 283 |
"task": "long_horizon",
|
| 284 |
"objects": [
|
|
|
|
| 556 |
"episode_index": 800,
|
| 557 |
"frame_count": 232,
|
| 558 |
"fps": 25,
|
| 559 |
+
"instruction": "Pick up the entire set of objects and place them in/on the box with Tencent Logo.",
|
| 560 |
"instruction_metadata": {
|
| 561 |
"task": "long_horizon",
|
| 562 |
"objects": [
|
|
|
|
| 693 |
"episode_index": 1000,
|
| 694 |
"frame_count": 209,
|
| 695 |
"fps": 25,
|
| 696 |
+
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
|
| 697 |
"instruction_metadata": {
|
| 698 |
"task": "long_horizon",
|
| 699 |
"objects": [
|
|
|
|
| 830 |
"episode_index": 16460,
|
| 831 |
"frame_count": 83,
|
| 832 |
"fps": 25,
|
| 833 |
+
"instruction": "Pick up the moving object with the lower initial velocity.",
|
| 834 |
"instruction_metadata": {
|
| 835 |
"task": "pick",
|
| 836 |
"objects": [
|
|
|
|
| 971 |
"episode_index": 16837,
|
| 972 |
"frame_count": 89,
|
| 973 |
"fps": 25,
|
| 974 |
+
"instruction": "Pick up the object in the middle from left to right at the start.",
|
| 975 |
"instruction_metadata": {
|
| 976 |
"task": "pick",
|
| 977 |
"objects": [
|
|
|
|
| 1112 |
"episode_index": 51235,
|
| 1113 |
"frame_count": 87,
|
| 1114 |
"fps": 25,
|
| 1115 |
+
"instruction": "Pick up the object moving in the robot's forward-left direction.",
|
| 1116 |
"instruction_metadata": {
|
| 1117 |
"task": "pick",
|
| 1118 |
"objects": [
|
|
|
|
| 1396 |
"episode_index": 71104,
|
| 1397 |
"frame_count": 95,
|
| 1398 |
"fps": 25,
|
| 1399 |
+
"instruction": "Pick up the object that is closest to the robot's left at the start.",
|
| 1400 |
"instruction_metadata": {
|
| 1401 |
"task": "pick",
|
| 1402 |
"objects": [
|
|
|
|
| 1533 |
"episode_index": 71578,
|
| 1534 |
"frame_count": 85,
|
| 1535 |
"fps": 25,
|
| 1536 |
+
"instruction": "Pick up the object that is closest to the robot's left at the start.",
|
| 1537 |
"instruction_metadata": {
|
| 1538 |
"task": "pick",
|
| 1539 |
"objects": [
|
|
|
|
| 1815 |
"episode_index": 98947,
|
| 1816 |
"frame_count": 117,
|
| 1817 |
"fps": 25,
|
| 1818 |
+
"instruction": "Pick up the beer bottle and place it in/on the placemat that is closer to the robot's left at the start.",
|
| 1819 |
"instruction_metadata": {
|
| 1820 |
"task": "place",
|
| 1821 |
"objects": [
|
|
|
|
| 2092 |
"episode_index": 154278,
|
| 2093 |
"frame_count": 110,
|
| 2094 |
"fps": 25,
|
| 2095 |
+
"instruction": "Pick up the lemon and place it in/on the placemat farther from the robot mounting edge at the start.",
|
| 2096 |
"instruction_metadata": {
|
| 2097 |
"task": "place",
|
| 2098 |
"objects": [
|
provenance/tasks.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
{
|
| 3 |
"task_index": 0,
|
| 4 |
"key": "task_000000",
|
| 5 |
-
"name": "Long Horizon ·
|
| 6 |
"category": "Long-Horizon",
|
| 7 |
-
"instruction": "Pick up the entire set of objects and place
|
| 8 |
-
"instruction_note": "
|
| 9 |
"instruction_metadata": {
|
| 10 |
"task": "long_horizon",
|
| 11 |
"objects": [
|
|
@@ -28,10 +28,10 @@
|
|
| 28 |
{
|
| 29 |
"task_index": 135,
|
| 30 |
"key": "task_000135",
|
| 31 |
-
"name": "Long Horizon ·
|
| 32 |
"category": "Long-Horizon",
|
| 33 |
-
"instruction": "Pick up the entire set of objects and place
|
| 34 |
-
"instruction_note": "
|
| 35 |
"instruction_metadata": {
|
| 36 |
"task": "long_horizon",
|
| 37 |
"objects": [
|
|
@@ -53,10 +53,10 @@
|
|
| 53 |
{
|
| 54 |
"task_index": 196,
|
| 55 |
"key": "task_000196",
|
| 56 |
-
"name": "Long Horizon ·
|
| 57 |
"category": "Long-Horizon",
|
| 58 |
-
"instruction": "Pick up the entire set of objects and place
|
| 59 |
-
"instruction_note": "
|
| 60 |
"instruction_metadata": {
|
| 61 |
"task": "long_horizon",
|
| 62 |
"objects": [
|
|
@@ -78,10 +78,10 @@
|
|
| 78 |
{
|
| 79 |
"task_index": 246,
|
| 80 |
"key": "task_000246",
|
| 81 |
-
"name": "Long Horizon ·
|
| 82 |
"category": "Long-Horizon",
|
| 83 |
"instruction": "Pick up the fusiform avocado and place it in/on the box.",
|
| 84 |
-
"instruction_note": "
|
| 85 |
"instruction_metadata": {
|
| 86 |
"task": "long_horizon",
|
| 87 |
"objects": [
|
|
@@ -109,10 +109,10 @@
|
|
| 109 |
{
|
| 110 |
"task_index": 80,
|
| 111 |
"key": "task_000080",
|
| 112 |
-
"name": "Long Horizon ·
|
| 113 |
"category": "Long-Horizon",
|
| 114 |
-
"instruction": "Pick up the entire set of objects and place
|
| 115 |
-
"instruction_note": "
|
| 116 |
"instruction_metadata": {
|
| 117 |
"task": "long_horizon",
|
| 118 |
"objects": [
|
|
@@ -135,10 +135,10 @@
|
|
| 135 |
{
|
| 136 |
"task_index": 70,
|
| 137 |
"key": "task_000070",
|
| 138 |
-
"name": "Long Horizon ·
|
| 139 |
"category": "Long-Horizon",
|
| 140 |
-
"instruction": "Pick up the entire set of objects and place
|
| 141 |
-
"instruction_note": "
|
| 142 |
"instruction_metadata": {
|
| 143 |
"task": "long_horizon",
|
| 144 |
"objects": [
|
|
@@ -163,8 +163,8 @@
|
|
| 163 |
"key": "task_010235",
|
| 164 |
"name": "Pick · the moving object with the lower initial velocity",
|
| 165 |
"category": "Pick",
|
| 166 |
-
"instruction": "Pick up the
|
| 167 |
-
"instruction_note": "
|
| 168 |
"instruction_metadata": {
|
| 169 |
"task": "pick",
|
| 170 |
"objects": [
|
|
@@ -193,8 +193,8 @@
|
|
| 193 |
"key": "task_010588",
|
| 194 |
"name": "Pick · the object in the middle from left to right at the start",
|
| 195 |
"category": "Pick",
|
| 196 |
-
"instruction": "Pick up the
|
| 197 |
-
"instruction_note": "
|
| 198 |
"instruction_metadata": {
|
| 199 |
"task": "pick",
|
| 200 |
"objects": [
|
|
@@ -223,8 +223,8 @@
|
|
| 223 |
"key": "task_042175",
|
| 224 |
"name": "Pick · the object moving in the robot's forward-left direction",
|
| 225 |
"category": "Pick",
|
| 226 |
-
"instruction": "Pick up the
|
| 227 |
-
"instruction_note": "
|
| 228 |
"instruction_metadata": {
|
| 229 |
"task": "pick",
|
| 230 |
"objects": [
|
|
@@ -253,7 +253,7 @@
|
|
| 253 |
"name": "Pick · lime",
|
| 254 |
"category": "Pick",
|
| 255 |
"instruction": "Pick up the lime.",
|
| 256 |
-
"instruction_note": "
|
| 257 |
"instruction_metadata": {
|
| 258 |
"task": "pick",
|
| 259 |
"objects": [
|
|
@@ -285,8 +285,8 @@
|
|
| 285 |
"key": "task_060569",
|
| 286 |
"name": "Pick · the object that is closest to the robot's left at the start",
|
| 287 |
"category": "Pick",
|
| 288 |
-
"instruction": "Pick up the
|
| 289 |
-
"instruction_note": "
|
| 290 |
"instruction_metadata": {
|
| 291 |
"task": "pick",
|
| 292 |
"objects": [
|
|
@@ -311,8 +311,8 @@
|
|
| 311 |
"key": "task_060993",
|
| 312 |
"name": "Pick · the object that is closest to the robot's left at the start",
|
| 313 |
"category": "Pick",
|
| 314 |
-
"instruction": "Pick up the
|
| 315 |
-
"instruction_note": "
|
| 316 |
"instruction_metadata": {
|
| 317 |
"task": "pick",
|
| 318 |
"objects": [
|
|
@@ -338,7 +338,7 @@
|
|
| 338 |
"name": "Place · moving-forward object",
|
| 339 |
"category": "Place",
|
| 340 |
"instruction": "Pick up the moving-forward object and place it in/on the ceramic plate with blue floral patterns.",
|
| 341 |
-
"instruction_note": "
|
| 342 |
"instruction_metadata": {
|
| 343 |
"task": "place",
|
| 344 |
"objects": [
|
|
@@ -371,8 +371,8 @@
|
|
| 371 |
"key": "task_077667",
|
| 372 |
"name": "Place · beer bottle",
|
| 373 |
"category": "Place",
|
| 374 |
-
"instruction": "Pick up the beer bottle and place it in/on the
|
| 375 |
-
"instruction_note": "
|
| 376 |
"instruction_metadata": {
|
| 377 |
"task": "place",
|
| 378 |
"objects": [
|
|
@@ -402,7 +402,7 @@
|
|
| 402 |
"name": "Place · lemon",
|
| 403 |
"category": "Place",
|
| 404 |
"instruction": "Pick up the lemon and place it in/on the tray.",
|
| 405 |
-
"instruction_note": "
|
| 406 |
"instruction_metadata": {
|
| 407 |
"task": "place",
|
| 408 |
"objects": [
|
|
@@ -426,8 +426,8 @@
|
|
| 426 |
"key": "task_111207",
|
| 427 |
"name": "Place · lemon",
|
| 428 |
"category": "Place",
|
| 429 |
-
"instruction": "Pick up the lemon and place it in/on the
|
| 430 |
-
"instruction_note": "
|
| 431 |
"instruction_metadata": {
|
| 432 |
"task": "place",
|
| 433 |
"objects": [
|
|
@@ -453,7 +453,7 @@
|
|
| 453 |
"name": "Place · water bottle",
|
| 454 |
"category": "Place",
|
| 455 |
"instruction": "Pick up the water bottle and place it in/on the bowl.",
|
| 456 |
-
"instruction_note": "
|
| 457 |
"instruction_metadata": {
|
| 458 |
"task": "place",
|
| 459 |
"objects": [
|
|
@@ -485,7 +485,7 @@
|
|
| 485 |
"name": "Place · black cylinder water bottle",
|
| 486 |
"category": "Place",
|
| 487 |
"instruction": "Pick up the black cylinder water bottle and place it in/on the black box.",
|
| 488 |
-
"instruction_note": "
|
| 489 |
"instruction_metadata": {
|
| 490 |
"task": "place",
|
| 491 |
"objects": [
|
|
|
|
| 2 |
{
|
| 3 |
"task_index": 0,
|
| 4 |
"key": "task_000000",
|
| 5 |
+
"name": "Long Horizon · white box",
|
| 6 |
"category": "Long-Horizon",
|
| 7 |
+
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
|
| 8 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 9 |
"instruction_metadata": {
|
| 10 |
"task": "long_horizon",
|
| 11 |
"objects": [
|
|
|
|
| 28 |
{
|
| 29 |
"task_index": 135,
|
| 30 |
"key": "task_000135",
|
| 31 |
+
"name": "Long Horizon · plastic box",
|
| 32 |
"category": "Long-Horizon",
|
| 33 |
+
"instruction": "Pick up the entire set of objects and place them in/on the plastic box.",
|
| 34 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 35 |
"instruction_metadata": {
|
| 36 |
"task": "long_horizon",
|
| 37 |
"objects": [
|
|
|
|
| 53 |
{
|
| 54 |
"task_index": 196,
|
| 55 |
"key": "task_000196",
|
| 56 |
+
"name": "Long Horizon · box",
|
| 57 |
"category": "Long-Horizon",
|
| 58 |
+
"instruction": "Pick up the entire set of objects and place them in/on the box.",
|
| 59 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 60 |
"instruction_metadata": {
|
| 61 |
"task": "long_horizon",
|
| 62 |
"objects": [
|
|
|
|
| 78 |
{
|
| 79 |
"task_index": 246,
|
| 80 |
"key": "task_000246",
|
| 81 |
+
"name": "Long Horizon · box",
|
| 82 |
"category": "Long-Horizon",
|
| 83 |
"instruction": "Pick up the fusiform avocado and place it in/on the box.",
|
| 84 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 85 |
"instruction_metadata": {
|
| 86 |
"task": "long_horizon",
|
| 87 |
"objects": [
|
|
|
|
| 109 |
{
|
| 110 |
"task_index": 80,
|
| 111 |
"key": "task_000080",
|
| 112 |
+
"name": "Long Horizon · box with Tencent Logo",
|
| 113 |
"category": "Long-Horizon",
|
| 114 |
+
"instruction": "Pick up the entire set of objects and place them in/on the box with Tencent Logo.",
|
| 115 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 116 |
"instruction_metadata": {
|
| 117 |
"task": "long_horizon",
|
| 118 |
"objects": [
|
|
|
|
| 135 |
{
|
| 136 |
"task_index": 70,
|
| 137 |
"key": "task_000070",
|
| 138 |
+
"name": "Long Horizon · white box",
|
| 139 |
"category": "Long-Horizon",
|
| 140 |
+
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
|
| 141 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 142 |
"instruction_metadata": {
|
| 143 |
"task": "long_horizon",
|
| 144 |
"objects": [
|
|
|
|
| 163 |
"key": "task_010235",
|
| 164 |
"name": "Pick · the moving object with the lower initial velocity",
|
| 165 |
"category": "Pick",
|
| 166 |
+
"instruction": "Pick up the moving object with the lower initial velocity.",
|
| 167 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 168 |
"instruction_metadata": {
|
| 169 |
"task": "pick",
|
| 170 |
"objects": [
|
|
|
|
| 193 |
"key": "task_010588",
|
| 194 |
"name": "Pick · the object in the middle from left to right at the start",
|
| 195 |
"category": "Pick",
|
| 196 |
+
"instruction": "Pick up the object in the middle from left to right at the start.",
|
| 197 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 198 |
"instruction_metadata": {
|
| 199 |
"task": "pick",
|
| 200 |
"objects": [
|
|
|
|
| 223 |
"key": "task_042175",
|
| 224 |
"name": "Pick · the object moving in the robot's forward-left direction",
|
| 225 |
"category": "Pick",
|
| 226 |
+
"instruction": "Pick up the object moving in the robot's forward-left direction.",
|
| 227 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 228 |
"instruction_metadata": {
|
| 229 |
"task": "pick",
|
| 230 |
"objects": [
|
|
|
|
| 253 |
"name": "Pick · lime",
|
| 254 |
"category": "Pick",
|
| 255 |
"instruction": "Pick up the lime.",
|
| 256 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 257 |
"instruction_metadata": {
|
| 258 |
"task": "pick",
|
| 259 |
"objects": [
|
|
|
|
| 285 |
"key": "task_060569",
|
| 286 |
"name": "Pick · the object that is closest to the robot's left at the start",
|
| 287 |
"category": "Pick",
|
| 288 |
+
"instruction": "Pick up the object that is closest to the robot's left at the start.",
|
| 289 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 290 |
"instruction_metadata": {
|
| 291 |
"task": "pick",
|
| 292 |
"objects": [
|
|
|
|
| 311 |
"key": "task_060993",
|
| 312 |
"name": "Pick · the object that is closest to the robot's left at the start",
|
| 313 |
"category": "Pick",
|
| 314 |
+
"instruction": "Pick up the object that is closest to the robot's left at the start.",
|
| 315 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 316 |
"instruction_metadata": {
|
| 317 |
"task": "pick",
|
| 318 |
"objects": [
|
|
|
|
| 338 |
"name": "Place · moving-forward object",
|
| 339 |
"category": "Place",
|
| 340 |
"instruction": "Pick up the moving-forward object and place it in/on the ceramic plate with blue floral patterns.",
|
| 341 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 342 |
"instruction_metadata": {
|
| 343 |
"task": "place",
|
| 344 |
"objects": [
|
|
|
|
| 371 |
"key": "task_077667",
|
| 372 |
"name": "Place · beer bottle",
|
| 373 |
"category": "Place",
|
| 374 |
+
"instruction": "Pick up the beer bottle and place it in/on the placemat that is closer to the robot's left at the start.",
|
| 375 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 376 |
"instruction_metadata": {
|
| 377 |
"task": "place",
|
| 378 |
"objects": [
|
|
|
|
| 402 |
"name": "Place · lemon",
|
| 403 |
"category": "Place",
|
| 404 |
"instruction": "Pick up the lemon and place it in/on the tray.",
|
| 405 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 406 |
"instruction_metadata": {
|
| 407 |
"task": "place",
|
| 408 |
"objects": [
|
|
|
|
| 426 |
"key": "task_111207",
|
| 427 |
"name": "Place · lemon",
|
| 428 |
"category": "Place",
|
| 429 |
+
"instruction": "Pick up the lemon and place it in/on the placemat farther from the robot mounting edge at the start.",
|
| 430 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 431 |
"instruction_metadata": {
|
| 432 |
"task": "place",
|
| 433 |
"objects": [
|
|
|
|
| 453 |
"name": "Place · water bottle",
|
| 454 |
"category": "Place",
|
| 455 |
"instruction": "Pick up the water bottle and place it in/on the bowl.",
|
| 456 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 457 |
"instruction_metadata": {
|
| 458 |
"task": "place",
|
| 459 |
"objects": [
|
|
|
|
| 485 |
"name": "Place · black cylinder water bottle",
|
| 486 |
"category": "Place",
|
| 487 |
"instruction": "Pick up the black cylinder water bottle and place it in/on the black box.",
|
| 488 |
+
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
|
| 489 |
"instruction_metadata": {
|
| 490 |
"task": "place",
|
| 491 |
"objects": [
|
scripts/build_browser.py
CHANGED
|
@@ -1,94 +1,94 @@
|
|
| 1 |
-
"""Generate a free static HF Space from selected benchmark metadata."""
|
| 2 |
-
from pathlib import Path
|
| 3 |
-
import json,re,shutil
|
| 4 |
-
ROOT=Path(__file__).resolve().parents[1]
|
| 5 |
-
NAME=ROOT.name
|
| 6 |
-
DATA=ROOT/'dataset'
|
| 7 |
-
OUT=ROOT/'space'
|
| 8 |
-
|
| 9 |
-
JS=r'''
|
| 10 |
-
const DATA=JSON.parse(document.getElementById('catalog').textContent);
|
| 11 |
-
const esc=x=>String(x??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
| 12 |
-
const media=p=>DATA.media_base+p.split('/').map(encodeURIComponent).join('/');
|
| 13 |
-
const file=p=>DATA.file_base+p.split('/').map(encodeURIComponent).join('/');
|
| 14 |
-
const link=(u,t)=>`<a href="${esc(u)}" target="_blank" rel="noopener">${esc(t)}</a>`;
|
| 15 |
-
const tasks=[...DATA.tasks].sort((a,b)=>a.task_index-b.task_index);
|
| 16 |
-
const groups=[...new Set(tasks.map(t=>t.category))];
|
| 17 |
-
let current=null,query='',group='all',mode='combined';
|
| 18 |
-
function drawList(){
|
| 19 |
-
document.getElementById('groups').innerHTML=['all',...groups].map(g=>`<button class="group ${g===group?'active':''}" data-group="${esc(g)}" aria-pressed="${g===group}">${g==='all'?'全部':esc(g)}<span>${g==='all'?tasks.length:tasks.filter(t=>t.category===g).length}</span></button>`).join('');
|
| 20 |
-
const numeric=/^\d+$/.test(query.trim());
|
| 21 |
-
const shown=tasks.filter(t=>(numeric||group==='all'||t.category===group)&&(numeric?t.task_index===Number(query):`${t.name} ${t.instruction} ${t.source_filename??''}`.toLowerCase().includes(query.toLowerCase())));
|
| 22 |
-
document.getElementById('listCount').textContent=`${shown.length} / ${tasks.length}`;
|
| 23 |
-
document.getElementById('taskList').innerHTML=shown.map(t=>`<button class="task-link ${current?.task_index===t.task_index?'active':''}" data-task="${t.task_index}"><span class="id mono">${t.task_index}</span><span class="name">${esc(t.name)}</span></button>`).join('')||'<div class="no-results">没有匹配的精选任务序号。</div>';
|
| 24 |
-
document.querySelectorAll('[data-group]').forEach(b=>b.onclick=()=>{group=b.dataset.group;drawList()});
|
| 25 |
-
document.querySelectorAll('[data-task]').forEach(b=>b.onclick=()=>{selectTask(b.dataset.task);window.scrollTo({top:0})});
|
| 26 |
-
}
|
| 27 |
-
function selectTask(id,historyUpdate=true){document.querySelectorAll('video').forEach(v=>v.pause());current=tasks.find(t=>t.task_index===Number(id));if(historyUpdate)history.replaceState({},'',`?task=${id}`);drawList();drawTask();document.querySelector('.task-link.active')?.scrollIntoView({block:'nearest'});}
|
| 28 |
-
function player(p,poster=''){return `<video controls playsinline preload="metadata" src="${esc(media(p))}" ${poster?`poster="${esc(media(poster))}"`:''}></video>`}
|
| 29 |
-
function episode(s){
|
| 30 |
-
const n=s.views.length;
|
| 31 |
-
const content=mode==='combined'?`<div class="view-labels" style="grid-template-columns:repeat(${n},1fr)">${s.views.map(v=>`<span>${esc(v.label)}</span>`).join('')}</div><div class="combined">${player(s.composite_path,s.preview_path)}</div>`:`<div class="views-scroll"><div class="views" style="grid-template-columns:repeat(${n},minmax(220px,1fr));min-width:${n*230}px">${s.views.map(v=>`<div class="view"><div class="camera">${esc(v.label)}</div>${player(v.path)}</div>`).join('')}</div></div>`;
|
| 32 |
-
return `<article class="episode" data-episode="${s.episode_index}"><div class="episode-head"><div><b class="mono">EPISODE ${s.episode_index}</b><div class="episode-meta">官方 task_index=${s.task_index} · ${s.frame_count} frames · ${s.fps} FPS · ${(s.frame_count/s.fps).toFixed(2)} s</div></div><span class="episode-badge">OFFICIAL DATA EXTRACT</span></div>${content}<div class="episode-foot"><div class="source-links">${s.views.map(v=>link(file(v.path),v.label+' MP4')).join('')}${link(media(s.trajectory_path),'动作 / 状态 Parquet')}${link(file(s.composite_path),'同步 MP4 ↗')}</div>${mode==='original'?'<div class="sync-actions"><button data-play>同步播放</button><button data-pause>暂停</button><button data-reset>回到开头</button></div>':''}</div>${s.source_filename?`<div class="episode-meta source-name mono">${esc(s.source_filename)}</div>`:''}<div class="error" hidden></div></article>`;
|
| 33 |
-
}
|
| 34 |
-
function drawTask(){
|
| 35 |
-
const top=`<div class="topline"><span class="stats"><b>${esc(DATA.name)}</b> / ${DATA.samples.length} SELECTED EPISODES / ${DATA.source.camera_order.length} CAMERAS</span><div class="toplinks">${link(DATA.repo_url,'HF 数据仓库 ↗')}${link(DATA.github_url,'官方代码 ↗')}</div></div>`;
|
| 36 |
-
if(!current){document.getElementById('main').innerHTML=top+'<h1>精选集中没有这个序号</h1><p>请从左侧选择,或输入已收录的官方 task_index。</p>';return}
|
| 37 |
-
const t=current,idx=tasks.indexOf(t),ss=DATA.samples.filter(s=>s.task_index===t.task_index),dynamic=DATA.name==='DynamicVLA';
|
| 38 |
-
document.title=`Task ${t.task_index} · ${t.name} · ${DATA.name}`;
|
| 39 |
-
let html=top+`<div class="benchmark-note">${dynamic?'DOM 有 3 类任务,但官方 task_index 对应具体语言 / 场景配置。本页是三类各 6 条精选示例,不是完整 140,932 条任务目录。':'ReflexBench 的全部 6 个官方 task_index,每任务 3 条精选完整 episode。'} 单臂 Franka;相机名称保留上游定义。</div><div class="eyebrow">${esc(t.category)} · SIMULATION</div><div class="task-heading"><span class="big-id mono">${t.task_index}</span><h1>${esc(t.name)}</h1></div><div class="toplinks" style="margin-bottom:20px"><span class="muted mono">OFFICIAL task_index = ${t.task_index}</span><div class="nav-buttons"><button class="small-button" id="previous" ${idx===0?'disabled':''}>← 上一个</button><button class="small-button" id="next" ${idx===tasks.length-1?'disabled':''}>下一个 →</button></div><a href="#success">成功标准 ↓</a></div><div class="instruction"><div class="label">Instruction ${dynamic?'· 可读呈现':'· 官方数据原文'}</div><p>${esc(t.instruction)}</p></div>`;
|
| 40 |
-
if(t.instruction_note)html+=`<p class="description">${esc(t.instruction_note)}</p>`;
|
| 41 |
-
if(t.instruction_metadata)html+=`<details class="metadata"><summary>原始 instruction 元数据与所有对象 / 容器别名</summary><pre>${esc(JSON.stringify(t.instruction_metadata,null,2))}</pre></details>`;
|
| 42 |
-
html+=`<p class="description">${esc(t.description)}</p><div class="facts"><div class="label">Robot<strong>Franka · 单臂</strong></div><div class="label">Published cameras<strong>${esc(DATA.source.camera_order.join(' / '))}</strong></div><div class="label">Official reference<strong>${link(t.doc_url,'成功条件源码 / 文档 ↗')}</strong></div>${t.official_gym_id?`<div class="label">Gym ID<strong class="mono">${esc(t.official_gym_id)}</strong></div>`:''}</div><section><div class="section-bar"><div><h2>完整 MP4 示例</h2><div class="section-note">${dynamic?'OPPOSITE → WRIST → SIDE;每路均为同一个官方 episode。':'FIXED → WRIST;原始 LeRobot 合并视频按官方 episode 时间区间提取。'}</div></div><div class="mode"><button data-mode="combined" class="${mode==='combined'?'active':''}">相机同步 MP4</button><button data-mode="original" class="${mode==='original'?'active':''}">各路 MP4</button></div></div>${ss.map(episode).join('')}</section>`;
|
| 43 |
-
html+=`<section id="success"><div class="section-bar"><h2>Success · 成功与评估标准</h2></div><div class="instruction success"><p>${esc(t.success_rule)}</p></div><div class="warning">这是任务的评估逻辑,不能据此为示例赋分。公开 LeRobot 特征未保存逐条示教的成功标记,actual_episode_success 为 null;没有另行运行模拟器验证示例结果。</div>`;
|
| 44 |
-
if(t.profile)html+=`<details class="metadata"><summary>官方评估 profile / task phases</summary><pre>${esc(JSON.stringify(t.profile,null,2))}</pre></details>`;
|
| 45 |
-
html+=`</section><footer class="source-footer"><p>${esc(DATA.source.note)}</p><p>视频是从官方记录选择并转为 H.264 的完整 episode,保持原始 25 FPS 与逐帧长度。数据源 revision:<span class="mono">${esc(DATA.source.revision)}</span>。</p>${link(DATA.repo_url,'精选数据仓库 ↗')}${link(`https://huggingface.co/datasets/${DATA.source.repo_id}`,'官方完整数据 ↗')}${link(t.doc_url,'官方评估标准 ↗')}<p>上游许可和来源文档保留在数据仓库 reference/。${dynamic?'S-Lab License 1.0,非商业用途。':'保留官方 BSD-3-Clause 许可与数据来源。'}</p></footer>`;
|
| 46 |
-
document.getElementById('main').innerHTML=html;
|
| 47 |
-
for(const [name,step] of [['previous',-1],['next',1]])document.getElementById(name).onclick=()=>{query='';document.getElementById('search').value='';selectTask(tasks[idx+step].task_index);window.scrollTo({top:0})};
|
| 48 |
-
document.querySelectorAll('[data-mode]').forEach(b=>b.onclick=()=>{const y=scrollY;document.querySelectorAll('video').forEach(v=>v.pause());mode=b.dataset.mode;drawTask();window.scrollTo({top:y})});
|
| 49 |
-
bindVideos();
|
| 50 |
-
}
|
| 51 |
-
function bindVideos(){
|
| 52 |
-
document.querySelectorAll('[data-episode]').forEach(el=>{const vs=[...el.querySelectorAll('video')],error=el.querySelector('.error');vs.forEach(v=>v.onerror=()=>{error.hidden=false;error.textContent='此 MP4 加载失败,可用下方文件链接直接打开。'});if(vs.length===1)return;let timer=null;const pause=()=>{vs.forEach(v=>v.pause());clearInterval(timer);timer=null};el.querySelector('[data-play]').onclick=async()=>{try{vs.forEach(v=>{if(v.readyState)v.currentTime=vs[0].currentTime});await Promise.all(vs.map(v=>v.play()));clearInterval(timer);timer=setInterval(()=>{if(!el.isConnected){clearInterval(timer);return}for(const v of vs.slice(1))if(v.readyState&&Math.abs(v.currentTime-vs[0].currentTime)>.2)v.currentTime=vs[0].currentTime},300)}catch(e){pause();error.hidden=false;error.textContent='请点击原播放器,或切换到同步合并 MP4。'}};el.querySelector('[data-pause]').onclick=pause;el.querySelector('[data-reset]').onclick=()=>{pause();vs.forEach(v=>{if(v.readyState)v.currentTime=0})};vs[0].addEventListener('pause',pause);vs[0].addEventListener('ended',pause);});
|
| 53 |
-
}
|
| 54 |
-
document.getElementById('search').oninput=e=>{query=e.target.value;drawList()};
|
| 55 |
-
selectTask(new URLSearchParams(location.search).get('task')??tasks[0].task_index,false);
|
| 56 |
-
'''
|
| 57 |
-
|
| 58 |
-
def build():
|
| 59 |
-
source=json.loads((DATA/'provenance/source.json').read_text(encoding='utf-8'))
|
| 60 |
-
tasks=json.loads((DATA/'provenance/tasks.json').read_text(encoding='utf-8'))
|
| 61 |
-
samples=json.loads((DATA/'provenance/samples.json').read_text(encoding='utf-8'))
|
| 62 |
-
publication=json.loads((ROOT/'publication.json').read_text(encoding='utf-8'))
|
| 63 |
-
media_revision=publication['dataset_commit_sha']
|
| 64 |
-
payload=dict(name=NAME,tasks=tasks,samples=samples,source=source,repo_url=f'https://huggingface.co/datasets/Travor278/{NAME}-Task-Examples',github_url='https://github.com/'+source['code_repository'],media_base=f'https://huggingface.co/datasets/Travor278/{NAME}-Task-Examples/resolve/{media_revision}/',file_base=f'https://huggingface.co/datasets/Travor278/{NAME}-Task-Examples/blob/{media_revision}/')
|
| 65 |
-
template=(ROOT/'browser/base.html').read_text(encoding='utf-8')
|
| 66 |
-
template=re.sub(r'<script id="catalog".*?</script>','<script id="catalog" type="application/json">__DATA__</script>',template,flags=re.S)
|
| 67 |
-
template=re.sub(r'<script>.*?</script>',lambda m:'<script>'+JS+'</script>',template,flags=re.S)
|
| 68 |
-
template=template.replace('RoboDojo',NAME).replace('<a href="?task=reference" id="referenceLink">工具演示</a>','')
|
| 69 |
-
template=template.replace('https://huggingface.co/datasets/Travor278/RoboDojo-Task-Examples',payload['repo_url'])
|
| 70 |
-
n=len(samples[0]['views']);aspect=f'{320*n}/{348 if NAME=="ReflexBench" else 268}'
|
| 71 |
-
extra=f'.combined video{{aspect-ratio:{aspect}}}.view video{{aspect-ratio:{"1/1" if NAME=="ReflexBench" else "4/3"}}}.big-id{{font-size:46px;letter-spacing:-2px}}.benchmark-note{{font-size:11px;line-height:1.8;color:var(--muted);padding:13px 16px;border:1px solid var(--line);margin-bottom:22px;background:#e7ecde}}.metadata{{font-size:12px;background:var(--white);border:1px solid var(--line);padding:13px 16px;margin:12px 0}}.metadata summary{{cursor:pointer}}.metadata pre{{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:11px}}.success p{{font-size:15px}}.source-name{{padding:0 16px 12px;overflow-wrap:anywhere}}.task-heading{{flex-wrap:wrap}}.task-link .id{{font-size:11px;min-width:40px}}.toplinks{{flex-wrap:wrap}}'
|
| 72 |
-
template=template.replace('</style>',extra+'</style>')
|
| 73 |
-
encoded=json.dumps(payload,ensure_ascii=False,separators=(',',':')).replace('</','<\\/')
|
| 74 |
-
OUT.mkdir(exist_ok=True);(OUT/'index.html').write_text(template.replace('__DATA__',encoded),encoding='utf-8')
|
| 75 |
-
(OUT/'README.md').write_text(f'''---
|
| 76 |
-
title: {NAME} Task Examples
|
| 77 |
-
emoji: 🦾
|
| 78 |
-
colorFrom: green
|
| 79 |
-
colorTo: gray
|
| 80 |
-
sdk: static
|
| 81 |
-
app_file: index.html
|
| 82 |
-
fullWidth: true
|
| 83 |
-
---
|
| 84 |
-
|
| 85 |
-
# {NAME} Simulation Task Browser
|
| 86 |
-
|
| 87 |
-
Official task-indexed selected MP4 episodes, instructions and source-grounded success rules.
|
| 88 |
-
This static Space references videos in the selected dataset; no duplicated media or simulation assets.
|
| 89 |
-
|
| 90 |
-
Dataset: {payload['repo_url']}
|
| 91 |
-
''',encoding='utf-8')
|
| 92 |
-
print(f'Built {NAME} browser: {len(tasks)} official instruction IDs, {len(samples)} episodes, media revision {media_revision}')
|
| 93 |
-
|
| 94 |
-
if __name__=='__main__':build()
|
|
|
|
| 1 |
+
"""Generate a free static HF Space from selected benchmark metadata."""
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import json,re,shutil
|
| 4 |
+
ROOT=Path(__file__).resolve().parents[1]
|
| 5 |
+
NAME=json.loads((ROOT/'provenance/source.json').read_text(encoding='utf-8'))['benchmark'] if (ROOT/'provenance/source.json').exists() else ROOT.name
|
| 6 |
+
DATA=ROOT if (ROOT/'provenance/source.json').exists() else ROOT/'dataset'
|
| 7 |
+
OUT=ROOT/'space'
|
| 8 |
+
|
| 9 |
+
JS=r'''
|
| 10 |
+
const DATA=JSON.parse(document.getElementById('catalog').textContent);
|
| 11 |
+
const esc=x=>String(x??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
| 12 |
+
const media=p=>DATA.media_base+p.split('/').map(encodeURIComponent).join('/');
|
| 13 |
+
const file=p=>DATA.file_base+p.split('/').map(encodeURIComponent).join('/');
|
| 14 |
+
const link=(u,t)=>`<a href="${esc(u)}" target="_blank" rel="noopener">${esc(t)}</a>`;
|
| 15 |
+
const tasks=[...DATA.tasks].sort((a,b)=>a.task_index-b.task_index);
|
| 16 |
+
const groups=[...new Set(tasks.map(t=>t.category))];
|
| 17 |
+
let current=null,query='',group='all',mode='combined';
|
| 18 |
+
function drawList(){
|
| 19 |
+
document.getElementById('groups').innerHTML=['all',...groups].map(g=>`<button class="group ${g===group?'active':''}" data-group="${esc(g)}" aria-pressed="${g===group}">${g==='all'?'全部':esc(g)}<span>${g==='all'?tasks.length:tasks.filter(t=>t.category===g).length}</span></button>`).join('');
|
| 20 |
+
const numeric=/^\d+$/.test(query.trim());
|
| 21 |
+
const shown=tasks.filter(t=>(numeric||group==='all'||t.category===group)&&(numeric?t.task_index===Number(query):`${t.name} ${t.instruction} ${t.source_filename??''}`.toLowerCase().includes(query.toLowerCase())));
|
| 22 |
+
document.getElementById('listCount').textContent=`${shown.length} / ${tasks.length}`;
|
| 23 |
+
document.getElementById('taskList').innerHTML=shown.map(t=>`<button class="task-link ${current?.task_index===t.task_index?'active':''}" data-task="${t.task_index}"><span class="id mono">${t.task_index}</span><span class="name">${esc(t.name)}</span></button>`).join('')||'<div class="no-results">没有匹配的精选任务序号。</div>';
|
| 24 |
+
document.querySelectorAll('[data-group]').forEach(b=>b.onclick=()=>{group=b.dataset.group;drawList()});
|
| 25 |
+
document.querySelectorAll('[data-task]').forEach(b=>b.onclick=()=>{selectTask(b.dataset.task);window.scrollTo({top:0})});
|
| 26 |
+
}
|
| 27 |
+
function selectTask(id,historyUpdate=true){document.querySelectorAll('video').forEach(v=>v.pause());current=tasks.find(t=>t.task_index===Number(id));if(historyUpdate)history.replaceState({},'',`?task=${id}`);drawList();drawTask();document.querySelector('.task-link.active')?.scrollIntoView({block:'nearest'});}
|
| 28 |
+
function player(p,poster=''){return `<video controls playsinline preload="metadata" src="${esc(media(p))}" ${poster?`poster="${esc(media(poster))}"`:''}></video>`}
|
| 29 |
+
function episode(s){
|
| 30 |
+
const n=s.views.length;
|
| 31 |
+
const content=mode==='combined'?`<div class="view-labels" style="grid-template-columns:repeat(${n},1fr)">${s.views.map(v=>`<span>${esc(v.label)}</span>`).join('')}</div><div class="combined">${player(s.composite_path,s.preview_path)}</div>`:`<div class="views-scroll"><div class="views" style="grid-template-columns:repeat(${n},minmax(220px,1fr));min-width:${n*230}px">${s.views.map(v=>`<div class="view"><div class="camera">${esc(v.label)}</div>${player(v.path)}</div>`).join('')}</div></div>`;
|
| 32 |
+
return `<article class="episode" data-episode="${s.episode_index}"><div class="episode-head"><div><b class="mono">EPISODE ${s.episode_index}</b><div class="episode-meta">官方 task_index=${s.task_index} · ${s.frame_count} frames · ${s.fps} FPS · ${(s.frame_count/s.fps).toFixed(2)} s</div></div><span class="episode-badge">OFFICIAL DATA EXTRACT</span></div>${content}<div class="episode-foot"><div class="source-links">${s.views.map(v=>link(file(v.path),v.label+' MP4')).join('')}${link(media(s.trajectory_path),'动作 / 状态 Parquet')}${link(file(s.composite_path),'同步 MP4 ↗')}</div>${mode==='original'?'<div class="sync-actions"><button data-play>同步播放</button><button data-pause>暂停</button><button data-reset>回到开头</button></div>':''}</div>${s.source_filename?`<div class="episode-meta source-name mono">${esc(s.source_filename)}</div>`:''}<div class="error" hidden></div></article>`;
|
| 33 |
+
}
|
| 34 |
+
function drawTask(){
|
| 35 |
+
const top=`<div class="topline"><span class="stats"><b>${esc(DATA.name)}</b> / ${DATA.samples.length} SELECTED EPISODES / ${DATA.source.camera_order.length} CAMERAS</span><div class="toplinks">${link(DATA.repo_url,'HF 数据仓库 ↗')}${link(DATA.github_url,'官方代码 ↗')}</div></div>`;
|
| 36 |
+
if(!current){document.getElementById('main').innerHTML=top+'<h1>精选集中没有这个序号</h1><p>请从左侧选择,或输入已收录的官方 task_index。</p>';return}
|
| 37 |
+
const t=current,idx=tasks.indexOf(t),ss=DATA.samples.filter(s=>s.task_index===t.task_index),dynamic=DATA.name==='DynamicVLA';
|
| 38 |
+
document.title=`Task ${t.task_index} · ${t.name} · ${DATA.name}`;
|
| 39 |
+
let html=top+`<div class="benchmark-note">${dynamic?'DOM 有 3 类任务,但官方 task_index 对应具体语言 / 场景配置。本页是三类各 6 条精选示例,不是完整 140,932 条任务目录。':'ReflexBench 的全部 6 个官方 task_index,每任务 3 条精选完整 episode。上游记录本身多为约 1 秒,此处没有截短、慢放或补帧。'} 单臂 Franka;相机名称保留上游定义。</div><div class="eyebrow">${esc(t.category)} · SIMULATION</div><div class="task-heading"><span class="big-id mono">${t.task_index}</span><h1>${esc(t.name)}</h1></div><div class="toplinks" style="margin-bottom:20px"><span class="muted mono">OFFICIAL task_index = ${t.task_index}</span><div class="nav-buttons"><button class="small-button" id="previous" ${idx===0?'disabled':''}>← 上一个</button><button class="small-button" id="next" ${idx===tasks.length-1?'disabled':''}>下一个 →</button></div><a href="#success">成功标准 ↓</a></div><div class="instruction"><div class="label">Instruction ${dynamic?'· 可读呈现':'· 官方数据原文'}</div><p>${esc(t.instruction)}</p></div>`;
|
| 40 |
+
if(t.instruction_note)html+=`<p class="description">${esc(t.instruction_note)}</p>`;
|
| 41 |
+
if(t.instruction_metadata)html+=`<details class="metadata"><summary>原始 instruction 元数据与所有对象 / 容器别名</summary><pre>${esc(JSON.stringify(t.instruction_metadata,null,2))}</pre></details>`;
|
| 42 |
+
html+=`<p class="description">${esc(t.description)}</p><div class="facts"><div class="label">Robot<strong>Franka · 单臂</strong></div><div class="label">Published cameras<strong>${esc(DATA.source.camera_order.join(' / '))}</strong></div><div class="label">Official reference<strong>${link(t.doc_url,'成功条件源码 / 文档 ↗')}</strong></div>${t.official_gym_id?`<div class="label">Gym ID<strong class="mono">${esc(t.official_gym_id)}</strong></div>`:''}</div><section><div class="section-bar"><div><h2>完整 MP4 示例</h2><div class="section-note">${dynamic?'OPPOSITE → WRIST → SIDE;每路均为同一个官方 episode。':'FIXED → WRIST;原始 LeRobot 合并视频按官方 episode 时间区间提取。'}</div></div><div class="mode"><button data-mode="combined" class="${mode==='combined'?'active':''}">相机同步 MP4</button><button data-mode="original" class="${mode==='original'?'active':''}">各路 MP4</button></div></div>${ss.map(episode).join('')}</section>`;
|
| 43 |
+
html+=`<section id="success"><div class="section-bar"><h2>Success · 成功与评估标准</h2></div><div class="instruction success"><p>${esc(t.success_rule)}</p></div><div class="warning">这是任务的评估逻辑,不能据此为示例赋分。公开 LeRobot 特征未保存逐条示教的成功标记,actual_episode_success 为 null;没有另行运行模拟器验证示例结果。</div>`;
|
| 44 |
+
if(t.profile)html+=`<details class="metadata"><summary>官方评估 profile / task phases</summary><pre>${esc(JSON.stringify(t.profile,null,2))}</pre></details>`;
|
| 45 |
+
html+=`</section><footer class="source-footer"><p>${esc(DATA.source.note)}</p><p>视频是从官方记录选择并转为 H.264 的完整 episode,保持原始 25 FPS 与逐帧长度。数据源 revision:<span class="mono">${esc(DATA.source.revision)}</span>。</p>${link(DATA.repo_url,'精选数据仓库 ↗')}${link(`https://huggingface.co/datasets/${DATA.source.repo_id}`,'官方完整数据 ↗')}${link(t.doc_url,'官方评估标准 ↗')}<p>上游许可和来源文档保留在数据仓库 reference/。${dynamic?'S-Lab License 1.0,非商业用途。':'保留官方 BSD-3-Clause 许可与数据来源。'}</p></footer>`;
|
| 46 |
+
document.getElementById('main').innerHTML=html;
|
| 47 |
+
for(const [name,step] of [['previous',-1],['next',1]])document.getElementById(name).onclick=()=>{query='';document.getElementById('search').value='';selectTask(tasks[idx+step].task_index);window.scrollTo({top:0})};
|
| 48 |
+
document.querySelectorAll('[data-mode]').forEach(b=>b.onclick=()=>{const y=scrollY;document.querySelectorAll('video').forEach(v=>v.pause());mode=b.dataset.mode;drawTask();window.scrollTo({top:y})});
|
| 49 |
+
bindVideos();
|
| 50 |
+
}
|
| 51 |
+
function bindVideos(){
|
| 52 |
+
document.querySelectorAll('[data-episode]').forEach(el=>{const vs=[...el.querySelectorAll('video')],error=el.querySelector('.error');vs.forEach(v=>v.onerror=()=>{error.hidden=false;error.textContent='此 MP4 加载失败,可用下方文件链接直接打开。'});if(vs.length===1)return;let timer=null;const pause=()=>{vs.forEach(v=>v.pause());clearInterval(timer);timer=null};el.querySelector('[data-play]').onclick=async()=>{try{vs.forEach(v=>{if(v.readyState)v.currentTime=vs[0].currentTime});await Promise.all(vs.map(v=>v.play()));clearInterval(timer);timer=setInterval(()=>{if(!el.isConnected){clearInterval(timer);return}for(const v of vs.slice(1))if(v.readyState&&Math.abs(v.currentTime-vs[0].currentTime)>.2)v.currentTime=vs[0].currentTime},300)}catch(e){pause();error.hidden=false;error.textContent='请点击原播放器,或切换到同步合并 MP4。'}};el.querySelector('[data-pause]').onclick=pause;el.querySelector('[data-reset]').onclick=()=>{pause();vs.forEach(v=>{if(v.readyState)v.currentTime=0})};vs[0].addEventListener('pause',pause);vs[0].addEventListener('ended',pause);});
|
| 53 |
+
}
|
| 54 |
+
document.getElementById('search').oninput=e=>{query=e.target.value;drawList()};
|
| 55 |
+
selectTask(new URLSearchParams(location.search).get('task')??tasks[0].task_index,false);
|
| 56 |
+
'''
|
| 57 |
+
|
| 58 |
+
def build():
|
| 59 |
+
source=json.loads((DATA/'provenance/source.json').read_text(encoding='utf-8'))
|
| 60 |
+
tasks=json.loads((DATA/'provenance/tasks.json').read_text(encoding='utf-8'))
|
| 61 |
+
samples=json.loads((DATA/'provenance/samples.json').read_text(encoding='utf-8'))
|
| 62 |
+
publication=json.loads(((ROOT/'publication.json') if (ROOT/'publication.json').exists() else (DATA/'provenance/media_publication.json')).read_text(encoding='utf-8'))
|
| 63 |
+
media_revision=publication['dataset_commit_sha']
|
| 64 |
+
payload=dict(name=NAME,tasks=tasks,samples=samples,source=source,repo_url=f'https://huggingface.co/datasets/Travor278/{NAME}-Task-Examples',github_url='https://github.com/'+source['code_repository'],media_base=f'https://huggingface.co/datasets/Travor278/{NAME}-Task-Examples/resolve/{media_revision}/',file_base=f'https://huggingface.co/datasets/Travor278/{NAME}-Task-Examples/blob/{media_revision}/')
|
| 65 |
+
template=(ROOT/'browser/base.html').read_text(encoding='utf-8')
|
| 66 |
+
template=re.sub(r'<script id="catalog".*?</script>','<script id="catalog" type="application/json">__DATA__</script>',template,flags=re.S)
|
| 67 |
+
template=re.sub(r'<script>.*?</script>',lambda m:'<script>'+JS+'</script>',template,flags=re.S)
|
| 68 |
+
template=template.replace('RoboDojo',NAME).replace('<a href="?task=reference" id="referenceLink">工具演示</a>','')
|
| 69 |
+
template=template.replace('https://huggingface.co/datasets/Travor278/RoboDojo-Task-Examples',payload['repo_url'])
|
| 70 |
+
n=len(samples[0]['views']);aspect=f'{320*n}/{348 if NAME=="ReflexBench" else 268}'
|
| 71 |
+
extra=f'.combined video{{aspect-ratio:{aspect}}}.view video{{aspect-ratio:{"1/1" if NAME=="ReflexBench" else "4/3"}}}.big-id{{font-size:46px;letter-spacing:-2px}}.benchmark-note{{font-size:11px;line-height:1.8;color:var(--muted);padding:13px 16px;border:1px solid var(--line);margin-bottom:22px;background:#e7ecde}}.metadata{{font-size:12px;background:var(--white);border:1px solid var(--line);padding:13px 16px;margin:12px 0}}.metadata summary{{cursor:pointer}}.metadata pre{{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:11px}}.success p{{font-size:15px}}.source-name{{padding:0 16px 12px;overflow-wrap:anywhere}}.task-heading{{flex-wrap:wrap}}.task-link .id{{font-size:11px;min-width:40px}}.toplinks{{flex-wrap:wrap}}'
|
| 72 |
+
template=template.replace('</style>',extra+'</style>')
|
| 73 |
+
encoded=json.dumps(payload,ensure_ascii=False,separators=(',',':')).replace('</','<\\/')
|
| 74 |
+
OUT.mkdir(exist_ok=True);(OUT/'index.html').write_text(template.replace('__DATA__',encoded),encoding='utf-8')
|
| 75 |
+
(OUT/'README.md').write_text(f'''---
|
| 76 |
+
title: {NAME} Task Examples
|
| 77 |
+
emoji: 🦾
|
| 78 |
+
colorFrom: green
|
| 79 |
+
colorTo: gray
|
| 80 |
+
sdk: static
|
| 81 |
+
app_file: index.html
|
| 82 |
+
fullWidth: true
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
# {NAME} Simulation Task Browser
|
| 86 |
+
|
| 87 |
+
Official task-indexed selected MP4 episodes, instructions and source-grounded success rules.
|
| 88 |
+
This static Space references videos in the selected dataset; no duplicated media or simulation assets.
|
| 89 |
+
|
| 90 |
+
Dataset: {payload['repo_url']}
|
| 91 |
+
''',encoding='utf-8')
|
| 92 |
+
print(f'Built {NAME} browser: {len(tasks)} official instruction IDs, {len(samples)} episodes, media revision {media_revision}')
|
| 93 |
+
|
| 94 |
+
if __name__=='__main__':build()
|
scripts/build_examples.py
CHANGED
|
@@ -23,6 +23,13 @@ SESSION.mount('https://',HTTPAdapter(max_retries=Retry(total=4,backoff_factor=.6
|
|
| 23 |
|
| 24 |
def read(p):return json.loads(p.read_text(encoding='utf-8'))
|
| 25 |
def write(p,x):p.parent.mkdir(parents=True,exist_ok=True);p.write_text(json.dumps(x,indent=2,ensure_ascii=False),encoding='utf-8')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
def url(p):return f'https://huggingface.co/datasets/{REPO}/resolve/{SOURCE_REV}/{p}'
|
| 27 |
def download_file(p,dst):
|
| 28 |
if dst.exists():return
|
|
@@ -137,11 +144,11 @@ def prepare():
|
|
| 137 |
eid=ep['episode_index'];path=f'data/chunk-{eid//1000:03d}/episode_{eid:06d}.parquet';local=WORK/f'episode_{eid:06d}.parquet';download_file(path,local);table=pq.read_table(local);ids=set(table['task_index'].to_pylist());assert len(ids)==1;index=ids.pop();assert set(table['episode_index'].to_pylist())=={eid};assert table.num_rows==ep['length']
|
| 138 |
task_meta=lookup_jsonl('meta/tasks.jsonl',index,'task_index',63111962);assert task_meta['task']==ep['tasks'];meta=json.loads(ep['tasks']);kind=meta['task'];cam=lookup_jsonl('meta/camera.jsonl',eid,'episode_index',173353120)
|
| 139 |
obj=meta['objects'][0];container=meta.get('containers',[''])[0]
|
| 140 |
-
instruction=
|
| 141 |
# This deterministic sentence is a readable rendering, not a recorded literal prompt.
|
| 142 |
rule='Success requires object-to-end-effector distance < tolerance and end-effector-to-configured-goal distance < tolerance. The current default tolerance is 0.015 m; per-scene overrides may differ.' if kind=='pick' else 'Success requires ALL target objects to satisfy the container-relative geometric placement check, and the end effector to return within tolerance of the configured goal. Current default return tolerance is 0.015 m; per-scene overrides may differ.'
|
| 143 |
key=f'task_{index:06d}'
|
| 144 |
-
task=dict(task_index=index,key=key,name=f'{kind.replace("_"," ").title()} · {obj}',category={'pick':'Pick','place':'Place','long_horizon':'Long-Horizon'}[kind],instruction=instruction,instruction_note='
|
| 145 |
if index not in {t['task_index'] for t in tasks}:tasks.append(task)
|
| 146 |
views=[dict(camera=c,label=label,path=f'media/{key}/episode_{eid:06d}/{c}.mp4',source_path=f'videos/chunk-{eid//1000:03d}/observation.images.{c}/episode_{eid:06d}.mp4') for c,label in [('opst_cam','OPPOSITE CAMERA'),('wrist_cam','WRIST CAMERA'),('side_cam','SIDE CAMERA')]]
|
| 147 |
samples.append(dict(task_index=index,task_key=key,episode_index=eid,frame_count=ep['length'],fps=25,instruction=instruction,instruction_metadata=meta,official_task_record=task_meta,camera_metadata=cam,source_filename=cam['filename'],views=views,trajectory_source_path=path,trajectory_path=f'trajectories/{key}/episode_{eid:06d}.parquet',composite_path=f'media/{key}/episode_{eid:06d}/synchronized.mp4',preview_path=f'media/{key}/episode_{eid:06d}/preview.jpg'))
|
|
|
|
| 23 |
|
| 24 |
def read(p):return json.loads(p.read_text(encoding='utf-8'))
|
| 25 |
def write(p,x):p.parent.mkdir(parents=True,exist_ok=True);p.write_text(json.dumps(x,indent=2,ensure_ascii=False),encoding='utf-8')
|
| 26 |
+
def readable_instruction(meta):
|
| 27 |
+
obj=meta['objects'][0];obj_phrase=obj if obj.lower().startswith(('the ','all ')) else 'the '+obj
|
| 28 |
+
if meta['task']=='pick':return f'Pick up {obj_phrase}.'
|
| 29 |
+
container=meta.get('containers',['target container'])[0]
|
| 30 |
+
container_phrase=container if container.lower().startswith('the ') else 'the '+container
|
| 31 |
+
pronoun='them' if 'set of objects' in obj.lower() else 'it'
|
| 32 |
+
return f'Pick up {obj_phrase} and place {pronoun} in/on {container_phrase}.'
|
| 33 |
def url(p):return f'https://huggingface.co/datasets/{REPO}/resolve/{SOURCE_REV}/{p}'
|
| 34 |
def download_file(p,dst):
|
| 35 |
if dst.exists():return
|
|
|
|
| 144 |
eid=ep['episode_index'];path=f'data/chunk-{eid//1000:03d}/episode_{eid:06d}.parquet';local=WORK/f'episode_{eid:06d}.parquet';download_file(path,local);table=pq.read_table(local);ids=set(table['task_index'].to_pylist());assert len(ids)==1;index=ids.pop();assert set(table['episode_index'].to_pylist())=={eid};assert table.num_rows==ep['length']
|
| 145 |
task_meta=lookup_jsonl('meta/tasks.jsonl',index,'task_index',63111962);assert task_meta['task']==ep['tasks'];meta=json.loads(ep['tasks']);kind=meta['task'];cam=lookup_jsonl('meta/camera.jsonl',eid,'episode_index',173353120)
|
| 146 |
obj=meta['objects'][0];container=meta.get('containers',[''])[0]
|
| 147 |
+
instruction=readable_instruction(meta)
|
| 148 |
# This deterministic sentence is a readable rendering, not a recorded literal prompt.
|
| 149 |
rule='Success requires object-to-end-effector distance < tolerance and end-effector-to-configured-goal distance < tolerance. The current default tolerance is 0.015 m; per-scene overrides may differ.' if kind=='pick' else 'Success requires ALL target objects to satisfy the container-relative geometric placement check, and the end effector to return within tolerance of the configured goal. Current default return tolerance is 0.015 m; per-scene overrides may differ.'
|
| 150 |
key=f'task_{index:06d}'
|
| 151 |
+
task=dict(task_index=index,key=key,name=f'{kind.replace("_"," ").title()} · {container if kind=="long_horizon" else obj}',category={'pick':'Pick','place':'Place','long_horizon':'Long-Horizon'}[kind],instruction=instruction,instruction_note='根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。',instruction_metadata=meta,description=f'Official DOM simulation scenario {cam["filename"]}. Object/container aliases are preserved in the metadata.',success_rule=rule,doc_url=f'https://github.com/{GITHUB}/blob/{code_rev}/simulations/configs/termination_cfg.py',source_filename=cam['filename'],published_episode_count=None)
|
| 152 |
if index not in {t['task_index'] for t in tasks}:tasks.append(task)
|
| 153 |
views=[dict(camera=c,label=label,path=f'media/{key}/episode_{eid:06d}/{c}.mp4',source_path=f'videos/chunk-{eid//1000:03d}/observation.images.{c}/episode_{eid:06d}.mp4') for c,label in [('opst_cam','OPPOSITE CAMERA'),('wrist_cam','WRIST CAMERA'),('side_cam','SIDE CAMERA')]]
|
| 154 |
samples.append(dict(task_index=index,task_key=key,episode_index=eid,frame_count=ep['length'],fps=25,instruction=instruction,instruction_metadata=meta,official_task_record=task_meta,camera_metadata=cam,source_filename=cam['filename'],views=views,trajectory_source_path=path,trajectory_path=f'trajectories/{key}/episode_{eid:06d}.parquet',composite_path=f'media/{key}/episode_{eid:06d}/synchronized.mp4',preview_path=f'media/{key}/episode_{eid:06d}/preview.jpg'))
|