mfan-res commited on
Commit
605a1ee
·
verified ·
1 Parent(s): b80bfc1

Add the dataset card

Browse files
Files changed (1) hide show
  1. README.md +189 -164
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- license: other
3
  task_categories:
4
  - visual-question-answering
5
  language:
@@ -7,200 +7,225 @@ language:
7
  tags:
8
  - robotics
9
  - temporal-reasoning
10
- - video-qa
 
 
 
11
  ---
12
 
13
- # RoboChrono-GIM
14
 
15
- Temporal visual reasoning on robot manipulation video. Each question asks about
16
- **when** something happens rather than what is in the frame — which action is
17
- running now, what comes next, which frame came from this clip, what order three
18
- moments go in.
19
 
20
- The repository holds two disjoint subsets, same format, separate manifests:
 
21
 
22
- | | where | platform | scenarios | episodes | questions | size |
23
- | --- | --- | --- | ---: | ---: | ---: | ---: |
24
- | **GIM** | repository root | industrial dual-arm rig, dark red arms on a green table | 15 | 776 | 15,204 | 42.5 GB |
25
- | **Tianji** | `Tianji/` | 5 hand + 14 tianji + 5 tianjihand | 24 | 1040 | 19,509 | 31.4 GB |
26
 
27
- GIM fingerprint 9cb5dc6353f2
28
- Tianji fingerprint 11c770521a2f
29
 
30
- Together they are every scenario the source project has: 39 in all, each
31
- taken whole from one upstream build.
 
 
32
 
33
- ## Quickstart
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
- ```bash
36
- pip install -U huggingface_hub
37
- hf download gimai/RoboChrono-GIM --repo-type=dataset --include "prepare.sh" --local-dir robochrono-gim
38
- cd robochrono-gim && bash prepare.sh --dir .
39
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
- `prepare.sh` downloads, unpacks the archives, deletes them, and checks that every
42
- media file the questions refer to is on disk. Then:
 
43
 
44
  ```bash
45
- python3 robochrono.py -n 1 # a GIM question, as a model sees it
46
- python3 robochrono.py --root Tianji -n 1 # the same for the Tianji half
47
- python3 robochrono.py --check # re-verify all 19,933 GIM media files
48
  ```
49
 
50
- Other subsets and partial downloads:
51
 
52
  ```bash
