zjt24 commited on
Commit
a27514a
·
verified ·
1 Parent(s): a135ff8

Add TsFile (converted from iiyudana/2view_random50)

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/two_view_random50.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - robotics
5
+ tags:
6
+ - LeRobot
7
+ - robotics
8
+ - time-series
9
+ - tsfile
10
+ modality: timeseries
11
+ pretty_name: "2view_random50 TsFile"
12
+ configs:
13
+ - config_name: default
14
+ data_files:
15
+ - split: train
16
+ path: data/two_view_random50.tsfile
17
+ ---
18
+
19
+ # 2view_random50 TsFile
20
+
21
+ This dataset is an Apache TsFile conversion of the Hugging Face dataset
22
+ [`iiyudana/2view_random50`](https://huggingface.co/datasets/iiyudana/2view_random50).
23
+ The source dataset was created with [LeRobot](https://github.com/huggingface/lerobot)
24
+ and is licensed under Apache 2.0.
25
+
26
+ Modalities: Time-series. The original visual MP4 streams remain available in
27
+ the source dataset; this repository stores the numeric robot state, action,
28
+ frame metadata, task index, and episode tags as TsFile.
29
+
30
+ ## Source Dataset
31
+
32
+ - Original dataset: [`iiyudana/2view_random50`](https://huggingface.co/datasets/iiyudana/2view_random50)
33
+ - Source task: `"Pick up the cube with the right arm and transfer it to the left arm."`
34
+ - Codebase version: LeRobot `v2.1`
35
+ - Robot type: `aloha`
36
+ - Split: `train` (`0:50`)
37
+ - Episodes: `50`
38
+ - Frames: `20,000`
39
+ - Sampling rate: `50 fps`
40
+ - Tasks: `1`
41
+ - Videos: `100` MP4 files across `observation.images.top` and
42
+ `observation.images.right_wrist`
43
+ - Source data path: `data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet`
44
+ - Source video path: `videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4`
45
+
46
+ ## Converted Files
47
+
48
+ - TsFile: `data/two_view_random50.tsfile`
49
+ - Rows: `20,000`
50
+ - Table name: `two_view_random50`
51
+ - Time precision: milliseconds
52
+ - Mirrored metadata: `meta/`, with `meta/info.json` updated for the TsFile artifact
53
+
54
+ ## Schema
55
+
56
+ `Time` is generated as `round(timestamp * 1000)` milliseconds. Time restarts
57
+ within each episode, and devices are identified by the original LeRobot tag
58
+ columns.
59
+
60
+ - TAG columns: `episode_index`, `task_index`
61
+ - FIELD metadata columns: `frame_index`, `sample_index`
62
+ - FIELD vectors: `observation_state_0..observation_state_13` and
63
+ `action_0..action_13`
64
+
65
+ ## Conversion Notes
66
+
67
+ - The source `timestamp` column is dropped after being mapped to `Time`; it is
68
+ recoverable as `Time / 1000` seconds.
69
+ - The source `index` column is renamed to `sample_index`.
70
+ - Vector columns are flattened by preserving the full source column name,
71
+ replacing `.` with `_`, and appending the element index.
72
+ - Source video features are not uploaded here: `observation.images.top` and
73
+ `observation.images.right_wrist`. Use the original dataset's
74
+ [`videos/`](https://huggingface.co/datasets/iiyudana/2view_random50/tree/main/videos)
75
+ tree for the visual streams.
76
+ - Aside from the redundant `timestamp` column and omitted video files, no
77
+ numeric time-series rows are intentionally dropped.
78
+
79
+ ## Read Example
80
+
81
+ ```python
82
+ from tsfile import TsFileReader
83
+
84
+ path = "data/two_view_random50.tsfile"
85
+
86
+ with TsFileReader(path) as reader:
87
+ tables = reader.get_all_table_schemas()
88
+ print(tables.keys())
89
+ ```
data/two_view_random50.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cec984015a4b541b4cf96f19e6148a1a71427d0a0bbbdfda751a611b9e02acb2
3
+ size 2195882
meta/episodes.jsonl ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"episode_index": 0, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
2
+ {"episode_index": 1, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
3
+ {"episode_index": 2, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
4
+ {"episode_index": 3, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
5
+ {"episode_index": 4, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
6
+ {"episode_index": 5, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
7
+ {"episode_index": 6, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
8
+ {"episode_index": 7, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
9
+ {"episode_index": 8, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
10
+ {"episode_index": 9, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
11
+ {"episode_index": 10, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
12
+ {"episode_index": 11, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
13
+ {"episode_index": 12, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
14
+ {"episode_index": 13, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
15
+ {"episode_index": 14, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
16
+ {"episode_index": 15, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
17
+ {"episode_index": 16, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
18
+ {"episode_index": 17, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
19
+ {"episode_index": 18, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
20
+ {"episode_index": 19, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
21
+ {"episode_index": 20, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
22
+ {"episode_index": 21, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
23
+ {"episode_index": 22, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
24
+ {"episode_index": 23, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
25
+ {"episode_index": 24, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
26
+ {"episode_index": 25, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
27
+ {"episode_index": 26, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
28
+ {"episode_index": 27, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
29
+ {"episode_index": 28, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
30
+ {"episode_index": 29, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
31
+ {"episode_index": 30, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
32
+ {"episode_index": 31, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
33
+ {"episode_index": 32, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
34
+ {"episode_index": 33, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
35
+ {"episode_index": 34, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
36
+ {"episode_index": 35, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
37
+ {"episode_index": 36, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
38
+ {"episode_index": 37, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
39
+ {"episode_index": 38, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
40
+ {"episode_index": 39, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
41
+ {"episode_index": 40, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
42
+ {"episode_index": 41, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
43
+ {"episode_index": 42, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
44
+ {"episode_index": 43, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
45
+ {"episode_index": 44, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
46
+ {"episode_index": 45, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
47
+ {"episode_index": 46, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
48
+ {"episode_index": 47, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
49
+ {"episode_index": 48, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
50
+ {"episode_index": 49, "tasks": ["Pick up the cube with the right arm and transfer it to the left arm."], "length": 400}
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,364 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v2.1",
3
+ "robot_type": "aloha",
4
+ "total_episodes": 50,
5
+ "total_frames": 20000,
6
+ "total_tasks": 1,
7
+ "total_videos": 100,
8
+ "total_chunks": 1,
9
+ "chunks_size": 1000,
10
+ "fps": 50,
11
+ "splits": {
12
+ "train": "0:50"
13
+ },
14
+ "data_path": "data/two_view_random50.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
+ "observation_state_0": {
53
+ "dtype": "float32",
54
+ "shape": [
55
+ 1
56
+ ],
57
+ "tsfile_role": "FIELD"
58
+ },
59
+ "observation_state_1": {
60
+ "dtype": "float32",
61
+ "shape": [
62
+ 1
63
+ ],
64
+ "tsfile_role": "FIELD"
65
+ },
66
+ "observation_state_2": {
67
+ "dtype": "float32",
68
+ "shape": [
69
+ 1
70
+ ],
71
+ "tsfile_role": "FIELD"
72
+ },
73
+ "observation_state_3": {
74
+ "dtype": "float32",
75
+ "shape": [
76
+ 1
77
+ ],
78
+ "tsfile_role": "FIELD"
79
+ },
80
+ "observation_state_4": {
81
+ "dtype": "float32",
82
+ "shape": [
83
+ 1
84
+ ],
85
+ "tsfile_role": "FIELD"
86
+ },
87
+ "observation_state_5": {
88
+ "dtype": "float32",
89
+ "shape": [
90
+ 1
91
+ ],
92
+ "tsfile_role": "FIELD"
93
+ },
94
+ "observation_state_6": {
95
+ "dtype": "float32",
96
+ "shape": [
97
+ 1
98
+ ],
99
+ "tsfile_role": "FIELD"
100
+ },
101
+ "observation_state_7": {
102
+ "dtype": "float32",
103
+ "shape": [
104
+ 1
105
+ ],
106
+ "tsfile_role": "FIELD"
107
+ },
108
+ "observation_state_8": {
109
+ "dtype": "float32",
110
+ "shape": [
111
+ 1
112
+ ],
113
+ "tsfile_role": "FIELD"
114
+ },
115
+ "observation_state_9": {
116
+ "dtype": "float32",
117
+ "shape": [
118
+ 1
119
+ ],
120
+ "tsfile_role": "FIELD"
121
+ },
122
+ "observation_state_10": {
123
+ "dtype": "float32",
124
+ "shape": [
125
+ 1
126
+ ],
127
+ "tsfile_role": "FIELD"
128
+ },
129
+ "observation_state_11": {
130
+ "dtype": "float32",
131
+ "shape": [
132
+ 1
133
+ ],
134
+ "tsfile_role": "FIELD"
135
+ },
136
+ "observation_state_12": {
137
+ "dtype": "float32",
138
+ "shape": [
139
+ 1
140
+ ],
141
+ "tsfile_role": "FIELD"
142
+ },
143
+ "observation_state_13": {
144
+ "dtype": "float32",
145
+ "shape": [
146
+ 1
147
+ ],
148
+ "tsfile_role": "FIELD"
149
+ },
150
+ "action_0": {
151
+ "dtype": "float32",
152
+ "shape": [
153
+ 1
154
+ ],
155
+ "tsfile_role": "FIELD"
156
+ },
157
+ "action_1": {
158
+ "dtype": "float32",
159
+ "shape": [
160
+ 1
161
+ ],
162
+ "tsfile_role": "FIELD"
163
+ },
164
+ "action_2": {
165
+ "dtype": "float32",
166
+ "shape": [
167
+ 1
168
+ ],
169
+ "tsfile_role": "FIELD"
170
+ },
171
+ "action_3": {
172
+ "dtype": "float32",
173
+ "shape": [
174
+ 1
175
+ ],
176
+ "tsfile_role": "FIELD"
177
+ },
178
+ "action_4": {
179
+ "dtype": "float32",
180
+ "shape": [
181
+ 1
182
+ ],
183
+ "tsfile_role": "FIELD"
184
+ },
185
+ "action_5": {
186
+ "dtype": "float32",
187
+ "shape": [
188
+ 1
189
+ ],
190
+ "tsfile_role": "FIELD"
191
+ },
192
+ "action_6": {
193
+ "dtype": "float32",
194
+ "shape": [
195
+ 1
196
+ ],
197
+ "tsfile_role": "FIELD"
198
+ },
199
+ "action_7": {
200
+ "dtype": "float32",
201
+ "shape": [
202
+ 1
203
+ ],
204
+ "tsfile_role": "FIELD"
205
+ },
206
+ "action_8": {
207
+ "dtype": "float32",
208
+ "shape": [
209
+ 1
210
+ ],
211
+ "tsfile_role": "FIELD"
212
+ },
213
+ "action_9": {
214
+ "dtype": "float32",
215
+ "shape": [
216
+ 1
217
+ ],
218
+ "tsfile_role": "FIELD"
219
+ },
220
+ "action_10": {
221
+ "dtype": "float32",
222
+ "shape": [
223
+ 1
224
+ ],
225
+ "tsfile_role": "FIELD"
226
+ },
227
+ "action_11": {
228
+ "dtype": "float32",
229
+ "shape": [
230
+ 1
231
+ ],
232
+ "tsfile_role": "FIELD"
233
+ },
234
+ "action_12": {
235
+ "dtype": "float32",
236
+ "shape": [
237
+ 1
238
+ ],
239
+ "tsfile_role": "FIELD"
240
+ },
241
+ "action_13": {
242
+ "dtype": "float32",
243
+ "shape": [
244
+ 1
245
+ ],
246
+ "tsfile_role": "FIELD"
247
+ }
248
+ },
249
+ "video_path_original": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
250
+ "tsfile_conversion": {
251
+ "source_dataset": "iiyudana/2view_random50",
252
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
253
+ "converted_data_path": "data/two_view_random50.tsfile",
254
+ "table_name": "two_view_random50",
255
+ "granularity": "merged",
256
+ "time_precision": "ms",
257
+ "time_mapping": {
258
+ "source": "timestamp",
259
+ "fps": 50,
260
+ "unit": "milliseconds"
261
+ },
262
+ "tag_columns": [
263
+ "episode_index",
264
+ "task_index"
265
+ ],
266
+ "row_count": 20000,
267
+ "feature_source": "features describe the converted TsFile schema",
268
+ "flattened_features": {
269
+ "observation.state": [
270
+ "observation_state_0",
271
+ "observation_state_1",
272
+ "observation_state_2",
273
+ "observation_state_3",
274
+ "observation_state_4",
275
+ "observation_state_5",
276
+ "observation_state_6",
277
+ "observation_state_7",
278
+ "observation_state_8",
279
+ "observation_state_9",
280
+ "observation_state_10",
281
+ "observation_state_11",
282
+ "observation_state_12",
283
+ "observation_state_13"
284
+ ],
285
+ "action": [
286
+ "action_0",
287
+ "action_1",
288
+ "action_2",
289
+ "action_3",
290
+ "action_4",
291
+ "action_5",
292
+ "action_6",
293
+ "action_7",
294
+ "action_8",
295
+ "action_9",
296
+ "action_10",
297
+ "action_11",
298
+ "action_12",
299
+ "action_13"
300
+ ]
301
+ },
302
+ "renamed_features": {
303
+ "index": "sample_index"
304
+ },
305
+ "dropped_features": [
306
+ "timestamp"
307
+ ],
308
+ "omitted_features": [
309
+ "observation.images.top",
310
+ "observation.images.right_wrist"
311
+ ],
312
+ "original_video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
313
+ "original_video_features": {
314
+ "observation.images.top": {
315
+ "dtype": "video",
316
+ "shape": [
317
+ 480,
318
+ 640,
319
+ 3
320
+ ],
321
+ "names": [
322
+ "height",
323
+ "width",
324
+ "channels"
325
+ ],
326
+ "info": {
327
+ "video.height": 480,
328
+ "video.width": 640,
329
+ "video.codec": "av1",
330
+ "video.pix_fmt": "yuv420p",
331
+ "video.is_depth_map": false,
332
+ "video.fps": 50,
333
+ "video.channels": 3,
334
+ "has_audio": false
335
+ }
336
+ },
337
+ "observation.images.right_wrist": {
338
+ "dtype": "video",
339
+ "shape": [
340
+ 480,
341
+ 640,
342
+ 3
343
+ ],
344
+ "names": [
345
+ "height",
346
+ "width",
347
+ "channels"
348
+ ],
349
+ "info": {
350
+ "video.height": 480,
351
+ "video.width": 640,
352
+ "video.codec": "av1",
353
+ "video.pix_fmt": "yuv420p",
354
+ "video.is_depth_map": false,
355
+ "video.fps": 50,
356
+ "video.channels": 3,
357
+ "has_audio": false
358
+ }
359
+ }
360
+ },
361
+ "original_video_source": "https://huggingface.co/datasets/iiyudana/2view_random50/tree/main/videos",
362
+ "video_policy": "Videos are not uploaded to this repository; use the original HuggingFace dataset videos."
363
+ }
364
+ }
meta/tasks.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"task_index": 0, "task": "Pick up the cube with the right arm and transfer it to the left arm."}