adhdmi commited on
Commit
d7dbcc6
·
verified ·
1 Parent(s): 5d2f7b7

docs: regenerate KAPEX dataset card

Browse files
Files changed (1) hide show
  1. README.md +101 -242
README.md CHANGED
@@ -1,253 +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-25-dim">
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
- 25
53
- ],
54
- "names": [
55
- "RAJ1",
56
- "RAJ2",
57
- "RAJ3",
58
- "RAJ4",
59
- "RAJ5",
60
- "RAJ6",
61
- "RAJ7",
62
- "RHJ_thumb0",
63
- "RHJ_thumb1",
64
- "RHJ_thumb2",
65
- "RHJ_index0",
66
- "RHJ_index1",
67
- "RHJ_index2",
68
- "RHJ_index3",
69
- "RHJ_middle0",
70
- "RHJ_middle1",
71
- "RHJ_middle2",
72
- "RHJ_middle3",
73
- "RHJ_ring0",
74
- "RHJ_ring1",
75
- "RHJ_ring2",
76
- "RHJ_ring3",
77
- "RHJ_little0",
78
- "RHJ_little1",
79
- "RHJ_little2"
80
- ]
81
- },
82
- "action": {
83
- "dtype": "float32",
84
- "shape": [
85
- 25
86
- ],
87
- "names": [
88
- "RAJ1",
89
- "RAJ2",
90
- "RAJ3",
91
- "RAJ4",
92
- "RAJ5",
93
- "RAJ6",
94
- "RAJ7",
95
- "RHJ_thumb0",
96
- "RHJ_thumb1",
97
- "RHJ_thumb2",
98
- "RHJ_index0",
99
- "RHJ_index1",
100
- "RHJ_index2",
101
- "RHJ_index3",
102
- "RHJ_middle0",
103
- "RHJ_middle1",
104
- "RHJ_middle2",
105
- "RHJ_middle3",
106
- "RHJ_ring0",
107
- "RHJ_ring1",
108
- "RHJ_ring2",
109
- "RHJ_ring3",
110
- "RHJ_little0",
111
- "RHJ_little1",
112
- "RHJ_little2"
113
- ]
114
- },
115
- "observation.images.cam_left": {
116
- "dtype": "video",
117
- "shape": [
118
- 3,
119
- 480,
120
- 640
121
- ],
122
- "names": [
123
- "channels",
124
- "height",
125
- "width"
126
- ],
127
- "info": {
128
- "video.height": 480,
129
- "video.width": 640,
130
- "video.codec": "av1",
131
- "video.pix_fmt": "yuv420p",
132
- "video.is_depth_map": false,
133
- "video.fps": 20,
134
- "video.channels": 3,
135
- "has_audio": false
136
- }
137
- },
138
- "observation.images.cam_right": {
139
- "dtype": "video",
140
- "shape": [
141
- 3,
142
- 480,
143
- 640
144
- ],
145
- "names": [
146
- "channels",
147
- "height",
148
- "width"
149
- ],
150
- "info": {
151
- "video.height": 480,
152
- "video.width": 640,
153
- "video.codec": "av1",
154
- "video.pix_fmt": "yuv420p",
155
- "video.is_depth_map": false,
156
- "video.fps": 20,
157
- "video.channels": 3,
158
- "has_audio": false
159
- }
160
- },
161
- "observation.images.cam_wrist_left": {
162
- "dtype": "video",
163
- "shape": [
164
- 3,
165
- 480,
166
- 640
167
- ],
168
- "names": [
169
- "channels",
170
- "height",
171
- "width"
172
- ],
173
- "info": {
174
- "video.height": 480,
175
- "video.width": 640,
176
- "video.codec": "av1",
177
- "video.pix_fmt": "yuv420p",
178
- "video.is_depth_map": false,
179
- "video.fps": 20,
180
- "video.channels": 3,
181
- "has_audio": false
182
- }
183
- },
184
- "observation.images.cam_wrist_right": {
185
- "dtype": "video",
186
- "shape": [
187
- 3,
188
- 480,
189
- 640
190
- ],
191
- "names": [
192
- "channels",
193
- "height",
194
- "width"
195
- ],
196
- "info": {
197
- "video.height": 480,
198
- "video.width": 640,
199
- "video.codec": "av1",
200
- "video.pix_fmt": "yuv420p",
201
- "video.is_depth_map": false,
202
- "video.fps": 20,
203
- "video.channels": 3,
204
- "has_audio": false
205
- }
206
- },
207
- "timestamp": {
208
- "dtype": "float32",
209
- "shape": [
210
- 1
211
- ],
212
- "names": null
213
- },
214
- "frame_index": {
215
- "dtype": "int64",
216
- "shape": [
217
- 1
218
- ],
219
- "names": null
220
- },
221
- "episode_index": {
222
- "dtype": "int64",
223
- "shape": [
224
- 1
225
- ],
226
- "names": null
227
- },
228
- "index": {
229
- "dtype": "int64",
230
- "shape": [
231
- 1
232
- ],
233
- "names": null
234
- },
235
- "task_index": {
236
- "dtype": "int64",
237
- "shape": [
238
- 1
239
- ],
240
- "names": null
241
- }
242
- }
243
- }
244
  ```
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
 
247
- ## Citation
 
 
248
 
249
- **BibTeX:**
250
 
251
- ```bibtex
252
- [More Information Needed]
253
- ```
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pretty_name: KAPEX teleop · mug-25-dim
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-25-dim
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-dim`
25
+ - **LeRobot codebase version:** `v3.0`
26
+ - **Episodes / Frames:** 100 / 16893
27
+ - **Control rate:** 20 fps
28
+ - **State / Action dim:** 25 / 25
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 | (25,) | 20 fps |
37
+ | `action` | float32 | (25,) | 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-25-dim") # 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) # (25,)
70
+ print(sample["action"].shape) # (25,)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-25-dim \
83
+ --output_dir=./outputs/act_mug-25-dim
84
+
85
+ # Diffusion Policy
86
+ lerobot-train \
87
+ --policy.type=diffusion \
88
+ --dataset.repo_id=adhdmi/mug-25-dim \
89
+ --output_dir=./outputs/diffusion_mug-25-dim
90
+ ```
91
+
92
+ ## Visualization
93
+
94
+ ```bash
95
+ # Interactive Rerun-based viewer
96
+ lerobot-dataset-viz \
97
+ --repo-id adhdmi/mug-25-dim \
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-25-dim --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).