53
- bash prepare.sh --dir . --subset tianji # the Tianji half, 31.4 GB
54
- bash prepare.sh --dir . --subset all # both, 74.0 GB
55
- bash prepare.sh --dir . --no-episodes # 14.3 GB, covers 6 of the 7 dimensions
56
- bash prepare.sh --dir . --scenario cap_pen_gim # one scenario, all dimensions
57
  ```
58
 
59
- ## What you get
 
60
 
61
- ```
62
- manifest.json the GIM half: what is in it, and where it came from
63
- qa/
64
- ├── scenarios.json each scenario's goal, camera and action-order statistics
65
- ├── subtasks.json the actions, grouped by scenario
66
- ├── dimensions.json how each dimension words its question
67
- └── <scenario>/<dimension>.json
68
- media/
69
- ├── clips/<scenario>/<episode>@<camera>@<start>-<end>.mp4
70
- ├── episodes/<scenario>/<episode>@<camera>.mp4
71
- └── frames/<scenario>/<episode>@<camera>@<frame>.jpg
72
- Tianji/ the same four, for the non-GIM platforms
73
- robochrono.py loader; standard library only
74
- prepare.sh the command above
75
  ```
76
 
77
- Before `prepare.sh` runs, `media/<kind>/` holds `<scenario>.tar` instead of
78
- `<scenario>/`. The media is **19,933 files** in the GIM half alone; shipping them
79
- individually would turn every full download into an hour of round trips, so each
80
- scenario travels as one archive that unpacks in place — `media/clips/cap_pen_gim.tar`
81
- becomes `media/clips/cap_pen_gim/`, exactly the path the questions already name.
82
- Nothing is renamed or rewritten on the way out.
83
-
84
- | | archives | unpacked files | size |
85
- | --- | ---: | ---: | ---: |
86
- | `media/clips/` | 18 | 2,994 | 13.75 GB |
87
- | `media/episodes/` | 18 | 776 | 28.20 GB |
88
- | `media/frames/` | 15 | 16,163 | 0.57 GB |
89
 
90
- `pack_aidkit_gim` is the one scenario whose clips and episodes are split across
91
- four shards (`.part_a` … `.part_d`); `prepare.sh` unpacks all of them.
92
 
93
- ## Reading a question
 
 
 
 
94
 
95
- **A stored question holds the id of the action it is about, not the sentence.**
96
- This is the one thing to get right. The sentence lives in `qa/subtasks.json`,
97
- the shape of the question in `qa/dimensions.json`, and loading a question means
98
- rendering one from the other:
99
 
100
- ```json
101
- // qa/cap_pen_gim/next_action_with_goal.json
102
- {"id": "cap_pen_gim/file-000/s00@next_action_with_goal", "subtask": "pick_pen",
103
- "input": {"clip_path": "media/clips/cap_pen_gim/file-000@main@000166-000351.mp4"},
104
- "options": [{"id": "A", "subtask": "put_pen_in_pen_box"}, ...], "answer": "C"}
105
  ```
106
 
107
- `robochrono.py` does that for you, with the same code the dataset was built and
108
- fingerprinted with:
109
 
110
- ```python
111
- import robochrono
112
- qs = robochrono.load(".", scenarios=["cap_pen_gim"], dimensions=["next_action_with_goal"])
113
- print(qs[0]["question"], qs[0]["answer"], qs[0]["media"])
114
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  ```
117
- The overall task is capping a pen and putting it into its box. Based on the
118
- current visual state, what should happen next?
119
- Options:
120
- A. Put the pen in the pen box.
121
- B. Put the cap on the pen.
122
- C. Pick the cap.
123
- D. Put the cap in the pen box.
124
-
125
- C {'clip': '/abs/path/media/clips/cap_pen_gim/file-000@main@000166-000351.mp4'}
126
  ```
127
 
