dex-robot commited on
Commit
309e244
·
verified ·
1 Parent(s): 2feac0d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +226 -0
README.md ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ task_categories:
4
+ - robotics
5
+ tags:
6
+ - robotics
7
+ - dexterous-manipulation
8
+ - teleoperation
9
+ - motion-capture
10
+ - human-hand
11
+ - imitation-learning
12
+ - hdf5
13
+ size_categories:
14
+ - 10GB
15
+ ---
16
+
17
+ # CAP —— 杯序整理任务(右手)灵巧操作数据集
18
+
19
+ CAP(Capture Dataset)是一套**人类手部动作采集 + 灵巧操作演示**数据集,记录了操作者用右手完成「**按序摆放杯子(cups_order)**」任务的全过程。数据以 DexCap 风格的采集管线记录,包含**压缩后的轨迹 HDF5** 与**多视角相机的原始图像帧**,可直接用于动作复现、模仿学习与手部姿态分析。
20
+
21
+ - 仓库:`dex-robot/cap`
22
+ - 主文件:`cap.zip`(10,694,426,624 字节 ≈ 9.96 GiB)
23
+ - 收录文件:18,940 个
24
+ - 采集日期:2026-07-07
25
+ - 任务:cups_order(按序摆放杯子)
26
+ - 手别:右手(right hand)
27
+
28
+ ---
29
+
30
+ ## 1. 数据总览
31
+
32
+ | 项目 | 内容 |
33
+ | --- | --- |
34
+ | 任务 | cups_order(按序摆放杯子) |
35
+ | 采集手别 | 右手 |
36
+ | 采集日期 | 2026-07-07 |
37
+ | 有效采集次数 | 5 次(16:46:34 / 16:54:35 / 16:56:54 / 16:59:04 / 17:01:24) |
38
+ | 轨迹文件 | 5 个 `.hdf5`(每次采集一个) |
39
+ | 相机视角 | 6 路(左手 / 右手 / 头部双目 / 头部全局 RGB / 头部全局深度) |
40
+ | 图像帧 | 18,915 张 `.png` + 5 段 `.mp4` |
41
+ | 其他 | 3 个 `.json`、6 个 `.txt`、5 个 `.npy`、1 个 `.raw` |
42
+ | 压缩包大小 | 10.7 GB(10,694,426,624 字节) |
43
+
44
+ ---
45
+
46
+ ## 2. 目录结构
47
+
48
+ ```
49
+ cap/
50
+ ├── hdf5/ # 每次采集一条压缩轨迹
51
+ │ ├── cups_order_right_hand_20260707_164634/
52
+ │ │ └── cups_order_right_hand_20260707_164634.hdf5
53
+ │ ├── cups_order_right_hand_20260707_165435/
54
+ │ │ └── cups_order_right_hand_20260707_165435.hdf5
55
+ │ ├── cups_order_right_hand_20260707_165654/
56
+ │ │ └── cups_order_right_hand_20260707_165654.hdf5
57
+ │ ├── cups_order_right_hand_20260707_165904/
58
+ │ │ └── cups_order_right_hand_20260707_165904.hdf5
59
+ │ └── cups_order_right_hand_20260707_170124/
60
+ │ └── cups_order_right_hand_20260707_170124.hdf5
61
+ └── raw_data/ # 原始多模态记录(图像 + 视频 + 标定)
62
+ └── cups_order_right_hand_20260707_164634/
63
+ └── cups_order_right_hand_20260707_164634_extracted/
64
+ └── observe/
65
+ └── vision/
66
+ ├── left_hand_rgb/ # 左手腕视角(video + metadata)
67
+ ├── right_hand_rgb/ # 右手腕视角
68
+ ├── head_zed_left/ # 头部 ZED 左目
69
+ ├── head_zed_right/ # 头部 ZED 右目
70
+ ├── head_global_rgb/ # 头部全局 RGB
71
+ ├── head_global_depth/ # 头部全局深度
72
+ └── *_frames/ # 各视角抽帧后的 PNG 序列
73
+ ```
74
+
75
+ ---
76
+
77
+ ## 3. 采集会话清单
78
+
79
+ | 会话 ID | 起始时间 | HDF5 轨迹 | 原始帧 |
80
+ | --- | --- | --- | --- |
81
+ | `cups_order_right_hand_20260707_164634` | 16:46:34 | ✅ | ✅ |
82
+ | `cups_order_right_hand_20260707_165435` | 16:54:35 | ✅ | — |
83
+ | `cups_order_right_hand_20260707_165654` | 16:56:54 | ✅ | — |
84
+ | `cups_order_right_hand_20260707_165904` | 16:59:04 | ✅ | — |
85
+ | `cups_order_right_hand_20260707_170124` | 17:01:24 | ✅ | — |
86
+
87
+ > 说明:完整的多视角原始帧(18,915 张 PNG + 5 段 MP4)随**首个会话** `164634` 一同发布;其余 4 次采集提供压缩后的 HDF5 轨迹。
88
+
89
+ ## 4. 相机视角与帧数
90
+
91
+ | 视角目录 | 帧数(PNG) | 视频 |
92
+ | --- | --- | --- |
93
+ | `head_global_depth_frames` | 5,567 | ✅ |
94
+ | `right_hand_rgb_frames` | 3,091 | ✅ |
95
+ | `head_zed_right_frames` | 2,631 | ✅ |
96
+ | `left_hand_rgb_frames` | 2,565 | ✅ |
97
+ | `head_zed_left_frames` | 2,548 | ✅ |
98
+ | `head_global_rgb_frames` | 2,524 | ✅ |
99
+
100
+ 帧文件命名规则:`frame_%06d.png`(自 0 起连续编号),可与同目录 MP4 按序号对齐。
101
+
102
+ ---
103
+
104
+ ## 5. 下载
105
+
106
+ ### 5.1 huggingface-cli(推荐,支持断点续传)
107
+
108
+ ```bash
109
+ pip install -U "huggingface_hub[cli]"
110
+ export HF_ENDPOINT=https://hf-mirror.com # 国内网络可加,境外可省略
111
+ huggingface-cli download dex-robot/cap cap.zip --repo-type dataset --local-dir ./cap_data
112
+ ```
113
+
114
+ ### 5.2 Python
115
+
116
+ ```python
117
+ from huggingface_hub import hf_hub_download
118
+ p = hf_hub_download("dex-robot/cap", "cap.zip", repo_type="dataset")
119
+ print(p)
120
+ ```
121
+
122
+ ### 5.3 直链
123
+
124
+ ```
125
+ https://huggingface.co/datasets/dex-robot/cap/resolve/main/cap.zip
126
+ ```
127
+
128
+ ---
129
+
130
+ ## 6. 解压与校验
131
+
132
+ ```bash
133
+ # 校验完整性(无报错即可)
134
+ unzip -t cap.zip
135
+
136
+ # 解压到当前目录,得到 cap/
137
+ unzip -q cap.zip
138
+
139
+ # 目录体积
140
+ du -sh cap
141
+ ```
142
+
143
+ 预期结果:
144
+
145
+ ```
146
+ cap/
147
+ ├── hdf5/ (5 个 .hdf5)
148
+ └── raw_data/ (18,935 个文件)
149
+ ```
150
+
151
+ ---
152
+
153
+ ## 7. 读取示例
154
+
155
+ ### 7.1 读取 HDF5 轨迹
156
+
157
+ ```python
158
+ import h5py
159
+
160
+ path = "cap/hdf5/cups_order_right_hand_20260707_164634/cups_order_right_hand_20260707_164634.hdf5"
161
+ with h5py.File(path, "r") as f:
162
+ def show(name, obj):
163
+ if isinstance(obj, h5py.Dataset):
164
+ print(f"D {name:50s} shape={obj.shape} dtype={obj.dtype}")
165
+ else:
166
+ print(f"G {name}")
167
+ f.visititems(show)
168
+ ```
169
+
170
+ ### 7.2 读取图像帧
171
+
172
+ ```python
173
+ import cv2, glob
174
+
175
+ frames = sorted(glob.glob(
176
+ "cap/raw_data/cups_order_right_hand_20260707_164634/"
177
+ "cups_order_right_hand_20260707_164634_extracted/observe/vision/"
178
+ "head_global_rgb_frames/frame_*.png"))
179
+ print("帧数:", len(frames))
180
+ img = cv2.imread(frames[0])
181
+ print(img.shape) # (H, W, 3)
182
+ ```
183
+
184
+ ---
185
+
186
+ ## 8. 推荐环境
187
+
188
+ ```bash
189
+ pip install h5py opencv-python numpy
190
+ ```
191
+
192
+ - Python ≥ 3.8
193
+ - 解压后约需 15 GB 可用磁盘(原始 PNG 序列体积较大)
194
+ - 读取深度数据时注意 `head_global_depth` 可能为 16-bit PNG 或伴随 `.npy` / `.raw` 原始深度
195
+
196
+ ---
197
+
198
+ ## 9. 许可与引用
199
+
200
+ - 许可:见仓库 `LICENSE`(未单独指定时请联系数据发布方)
201
+ - 引用本数据集时请注明来源:
202
+
203
+ ```bibtex
204
+ @misc{cap_dataset_2026,
205
+ title = {CAP: Cups Ordering Dexterous Manipulation Capture Dataset (Right Hand)},
206
+ author = {dex-robot},
207
+ year = {2026},
208
+ howpublished = {\url{https://huggingface.co/datasets/dex-robot/cap}}
209
+ }
210
+ ```
211
+
212
+ ---
213
+
214
+ ## 10. 常见问题
215
+
216
+ **Q:下载中断怎么办?**
217
+ `huggingface-cli download` 支持断点续传,重新执行同一条命令即可继续;也可加 `--max-workers 1` 降低并发提升稳定性。
218
+
219
+ **Q:`unzip` 报 "End-of-central-directory signature not found"?**
220
+ 说明下载不完整、文件被截断,请校验文件大小是否为 **10,694,426,624 字节**,不一致请重新下载。
221
+
222
+ **Q:只想用轨迹,不想下 10 GB 图像?**
223
+ 目前仅提供整包发布;有细分需求请在仓库 Discussion 中提出。
224
+
225
+ **Q:深度图和 RGB 怎么对齐?**
226
+ 同视角的 `*_frames` 与 MP4 按帧序号(`frame_%06d`)一一对应;跨视角对齐请使用 `raw_data/.../observe/vision/` 下的标定 JSON。