zjt24 commited on
Commit
1fd08ff
·
verified ·
1 Parent(s): 33bc6fc

Add TsFile (converted from lerobot/svla_so100_stacking)

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/svla_so100_stacking_train.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pretty_name: SVLA SO100 Stacking (TsFile)
4
+ task_categories:
5
+ - robotics
6
+ tags:
7
+ - tsfile
8
+ - time-series
9
+ - robotics
10
+ - lerobot
11
+ - so100
12
+ - modality:timeseries
13
+ modality:
14
+ - timeseries
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: data/svla_so100_stacking_train.tsfile
20
+ ---
21
+
22
+ # SVLA SO100 Stacking (TsFile)
23
+
24
+ This dataset is a TsFile conversion of the Hugging Face dataset
25
+ [`lerobot/svla_so100_stacking`](https://huggingface.co/datasets/lerobot/svla_so100_stacking).
26
+ It contains the numeric LeRobot frame data for an `so100` robot dataset. The
27
+ source dataset was created using [LeRobot](https://github.com/huggingface/lerobot).
28
+
29
+ Modalities: Time-series. The original dataset also contains videos; those video
30
+ files are not mirrored in this converted repository.
31
+
32
+ ## Source dataset
33
+
34
+ - Original dataset: [`lerobot/svla_so100_stacking`](https://huggingface.co/datasets/lerobot/svla_so100_stacking)
35
+ - Source commit used for conversion: `476c6810591b5e75b385d6e8d9c648525a153eb9`
36
+ - License: `apache-2.0`
37
+ - LeRobot codebase version: `v3.0`
38
+ - Robot type: `so100`
39
+ - Published task metadata: one task index (`0`); the source task table does not
40
+ include a text label
41
+
42
+ ## Dataset scale
43
+
44
+ - Episodes: 56
45
+ - Frames / converted TsFile rows: 22,956
46
+ - Tasks: 1
47
+ - Split: `train` (`0:56`)
48
+ - Sampling rate: 30 FPS
49
+ - Converted files: 1 TsFile file (429,148 bytes)
50
+ - Original video streams: `observation.images.top` and
51
+ `observation.images.wrist`
52
+
53
+ ## Converted layout
54
+
55
+ ```text
56
+ data/svla_so100_stacking_train.tsfile
57
+ meta/
58
+ episodes/chunk-000/file-000.parquet
59
+ info.json
60
+ stats.json
61
+ tasks.parquet
62
+ ```
63
+
64
+ The uploaded `meta/info.json` mirrors the source metadata and adds a
65
+ `tsfile_conversion` object describing the source-to-TsFile mappings.
66
+
67
+ ## TsFile schema
68
+
69
+ Table name: `svla_so100_stacking_train`
70
+
71
+ - `Time`: millisecond timestamp, computed as `round(timestamp * 1000)`.
72
+ - TAG columns: `episode_index`, `task_index`.
73
+ - FIELD columns: `frame_index`, `sample_index`, `action_0` to `action_5`, and
74
+ `observation_state_0` to `observation_state_5`.
75
+
76
+ The six `action_*` and six `observation_state_*` fields preserve the source
77
+ joint order:
78
+
79
+ ```text
80
+ main_shoulder_pan
81
+ main_shoulder_lift
82
+ main_elbow_flex
83
+ main_wrist_flex
84
+ main_wrist_roll
85
+ main_gripper
86
+ ```
87
+
88
+ ## Conversion notes
89
+
90
+ - Source vector column `action` is flattened to `action_0` through `action_5`.
91
+ - Source vector column `observation.state` is flattened to
92
+ `observation_state_0` through `observation_state_5`.
93
+ - Source column `timestamp` is mapped to the TsFile `Time` column in
94
+ milliseconds and is not retained as a separate field because it is
95
+ equivalent to `Time / 1000` seconds.
96
+ - Source column `index` is renamed to `sample_index`; `frame_index` is retained.
97
+ - Source video features `observation.images.top` and
98
+ `observation.images.wrist` are omitted from this TsFile conversion. The
99
+ original videos remain available in the source dataset under
100
+ [`videos/`](https://huggingface.co/datasets/lerobot/svla_so100_stacking/tree/main/videos).
101
+
102
+ ## Minimal read example
103
+
104
+ ```python
105
+ import pyarrow as pa
106
+ from tsfile import ColumnCategory, TsFileReader
107
+
108
+ path = "data/svla_so100_stacking_train.tsfile"
109
+ table_name = "svla_so100_stacking_train"
110
+
111
+ reader = TsFileReader(path)
112
+ schema = reader.get_all_table_schemas()[table_name]
113
+ columns = [
114
+ column.get_column_name()
115
+ for column in schema.get_columns()
116
+ if column.get_category() in (ColumnCategory.FIELD, ColumnCategory.TAG)
117
+ ]
118
+
119
+ batches = []
120
+ with reader.query_table(table_name, columns, batch_size=65536) as result_set:
121
+ while True:
122
+ batch = result_set.read_arrow_batch()
123
+ if batch is None:
124
+ break
125
+ if batch.num_rows:
126
+ batches.append(batch)
127
+
128
+ table = pa.concat_tables(batches)
129
+ print(table.to_pandas().head())
130
+ ```
data/svla_so100_stacking_train.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca110bc23ea6d37d8952bc91a1697ac72384ef2c6e55ee47e5c7cfe297f54afd
3
+ size 429148
meta/episodes/chunk-000/file-000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc0b957c013bb5a903a6555bb585e774277fcb5d2fe03e0b218c1717fc81bd7
3
+ size 74946
meta/info.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v3.0",
3
+ "robot_type": "so100",
4
+ "total_episodes": 56,
5
+ "total_frames": 22956,
6
+ "total_tasks": 1,
7
+ "chunks_size": 1000,
8
+ "fps": 30,
9
+ "splits": {
10
+ "train": "0:56"
11
+ },
12
+ "data_path": "data/svla_so100_stacking_train.tsfile",
13
+ "features": {
14
+ "Time": {
15
+ "dtype": "int64",
16
+ "shape": [
17
+ 1
18
+ ],
19
+ "tsfile_role": "TIME",
20
+ "unit": "ms"
21
+ },
22
+ "episode_index": {
23
+ "dtype": "int64",
24
+ "shape": [
25
+ 1
26
+ ],
27
+ "tsfile_role": "TAG"
28
+ },
29
+ "task_index": {
30
+ "dtype": "int64",
31
+ "shape": [
32
+ 1
33
+ ],
34
+ "tsfile_role": "TAG"
35
+ },
36
+ "frame_index": {
37
+ "dtype": "int64",
38
+ "shape": [
39
+ 1
40
+ ],
41
+ "tsfile_role": "FIELD"
42
+ },
43
+ "sample_index": {
44
+ "dtype": "int64",
45
+ "shape": [
46
+ 1
47
+ ],
48
+ "tsfile_role": "FIELD"
49
+ },
50
+ "action_0": {
51
+ "dtype": "float32",
52
+ "shape": [
53
+ 1
54
+ ],
55
+ "tsfile_role": "FIELD"
56
+ },
57
+ "action_1": {
58
+ "dtype": "float32",
59
+ "shape": [
60
+ 1
61
+ ],
62
+ "tsfile_role": "FIELD"
63
+ },
64
+ "action_2": {
65
+ "dtype": "float32",
66
+ "shape": [
67
+ 1
68
+ ],
69
+ "tsfile_role": "FIELD"
70
+ },
71
+ "action_3": {
72
+ "dtype": "float32",
73
+ "shape": [
74
+ 1
75
+ ],
76
+ "tsfile_role": "FIELD"
77
+ },
78
+ "action_4": {
79
+ "dtype": "float32",
80
+ "shape": [
81
+ 1
82
+ ],
83
+ "tsfile_role": "FIELD"
84
+ },
85
+ "action_5": {
86
+ "dtype": "float32",
87
+ "shape": [
88
+ 1
89
+ ],
90
+ "tsfile_role": "FIELD"
91
+ },
92
+ "observation_state_0": {
93
+ "dtype": "float32",
94
+ "shape": [
95
+ 1
96
+ ],
97
+ "tsfile_role": "FIELD"
98
+ },
99
+ "observation_state_1": {
100
+ "dtype": "float32",
101
+ "shape": [
102
+ 1
103
+ ],
104
+ "tsfile_role": "FIELD"
105
+ },
106
+ "observation_state_2": {
107
+ "dtype": "float32",
108
+ "shape": [
109
+ 1
110
+ ],
111
+ "tsfile_role": "FIELD"
112
+ },
113
+ "observation_state_3": {
114
+ "dtype": "float32",
115
+ "shape": [
116
+ 1
117
+ ],
118
+ "tsfile_role": "FIELD"
119
+ },
120
+ "observation_state_4": {
121
+ "dtype": "float32",
122
+ "shape": [
123
+ 1
124
+ ],
125
+ "tsfile_role": "FIELD"
126
+ },
127
+ "observation_state_5": {
128
+ "dtype": "float32",
129
+ "shape": [
130
+ 1
131
+ ],
132
+ "tsfile_role": "FIELD"
133
+ }
134
+ },
135
+ "data_files_size_in_mb": 100,
136
+ "video_files_size_in_mb": 500,
137
+ "video_path_original": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4",
138
+ "tsfile_conversion": {
139
+ "source_dataset": "lerobot/svla_so100_stacking",
140
+ "source_data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet",
141
+ "converted_data_path": "data/svla_so100_stacking_train.tsfile",
142
+ "table_name": "svla_so100_stacking_train",
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": 22956,
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.top",
182
+ "observation.images.wrist"
183
+ ],
184
+ "original_video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4",
185
+ "original_video_features": {
186
+ "observation.images.top": {
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.wrist": {
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/lerobot/svla_so100_stacking/tree/main/videos",
234
+ "video_policy": "Videos are not uploaded to this repository; use the original HuggingFace dataset videos."
235
+ }
236
+ }
meta/stats.json ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "observation.images.wrist": {
3
+ "min": [
4
+ [
5
+ [
6
+ 0.0
7
+ ]
8
+ ],
9
+ [
10
+ [
11
+ 0.0
12
+ ]
13
+ ],
14
+ [
15
+ [
16
+ 0.0
17
+ ]
18
+ ]
19
+ ],
20
+ "max": [
21
+ [
22
+ [
23
+ 1.0
24
+ ]
25
+ ],
26
+ [
27
+ [
28
+ 1.0
29
+ ]
30
+ ],
31
+ [
32
+ [
33
+ 1.0
34
+ ]
35
+ ]
36
+ ],
37
+ "mean": [
38
+ [
39
+ [
40
+ 0.5772170242574948
41
+ ]
42
+ ],
43
+ [
44
+ [
45
+ 0.5225519565013832
46
+ ]
47
+ ],
48
+ [
49
+ [
50
+ 0.5230516711483131
51
+ ]
52
+ ]
53
+ ],
54
+ "std": [
55
+ [
56
+ [
57
+ 0.273009644052108
58
+ ]
59
+ ],
60
+ [
61
+ [
62
+ 0.2652271180787044
63
+ ]
64
+ ],
65
+ [
66
+ [
67
+ 0.25952163794533817
68
+ ]
69
+ ]
70
+ ],
71
+ "count": [
72
+ 5427
73
+ ]
74
+ },
75
+ "task_index": {
76
+ "min": [
77
+ 0
78
+ ],
79
+ "max": [
80
+ 0
81
+ ],
82
+ "mean": [
83
+ 0.0
84
+ ],
85
+ "std": [
86
+ 0.0
87
+ ],
88
+ "count": [
89
+ 22956
90
+ ]
91
+ },
92
+ "index": {
93
+ "min": [
94
+ 0
95
+ ],
96
+ "max": [
97
+ 22955
98
+ ],
99
+ "mean": [
100
+ 11477.5
101
+ ],
102
+ "std": [
103
+ 6626.82638347095
104
+ ],
105
+ "count": [
106
+ 22956
107
+ ]
108
+ },
109
+ "action": {
110
+ "min": [
111
+ -41.30859375,
112
+ 27.421875,
113
+ -6.416015625,
114
+ 22.32421875,
115
+ 45.3515625,
116
+ 0.0
117
+ ],
118
+ "max": [
119
+ 40.95703125,
120
+ 177.36328125,
121
+ 164.70703125,
122
+ 100.810546875,
123
+ 127.705078125,
124
+ 29.925453186035156
125
+ ],
126
+ "mean": [
127
+ -2.3267354592823737,
128
+ 116.30070899409021,
129
+ 116.10219903398544,
130
+ 65.13737259419626,
131
+ 88.97907370776535,
132
+ 8.64330371827183
133
+ ],
134
+ "std": [
135
+ 17.097232696366277,
136
+ 43.456897897982856,
137
+ 38.57062188683578,
138
+ 11.040849060158774,
139
+ 13.081503408778554,
140
+ 8.955990695498391
141
+ ],
142
+ "count": [
143
+ 22956
144
+ ]
145
+ },
146
+ "frame_index": {
147
+ "min": [
148
+ 0
149
+ ],
150
+ "max": [
151
+ 576
152
+ ],
153
+ "mean": [
154
+ 220.241461927165
155
+ ],
156
+ "std": [
157
+ 132.12131025887712
158
+ ],
159
+ "count": [
160
+ 22956
161
+ ]
162
+ },
163
+ "observation.state": {
164
+ "min": [
165
+ -40.95703125,
166
+ 26.19140625,
167
+ 2.900390625,
168
+ 23.203125,
169
+ 45.87890625,
170
+ -0.20718231797218323
171
+ ],
172
+ "max": [
173
+ 40.78125,
174
+ 177.451171875,
175
+ 167.34375,
176
+ 98.61328125,
177
+ 127.177734375,
178
+ 29.696134567260742
179
+ ],
180
+ "mean": [
181
+ -2.2694127975461127,
182
+ 114.9036960392427,
183
+ 117.64065887861955,
184
+ 65.46121152075851,
185
+ 88.91259914018652,
186
+ 10.93782335658572
187
+ ],
188
+ "std": [
189
+ 17.062937831107856,
190
+ 44.077642107014825,
191
+ 37.992214503526085,
192
+ 10.913604445469923,
193
+ 13.043791298943765,
194
+ 8.680855702435503
195
+ ],
196
+ "count": [
197
+ 22956
198
+ ]
199
+ },
200
+ "episode_index": {
201
+ "min": [
202
+ 0
203
+ ],
204
+ "max": [
205
+ 55
206
+ ],
207
+ "mean": [
208
+ 26.767816692803624
209
+ ],
210
+ "std": [
211
+ 15.947075605794405
212
+ ],
213
+ "count": [
214
+ 22956
215
+ ]
216
+ },
217
+ "timestamp": {
218
+ "min": [
219
+ 0.0
220
+ ],
221
+ "max": [
222
+ 19.2
223
+ ],
224
+ "mean": [
225
+ 7.341382064238833
226
+ ],
227
+ "std": [
228
+ 4.404043675295903
229
+ ],
230
+ "count": [
231
+ 22956
232
+ ]
233
+ },
234
+ "observation.images.top": {
235
+ "min": [
236
+ [
237
+ [
238
+ 0.0
239
+ ]
240
+ ],
241
+ [
242
+ [
243
+ 0.0
244
+ ]
245
+ ],
246
+ [
247
+ [
248
+ 0.0
249
+ ]
250
+ ]
251
+ ],
252
+ "max": [
253
+ [
254
+ [
255
+ 1.0
256
+ ]
257
+ ],
258
+ [
259
+ [
260
+ 1.0
261
+ ]
262
+ ],
263
+ [
264
+ [
265
+ 1.0
266
+ ]
267
+ ]
268
+ ],
269
+ "mean": [
270
+ [
271
+ [
272
+ 0.4786934139066228
273
+ ]
274
+ ],
275
+ [
276
+ [
277
+ 0.48246291795079327
278
+ ]
279
+ ],
280
+ [
281
+ [
282
+ 0.48505491932584716
283
+ ]
284
+ ]
285
+ ],
286
+ "std": [
287
+ [
288
+ [
289
+ 0.2449509389382201
290
+ ]
291
+ ],
292
+ [
293
+ [
294
+ 0.22027247484504758
295
+ ]
296
+ ],
297
+ [
298
+ [
299
+ 0.19128862527287518
300
+ ]
301
+ ]
302
+ ],
303
+ "count": [
304
+ 5427
305
+ ]
306
+ }
307
+ }
meta/tasks.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c01579aca5bf15a130135deba797e70d9c4c6f5a30fe3573d0b67de91514f01a
3
+ size 2251