128
- An action is described in exactly one place, so rewording it changes every
129
- question that uses it and cannot leave some behind. Reimplementing the renderer
130
- risks scoring a model on a different question than the one this dataset claims to
131
- ask, which is why the loader ships with the data.
132
-
133
- **Options are text for four dimensions and images for two.** `current_action`,
134
- `next_action`, `next_action_with_goal` and `frame_order` already have their
135
- options written into `question`; do not append them again. `frame_match` and
136
- `view_match` have image options, which `question` does not mention because there
137
- is nothing to write — attach them as images, in stored order. The loader marks
138
- which is which in `option_kind`, and puts the image paths in `media["options"]`.
139
- `action_time` has no options at all; its answer is a time range.
140
-
141
- ## Scenarios (GIM)
142
-
143
- | scenario | goal | episodes | questions | from |
144
- | --- | --- | ---: | ---: | --- |
145
- | `bag_toy_gim` | puting a toy into a deliver bag | 41 | 697 | v22 |
146
- | `box_shoes_gim` | putting the shoe into the box | 49 | 833 | v22 |
147
- | `brew_teabag_gim` | brewing a pot of tea with a tea bag | 44 | 924 | v23 |
148
- | `cap_pen_gim` | capping a pen and putting it into its box | 60 | 1200 | vqa_2 |
149
- | `make_tea_gim` | brewing tea in a kettle with a tea bag | 52 | 1092 | v22 |
150
- | `pack_aidkit_gim` | packing a first aid kit | 50 | 1050 | vqa_2 |
151
- | `pack_airpods_gim` | putting the earphones into their case | 18 | 378 | v23 |
152
- | `pack_gift_gim` | putting a toy car into a gift box | 50 | 1050 | v22 |
153
- | `slip_tshirt_gim` | slipping a T-shirt over a board | 48 | 960 | v23 |
154
- | `sort_cubes_gim` | putting the cubes into boxes of the same color | 59 | 1239 | v23 |
155
- | `stack_cubes_gim` | stacking cubes | 50 | 1050 | vqa_2 |
156
- | `tidy_stationery_gim` | capping a pen and putting it into its box | 108 | 1836 | v23 |
157
- | `wash_dishes_gim` | cleaning the bowl and plates | 49 | 1029 | v23 |
158
- | `wipe_plate_gim` | wiping the plates | 50 | 1050 | v23 |
159
- | `zip_pouch_gim` | zipping a pouch and putting it away | 48 | 816 | v23 |
160
-
161
- The Tianji half's scenarios are listed in `Tianji/README.md`.
162
-
163
- ## Dimensions (GIM)
164
-
165
- | dimension | questions |
166
- | --- | ---: |
167
- | `current_action` | 2328 |
168
- | `next_action` | 2082 |
169
- | `next_action_with_goal` | 2082 |
170
- | `frame_match` | 2328 |
171
- | `view_match` | 2328 |
172
- | `frame_order` | 1728 |
173
- | `action_time` | 2328 |
174
-
175
- Only `action_time` reads `media/episodes/`, which is 28 GB of the 43 GB.
176
-
177
- ## Provenance
178
-
179
- Assembled from `GIM-RoboLab/robochrono`, which publishes RoboChrono as several
180
- separate builds. Each scenario is taken **whole** from one build — no scenario
181
- mixes episodes across builds:
182
-
183
- - `vqa_2` — RoboChrono 2.0, fingerprint `64fbe7657d0d`
184
- - `v22` — RoboChrono 2.2, fingerprint `6e046cffefee`
185
- - `v23` — RoboChrono 2.3, fingerprint `b8e4bb924b91`
186
-
187
- Three GIM scenarios existed in more than one build. Each resolves to the newer one:
188
-
189
- | scenario | kept | dropped | why |
190
- | --- | --- | --- | --- |
191
- | `pack_gift_gim` | v22, 50 episodes | vqa_2, 25 episodes | v22 is a full regeneration after supplementary data |
192
- | `wipe_plate_gim` | v23, 50 episodes | vqa_2, 50 episodes | same episode count, newer pipeline |
193
- | `slip_tshirt_gim` | v23, 48 episodes | vqa_2, 49 episodes | one episode fewer, kept so every v23 scenario comes from one pipeline version |
194
-
195
- The builds word their questions identically (`qa/dimensions.json` is semantically
196
- equal across all of them), which is what makes merging their questions under one
197
- fingerprint meaningful.
198
-
199
- `fingerprint` follows the same rule the source manifests use — a hash of the
200
- questions **as they are asked**, not as they are stored. It is therefore not
201
- comparable to any source manifest's value, because no source build covers this
202
- set of scenarios.
203
-
204
- The upstream repository has one further directory, `vqa/`, which is not
205
- represented here: it is the v1 vendor build, its questions use a different schema
206
- entirely, and all six of its families are superseded by the builds above.
 
1
  ---
2
+ license: cc-by-4.0
3
  task_categories:
4
  - visual-question-answering
5
  language:
 
7
  tags:
8
  - robotics
9
  - temporal-reasoning
10
+ - video-question-answering
11
+ - embodied-ai
12
+ size_categories:
13
+ - 10K<n<100K
14
  ---
15
 
16
+ # RoboChrono — GIM
17
 
18
+ RoboChrono asks a vision-language model **when** things happen in a robot
19
+ manipulation recording, rather than what appears in a single frame: which action is
20
+ running now, which one comes next, which still frame belongs to a clip, which camera
21
+ shows the same moment, what order three frames go in, and when a named action occurs.
22
 
