THUgewu commited on
Commit
0aa0c7f
·
verified ·
1 Parent(s): 28b3b23

Add TsFile (converted from enpeicv/so101_test)

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/so101_test_lerobot.tsfile filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,73 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ task_categories:
4
+ - robotics
5
+ tags:
6
+ - tsfile
7
+ - timeseries
8
+ - time-series
9
+ - LeRobot
10
+ - so101
11
+ - robotics
12
+ pretty_name: so101_test (TsFile)
13
+ size_categories:
14
+ - 10K<n<100K
15
+ configs:
16
+ - config_name: default
17
+ data_files: data/*.tsfile
18
  ---
19
+
20
+ # so101_test (TsFile)
21
+
22
+ Apache TsFile version of [`enpeicv/so101_test`](https://huggingface.co/datasets/enpeicv/so101_test).
23
+
24
+ ## Overview
25
+
26
+ A single-arm robot manipulation dataset recorded with an SO-101 arm (`so101`,
27
+ 6 DOF). The task in every episode is to grasp a Lego block and put it in the bin.
28
+ It was created with [LeRobot](https://github.com/huggingface/lerobot) (codebase
29
+ version v2.1).
30
+
31
+ - **Scale:** 50 episodes, 22,378 frames total.
32
+ - **Sampling rate:** 30 fps.
33
+ - **Robot:** `so101` — single SO-101 arm, 6 DOF (5 joints + gripper).
34
+ - **Task:** a single task, `task_index = 0` — "Grasp a lego block and put it in the bin".
35
+
36
+ ## Schema (TsFile structure)
37
+
38
+ - **Time** (INT64, milliseconds) — frame timestamp, `round(timestamp * 1000)`.
39
+ It restarts from 0 at the beginning of each episode (~33 ms between frames at 30 fps).
40
+ - **episode_index** (TAG) — which of the 50 episodes the row belongs to.
41
+ - **task_index** (TAG) — the task identifier (always `0` here).
42
+ Both tags form the TsFile device dimension; query one episode with
43
+ `WHERE episode_index=0`.
44
+ - **frame_index** (FIELD, INT64) — frame number within the episode.
45
+ - **sample_index** (FIELD, INT64) — the original global `index` column.
46
+ - **action_0 .. action_5** (FIELD, FLOAT) — the commanded target positions, 6
47
+ values: shoulder_pan, shoulder_lift, elbow_flex, wrist_flex, wrist_roll, gripper.
48
+ - **observation_state_0 .. observation_state_5** (FIELD, FLOAT) — the measured
49
+ joint/gripper positions, same 6-element layout as `action`.
50
+
51
+ The source `timestamp` column is dropped (it equals `Time ÷ 1000` seconds). Vector
52
+ columns are flattened single-precision FLOAT (`.` → `_`, element index appended,
53
+ the `observation.` prefix stripped).
54
+
55
+ ## Usage
56
+
57
+ Read the `.tsfile` files with the Apache TsFile Java or Python SDK.
58
+
59
+ ## Notes
60
+
61
+ - Camera video streams are **not** included in this repository. The original
62
+ dataset has 2 camera views (`observation.images.laptop`,
63
+ `observation.images.phone`, both 640×480) under its `videos/` directory — see the
64
+ original dataset for them.
65
+ - `meta/` from the source is mirrored alongside the data. Aside from the redundant
66
+ `timestamp` column noted above, no columns or rows are dropped.
67
+
68
+ ## Source & license
69
+
70
+ - Original dataset: https://huggingface.co/datasets/enpeicv/so101_test
71
+ - Author / publisher: enpeicv
72
+ - Paper: not declared by the original dataset.
73
+ - License: apache-2.0 (from the original dataset card).
data/so101_test_lerobot.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31917f450e9c97174899e475ab002c9ada697476445d358d9813cd19311ba138
3
+ size 375256
meta/episodes.jsonl ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"episode_index": 0, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
2
+ {"episode_index": 1, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
3
+ {"episode_index": 2, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
4
+ {"episode_index": 3, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
5
+ {"episode_index": 4, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
6
+ {"episode_index": 5, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
7
+ {"episode_index": 6, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
8
+ {"episode_index": 7, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
9
+ {"episode_index": 8, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
10
+ {"episode_index": 9, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
11
+ {"episode_index": 10, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
12
+ {"episode_index": 11, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
13
+ {"episode_index": 12, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
14
+ {"episode_index": 13, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
15
+ {"episode_index": 14, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
16
+ {"episode_index": 15, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
17
+ {"episode_index": 16, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
18
+ {"episode_index": 17, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
19
+ {"episode_index": 18, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
20
+ {"episode_index": 19, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
21
+ {"episode_index": 20, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
22
+ {"episode_index": 21, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
23
+ {"episode_index": 22, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
24
+ {"episode_index": 23, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
25
+ {"episode_index": 24, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
26
+ {"episode_index": 25, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
27
+ {"episode_index": 26, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
28
+ {"episode_index": 27, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
29
+ {"episode_index": 28, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
30
+ {"episode_index": 29, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
31
+ {"episode_index": 30, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
32
+ {"episode_index": 31, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
33
+ {"episode_index": 32, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
34
+ {"episode_index": 33, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
35
+ {"episode_index": 34, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
36
+ {"episode_index": 35, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
37
+ {"episode_index": 36, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
38
+ {"episode_index": 37, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
39
+ {"episode_index": 38, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
40
+ {"episode_index": 39, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
41
+ {"episode_index": 40, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
42
+ {"episode_index": 41, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
43
+ {"episode_index": 42, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
44
+ {"episode_index": 43, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
45
+ {"episode_index": 44, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
46
+ {"episode_index": 45, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
47
+ {"episode_index": 46, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
48
+ {"episode_index": 47, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
49
+ {"episode_index": 48, "tasks": ["Grasp a lego block and put it in the bin."], "length": 447}
50
+ {"episode_index": 49, "tasks": ["Grasp a lego block and put it in the bin."], "length": 448}
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": "so101",
4
+ "total_episodes": 50,
5
+ "total_frames": 22378,
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/so101_test_lerobot.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": "enpeicv/so101_test",
140
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
141
+ "converted_data_path": "data/so101_test_lerobot.tsfile",
142
+ "table_name": "so101_test_lerobot",
143
+ "granularity": "merged",
144
+ "time_precision": "ms",
145
+ "time_mapping": {
146
+ "source": "auto",
147
+ "fps": 30,
148
+ "unit": "milliseconds"
149
+ },
150
+ "tag_columns": [
151
+ "episode_index",
152
+ "task_index"
153
+ ],
154
+ "row_count": 22378,
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.laptop",
182
+ "observation.images.phone"
183
+ ],
184
+ "original_video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
185
+ "original_video_features": {
186
+ "observation.images.laptop": {
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.height": 480,
200
+ "video.width": 640,
201
+ "video.codec": "av1",
202
+ "video.pix_fmt": "yuv420p",
203
+ "video.is_depth_map": false,
204
+ "video.fps": 30,
205
+ "video.channels": 3,
206
+ "has_audio": false
207
+ }
208
+ },
209
+ "observation.images.phone": {
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.height": 480,
223
+ "video.width": 640,
224
+ "video.codec": "av1",
225
+ "video.pix_fmt": "yuv420p",
226
+ "video.is_depth_map": false,
227
+ "video.fps": 30,
228
+ "video.channels": 3,
229
+ "has_audio": false
230
+ }
231
+ }
232
+ },
233
+ "original_video_source": "https://huggingface.co/datasets/enpeicv/so101_test/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": "Grasp a lego block and put it in the bin."}