jzpeng commited on
Commit
7572136
·
verified ·
1 Parent(s): 725b5ac

Add TsFile (converted from advpatel/handshake_data)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/handshake_data_train.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - robotics
5
+ tags:
6
+ - LeRobot
7
+ - so100
8
+ - tutorial
9
+ - tsfile
10
+ - timeseries
11
+ modality: [timeseries]
12
+ configs:
13
+ - config_name: default
14
+ data_files:
15
+ - split: train
16
+ path: data/handshake_data_train.tsfile
17
+ ---
18
+ # Handshake Data (TsFile)
19
+
20
+ Converted from [`advpatel/handshake_data`](https://huggingface.co/datasets/advpatel/handshake_data) at pinned revision [`c64b79ec9dd64531a42715d921d1b736d2fa35ff`](https://huggingface.co/datasets/advpatel/handshake_data/tree/c64b79ec9dd64531a42715d921d1b736d2fa35ff). **Modalities: Time-series.**
21
+
22
+ ## Dataset description
23
+
24
+ This LeRobot v2.1 SO100 dataset records demonstrations of a robot shaking a person's hand.
25
+
26
+ The pinned task table contains one instruction: “Shake the person's hand.”
27
+
28
+ - **Source repository owner/publisher:** advpatel
29
+ - **License:** apache-2.0 (declared by the source card).
30
+ - **Paper/homepage/citation:** no completed paper, homepage, or citation is documented in the pinned source card unless linked above.
31
+
32
+ > **Source metadata note:** The source README embeds an older one-episode/353-frame snapshot with a different camera entry. Counts and camera names here use the pinned `meta/info.json`, 50 source episode Parquets, staged rows, and TsFile metadata.
33
+
34
+ ## Dataset Scale
35
+
36
+ | Split | Episodes | Tasks | Source trajectory Parquets | TsFile rows | Sampling rate | TsFile files/shards |
37
+ |---|---:|---:|---:|---:|---:|---:|
38
+ | `train` | 50 | 1 | 50 | 15,779 | 30 Hz | 1 |
39
+
40
+ The staged Parquet has 15,779 rows and 17 columns including `Time`; TsFile chunk metadata independently reports the same 15,779 rows.
41
+
42
+ ## TsFile schema
43
+
44
+ | Column | Role | TsFile type | Observed/source range |
45
+ |---|---|---|---|
46
+ | `Time` | TIME | INT64 | 0–14,333 ms; restarts per episode |
47
+ | `episode_index` | TAG | STRING | source integer 0–49 |
48
+ | `task_index` | TAG | STRING | source integer 0–0 |
49
+ | `frame_index` | FIELD | INT64 | 0–430 within an episode |
50
+ | `sample_index` | FIELD | INT64 | 0–15,778 globally |
51
+
52
+ Exact remaining FIELD names/ranges and imported types:
53
+
54
+ - `action_0`–`action_5` (FLOAT): shoulder pan/lift, elbow flex, wrist flex/roll, and gripper action
55
+ - `observation_state_0`–`observation_state_5` (FLOAT): the corresponding SO100 state
56
+
57
+ ## Conversion
58
+
59
+ - All source episodes in the train split are merged into `data/handshake_data_train.tsfile`; `episode_index` and `task_index` are TAG dimensions.
60
+ - `Time = round(timestamp * 1000)` in milliseconds. The source `timestamp` column is omitted because it is redundant with `Time / 1000` seconds.
61
+ - `frame_index` is retained. Source `index` is retained as `sample_index`.
62
+ - Every vector is fully flattened: the complete source name is kept, `.` becomes `_`, and element indices are appended. Float vectors are imported as single-precision FLOAT fields.
63
+ - Other scalar source columns shown above are retained; no trajectory rows are intentionally dropped.
64
+ - Source metadata is mirrored for publication, with copied `meta/info.json` rewritten to describe the converted data path and conversion semantics.
65
+
66
+ ## Video policy
67
+
68
+ The pinned metadata declares 100 source videos across tripod and arm cameras. MP4 files were not downloaded or uploaded; they remain in [the pinned source `videos/` tree](https://huggingface.co/datasets/advpatel/handshake_data/tree/c64b79ec9dd64531a42715d921d1b736d2fa35ff/videos).
69
+
70
+ ## Minimal read example
71
+
72
+ ```python
73
+ from tsfile import TsFileReader
74
+
75
+ reader = TsFileReader("data/handshake_data_train.tsfile")
76
+ print(reader.get_all_table_schemas().keys())
77
+ reader.close()
78
+ ```
79
+
80
+ ## Source and provenance
81
+
82
+ - Source dataset: [`advpatel/handshake_data`](https://huggingface.co/datasets/advpatel/handshake_data)
83
+ - Pinned source revision: [`c64b79ec9dd64531a42715d921d1b736d2fa35ff`](https://huggingface.co/datasets/advpatel/handshake_data/tree/c64b79ec9dd64531a42715d921d1b736d2fa35ff)
84
+ - Converted artifact: `data/handshake_data_train.tsfile`
data/handshake_data_train.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c2a026a727c35bad09e8b4185ecc18505bd882ca644d84bf842e4eca9e004cd
3
+ size 333300
meta/episodes.jsonl ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"episode_index": 0, "tasks": ["Shake the person's hand."], "length": 415}
2
+ {"episode_index": 1, "tasks": ["Shake the person's hand."], "length": 365}
3
+ {"episode_index": 2, "tasks": ["Shake the person's hand."], "length": 431}
4
+ {"episode_index": 3, "tasks": ["Shake the person's hand."], "length": 356}
5
+ {"episode_index": 4, "tasks": ["Shake the person's hand."], "length": 322}
6
+ {"episode_index": 5, "tasks": ["Shake the person's hand."], "length": 374}
7
+ {"episode_index": 6, "tasks": ["Shake the person's hand."], "length": 374}
8
+ {"episode_index": 7, "tasks": ["Shake the person's hand."], "length": 313}
9
+ {"episode_index": 8, "tasks": ["Shake the person's hand."], "length": 297}
10
+ {"episode_index": 9, "tasks": ["Shake the person's hand."], "length": 336}
11
+ {"episode_index": 10, "tasks": ["Shake the person's hand."], "length": 375}
12
+ {"episode_index": 11, "tasks": ["Shake the person's hand."], "length": 292}
13
+ {"episode_index": 12, "tasks": ["Shake the person's hand."], "length": 278}
14
+ {"episode_index": 13, "tasks": ["Shake the person's hand."], "length": 356}
15
+ {"episode_index": 14, "tasks": ["Shake the person's hand."], "length": 324}
16
+ {"episode_index": 15, "tasks": ["Shake the person's hand."], "length": 286}
17
+ {"episode_index": 16, "tasks": ["Shake the person's hand."], "length": 307}
18
+ {"episode_index": 17, "tasks": ["Shake the person's hand."], "length": 316}
19
+ {"episode_index": 18, "tasks": ["Shake the person's hand."], "length": 366}
20
+ {"episode_index": 19, "tasks": ["Shake the person's hand."], "length": 287}
21
+ {"episode_index": 20, "tasks": ["Shake the person's hand."], "length": 349}
22
+ {"episode_index": 21, "tasks": ["Shake the person's hand."], "length": 352}
23
+ {"episode_index": 22, "tasks": ["Shake the person's hand."], "length": 358}
24
+ {"episode_index": 23, "tasks": ["Shake the person's hand."], "length": 344}
25
+ {"episode_index": 24, "tasks": ["Shake the person's hand."], "length": 383}
26
+ {"episode_index": 25, "tasks": ["Shake the person's hand."], "length": 361}
27
+ {"episode_index": 26, "tasks": ["Shake the person's hand."], "length": 380}
28
+ {"episode_index": 27, "tasks": ["Shake the person's hand."], "length": 325}
29
+ {"episode_index": 28, "tasks": ["Shake the person's hand."], "length": 303}
30
+ {"episode_index": 29, "tasks": ["Shake the person's hand."], "length": 300}
31
+ {"episode_index": 30, "tasks": ["Shake the person's hand."], "length": 261}
32
+ {"episode_index": 31, "tasks": ["Shake the person's hand."], "length": 280}
33
+ {"episode_index": 32, "tasks": ["Shake the person's hand."], "length": 282}
34
+ {"episode_index": 33, "tasks": ["Shake the person's hand."], "length": 257}
35
+ {"episode_index": 34, "tasks": ["Shake the person's hand."], "length": 240}
36
+ {"episode_index": 35, "tasks": ["Shake the person's hand."], "length": 246}
37
+ {"episode_index": 36, "tasks": ["Shake the person's hand."], "length": 273}
38
+ {"episode_index": 37, "tasks": ["Shake the person's hand."], "length": 234}
39
+ {"episode_index": 38, "tasks": ["Shake the person's hand."], "length": 244}
40
+ {"episode_index": 39, "tasks": ["Shake the person's hand."], "length": 290}
41
+ {"episode_index": 40, "tasks": ["Shake the person's hand."], "length": 307}
42
+ {"episode_index": 41, "tasks": ["Shake the person's hand."], "length": 381}
43
+ {"episode_index": 42, "tasks": ["Shake the person's hand."], "length": 310}
44
+ {"episode_index": 43, "tasks": ["Shake the person's hand."], "length": 295}
45
+ {"episode_index": 44, "tasks": ["Shake the person's hand."], "length": 294}
46
+ {"episode_index": 45, "tasks": ["Shake the person's hand."], "length": 297}
47
+ {"episode_index": 46, "tasks": ["Shake the person's hand."], "length": 260}
48
+ {"episode_index": 47, "tasks": ["Shake the person's hand."], "length": 277}
49
+ {"episode_index": 48, "tasks": ["Shake the person's hand."], "length": 272}
50
+ {"episode_index": 49, "tasks": ["Shake the person's hand."], "length": 254}
meta/episodes_stats.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
meta/info.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v2.1",
3
+ "robot_type": "so100",
4
+ "total_episodes": 50,
5
+ "total_frames": 15779,
6
+ "total_tasks": 1,
7
+ "total_videos": 100,
8
+ "total_chunks": 1,
9
+ "chunks_size": 1000,
10
+ "fps": 30,
11
+ "splits": {
12
+ "train": "0:50"
13
+ },
14
+ "data_path": "data/handshake_data_train.tsfile",
15
+ "features": {
16
+ "Time": {
17
+ "dtype": "int64",
18
+ "shape": [
19
+ 1
20
+ ],
21
+ "tsfile_role": "TIME",
22
+ "unit": "ms"
23
+ },
24
+ "episode_index": {
25
+ "dtype": "int64",
26
+ "shape": [
27
+ 1
28
+ ],
29
+ "tsfile_role": "TAG"
30
+ },
31
+ "task_index": {
32
+ "dtype": "int64",
33
+ "shape": [
34
+ 1
35
+ ],
36
+ "tsfile_role": "TAG"
37
+ },
38
+ "frame_index": {
39
+ "dtype": "int64",
40
+ "shape": [
41
+ 1
42
+ ],
43
+ "tsfile_role": "FIELD"
44
+ },
45
+ "sample_index": {
46
+ "dtype": "int64",
47
+ "shape": [
48
+ 1
49
+ ],
50
+ "tsfile_role": "FIELD"
51
+ },
52
+ "action_0": {
53
+ "dtype": "float32",
54
+ "shape": [
55
+ 1
56
+ ],
57
+ "tsfile_role": "FIELD"
58
+ },
59
+ "action_1": {
60
+ "dtype": "float32",
61
+ "shape": [
62
+ 1
63
+ ],
64
+ "tsfile_role": "FIELD"
65
+ },
66
+ "action_2": {
67
+ "dtype": "float32",
68
+ "shape": [
69
+ 1
70
+ ],
71
+ "tsfile_role": "FIELD"
72
+ },
73
+ "action_3": {
74
+ "dtype": "float32",
75
+ "shape": [
76
+ 1
77
+ ],
78
+ "tsfile_role": "FIELD"
79
+ },
80
+ "action_4": {
81
+ "dtype": "float32",
82
+ "shape": [
83
+ 1
84
+ ],
85
+ "tsfile_role": "FIELD"
86
+ },
87
+ "action_5": {
88
+ "dtype": "float32",
89
+ "shape": [
90
+ 1
91
+ ],
92
+ "tsfile_role": "FIELD"
93
+ },
94
+ "observation_state_0": {
95
+ "dtype": "float32",
96
+ "shape": [
97
+ 1
98
+ ],
99
+ "tsfile_role": "FIELD"
100
+ },
101
+ "observation_state_1": {
102
+ "dtype": "float32",
103
+ "shape": [
104
+ 1
105
+ ],
106
+ "tsfile_role": "FIELD"
107
+ },
108
+ "observation_state_2": {
109
+ "dtype": "float32",
110
+ "shape": [
111
+ 1
112
+ ],
113
+ "tsfile_role": "FIELD"
114
+ },
115
+ "observation_state_3": {
116
+ "dtype": "float32",
117
+ "shape": [
118
+ 1
119
+ ],
120
+ "tsfile_role": "FIELD"
121
+ },
122
+ "observation_state_4": {
123
+ "dtype": "float32",
124
+ "shape": [
125
+ 1
126
+ ],
127
+ "tsfile_role": "FIELD"
128
+ },
129
+ "observation_state_5": {
130
+ "dtype": "float32",
131
+ "shape": [
132
+ 1
133
+ ],
134
+ "tsfile_role": "FIELD"
135
+ }
136
+ },
137
+ "video_path_original": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
138
+ "tsfile_conversion": {
139
+ "source_dataset": "advpatel/handshake_data",
140
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
141
+ "converted_data_path": "data/handshake_data_train.tsfile",
142
+ "table_name": "handshake_data",
143
+ "granularity": "per_split",
144
+ "time_precision": "ms",
145
+ "time_mapping": {
146
+ "source": "timestamp",
147
+ "fps": 30,
148
+ "unit": "milliseconds"
149
+ },
150
+ "tag_columns": [
151
+ "episode_index",
152
+ "task_index"
153
+ ],
154
+ "row_count": 15779,
155
+ "feature_source": "features describe the converted TsFile schema",
156
+ "flattened_features": {
157
+ "action": [
158
+ "action_0",
159
+ "action_1",
160
+ "action_2",
161
+ "action_3",
162
+ "action_4",
163
+ "action_5"
164
+ ],
165
+ "observation.state": [
166
+ "observation_state_0",
167
+ "observation_state_1",
168
+ "observation_state_2",
169
+ "observation_state_3",
170
+ "observation_state_4",
171
+ "observation_state_5"
172
+ ]
173
+ },
174
+ "renamed_features": {
175
+ "index": "sample_index"
176
+ },
177
+ "dropped_features": [
178
+ "timestamp"
179
+ ],
180
+ "omitted_features": [
181
+ "observation.images.tripod",
182
+ "observation.images.arm_cam"
183
+ ],
184
+ "original_video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
185
+ "original_video_features": {
186
+ "observation.images.tripod": {
187
+ "dtype": "video",
188
+ "shape": [
189
+ 480,
190
+ 640,
191
+ 3
192
+ ],
193
+ "names": [
194
+ "height",
195
+ "width",
196
+ "channels"
197
+ ],
198
+ "info": {
199
+ "video.fps": 30.0,
200
+ "video.height": 480,
201
+ "video.width": 640,
202
+ "video.channels": 3,
203
+ "video.codec": "av1",
204
+ "video.pix_fmt": "yuv420p",
205
+ "video.is_depth_map": false,
206
+ "has_audio": false
207
+ }
208
+ },
209
+ "observation.images.arm_cam": {
210
+ "dtype": "video",
211
+ "shape": [
212
+ 480,
213
+ 640,
214
+ 3
215
+ ],
216
+ "names": [
217
+ "height",
218
+ "width",
219
+ "channels"
220
+ ],
221
+ "info": {
222
+ "video.fps": 30.0,
223
+ "video.height": 480,
224
+ "video.width": 640,
225
+ "video.channels": 3,
226
+ "video.codec": "av1",
227
+ "video.pix_fmt": "yuv420p",
228
+ "video.is_depth_map": false,
229
+ "has_audio": false
230
+ }
231
+ }
232
+ },
233
+ "original_video_source": "https://huggingface.co/datasets/advpatel/handshake_data/tree/main/videos",
234
+ "video_policy": "Videos are not uploaded to this repository; use the original HuggingFace dataset videos."
235
+ }
236
+ }
meta/tasks.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"task_index": 0, "task": "Shake the person's hand."}