23
+ This repository holds **15 scenarios · 776 episodes · 15,204 questions · 42.5 GB**.
24
+ Every scenario here is `gim`.
25
 
26
+ ## The complete benchmark
 
 
 
27
 
28
+ RoboChrono is published as two dataset repositories. Together they hold
29
+ **39 scenarios and 34,713 questions**.
30
 
31
+ | Repository | Scenarios | Questions | Size |
32
+ | --- | ---: | ---: | ---: |
33
+ | `gimai/RoboChrono-GIM` (this one) | 15 | 15,204 | 42.5 GB |
34
+ | [`gimai/RoboChrono-Tianji`](https://huggingface.co/datasets/gimai/RoboChrono-Tianji) | 24 | 19,509 | 31.5 GB |
35
 
36
+ Scenario count and size run in opposite directions between the two, so neither number
37
+ predicts the other: this repository has fewer scenarios but more data. Read both columns before deciding what to fetch.
38
+
39
+ ## Question dimensions
40
+
41
+ Every scenario carries the same seven. Six are four-way multiple choice scored by
42
+ accuracy; `action_time` is temporal grounding scored by tIoU@0.5.
43
+
44
+ | Dimension | What it asks | The model sees | Options | Metric |
45
+ | --- | --- | --- | --- | --- |
46
+ | `current_action` | which action is happening now | one action clip | four action descriptions | accuracy |
47
+ | `next_action` | which action comes next | one action clip | four action descriptions | accuracy |
48
+ | `next_action_with_goal` | which action comes next, given the task goal | one action clip | four action descriptions | accuracy |
49
+ | `frame_match` | which still frame came from this clip | one action clip | four images | accuracy |
50
+ | `view_match` | which wrist camera shows the moment the head camera shows | one frame | four images | accuracy |
51
+ | `frame_order` | the chronological order of three frames | three frames | four orderings | accuracy |
52
+ | `action_time` | when a named action occurs | the full episode | free-form interval | tIoU@0.5 |
53
+
54
+ A question stores the **identifier** of the action it is about, not the sentence. The
55
+ sentence is in `qa/subtasks.json` and the phrasing of the question in
56
+ `qa/dimensions.json`; rendering one from the other is what turns a stored question
57
+ into the text a model is shown.
58
+
59
+ ## Layout
60
+
61
+ Each scenario is a self-contained directory. Nothing outside it is needed to load it.
62
 
 
 
 
 
63
  ```
64
+ <scenario_id>/
65
+ ├── manifest.json what the scenario contains, and its content hash
66
+ ├── qa/
67
+ │ ├── current_action.json one file per dimension, seven in all
68
+ │ ├── next_action.json
69
+ │ ├── next_action_with_goal.json
70
+ │ ├── frame_match.json
71
+ │ ├── view_match.json
72
+ │ ├── frame_order.json
73
+ │ ├── action_time.json
74
+ │ ├── subtasks.json the action descriptions the questions refer to
75
+ │ ├── scenarios.json the task goal and the recording metadata
76
+ │ └── dimensions.json the phrasing template of each dimension
77
+ └── media/
78
+ ├── clips.tar one clip per action segment, per camera
79
+ ├── episodes.tar whole episodes, per camera
80
+ └── frames.tar the still frames the questions offer
81
+ ```
82
+
83
+ `manifest.json` and `qa/` stay loose, so they render on the Hub and can be fetched
84
+ without the video. Media travels as one uncompressed archive per kind — the payload is
85
+ already H.264 and JPEG, and three archives keep each kind separately downloadable.
86
 
87
+ ## Download
88
+
89
+ Everything:
90
 
91
  ```bash
92
+ huggingface-cli download gimai/RoboChrono-GIM --repo-type=dataset --local-dir robochrono
 
 
93
  ```
94
 
95
+ One scenario:
96
 
97
  ```bash
98
+ huggingface-cli download gimai/RoboChrono-GIM --repo-type=dataset \
99
+ --include "bag_toy_gim/*" --local-dir robochrono
 
 
100
  ```
101
 
102
+ **Questions only, no video** — a few megabytes, enough to inspect the format, count the
103
+ questions, or check a scenario's hash:
104
 
105
+ ```bash
106
+ huggingface-cli download gimai/RoboChrono-GIM --repo-type=dataset \
107
+ --include "*/qa/*" --include "*/manifest.json" --local-dir robochrono
 
 
 
 
 
 
 
 
 
 
 
108
  ```
109
 
110
+ ## Unpacking
 
 
 
 
 
 
 
 
 
 
 
111
 
112
+ The archives extract relative to their scenario directory, so run `tar` inside it:
 
113
 
114
+ ```bash
115
+ cd robochrono/bag_toy_gim
116
+ for t in media/*.tar; do tar xf "$t"; done
117
+ rm media/*.tar # optional, once extraction succeeded
118
+ ```
119
 
120
+ Or for every scenario at once:
 
 
 
121
 
122
+ ```bash
123
+ cd robochrono
124
+ for d in */; do (cd "$d" && for t in media/*.tar; do tar xf "$t"; done); done
 
 
125
  ```
126
 
127
+ The result is the layout the questions refer to:
 
128
 
 
 
 
 
129
  ```
130
+ bag_toy_gim/
131
+ ├── manifest.json
132
+ ├── qa/…
133
+ └── media/
134
+ ├── clips/bag_toy_gim/<episode>@<camera>@<start>-<end>.mp4
135
+ ├── episodes/bag_toy_gim/<episode>@<camera>.mp4
136
+ └── frames/bag_toy_gim/<episode>@<camera>@<frame>.jpg
137
+ ```
138
+
139
+ Media paths inside a question are relative to the scenario directory, so they resolve
140
+ against this tree unchanged.
141
+ ## manifest.json
142
+
143
+ | Field | Meaning |
144
+ | --- | --- |
145
+ | `schema` | version of this manifest format |
146
+ | `scenario_id` | the directory name, and how a suite refers to the scenario |
147
+ | `embodiment` | what performed the task; see below |
148
+ | `hash` | SHA-256 over what the model is asked — the question items, the action wording, the goal, and the phrasing templates. Recording metadata and media bytes are excluded, so reformatting a JSON file does not move it. See *What the hash does and does not cover* below |
149
+ | `questions` | total across the seven dimensions |
150
+ | `dimensions` | question count per dimension; all seven keys are always present |
151
+ | `episodes` | recordings the questions draw on |
152
+ | `camera` | resolution, frame rate and the camera views available |
153
+ | `counts` | episodes, annotated action segments, and distinct actions |
154
+ | `next_action` | how predictable the action order is: transition count, the share of actions with a single observed successor, and the conditional entropy of the successor |
155
+ | `media` | file count, total bytes, and a `path`/`bytes` entry for every media file — the inventory of the **unpacked** directory, so it matches after the archives are extracted |
156
+
157
+ ### What the hash does and does not cover
158
+
159
+ The hash covers **the questions and their answers**. If it matches, nobody has altered
160
+ what is asked, which options are offered, or which option is correct.
161
+
162
+ It does **not** cover the media. Video and image bytes are outside it by design, so that
163
+ reformatting a JSON file does not invalidate a scenario — but the consequence is worth
164
+ stating plainly: **a scenario whose videos were re-encoded, truncated or replaced still
165
+ passes the hash check, while a model watching it sees something different and scores
166
+ differently.** The hash cannot tell you about that.
167
+
168
+ What guards the media is the weak check in `manifest.json`: `media.files`,
169
+ `media.bytes`, and a `path`/`bytes` entry per file. Preflight compares the unpacked
170
+ directory against that inventory, so a missing or truncated file is caught. Two files of
171
+ identical length are not distinguished — no per-file content hash is recorded.
172
+
173
+ So: `--verify` passing means **the questions are unmodified and every media file is
174
+ present at its declared length**. It does not certify that the media is bit-for-bit what
175
+ was published. If you are reporting scores, re-download rather than repair a directory
176
+ that failed either check.
177
+
178
+ `embodiment` records what performed the task at recording time:
179
+
180
+ | Value | Meaning |
181
+ | --- | --- |
182
+ | `gim` | the GIM platform |
183
+ | `tianji` | the Tianji platform with a parallel gripper |
184
+ | `tianjihand` | the Tianji platform with a dexterous hand |
185
+ | `hand` | a human hand, recorded from a head-mounted camera |
186
+
187
+ ## Using it with the evaluation code
188
+
189
+ The evaluation code reads a **pool directory** holding scenario directories, named by
190
+ `--data-root`. Unpack wherever is convenient and point at the parent:
191
 
192
  ```
193
+ pool/
194
+ ├── <scenario_id>/{manifest.json, qa/, media/}
195
+ └── <scenario_id>/…
 
 
 
 
 
 
196
  ```
197
 
198
+ Preflight recomputes each scenario's hash from its `qa/` and compares it with
199
+ `manifest.json`, and checks that every media path a question refers to is present. A
200
+ scenario that fails either check is refused rather than scored, so an incomplete
201
+ download cannot quietly become a lower score.
202
+
203
+ Both repositories unpack into the same shape, so a pool may hold scenarios from either
204
+ or from both.
205
+
206
+ ## Scenarios
207
+
208
+ | Scenario | Embodiment | Episodes | Questions | Size | Task |
209
+ | --- | --- | ---: | ---: | ---: | --- |
210
+ | `bag_toy_gim` | `gim` | 41 | 697 | 1.16 | puting a toy into a deliver bag |
211
+ | `box_shoes_gim` | `gim` | 49 | 833 | 1.04 | putting the shoe into the box |
212
+ | `brew_teabag_gim` | `gim` | 44 | 924 | 3.78 | brewing a pot of tea with a tea bag |
213
+ | `cap_pen_gim` | `gim` | 60 | 1,200 | 2.51 | capping a pen and putting it into its box |
214
+ | `make_tea_gim` | `gim` | 52 | 1,092 | 4.07 | brewing tea in a kettle with a tea bag |
215
+ | `pack_aidkit_gim` | `gim` | 50 | 1,050 | 14.16 | packing a first aid kit |
216
+ | `pack_airpods_gim` | `gim` | 18 | 378 | 0.80 | putting the earphones into their case |
217
+ | `pack_gift_gim` | `gim` | 50 | 1,050 | 0.95 | putting a toy car into a gift box |
218
+ | `slip_tshirt_gim` | `gim` | 48 | 960 | 1.80 | slipping a T-shirt over a board |
219
+ | `sort_cubes_gim` | `gim` | 59 | 1,239 | 1.13 | putting the cubes into boxes of the same color |
220
+ | `stack_cubes_gim` | `gim` | 50 | 1,050 | 2.41 | stacking cubes |
221
+ | `tidy_stationery_gim` | `gim` | 108 | 1,836 | 1.92 | capping a pen and putting it into its box |
222
+ | `wash_dishes_gim` | `gim` | 49 | 1,029 | 3.17 | cleaning the bowl and plates |
223
+ | `wipe_plate_gim` | `gim` | 50 | 1,050 | 2.34 | wiping the plates |
224
+ | `zip_pouch_gim` | `gim` | 48 | 816 | 1.29 | zipping a pouch and putting it away |
225
+ ## License
226
+
227
+ CC-BY-4.0.
228
+
229
+ ## Citation
230
+
231
+ A paper describing this benchmark is in preparation.