Polish rendered instructions and retain all official aliases and reproducible media revision
Browse filesFiles changed (23)
- 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.jsonAdded+3
- provenance/samples.json+12-12
- provenance/tasks.json+36-36
- scripts/build_browser.py+94-94
- scripts/build_examples.py+9-2
112 unmodified lines1131141151161171181191201211161171181191201211221231247 unmodified lines13213313413513513613713713813914019 unmodified lines1601611621631631641651661 unmodified line16816917017117117217317317417517618 unmodified lines1951961971981981992002011 unmodified line20320420520620620720820820921021118 unmodified lines2302312322332332342352361 unmodified line23823924024124124224324426 unmodified lines2712722732742742752762771 unmodified line27928028128228228328428428528628719 unmodified lines3073083093103103113123131 unmodified line31531631731831831932032032132232319 unmodified lines3433443453463463473483493 unmodified lines35335435535635635735835923 unmodified lines3833843853863863873883893 unmodified lines39339439539639639739839923 unmodified lines4234244254264264274284293 unmodified lines43343443543643643743843922 unmodified lines46246346446546546646746836 unmodified lines5055065075085085095105113 unmodified lines51551651751851851952052119 unmodified lines5415425435445445455465473 unmodified lines55155255355455455555655719 unmodified lines57757857958058058158258337 unmodified lines6216226236246246256266273 unmodified lines63163263363463463563663723 unmodified lines66166266366466466566666728 unmodified lines6966976986996997007017023 unmodified lines70670770870970971071171219 unmodified lines73273373473573573673773835 unmodified lines77477577677777777877978035 unmodified lines816817818819819820821822112 unmodified lines
| 官方 task_index | Task / instruction scenario | 分类 | 直接浏览 |
|---|---|---|---|
| 0 | Long Horizon · entire set of objects | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=0) |
| 70 | Long Horizon · entire set of objects | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=70) |
| 80 | Long Horizon · entire set of objects | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=80) |
| 135 | Long Horizon · entire set of objects | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=135) |
| 196 | Long Horizon · entire set of objects | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=196) |
| 246 | Long Horizon · fusiform avocado | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=246) |
| 0 | Long Horizon · white box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=0) |
| 70 | Long Horizon · white box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=70) |
| 80 | Long Horizon · box with Tencent Logo | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=80) |
| 135 | Long Horizon · plastic box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=135) |
| 196 | Long Horizon · box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=196) |
| 246 | Long Horizon · box | Long-Horizon | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=246) |
| 10235 | Pick · the moving object with the lower initial velocity | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=10235) |
| 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) |
| 42175 | Pick · the object moving in the robot's forward-left direction | Pick | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=42175) |7 unmodified lines| 140471 | Place · black cylinder water bottle | Place | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=140471) |
| 140594 | Place · water bottle | Place | [打开](https://travor278-dynamicvla-task-examples.static.hf.space/?task=140594) |
## task_index=0 · Long Horizon · entire set of objects
## task_index=0 · Long Horizon · white box
**Instruction:** Pick up the entire set of objects and place it in/on the white box.
**Instruction:** Pick up the entire set of objects and place them in/on the white box.
**Description:** Official DOM simulation scenario long-horizon_franka_apple00d_O03_00772319_1dc5-tr. Object/container aliases are preserved in the metadata.
19 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=0** · 194 frames / 7.76 s
1 unmodified line
[同步 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)
## task_index=135 · Long Horizon · entire set of objects
## task_index=135 · Long Horizon · plastic box
**Instruction:** Pick up the entire set of objects and place it in/on the plastic box.
**Instruction:** Pick up the entire set of objects and place them in/on the plastic box.
**Description:** Official DOM simulation scenario long-horizon_franka_apple08d_O03_00819030_04bc-tr. Object/container aliases are preserved in the metadata.
18 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=200** · 227 frames / 9.08 s
1 unmodified line
[同步 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)
## task_index=196 · Long Horizon · entire set of objects
## task_index=196 · Long Horizon · box
**Instruction:** Pick up the entire set of objects and place it in/on the box.
**Instruction:** Pick up the entire set of objects and place them in/on the box.
**Description:** Official DOM simulation scenario long-horizon_franka_apple14d_O03_00888109_ee3b-tr. Object/container aliases are preserved in the metadata.
18 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=400** · 205 frames / 8.20 s
1 unmodified line
[同步 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)
## task_index=246 · Long Horizon · fusiform avocado
## task_index=246 · Long Horizon · box
**Instruction:** Pick up the fusiform avocado and place it in/on the box.
26 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=600** · 220 frames / 8.80 s
1 unmodified line
[同步 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)
## task_index=80 · Long Horizon · entire set of objects
## task_index=80 · Long Horizon · box with Tencent Logo
**Instruction:** Pick up the entire set of objects and place it in/on the box with Tencent Logo.
**Instruction:** Pick up the entire set of objects and place them in/on the box with Tencent Logo.
**Description:** Official DOM simulation scenario long-horizon_franka_avocado04d_O03_00878095_8d75-tr. Object/container aliases are preserved in the metadata.
19 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=800** · 232 frames / 9.28 s
1 unmodified line
[同步 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)
## task_index=70 · Long Horizon · entire set of objects
## task_index=70 · Long Horizon · white box
**Instruction:** Pick up the entire set of objects and place it in/on the white box.
**Instruction:** Pick up the entire set of objects and place them in/on the white box.
**Description:** Official DOM simulation scenario long-horizon_franka_beer01d_O03_00794991_f96b-tr. Object/container aliases are preserved in the metadata.
19 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=1000** · 209 frames / 8.36 s
3 unmodified lines
## task_index=10235 · Pick · the moving object with the lower initial velocity
**Instruction:** Pick up the the moving object with the lower initial velocity.
**Instruction:** Pick up the moving object with the lower initial velocity.
**Description:** Official DOM simulation scenario pick_franka_avocado01d_O03_01140437_873f-tr. Object/container aliases are preserved in the metadata.
23 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=16460** · 83 frames / 3.32 s
3 unmodified lines
## task_index=10588 · Pick · the object in the middle from left to right at the start
**Instruction:** Pick up the the object in the middle from left to right at the start.
**Instruction:** Pick up the object in the middle from left to right at the start.
**Description:** Official DOM simulation scenario pick_franka_avocado02d_O04_01042912_e0d2-tr. Object/container aliases are preserved in the metadata.
23 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=16837** · 89 frames / 3.56 s
3 unmodified lines
## task_index=42175 · Pick · the object moving in the robot's forward-left direction
**Instruction:** Pick up the the object moving in the robot's forward-left direction.
**Instruction:** Pick up the object moving in the robot's forward-left direction.
**Description:** Official DOM simulation scenario pick_franka_lime00d_O03_01174264_30d7-tr. Object/container aliases are preserved in the metadata.
22 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=51235** · 87 frames / 3.48 s
36 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=51658** · 87 frames / 3.48 s
3 unmodified lines
## task_index=60569 · Pick · the object that is closest to the robot's left at the start
**Instruction:** Pick up the the object that is closest to the robot's left at the start.
**Instruction:** Pick up the object that is closest to the robot's left at the start.
**Description:** Official DOM simulation scenario pick_franka_tangerine00d_O04_01057450_ee6d-tr. Object/container aliases are preserved in the metadata.
19 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=71104** · 95 frames / 3.80 s
3 unmodified lines
## task_index=60993 · Pick · the object that is closest to the robot's left at the start
**Instruction:** Pick up the the object that is closest to the robot's left at the start.
**Instruction:** Pick up the object that is closest to the robot's left at the start.
**Description:** Official DOM simulation scenario pick_franka_tangerine03d_O04_01097900_93cd-tr. Object/container aliases are preserved in the metadata.
19 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=71578** · 85 frames / 3.40 s
37 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=98470** · 111 frames / 4.44 s
3 unmodified lines
## task_index=77667 · Place · beer bottle
**Instruction:** Pick up the beer bottle and place it in/on the the placemat that is closer to the robot's left at the start.
**Instruction:** Pick up the beer bottle and place it in/on the placemat that is closer to the robot's left at the start.
**Description:** Official DOM simulation scenario place_franka_beer03d_O04_00340177_6e45-tr. Object/container aliases are preserved in the metadata.
23 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=98947** · 117 frames / 4.68 s
28 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=153474** · 108 frames / 4.32 s
3 unmodified lines
## task_index=111207 · Place · lemon
**Instruction:** Pick up the lemon and place it in/on the the placemat farther from the robot mounting edge at the start.
**Instruction:** Pick up the lemon and place it in/on the placemat farther from the robot mounting edge at the start.
**Description:** Official DOM simulation scenario place_franka_lemon06d_O04_00340971_5a64-tr. Object/container aliases are preserved in the metadata.
19 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=154278** · 110 frames / 4.40 s
35 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=206737** · 124 frames / 4.96 s
35 unmodified lines}
```
Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.
根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。
**episode_index=207108** · 105 frames / 4.20 s
12323version https://git-lfs.github.com/spec/v1oid sha256:ccd35060314e41967b4ff24a9497dd7b5955c0580e375bffd7870f3d9bcf8de4size 32260oid sha256:a01554916d695c62ae67b3151c762d6a4f3b2c835155db9578953fdda8b4c191size 3221412323version https://git-lfs.github.com/spec/v1oid sha256:303d25919df8df81500a18eded554c258dd2b03538565ff7a72290bdec31555bsize 23662oid sha256:a943c26bf4308d82db34eabaeedfea939aa812072ce1e5548aae8c43b5671df5size 2363312323version https://git-lfs.github.com/spec/v1oid sha256:f8fc315ff01f166f009dd3e095500aa66567b1b88e75605129d5ff50295708ecsize 24011oid sha256:08900758c956a3c6e667f0f2d88a317bd33c0383d99207279adc4de32de55004size 2399912323version https://git-lfs.github.com/spec/v1oid sha256:528c2f9f34c1014ed76498fd7c99bebe49afb1acb5c0ebe3db59c056432ef2efsize 24781oid sha256:bce4a3a42e1494a0a1f72fbe69007aec7b3771cfd95040aa83d3292ce6cfb9adsize 2476912323version https://git-lfs.github.com/spec/v1oid sha256:b40385402215754ee4ea0ca30811b4c10e22a7d6e40500c16c158309efba4239size 20098oid sha256:818133dc427126a2c3c7ef64f09db9552850f542064ef2ef342828dab15ed0e5size 2004612323version https://git-lfs.github.com/spec/v1oid sha256:cf2b196bed1db53b4e1a711b3f7c8b0dbfa660e088d604818f25455a9be1dea4size 20113oid sha256:2a4e41b1f502a1f6c6dd88c7db8c34e8280a0eda0279e261a406a8a8e93ec3ecsize 2006112323version https://git-lfs.github.com/spec/v1oid sha256:47c18207730911532f929a91799b3609978de6ecde8fed17d30199d939803ac8size 20245oid sha256:decca79a8a0937a6a77583a0b2d2f6c61717110793eef9135e1d2c91a43f15e2size 2025412323version https://git-lfs.github.com/spec/v1oid sha256:ef7c940e035ad547cbd338ff99c61f1bc507118d5d27748387c8662a145a72cesize 19956oid sha256:683d24d61f3d286d71478447a462b3e5a8b203519a164c6cffff27513a4ecb81size 1991312323version https://git-lfs.github.com/spec/v1oid sha256:e2ac68ae9d5e09527c5fcd8ac7e19ace748564b8b9fddc21d12287b65eba54dbsize 19920oid sha256:561e274e87cba08e80e2e78a6e35f112883f44fa23741901ffb33e0631696726size 1983612323version https://git-lfs.github.com/spec/v1oid sha256:f9a53580ea9724f1eb8eee5a721241ffc9f343de0bc4ecc4f724c592afbc3eeesize 21029oid sha256:b415588c7adf8bde5c8d52f874334255e3949cc5e62c16f5a3e267455c15c240size 2095912323version https://git-lfs.github.com/spec/v1oid sha256:c9a90917d9276d690a5e3f0dd7b3f2b6bbc90c1b090ac4a55c4fcfe0f93aeae9size 20565oid sha256:e573a2765e8973a8215ce87a1a8f59f2e73c846fc5ff8a68afcdb6301460e0a5size 2054612323version https://git-lfs.github.com/spec/v1oid sha256:3d3aadc89dfe307214efcc899c7e372ae5f7ee80f84c5e406a3528c63f4031a3size 21131oid sha256:71267692bfb837dfb5198b3e8b84fddb913cf73636951f4c1730e6be103be786size 2111212323version https://git-lfs.github.com/spec/v1oid sha256:bc78b817c80c096fafc83984de8cdecf37004c432acd2ee5cdb6d424054b641fsize 20591oid sha256:11471be5946588df92e655b86eabbfd3d7f9e5ef348aa4661d1c86c43af7f19bsize 2057312323version https://git-lfs.github.com/spec/v1oid sha256:9427fca2ae78a4e4e54da678a5838b17d71bcda9acd9fe173cb3d48dbe690816size 19983oid sha256:31563c92b6a2f5305e43706fcfb8fea1ba99145d03471498808fe7621a3bd4d9size 1996512323version https://git-lfs.github.com/spec/v1oid sha256:9f6db8eba7768d22e214cee752295666858f907b75b2737539c80d5885cf4296size 20058oid sha256:1936f9514db61cbf1f85568cc6cacff2214f153b2fdb68b9e4702717a7f5a269size 2004012323version https://git-lfs.github.com/spec/v1oid sha256:03f889f8023eebd1801a35dc747ddba8e06789e30fd49e8eff8731018abb4323size 21487oid sha256:05404e73ba951823fbb6d835bb9ae21c69241a2c205991470e16ec0a54eb695csize 2146912323version https://git-lfs.github.com/spec/v1oid sha256:a2d6ae74ddb13f67839b5a658fd262611eab098a5d4a33adaf465866f4b1c668size 20854oid sha256:008feb494b91e0e866d42110d2e035e215373101e90aec94c52ccf89ca1ebc1fsize 20835123{
"dataset_commit_sha": "adf2e2265215e821d178ba4d23c7d249a555bc01"
}4 unmodified lines5678891011130 unmodified lines142143144145145146147148129 unmodified lines278279280281281282283284271 unmodified lines556557558559559560561562130 unmodified lines693694695696696697698699130 unmodified lines830831832833833834835836134 unmodified lines971972973974974975976977134 unmodified lines11121113111411151115111611171118277 unmodified lines13961397139813991399140014011402130 unmodified lines15331534153515361536153715381539275 unmodified lines18151816181718181818181918201821270 unmodified lines209220932094209520952096209720984 unmodified lines "episode_index": 0,
"frame_count": 194,
"fps": 25,
"instruction": "Pick up the entire set of objects and place it in/on the white box.",
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
"instruction_metadata": {
"task": "long_horizon",
"objects": [130 unmodified lines "episode_index": 200,
"frame_count": 227,
"fps": 25,
"instruction": "Pick up the entire set of objects and place it in/on the plastic box.",
"instruction": "Pick up the entire set of objects and place them in/on the plastic box.",
"instruction_metadata": {
"task": "long_horizon",
"objects": [129 unmodified lines "episode_index": 400,
"frame_count": 205,
"fps": 25,
"instruction": "Pick up the entire set of objects and place it in/on the box.",
"instruction": "Pick up the entire set of objects and place them in/on the box.",
"instruction_metadata": {
"task": "long_horizon",
"objects": [271 unmodified lines "episode_index": 800,
"frame_count": 232,
"fps": 25,
"instruction": "Pick up the entire set of objects and place it in/on the box with Tencent Logo.",
"instruction": "Pick up the entire set of objects and place them in/on the box with Tencent Logo.",
"instruction_metadata": {
"task": "long_horizon",
"objects": [130 unmodified lines "episode_index": 1000,
"frame_count": 209,
"fps": 25,
"instruction": "Pick up the entire set of objects and place it in/on the white box.",
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
"instruction_metadata": {
"task": "long_horizon",
"objects": [130 unmodified lines "episode_index": 16460,
"frame_count": 83,
"fps": 25,
"instruction": "Pick up the the moving object with the lower initial velocity.",
"instruction": "Pick up the moving object with the lower initial velocity.",
"instruction_metadata": {
"task": "pick",
"objects": [134 unmodified lines "episode_index": 16837,
"frame_count": 89,
"fps": 25,
"instruction": "Pick up the the object in the middle from left to right at the start.",
"instruction": "Pick up the object in the middle from left to right at the start.",
"instruction_metadata": {
"task": "pick",
"objects": [134 unmodified lines "episode_index": 51235,
"frame_count": 87,
"fps": 25,
"instruction": "Pick up the the object moving in the robot's forward-left direction.",
"instruction": "Pick up the object moving in the robot's forward-left direction.",
"instruction_metadata": {
"task": "pick",
"objects": [277 unmodified lines "episode_index": 71104,
"frame_count": 95,
"fps": 25,
"instruction": "Pick up the the object that is closest to the robot's left at the start.",
"instruction": "Pick up the object that is closest to the robot's left at the start.",
"instruction_metadata": {
"task": "pick",
"objects": [130 unmodified lines "episode_index": 71578,
"frame_count": 85,
"fps": 25,
"instruction": "Pick up the the object that is closest to the robot's left at the start.",
"instruction": "Pick up the object that is closest to the robot's left at the start.",
"instruction_metadata": {
"task": "pick",
"objects": [275 unmodified lines "episode_index": 98947,
"frame_count": 117,
"fps": 25,
"instruction": "Pick up the beer bottle and place it in/on the the placemat that is closer to the robot's left at the start.",
"instruction": "Pick up the beer bottle and place it in/on the placemat that is closer to the robot's left at the start.",
"instruction_metadata": {
"task": "place",
"objects": [270 unmodified lines "episode_index": 154278,
"frame_count": 110,
"fps": 25,
"instruction": "Pick up the lemon and place it in/on the the placemat farther from the robot mounting edge at the start.",
"instruction": "Pick up the lemon and place it in/on the placemat farther from the robot mounting edge at the start.",
"instruction_metadata": {
"task": "place",
"objects": [1 unmodified line23455678789101116 unmodified lines2829303131323334333435363715 unmodified lines5354555656575859585960616215 unmodified lines78798081818283848485868721 unmodified lines10911011111211211311411511411511611711816 unmodified lines13513613713813813914014114014114214314418 unmodified lines16316416516616716616716816917022 unmodified lines19319419519619719619719819920022 unmodified lines22322422522622722622722822923022 unmodified lines25325425525625625725825925 unmodified lines28528628728828928828929029129218 unmodified lines31131231331431531431531631731819 unmodified lines33833934034134134234334426 unmodified lines37137237337437537437537637737823 unmodified lines40240340440540540640740817 unmodified lines42642742842943042943043143243319 unmodified lines45345445545645645745845925 unmodified lines4854864874884884894904911 unmodified line {
"task_index": 0,
"key": "task_000000",
"name": "Long Horizon · entire set of objects",
"name": "Long Horizon · white box",
"category": "Long-Horizon",
"instruction": "Pick up the entire set of objects and place it in/on the white box.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "long_horizon",
"objects": [16 unmodified lines {
"task_index": 135,
"key": "task_000135",
"name": "Long Horizon · entire set of objects",
"name": "Long Horizon · plastic box",
"category": "Long-Horizon",
"instruction": "Pick up the entire set of objects and place it in/on the plastic box.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the entire set of objects and place them in/on the plastic box.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "long_horizon",
"objects": [15 unmodified lines {
"task_index": 196,
"key": "task_000196",
"name": "Long Horizon · entire set of objects",
"name": "Long Horizon · box",
"category": "Long-Horizon",
"instruction": "Pick up the entire set of objects and place it in/on the box.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the entire set of objects and place them in/on the box.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "long_horizon",
"objects": [15 unmodified lines {
"task_index": 246,
"key": "task_000246",
"name": "Long Horizon · fusiform avocado",
"name": "Long Horizon · box",
"category": "Long-Horizon",
"instruction": "Pick up the fusiform avocado and place it in/on the box.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "long_horizon",
"objects": [21 unmodified lines {
"task_index": 80,
"key": "task_000080",
"name": "Long Horizon · entire set of objects",
"name": "Long Horizon · box with Tencent Logo",
"category": "Long-Horizon",
"instruction": "Pick up the entire set of objects and place it in/on the box with Tencent Logo.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the entire set of objects and place them in/on the box with Tencent Logo.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "long_horizon",
"objects": [16 unmodified lines {
"task_index": 70,
"key": "task_000070",
"name": "Long Horizon · entire set of objects",
"name": "Long Horizon · white box",
"category": "Long-Horizon",
"instruction": "Pick up the entire set of objects and place it in/on the white box.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the entire set of objects and place them in/on the white box.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "long_horizon",
"objects": [18 unmodified lines "key": "task_010235",
"name": "Pick · the moving object with the lower initial velocity",
"category": "Pick",
"instruction": "Pick up the the moving object with the lower initial velocity.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the moving object with the lower initial velocity.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "pick",
"objects": [22 unmodified lines "key": "task_010588",
"name": "Pick · the object in the middle from left to right at the start",
"category": "Pick",
"instruction": "Pick up the the object in the middle from left to right at the start.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the object in the middle from left to right at the start.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "pick",
"objects": [22 unmodified lines "key": "task_042175",
"name": "Pick · the object moving in the robot's forward-left direction",
"category": "Pick",
"instruction": "Pick up the the object moving in the robot's forward-left direction.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the object moving in the robot's forward-left direction.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "pick",
"objects": [22 unmodified lines "name": "Pick · lime",
"category": "Pick",
"instruction": "Pick up the lime.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "pick",
"objects": [25 unmodified lines "key": "task_060569",
"name": "Pick · the object that is closest to the robot's left at the start",
"category": "Pick",
"instruction": "Pick up the the object that is closest to the robot's left at the start.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the object that is closest to the robot's left at the start.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "pick",
"objects": [18 unmodified lines "key": "task_060993",
"name": "Pick · the object that is closest to the robot's left at the start",
"category": "Pick",
"instruction": "Pick up the the object that is closest to the robot's left at the start.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the object that is closest to the robot's left at the start.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "pick",
"objects": [19 unmodified lines "name": "Place · moving-forward object",
"category": "Place",
"instruction": "Pick up the moving-forward object and place it in/on the ceramic plate with blue floral patterns.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "place",
"objects": [26 unmodified lines "key": "task_077667",
"name": "Place · beer bottle",
"category": "Place",
"instruction": "Pick up the beer bottle and place it in/on the the placemat that is closer to the robot's left at the start.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the beer bottle and place it in/on the placemat that is closer to the robot's left at the start.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "place",
"objects": [23 unmodified lines "name": "Place · lemon",
"category": "Place",
"instruction": "Pick up the lemon and place it in/on the tray.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "place",
"objects": [17 unmodified lines "key": "task_111207",
"name": "Place · lemon",
"category": "Place",
"instruction": "Pick up the lemon and place it in/on the the placemat farther from the robot mounting edge at the start.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction": "Pick up the lemon and place it in/on the placemat farther from the robot mounting edge at the start.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "place",
"objects": [19 unmodified lines "name": "Place · water bottle",
"category": "Place",
"instruction": "Pick up the water bottle and place it in/on the bowl.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "place",
"objects": [25 unmodified lines "name": "Place · black cylinder water bottle",
"category": "Place",
"instruction": "Pick up the black cylinder water bottle and place it in/on the black box.",
"instruction_note": "Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.",
"instruction_note": "根据官方结构化 instruction 和首个别名确定性呈现;原记录没有保存采集时使用的具体随机语言变体,完整别名见下方元数据。",
"instruction_metadata": {
"task": "place",
"objects": [1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939412345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394"""Generate a free static HF Space from selected benchmark metadata."""from pathlib import Pathimport json,re,shutilROOT=Path(__file__).resolve().parents[1]NAME=ROOT.nameDATA=ROOT/'dataset'OUT=ROOT/'space'
JS=r'''const DATA=JSON.parse(document.getElementById('catalog').textContent);const esc=x=>String(x??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));const media=p=>DATA.media_base+p.split('/').map(encodeURIComponent).join('/');const file=p=>DATA.file_base+p.split('/').map(encodeURIComponent).join('/');const link=(u,t)=>`<a href="${esc(u)}" target="_blank" rel="noopener">${esc(t)}</a>`;const tasks=[...DATA.tasks].sort((a,b)=>a.task_index-b.task_index);const groups=[...new Set(tasks.map(t=>t.category))];let current=null,query='',group='all',mode='combined';function drawList(){ 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(''); const numeric=/^\d+$/.test(query.trim()); 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()))); document.getElementById('listCount').textContent=`${shown.length} / ${tasks.length}`; 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>'; document.querySelectorAll('[data-group]').forEach(b=>b.onclick=()=>{group=b.dataset.group;drawList()}); document.querySelectorAll('[data-task]').forEach(b=>b.onclick=()=>{selectTask(b.dataset.task);window.scrollTo({top:0})});}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'});}function player(p,poster=''){return `<video controls playsinline preload="metadata" src="${esc(media(p))}" ${poster?`poster="${esc(media(poster))}"`:''}></video>`}function episode(s){ const n=s.views.length; 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>`; 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>`;}function drawTask(){ 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>`; if(!current){document.getElementById('main').innerHTML=top+'<h1>精选集中没有这个序号</h1><p>请从左侧选择,或输入已收录的官方 task_index。</p>';return} const t=current,idx=tasks.indexOf(t),ss=DATA.samples.filter(s=>s.task_index===t.task_index),dynamic=DATA.name==='DynamicVLA'; document.title=`Task ${t.task_index} · ${t.name} · ${DATA.name}`; 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>`; if(t.instruction_note)html+=`<p class="description">${esc(t.instruction_note)}</p>`; if(t.instruction_metadata)html+=`<details class="metadata"><summary>原始 instruction 元数据与所有对象 / 容器别名</summary><pre>${esc(JSON.stringify(t.instruction_metadata,null,2))}</pre></details>`; 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>`; 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>`; if(t.profile)html+=`<details class="metadata"><summary>官方评估 profile / task phases</summary><pre>${esc(JSON.stringify(t.profile,null,2))}</pre></details>`; 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>`; document.getElementById('main').innerHTML=html; 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})}; 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})}); bindVideos();}function bindVideos(){ 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);});}document.getElementById('search').oninput=e=>{query=e.target.value;drawList()};selectTask(new URLSearchParams(location.search).get('task')??tasks[0].task_index,false);'''
def build(): source=json.loads((DATA/'provenance/source.json').read_text(encoding='utf-8')) tasks=json.loads((DATA/'provenance/tasks.json').read_text(encoding='utf-8')) samples=json.loads((DATA/'provenance/samples.json').read_text(encoding='utf-8')) publication=json.loads((ROOT/'publication.json').read_text(encoding='utf-8')) media_revision=publication['dataset_commit_sha'] 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}/') template=(ROOT/'browser/base.html').read_text(encoding='utf-8') template=re.sub(r'<script id="catalog".*?</script>','<script id="catalog" type="application/json">__DATA__</script>',template,flags=re.S) template=re.sub(r'<script>.*?</script>',lambda m:'<script>'+JS+'</script>',template,flags=re.S) template=template.replace('RoboDojo',NAME).replace('<a href="?task=reference" id="referenceLink">工具演示</a>','') template=template.replace('https://huggingface.co/datasets/Travor278/RoboDojo-Task-Examples',payload['repo_url']) n=len(samples[0]['views']);aspect=f'{320*n}/{348 if NAME=="ReflexBench" else 268}' 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}}' template=template.replace('</style>',extra+'</style>') encoded=json.dumps(payload,ensure_ascii=False,separators=(',',':')).replace('</','<\\/') OUT.mkdir(exist_ok=True);(OUT/'index.html').write_text(template.replace('__DATA__',encoded),encoding='utf-8') (OUT/'README.md').write_text(f'''---title: {NAME} Task Examplesemoji: 🦾colorFrom: greencolorTo: graysdk: staticapp_file: index.htmlfullWidth: true---
# {NAME} Simulation Task Browser
Official task-indexed selected MP4 episodes, instructions and source-grounded success rules.This static Space references videos in the selected dataset; no duplicated media or simulation assets.
Dataset: {payload['repo_url']}''',encoding='utf-8') print(f'Built {NAME} browser: {len(tasks)} official instruction IDs, {len(samples)} episodes, media revision {media_revision}')
if __name__=='__main__':build()"""Generate a free static HF Space from selected benchmark metadata."""
from pathlib import Path
import json,re,shutil
ROOT=Path(__file__).resolve().parents[1]
NAME=json.loads((ROOT/'provenance/source.json').read_text(encoding='utf-8'))['benchmark'] if (ROOT/'provenance/source.json').exists() else ROOT.name
DATA=ROOT if (ROOT/'provenance/source.json').exists() else ROOT/'dataset'
OUT=ROOT/'space'
JS=r'''
const DATA=JSON.parse(document.getElementById('catalog').textContent);
const esc=x=>String(x??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
const media=p=>DATA.media_base+p.split('/').map(encodeURIComponent).join('/');
const file=p=>DATA.file_base+p.split('/').map(encodeURIComponent).join('/');
const link=(u,t)=>`<a href="${esc(u)}" target="_blank" rel="noopener">${esc(t)}</a>`;
const tasks=[...DATA.tasks].sort((a,b)=>a.task_index-b.task_index);
const groups=[...new Set(tasks.map(t=>t.category))];
let current=null,query='',group='all',mode='combined';
function drawList(){
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('');
const numeric=/^\d+$/.test(query.trim());
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())));
document.getElementById('listCount').textContent=`${shown.length} / ${tasks.length}`;
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>';
document.querySelectorAll('[data-group]').forEach(b=>b.onclick=()=>{group=b.dataset.group;drawList()});
document.querySelectorAll('[data-task]').forEach(b=>b.onclick=()=>{selectTask(b.dataset.task);window.scrollTo({top:0})});
}
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'});}
function player(p,poster=''){return `<video controls playsinline preload="metadata" src="${esc(media(p))}" ${poster?`poster="${esc(media(poster))}"`:''}></video>`}
function episode(s){
const n=s.views.length;
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>`;
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>`;
}
function drawTask(){
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>`;
if(!current){document.getElementById('main').innerHTML=top+'<h1>精选集中没有这个序号</h1><p>请从左侧选择,或输入已收录的官方 task_index。</p>';return}
const t=current,idx=tasks.indexOf(t),ss=DATA.samples.filter(s=>s.task_index===t.task_index),dynamic=DATA.name==='DynamicVLA';
document.title=`Task ${t.task_index} · ${t.name} · ${DATA.name}`;
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>`;
if(t.instruction_note)html+=`<p class="description">${esc(t.instruction_note)}</p>`;
if(t.instruction_metadata)html+=`<details class="metadata"><summary>原始 instruction 元数据与所有对象 / 容器别名</summary><pre>${esc(JSON.stringify(t.instruction_metadata,null,2))}</pre></details>`;
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>`;
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>`;
if(t.profile)html+=`<details class="metadata"><summary>官方评估 profile / task phases</summary><pre>${esc(JSON.stringify(t.profile,null,2))}</pre></details>`;
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>`;
document.getElementById('main').innerHTML=html;
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})};
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})});
bindVideos();
}
function bindVideos(){
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);});
}
document.getElementById('search').oninput=e=>{query=e.target.value;drawList()};
selectTask(new URLSearchParams(location.search).get('task')??tasks[0].task_index,false);
'''
def build():
source=json.loads((DATA/'provenance/source.json').read_text(encoding='utf-8'))
tasks=json.loads((DATA/'provenance/tasks.json').read_text(encoding='utf-8'))
samples=json.loads((DATA/'provenance/samples.json').read_text(encoding='utf-8'))
publication=json.loads(((ROOT/'publication.json') if (ROOT/'publication.json').exists() else (DATA/'provenance/media_publication.json')).read_text(encoding='utf-8'))
media_revision=publication['dataset_commit_sha']
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}/')
template=(ROOT/'browser/base.html').read_text(encoding='utf-8')
template=re.sub(r'<script id="catalog".*?</script>','<script id="catalog" type="application/json">__DATA__</script>',template,flags=re.S)
template=re.sub(r'<script>.*?</script>',lambda m:'<script>'+JS+'</script>',template,flags=re.S)
template=template.replace('RoboDojo',NAME).replace('<a href="?task=reference" id="referenceLink">工具演示</a>','')
template=template.replace('https://huggingface.co/datasets/Travor278/RoboDojo-Task-Examples',payload['repo_url'])
n=len(samples[0]['views']);aspect=f'{320*n}/{348 if NAME=="ReflexBench" else 268}'
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}}'
template=template.replace('</style>',extra+'</style>')
encoded=json.dumps(payload,ensure_ascii=False,separators=(',',':')).replace('</','<\\/')
OUT.mkdir(exist_ok=True);(OUT/'index.html').write_text(template.replace('__DATA__',encoded),encoding='utf-8')
(OUT/'README.md').write_text(f'''---
title: {NAME} Task Examples
emoji: 🦾
colorFrom: green
colorTo: gray
sdk: static
app_file: index.html
fullWidth: true
---
# {NAME} Simulation Task Browser
Official task-indexed selected MP4 episodes, instructions and source-grounded success rules.
This static Space references videos in the selected dataset; no duplicated media or simulation assets.
Dataset: {payload['repo_url']}
''',encoding='utf-8')
print(f'Built {NAME} browser: {len(tasks)} official instruction IDs, {len(samples)} episodes, media revision {media_revision}')
if __name__=='__main__':build()22 unmodified lines23242526272829303132333435108 unmodified lines14414514614014714814915014415115215315422 unmodified lines
def read(p):return json.loads(p.read_text(encoding='utf-8'))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')def readable_instruction(meta): obj=meta['objects'][0];obj_phrase=obj if obj.lower().startswith(('the ','all ')) else 'the '+obj if meta['task']=='pick':return f'Pick up {obj_phrase}.' container=meta.get('containers',['target container'])[0] container_phrase=container if container.lower().startswith('the ') else 'the '+container pronoun='them' if 'set of objects' in obj.lower() else 'it' return f'Pick up {obj_phrase} and place {pronoun} in/on {container_phrase}.'def url(p):return f'https://huggingface.co/datasets/{REPO}/resolve/{SOURCE_REV}/{p}'def download_file(p,dst): if dst.exists():return108 unmodified lines 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'] 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) obj=meta['objects'][0];container=meta.get('containers',[''])[0] instruction=f'Pick up the {obj}.' if kind=='pick' else f'Pick up the {obj} and place it in/on the {container}.' instruction=readable_instruction(meta) # This deterministic sentence is a readable rendering, not a recorded literal prompt. 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.' key=f'task_{index:06d}' 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='Readable deterministic rendering of structured official instruction metadata; the exact generated natural-language variant is not stored.',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) 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) if index not in {t['task_index'] for t in tasks}:tasks.append(task) 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')]] 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'))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.jsonAdded+3
provenance/samples.json+12-12
provenance/tasks.json+36-36
scripts/build_browser.py+94-94
scripts/build_examples.py+9-2