wangdx25 commited on
Commit
0bd044c
·
verified ·
1 Parent(s): 469a13f

Add TsFile (converted from baptiste-04/so100_playX)

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/so100_playx.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - robotics
5
+ tags:
6
+ - tsfile
7
+ - timeseries
8
+ - time-series
9
+ - LeRobot
10
+ - robotics
11
+ - format:tsfile
12
+ pretty_name: so100_playx
13
+ size_categories:
14
+ - 10K<n<100K
15
+ ---
16
+
17
+ # so100_playx (TsFile)
18
+
19
+ Apache TsFile version of [`baptiste-04/so100_playX`](https://huggingface.co/datasets/baptiste-04/so100_playX).
20
+
21
+ ## Overview
22
+
23
+ A LeRobot robot dataset recorded on a so100 arm. Task(s): Move box red to zone 1; Move box red to zone 2; Move box red to home; Move box blue to zone 1; Move box blue to zone 2; Move box blue to home; Move box yellow to zone 1; Move box yellow to zone 2; Move box yellow to home. Each frame holds the commanded `action` and observed `observation.state` joint positions, plus camera views stored as videos in the original dataset.
24
+
25
+ - **Episodes:** 85
26
+ - **Frames:** 52,317
27
+ - **Sampling rate:** 30 fps
28
+ - **Tasks:** 9 — "Move box red to zone 1; Move box red to zone 2; Move box red to home; Move box blue to zone 1; Move box blue to zone 2; Move box blue to home; Move box yellow to zone 1; Move box yellow to zone 2; Move box yellow to home"
29
+
30
+ ## Schema (TsFile structure)
31
+
32
+ All episodes share one TsFile with `episode_index` and `task_index` as TAG columns; query a single episode with `WHERE episode_index = N`.
33
+
34
+ - **Time** (INT64, milliseconds) — `round(timestamp * 1000)`; the source
35
+ `timestamp` column is dropped (it equals Time / 1000).
36
+ - **episode_index** (TAG) — device dimension.
37
+ - **task_index** (TAG) — device dimension.
38
+ - **episode_index** (INT64) — measurement.
39
+ - **task_index** (INT64) — measurement.
40
+ - **frame_index** (INT64) — measurement.
41
+ - **sample_index** (INT64) — measurement.
42
+ - **action_0** (FLOAT) — measurement.
43
+ - **action_1** (FLOAT) — measurement.
44
+ - **action_2** (FLOAT) — measurement.
45
+ - **action_3** (FLOAT) — measurement.
46
+ - **action_4** (FLOAT) — measurement.
47
+ - **action_5** (FLOAT) — measurement.
48
+ - **observation_state_0** (FLOAT) — measurement.
49
+ - **observation_state_1** (FLOAT) — measurement.
50
+ - **observation_state_2** (FLOAT) — measurement.
51
+ - **observation_state_3** (FLOAT) — measurement.
52
+ - **observation_state_4** (FLOAT) — measurement.
53
+ - **observation_state_5** (FLOAT) — measurement.
54
+
55
+ The vector columns are flattened per joint:
56
+ - `action_*` — commanded joints: main_shoulder_pan, main_shoulder_lift, main_elbow_flex, main_wrist_flex, main_wrist_roll, main_gripper.
57
+ - `observation_state_*` — observed joints: main_shoulder_pan, main_shoulder_lift, main_elbow_flex, main_wrist_flex, main_wrist_roll, main_gripper.
58
+
59
+ ## Usage
60
+
61
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
62
+
63
+ ```python
64
+ from pathlib import Path
65
+ from tsfile import TsFileReader
66
+
67
+ path = Path("data/so100_playx.tsfile")
68
+ with TsFileReader(str(path)) as reader:
69
+ schemas = reader.get_all_table_schemas()
70
+ print("tables:", list(schemas))
71
+ table_name = next(iter(schemas))
72
+ table = schemas[table_name]
73
+ columns = [column.get_column_name() for column in table.get_columns()]
74
+ print("columns:", columns)
75
+ field_names = [
76
+ column.get_column_name()
77
+ for column in table.get_columns()
78
+ if column.get_column_name() not in {"Time", "time"}
79
+ ]
80
+ if field_names:
81
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
82
+ batch = result.read_arrow_batch()
83
+ if batch is not None:
84
+ print(batch.to_pandas().head())
85
+ ```
86
+
87
+ ## Source & license
88
+
89
+ - Original dataset: https://huggingface.co/datasets/baptiste-04/so100_playX
90
+ - Author / publisher: baptiste-04
91
+ - License: apache-2.0
92
+ - Note: camera videos are NOT included; see the original dataset.
data/so100_playx.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ab7517dcbad4f8c3f86e1c91fdc72125c53b043204098392a5b678af32c13da
3
+ size 869810
meta/episodes.jsonl ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"episode_index": 0, "tasks": ["Move box red to zone 1"], "length": 748}
2
+ {"episode_index": 1, "tasks": ["Move box red to zone 1"], "length": 748}
3
+ {"episode_index": 2, "tasks": ["Move box red to zone 1"], "length": 748}
4
+ {"episode_index": 3, "tasks": ["Move box red to zone 1"], "length": 748}
5
+ {"episode_index": 4, "tasks": ["Move box red to zone 1"], "length": 748}
6
+ {"episode_index": 5, "tasks": ["Move box red to zone 2"], "length": 748}
7
+ {"episode_index": 6, "tasks": ["Move box red to zone 2"], "length": 748}
8
+ {"episode_index": 7, "tasks": ["Move box red to zone 2"], "length": 748}
9
+ {"episode_index": 8, "tasks": ["Move box red to zone 2"], "length": 747}
10
+ {"episode_index": 9, "tasks": ["Move box red to zone 2"], "length": 748}
11
+ {"episode_index": 10, "tasks": ["Move box red to home"], "length": 598}
12
+ {"episode_index": 11, "tasks": ["Move box red to home"], "length": 598}
13
+ {"episode_index": 12, "tasks": ["Move box red to home"], "length": 598}
14
+ {"episode_index": 13, "tasks": ["Move box red to home"], "length": 598}
15
+ {"episode_index": 14, "tasks": ["Move box red to home"], "length": 598}
16
+ {"episode_index": 15, "tasks": ["Move box red to home"], "length": 598}
17
+ {"episode_index": 16, "tasks": ["Move box red to home"], "length": 598}
18
+ {"episode_index": 17, "tasks": ["Move box red to home"], "length": 598}
19
+ {"episode_index": 18, "tasks": ["Move box red to home"], "length": 598}
20
+ {"episode_index": 19, "tasks": ["Move box red to home"], "length": 598}
21
+ {"episode_index": 20, "tasks": ["Move box red to home"], "length": 598}
22
+ {"episode_index": 21, "tasks": ["Move box red to home"], "length": 598}
23
+ {"episode_index": 22, "tasks": ["Move box red to home"], "length": 598}
24
+ {"episode_index": 23, "tasks": ["Move box red to home"], "length": 598}
25
+ {"episode_index": 24, "tasks": ["Move box red to home"], "length": 598}
26
+ {"episode_index": 25, "tasks": ["Move box blue to zone 1"], "length": 598}
27
+ {"episode_index": 26, "tasks": ["Move box blue to zone 1"], "length": 598}
28
+ {"episode_index": 27, "tasks": ["Move box blue to zone 1"], "length": 597}
29
+ {"episode_index": 28, "tasks": ["Move box blue to zone 1"], "length": 598}
30
+ {"episode_index": 29, "tasks": ["Move box blue to zone 1"], "length": 598}
31
+ {"episode_index": 30, "tasks": ["Move box blue to zone 1"], "length": 598}
32
+ {"episode_index": 31, "tasks": ["Move box blue to zone 1"], "length": 598}
33
+ {"episode_index": 32, "tasks": ["Move box blue to zone 1"], "length": 598}
34
+ {"episode_index": 33, "tasks": ["Move box blue to zone 1"], "length": 598}
35
+ {"episode_index": 34, "tasks": ["Move box blue to zone 1"], "length": 598}
36
+ {"episode_index": 35, "tasks": ["Move box blue to zone 2"], "length": 598}
37
+ {"episode_index": 36, "tasks": ["Move box blue to zone 2"], "length": 598}
38
+ {"episode_index": 37, "tasks": ["Move box blue to zone 2"], "length": 598}
39
+ {"episode_index": 38, "tasks": ["Move box blue to zone 2"], "length": 598}
40
+ {"episode_index": 39, "tasks": ["Move box blue to zone 2"], "length": 598}
41
+ {"episode_index": 40, "tasks": ["Move box blue to zone 2"], "length": 598}
42
+ {"episode_index": 41, "tasks": ["Move box blue to zone 2"], "length": 598}
43
+ {"episode_index": 42, "tasks": ["Move box blue to zone 2"], "length": 598}
44
+ {"episode_index": 43, "tasks": ["Move box blue to zone 2"], "length": 598}
45
+ {"episode_index": 44, "tasks": ["Move box blue to zone 2"], "length": 598}
46
+ {"episode_index": 45, "tasks": ["Move box blue to home"], "length": 598}
47
+ {"episode_index": 46, "tasks": ["Move box blue to home"], "length": 598}
48
+ {"episode_index": 47, "tasks": ["Move box blue to home"], "length": 589}
49
+ {"episode_index": 48, "tasks": ["Move box blue to home"], "length": 598}
50
+ {"episode_index": 49, "tasks": ["Move box blue to home"], "length": 598}
51
+ {"episode_index": 50, "tasks": ["Move box blue to home"], "length": 598}
52
+ {"episode_index": 51, "tasks": ["Move box blue to home"], "length": 598}
53
+ {"episode_index": 52, "tasks": ["Move box blue to home"], "length": 598}
54
+ {"episode_index": 53, "tasks": ["Move box blue to home"], "length": 598}
55
+ {"episode_index": 54, "tasks": ["Move box blue to home"], "length": 598}
56
+ {"episode_index": 55, "tasks": ["Move box yellow to zone 1"], "length": 598}
57
+ {"episode_index": 56, "tasks": ["Move box yellow to zone 1"], "length": 598}
58
+ {"episode_index": 57, "tasks": ["Move box yellow to zone 1"], "length": 598}
59
+ {"episode_index": 58, "tasks": ["Move box yellow to zone 1"], "length": 598}
60
+ {"episode_index": 59, "tasks": ["Move box yellow to zone 1"], "length": 598}
61
+ {"episode_index": 60, "tasks": ["Move box yellow to zone 1"], "length": 598}
62
+ {"episode_index": 61, "tasks": ["Move box yellow to zone 1"], "length": 598}
63
+ {"episode_index": 62, "tasks": ["Move box yellow to zone 1"], "length": 598}
64
+ {"episode_index": 63, "tasks": ["Move box yellow to zone 1"], "length": 598}
65
+ {"episode_index": 64, "tasks": ["Move box yellow to zone 1"], "length": 598}
66
+ {"episode_index": 65, "tasks": ["Move box yellow to zone 2"], "length": 598}
67
+ {"episode_index": 66, "tasks": ["Move box yellow to zone 2"], "length": 598}
68
+ {"episode_index": 67, "tasks": ["Move box yellow to zone 2"], "length": 598}
69
+ {"episode_index": 68, "tasks": ["Move box yellow to zone 2"], "length": 598}
70
+ {"episode_index": 69, "tasks": ["Move box yellow to zone 2"], "length": 598}
71
+ {"episode_index": 70, "tasks": ["Move box yellow to zone 2"], "length": 598}
72
+ {"episode_index": 71, "tasks": ["Move box yellow to zone 2"], "length": 598}
73
+ {"episode_index": 72, "tasks": ["Move box yellow to zone 2"], "length": 598}
74
+ {"episode_index": 73, "tasks": ["Move box yellow to zone 2"], "length": 598}
75
+ {"episode_index": 74, "tasks": ["Move box yellow to zone 2"], "length": 598}
76
+ {"episode_index": 75, "tasks": ["Move box yellow to home"], "length": 598}
77
+ {"episode_index": 76, "tasks": ["Move box yellow to home"], "length": 598}
78
+ {"episode_index": 77, "tasks": ["Move box yellow to home"], "length": 598}
79
+ {"episode_index": 78, "tasks": ["Move box yellow to home"], "length": 598}
80
+ {"episode_index": 79, "tasks": ["Move box yellow to home"], "length": 598}
81
+ {"episode_index": 80, "tasks": ["Move box yellow to home"], "length": 598}
82
+ {"episode_index": 81, "tasks": ["Move box yellow to home"], "length": 598}
83
+ {"episode_index": 82, "tasks": ["Move box yellow to home"], "length": 598}
84
+ {"episode_index": 83, "tasks": ["Move box yellow to home"], "length": 597}
85
+ {"episode_index": 84, "tasks": ["Move box yellow to home"], "length": 597}
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": 85,
5
+ "total_frames": 52317,
6
+ "total_tasks": 9,
7
+ "total_videos": 170,
8
+ "total_chunks": 1,
9
+ "chunks_size": 1000,
10
+ "fps": 30,
11
+ "splits": {
12
+ "train": "0:85"
13
+ },
14
+ "data_path": "data/so100_playx.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": "baptiste-04/so100_playX",
140
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
141
+ "converted_data_path": "data/so100_playx.tsfile",
142
+ "table_name": "so100_playx",
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": 52317,
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.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.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.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/baptiste-04/so100_playX/tree/main/videos",
234
+ "video_policy": "Videos are not uploaded to this repository; use the original HuggingFace dataset videos."
235
+ }
236
+ }
meta/modality.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "state": {
3
+ "single_arm": { "start": 0, "end": 5 },
4
+ "gripper": { "start": 5, "end": 6 }
5
+ },
6
+ "action": {
7
+ "single_arm": { "start": 0, "end": 5 },
8
+ "gripper": { "start": 5, "end": 6 }
9
+ },
10
+ "video": {
11
+ "laptop": { "original_key": "observation.images.laptop" },
12
+ "phone": { "original_key": "observation.images.phone" }
13
+ }
14
+ }
meta/tasks.jsonl ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {"task_index": 0, "task": "Move box red to zone 1"}
2
+ {"task_index": 1, "task": "Move box red to zone 2"}
3
+ {"task_index": 2, "task": "Move box red to home"}
4
+ {"task_index": 3, "task": "Move box blue to zone 1"}
5
+ {"task_index": 4, "task": "Move box blue to zone 2"}
6
+ {"task_index": 5, "task": "Move box blue to home"}
7
+ {"task_index": 6, "task": "Move box yellow to zone 1"}
8
+ {"task_index": 7, "task": "Move box yellow to zone 2"}
9
+ {"task_index": 8, "task": "Move box yellow to home"}