adhdmi commited on
Commit
30c43ca
·
verified ·
1 Parent(s): d0fa1c6

docs: regenerate KAPEX dataset card

Browse files
Files changed (1) hide show
  1. README.md +92 -301
README.md CHANGED
@@ -1,321 +1,112 @@
1
  ---
2
  license: apache-2.0
 
 
 
3
  task_categories:
4
- - robotics
5
  tags:
6
- - LeRobot
7
- configs:
8
- - config_name: default
9
- data_files: data/*/*.parquet
 
 
 
 
10
  ---
 
11
 
12
- This dataset was created using [LeRobot](https://github.com/huggingface/lerobot).
 
 
13
 
 
 
 
 
 
 
14
 
15
- <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=adhdmi/mug">
16
- <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
17
- <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
18
- </a>
19
 
 
20
 
21
- ## Dataset Description
 
 
 
 
 
 
 
22
 
 
 
 
 
 
 
23
 
 
24
 
25
- - **Homepage:** [More Information Needed]
26
- - **Paper:** [More Information Needed]
27
- - **License:** apache-2.0
28
 
29
- ## Dataset Structure
 
 
 
30
 
31
- [meta/info.json](meta/info.json):
32
- ```json
33
- {
34
- "codebase_version": "v3.0",
35
- "robot_type": null,
36
- "total_episodes": 100,
37
- "total_frames": 16893,
38
- "total_tasks": 1,
39
- "chunks_size": 1000,
40
- "data_files_size_in_mb": 100,
41
- "video_files_size_in_mb": 200,
42
- "fps": 20,
43
- "splits": {
44
- "train": "0:100"
45
- },
46
- "data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet",
47
- "video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4",
48
- "features": {
49
- "observation.state": {
50
- "dtype": "float32",
51
- "shape": [
52
- 59
53
- ],
54
- "names": [
55
- "state_0",
56
- "state_1",
57
- "state_2",
58
- "state_3",
59
- "state_4",
60
- "state_5",
61
- "state_6",
62
- "state_7",
63
- "state_8",
64
- "state_9",
65
- "state_10",
66
- "state_11",
67
- "state_12",
68
- "state_13",
69
- "state_14",
70
- "state_15",
71
- "state_16",
72
- "state_17",
73
- "state_18",
74
- "state_19",
75
- "state_20",
76
- "state_21",
77
- "state_22",
78
- "state_23",
79
- "state_24",
80
- "state_25",
81
- "state_26",
82
- "state_27",
83
- "state_28",
84
- "state_29",
85
- "state_30",
86
- "state_31",
87
- "state_32",
88
- "state_33",
89
- "state_34",
90
- "state_35",
91
- "state_36",
92
- "state_37",
93
- "state_38",
94
- "state_39",
95
- "state_40",
96
- "state_41",
97
- "state_42",
98
- "state_43",
99
- "state_44",
100
- "state_45",
101
- "state_46",
102
- "state_47",
103
- "state_48",
104
- "state_49",
105
- "state_50",
106
- "state_51",
107
- "state_52",
108
- "state_53",
109
- "state_54",
110
- "state_55",
111
- "state_56",
112
- "state_57",
113
- "state_58"
114
- ]
115
- },
116
- "action": {
117
- "dtype": "float32",
118
- "shape": [
119
- 59
120
- ],
121
- "names": [
122
- "action_0",
123
- "action_1",
124
- "action_2",
125
- "action_3",
126
- "action_4",
127
- "action_5",
128
- "action_6",
129
- "action_7",
130
- "action_8",
131
- "action_9",
132
- "action_10",
133
- "action_11",
134
- "action_12",
135
- "action_13",
136
- "action_14",
137
- "action_15",
138
- "action_16",
139
- "action_17",
140
- "action_18",
141
- "action_19",
142
- "action_20",
143
- "action_21",
144
- "action_22",
145
- "action_23",
146
- "action_24",
147
- "action_25",
148
- "action_26",
149
- "action_27",
150
- "action_28",
151
- "action_29",
152
- "action_30",
153
- "action_31",
154
- "action_32",
155
- "action_33",
156
- "action_34",
157
- "action_35",
158
- "action_36",
159
- "action_37",
160
- "action_38",
161
- "action_39",
162
- "action_40",
163
- "action_41",
164
- "action_42",
165
- "action_43",
166
- "action_44",
167
- "action_45",
168
- "action_46",
169
- "action_47",
170
- "action_48",
171
- "action_49",
172
- "action_50",
173
- "action_51",
174
- "action_52",
175
- "action_53",
176
- "action_54",
177
- "action_55",
178
- "action_56",
179
- "action_57",
180
- "action_58"
181
- ]
182
- },
183
- "observation.images.cam_left": {
184
- "dtype": "video",
185
- "shape": [
186
- 3,
187
- 480,
188
- 640
189
- ],
190
- "names": [
191
- "channels",
192
- "height",
193
- "width"
194
- ],
195
- "info": {
196
- "video.height": 480,
197
- "video.width": 640,
198
- "video.codec": "av1",
199
- "video.pix_fmt": "yuv420p",
200
- "video.is_depth_map": false,
201
- "video.fps": 20,
202
- "video.channels": 3,
203
- "has_audio": false
204
- }
205
- },
206
- "observation.images.cam_right": {
207
- "dtype": "video",
208
- "shape": [
209
- 3,
210
- 480,
211
- 640
212
- ],
213
- "names": [
214
- "channels",
215
- "height",
216
- "width"
217
- ],
218
- "info": {
219
- "video.height": 480,
220
- "video.width": 640,
221
- "video.codec": "av1",
222
- "video.pix_fmt": "yuv420p",
223
- "video.is_depth_map": false,
224
- "video.fps": 20,
225
- "video.channels": 3,
226
- "has_audio": false
227
- }
228
- },
229
- "observation.images.cam_wrist_left": {
230
- "dtype": "video",
231
- "shape": [
232
- 3,
233
- 480,
234
- 640
235
- ],
236
- "names": [
237
- "channels",
238
- "height",
239
- "width"
240
- ],
241
- "info": {
242
- "video.height": 480,
243
- "video.width": 640,
244
- "video.codec": "av1",
245
- "video.pix_fmt": "yuv420p",
246
- "video.is_depth_map": false,
247
- "video.fps": 20,
248
- "video.channels": 3,
249
- "has_audio": false
250
- }
251
- },
252
- "observation.images.cam_wrist_right": {
253
- "dtype": "video",
254
- "shape": [
255
- 3,
256
- 480,
257
- 640
258
- ],
259
- "names": [
260
- "channels",
261
- "height",
262
- "width"
263
- ],
264
- "info": {
265
- "video.height": 480,
266
- "video.width": 640,
267
- "video.codec": "av1",
268
- "video.pix_fmt": "yuv420p",
269
- "video.is_depth_map": false,
270
- "video.fps": 20,
271
- "video.channels": 3,
272
- "has_audio": false
273
- }
274
- },
275
- "timestamp": {
276
- "dtype": "float32",
277
- "shape": [
278
- 1
279
- ],
280
- "names": null
281
- },
282
- "frame_index": {
283
- "dtype": "int64",
284
- "shape": [
285
- 1
286
- ],
287
- "names": null
288
- },
289
- "episode_index": {
290
- "dtype": "int64",
291
- "shape": [
292
- 1
293
- ],
294
- "names": null
295
- },
296
- "index": {
297
- "dtype": "int64",
298
- "shape": [
299
- 1
300
- ],
301
- "names": null
302
- },
303
- "task_index": {
304
- "dtype": "int64",
305
- "shape": [
306
- 1
307
- ],
308
- "names": null
309
- }
310
- }
311
- }
312
  ```
313
 
 
 
 
 
 
 
 
 
314
 
315
- ## Citation
 
 
316
 
317
- **BibTeX:**
318
 
319
- ```bibtex
320
- [More Information Needed]
321
- ```
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pretty_name: KAPEX teleop · mug
4
+ language:
5
+ - en
6
  task_categories:
7
+ - robotics
8
  tags:
9
+ - lerobot
10
+ - imitation-learning
11
+ - manipulation
12
+ - humanoid
13
+ - kapex
14
+ - teleoperation
15
+ size_categories:
16
+ - 10K<n<100K
17
  ---
18
+ # KAPEX teleop · mug
19
 
20
+ A [LeRobot](https://github.com/huggingface/lerobot)-format dataset captured
21
+ through KAPEX humanoid teleoperation (Manus gloves + Vive trackers, plus
22
+ optional VR head cameras).
23
 
24
+ - **Repo id:** `adhdmi/mug`
25
+ - **LeRobot codebase version:** `v3.0`
26
+ - **Episodes / Frames:** 100 / 16893
27
+ - **Control rate:** 20 fps
28
+ - **State / Action dim:** 59 / 59
29
+ **Task instruction (per episode):** *Pick up the mug with the right hand and place it on top of the cube*
30
 
 
 
 
 
31
 
32
+ ## Schema
33
 
34
+ | Feature | dtype | shape | rate |
35
+ |---|---|---|---|
36
+ | `observation.state` | float32 | (59,) | 20 fps |
37
+ | `action` | float32 | (59,) | 20 fps |
38
+ | `observation.images.cam_left` | video (av1) | (3, 480, 640) | 20 fps |
39
+ | `observation.images.cam_right` | video (av1) | (3, 480, 640) | 20 fps |
40
+ | `observation.images.cam_wrist_left` | video (av1) | (3, 480, 640) | 20 fps |
41
+ | `observation.images.cam_wrist_right` | video (av1) | (3, 480, 640) | 20 fps |
42
 
43
+ The 59-dimensional KAPEX joint layout (when full body is recorded):
44
+ `3 waist + 2 head + 7 left arm + 7 right arm + 20 left hand + 20 right hand`.
45
+ `observation.state` holds the *current* joint positions; `action` holds the
46
+ *target* joint positions issued that tick. A learned policy that emits a
47
+ 59-d vector in this layout is plug-compatible with `BaseEnv._apply_action`
48
+ in the [Kapex Benchmark](https://github.com/) repository.
49
 
50
+ ## Cameras
51
 
52
+ All camera streams are stored as videos at 20 fps, channel-first `(3, H, W)`
53
+ RGB layout (decoded by LeRobot's `VideoFrame` reader at load time).
 
54
 
55
+ - `observation.images.cam_left` — head left eye (mounted on `HL2`)
56
+ - `observation.images.cam_right` — head right eye (mounted on `HL2`)
57
+ - `observation.images.cam_wrist_left` — left wrist camera (mounted on `LA7`)
58
+ - `observation.images.cam_wrist_right` — right wrist camera (mounted on `RA7`)
59
 
60
+ ## Loading the dataset
61
+
62
+ ```python
63
+ from lerobot.datasets.lerobot_dataset import LeRobotDataset
64
+
65
+ ds = LeRobotDataset("adhdmi/mug") # downloads on first call
66
+ print(len(ds), ds.meta.fps, list(ds.meta.features))
67
+
68
+ sample = ds[0]
69
+ print(sample["observation.state"].shape) # (59,)
70
+ print(sample["action"].shape) # (59,)
71
+ ```
72
+
73
+ ## Training
74
+
75
+ LeRobot 0.5.x ships training entry points as console scripts. Replace
76
+ `act` with `diffusion`, `tdmpc`, `vqbet`, ... for other policy families.
77
+
78
+ ```bash
79
+ # Action-Chunking Transformer (ACT)
80
+ lerobot-train \
81
+ --policy.type=act \
82
+ --dataset.repo_id=adhdmi/mug \
83
+ --output_dir=./outputs/act_mug
84
+
85
+ # Diffusion Policy
86
+ lerobot-train \
87
+ --policy.type=diffusion \
88
+ --dataset.repo_id=adhdmi/mug \
89
+ --output_dir=./outputs/diffusion_mug
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  ```
91
 
92
+ ## Visualization
93
+
94
+ ```bash
95
+ # Interactive Rerun-based viewer
96
+ lerobot-dataset-viz \
97
+ --repo-id adhdmi/mug \
98
+ --episode-index 0
99
+ ```
100
 
101
+ If `lerobot-dataset-viz` is not on your `$PATH`, run
102
+ `python -m lerobot.scripts.visualize_dataset --repo-id adhdmi/mug --episode-index 0`
103
+ on older releases.
104
 
105
+ ## Authoring info
106
 
107
+ - Recorded with `scripts/tabletop_teleop/run_teleop.py`.
108
+ - Converted to LeRobot format with
109
+ `scripts/tabletop_teleop/lerobot_pipeline/convert_record_data.py`.
110
+ - Pushed to the Hub with
111
+ `scripts/tabletop_teleop/lerobot_pipeline/export_and_upload.py`.
112
+ - Maintainer: `adhdmi` (Hugging Face Hub).