Datasets:

THUgewu commited on
Commit
dce2bfe
·
verified ·
1 Parent(s): 235f3e8

Add TsFile (converted from MoeOver/record-test3)

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/record_test3.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - tsfile
5
+ - timeseries
6
+ - format:tsfile
7
+ - time-series
8
+ configs:
9
+ - config_name: default
10
+ data_files:
11
+ - split: train
12
+ path: data/record_test3.tsfile
13
+ ---
14
+
15
+ # record_test3
16
+
17
+ Converted from the Hugging Face dataset [`MoeOver/record-test3`](https://huggingface.co/datasets/MoeOver/record-test3) to Apache TsFile format.
18
+
19
+ ## Source Dataset
20
+
21
+ - **Original dataset:** [`MoeOver/record-test3`](https://huggingface.co/datasets/MoeOver/record-test3)
22
+ - **Authors:** MoeOver
23
+ - **License:** apache-2.0
24
+
25
+ ## Conversion Notes
26
+
27
+ - Conversion mode: `script`
28
+ - Time precision: `ms`
29
+ - TsFile data files: `['data/record_test3.tsfile']`
30
+ - Converter: `scripts/converters/lerobot.py`
31
+
32
+ ## Usage
33
+
34
+
35
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
36
+
37
+ ```python
38
+ from pathlib import Path
39
+ from tsfile import TsFileReader
40
+
41
+ path = Path("data/record_test3.tsfile")
42
+ with TsFileReader(str(path)) as reader:
43
+ schemas = reader.get_all_table_schemas()
44
+ print("tables:", list(schemas))
45
+ table_name = next(iter(schemas))
46
+ table = schemas[table_name]
47
+ columns = [column.get_column_name() for column in table.get_columns()]
48
+ print("columns:", columns)
49
+ field_names = [
50
+ column.get_column_name()
51
+ for column in table.get_columns()
52
+ if column.get_column_name() not in {"Time", "time"}
53
+ ]
54
+ if field_names:
55
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
56
+ batch = result.read_arrow_batch()
57
+ if batch is not None:
58
+ print(batch.to_pandas().head())
59
+ ```
data/record_test3.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a31c4ef5c89af746fe50f98b7672bd4c25170cfe4a857fd478bd5bb51b4224a9
3
+ size 2237424
meta/episodes.jsonl ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"episode_index": 0, "tasks": ["Grab the black cube"], "length": 682}
2
+ {"episode_index": 1, "tasks": ["Grab the black cube"], "length": 455}
3
+ {"episode_index": 2, "tasks": ["Grab the black cube"], "length": 525}
4
+ {"episode_index": 3, "tasks": ["Grab the black cube"], "length": 688}
5
+ {"episode_index": 4, "tasks": ["Grab the black cube"], "length": 600}
6
+ {"episode_index": 5, "tasks": ["Grab the black cube"], "length": 455}
7
+ {"episode_index": 6, "tasks": ["Grab the black cube"], "length": 579}
8
+ {"episode_index": 7, "tasks": ["Grab the black cube"], "length": 402}
9
+ {"episode_index": 8, "tasks": ["Grab the black cube"], "length": 563}
10
+ {"episode_index": 9, "tasks": ["Grab the black cube"], "length": 491}
11
+ {"episode_index": 10, "tasks": ["Grab the black cube"], "length": 388}
12
+ {"episode_index": 11, "tasks": ["Grab the black cube"], "length": 512}
13
+ {"episode_index": 12, "tasks": ["Grab the black cube"], "length": 366}
14
+ {"episode_index": 13, "tasks": ["Grab the black cube"], "length": 501}
15
+ {"episode_index": 14, "tasks": ["Grab the black cube"], "length": 481}
16
+ {"episode_index": 15, "tasks": ["Grab the black cube"], "length": 374}
17
+ {"episode_index": 16, "tasks": ["Grab the black cube"], "length": 684}
18
+ {"episode_index": 17, "tasks": ["Grab the black cube"], "length": 705}
19
+ {"episode_index": 18, "tasks": ["Grab the black cube"], "length": 336}
20
+ {"episode_index": 19, "tasks": ["Grab the black cube"], "length": 386}
21
+ {"episode_index": 20, "tasks": ["Grab the black cube"], "length": 294}
22
+ {"episode_index": 21, "tasks": ["Grab the black cube"], "length": 420}
23
+ {"episode_index": 22, "tasks": ["Grab the black cube"], "length": 418}
24
+ {"episode_index": 23, "tasks": ["Grab the black cube"], "length": 623}
25
+ {"episode_index": 24, "tasks": ["Grab the black cube"], "length": 905}
26
+ {"episode_index": 25, "tasks": ["Grab the black cube"], "length": 772}
27
+ {"episode_index": 26, "tasks": ["Grab the black cube"], "length": 399}
28
+ {"episode_index": 27, "tasks": ["Grab the black cube"], "length": 414}
29
+ {"episode_index": 28, "tasks": ["Grab the black cube"], "length": 349}
30
+ {"episode_index": 29, "tasks": ["Grab the black cube"], "length": 438}
31
+ {"episode_index": 30, "tasks": ["Grab the black cube"], "length": 484}
32
+ {"episode_index": 31, "tasks": ["Grab the black cube"], "length": 569}
33
+ {"episode_index": 32, "tasks": ["Grab the black cube"], "length": 454}
34
+ {"episode_index": 33, "tasks": ["Grab the black cube"], "length": 1158}
35
+ {"episode_index": 34, "tasks": ["Grab the black cube"], "length": 1341}
36
+ {"episode_index": 35, "tasks": ["Grab the black cube"], "length": 808}
37
+ {"episode_index": 36, "tasks": ["Grab the black cube"], "length": 549}
38
+ {"episode_index": 37, "tasks": ["Grab the black cube"], "length": 441}
39
+ {"episode_index": 38, "tasks": ["Grab the black cube"], "length": 488}
40
+ {"episode_index": 39, "tasks": ["Grab the black cube"], "length": 800}
41
+ {"episode_index": 40, "tasks": ["Grab the black cube"], "length": 599}
42
+ {"episode_index": 41, "tasks": ["Grab the black cube"], "length": 577}
43
+ {"episode_index": 42, "tasks": ["Grab the black cube"], "length": 677}
44
+ {"episode_index": 43, "tasks": ["Grab the black cube"], "length": 1232}
45
+ {"episode_index": 44, "tasks": ["Grab the black cube"], "length": 388}
46
+ {"episode_index": 45, "tasks": ["Grab the black cube"], "length": 467}
47
+ {"episode_index": 46, "tasks": ["Grab the black cube"], "length": 404}
48
+ {"episode_index": 47, "tasks": ["Grab the black cube"], "length": 633}
49
+ {"episode_index": 48, "tasks": ["Grab the black cube"], "length": 547}
50
+ {"episode_index": 49, "tasks": ["Grab the black cube"], "length": 502}
51
+ {"episode_index": 50, "tasks": ["Grab the black cube"], "length": 451}
52
+ {"episode_index": 51, "tasks": ["Grab the black cube"], "length": 965}
53
+ {"episode_index": 52, "tasks": ["Grab the black cube"], "length": 301}
54
+ {"episode_index": 53, "tasks": ["Grab the black cube"], "length": 537}
55
+ {"episode_index": 54, "tasks": ["Grab the black cube"], "length": 1062}
56
+ {"episode_index": 55, "tasks": ["Grab the black cube"], "length": 581}
57
+ {"episode_index": 56, "tasks": ["Grab the black cube"], "length": 584}
58
+ {"episode_index": 57, "tasks": ["Grab the black cube"], "length": 367}
59
+ {"episode_index": 58, "tasks": ["Grab the black cube"], "length": 651}
60
+ {"episode_index": 59, "tasks": ["Grab the black cube"], "length": 616}
61
+ {"episode_index": 60, "tasks": ["Grab the black cube"], "length": 580}
62
+ {"episode_index": 61, "tasks": ["Grab the black cube"], "length": 380}
63
+ {"episode_index": 62, "tasks": ["Grab the black cube"], "length": 337}
64
+ {"episode_index": 63, "tasks": ["Grab the black cube"], "length": 548}
65
+ {"episode_index": 64, "tasks": ["Grab the black cube"], "length": 534}
66
+ {"episode_index": 65, "tasks": ["Grab the black cube"], "length": 686}
67
+ {"episode_index": 66, "tasks": ["Grab the black cube"], "length": 861}
68
+ {"episode_index": 67, "tasks": ["Grab the black cube"], "length": 400}
69
+ {"episode_index": 68, "tasks": ["Grab the black cube"], "length": 434}
70
+ {"episode_index": 69, "tasks": ["Grab the black cube"], "length": 898}
71
+ {"episode_index": 70, "tasks": ["Grab the black cube"], "length": 458}
72
+ {"episode_index": 71, "tasks": ["Grab the black cube"], "length": 557}
73
+ {"episode_index": 72, "tasks": ["Grab the black cube"], "length": 706}
74
+ {"episode_index": 73, "tasks": ["Grab the black cube"], "length": 547}
75
+ {"episode_index": 74, "tasks": ["Grab the black cube"], "length": 1338}
76
+ {"episode_index": 75, "tasks": ["Grab the black cube"], "length": 1244}
77
+ {"episode_index": 76, "tasks": ["Grab the black cube"], "length": 581}
78
+ {"episode_index": 77, "tasks": ["Grab the black cube"], "length": 516}
79
+ {"episode_index": 78, "tasks": ["Grab the black cube"], "length": 540}
80
+ {"episode_index": 79, "tasks": ["Grab the black cube"], "length": 640}
81
+ {"episode_index": 80, "tasks": ["Grab the black cube"], "length": 680}
82
+ {"episode_index": 81, "tasks": ["Grab the black cube"], "length": 633}
83
+ {"episode_index": 82, "tasks": ["Grab the black cube"], "length": 371}
84
+ {"episode_index": 83, "tasks": ["Grab the black cube"], "length": 1130}
85
+ {"episode_index": 84, "tasks": ["Grab the black cube"], "length": 432}
86
+ {"episode_index": 85, "tasks": ["Grab the black cube"], "length": 667}
87
+ {"episode_index": 86, "tasks": ["Grab the black cube"], "length": 567}
88
+ {"episode_index": 87, "tasks": ["Grab the black cube"], "length": 395}
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,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v2.1",
3
+ "robot_type": "bxi_arm",
4
+ "total_episodes": 88,
5
+ "total_frames": 52098,
6
+ "total_tasks": 1,
7
+ "total_videos": 176,
8
+ "total_chunks": 1,
9
+ "chunks_size": 1000,
10
+ "fps": 30,
11
+ "splits": {
12
+ "train": "0:88"
13
+ },
14
+ "data_path": "data/record_test3.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
+ "observation_state_0": {
81
+ "dtype": "float32",
82
+ "shape": [
83
+ 1
84
+ ],
85
+ "tsfile_role": "FIELD"
86
+ },
87
+ "observation_state_1": {
88
+ "dtype": "float32",
89
+ "shape": [
90
+ 1
91
+ ],
92
+ "tsfile_role": "FIELD"
93
+ },
94
+ "observation_state_2": {
95
+ "dtype": "float32",
96
+ "shape": [
97
+ 1
98
+ ],
99
+ "tsfile_role": "FIELD"
100
+ },
101
+ "observation_state_3": {
102
+ "dtype": "float32",
103
+ "shape": [
104
+ 1
105
+ ],
106
+ "tsfile_role": "FIELD"
107
+ },
108
+ "observation_state_4": {
109
+ "dtype": "float32",
110
+ "shape": [
111
+ 1
112
+ ],
113
+ "tsfile_role": "FIELD"
114
+ },
115
+ "observation_state_5": {
116
+ "dtype": "float32",
117
+ "shape": [
118
+ 1
119
+ ],
120
+ "tsfile_role": "FIELD"
121
+ },
122
+ "observation_state_6": {
123
+ "dtype": "float32",
124
+ "shape": [
125
+ 1
126
+ ],
127
+ "tsfile_role": "FIELD"
128
+ },
129
+ "observation_state_7": {
130
+ "dtype": "float32",
131
+ "shape": [
132
+ 1
133
+ ],
134
+ "tsfile_role": "FIELD"
135
+ },
136
+ "observation_state_8": {
137
+ "dtype": "float32",
138
+ "shape": [
139
+ 1
140
+ ],
141
+ "tsfile_role": "FIELD"
142
+ },
143
+ "observation_state_9": {
144
+ "dtype": "float32",
145
+ "shape": [
146
+ 1
147
+ ],
148
+ "tsfile_role": "FIELD"
149
+ }
150
+ },
151
+ "video_path_original": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
152
+ "tsfile_conversion": {
153
+ "source_dataset": "MoeOver/record-test3",
154
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
155
+ "converted_data_path": "data/record_test3.tsfile",
156
+ "table_name": "record_test3",
157
+ "granularity": "merged",
158
+ "time_precision": "ms",
159
+ "time_mapping": {
160
+ "source": "auto",
161
+ "fps": 30,
162
+ "unit": "milliseconds"
163
+ },
164
+ "tag_columns": [
165
+ "episode_index",
166
+ "task_index"
167
+ ],
168
+ "row_count": 52098,
169
+ "feature_source": "features describe the converted TsFile schema",
170
+ "flattened_features": {
171
+ "action": [
172
+ "action_0",
173
+ "action_1",
174
+ "action_2",
175
+ "action_3"
176
+ ],
177
+ "observation.state": [
178
+ "observation_state_0",
179
+ "observation_state_1",
180
+ "observation_state_2",
181
+ "observation_state_3",
182
+ "observation_state_4",
183
+ "observation_state_5",
184
+ "observation_state_6",
185
+ "observation_state_7",
186
+ "observation_state_8",
187
+ "observation_state_9"
188
+ ]
189
+ },
190
+ "renamed_features": {
191
+ "index": "sample_index"
192
+ },
193
+ "dropped_features": [
194
+ "timestamp"
195
+ ],
196
+ "omitted_features": [
197
+ "observation.images.wrist_camera",
198
+ "observation.images.top_camera"
199
+ ],
200
+ "original_video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
201
+ "original_video_features": {
202
+ "observation.images.wrist_camera": {
203
+ "dtype": "video",
204
+ "shape": [
205
+ 120,
206
+ 160,
207
+ 3
208
+ ],
209
+ "names": [
210
+ "height",
211
+ "width",
212
+ "channels"
213
+ ],
214
+ "info": {
215
+ "video.height": 120,
216
+ "video.width": 160,
217
+ "video.codec": "av1",
218
+ "video.pix_fmt": "yuv420p",
219
+ "video.is_depth_map": false,
220
+ "video.fps": 30,
221
+ "video.channels": 3,
222
+ "has_audio": false
223
+ }
224
+ },
225
+ "observation.images.top_camera": {
226
+ "dtype": "video",
227
+ "shape": [
228
+ 120,
229
+ 160,
230
+ 3
231
+ ],
232
+ "names": [
233
+ "height",
234
+ "width",
235
+ "channels"
236
+ ],
237
+ "info": {
238
+ "video.height": 120,
239
+ "video.width": 160,
240
+ "video.codec": "av1",
241
+ "video.pix_fmt": "yuv420p",
242
+ "video.is_depth_map": false,
243
+ "video.fps": 30,
244
+ "video.channels": 3,
245
+ "has_audio": false
246
+ }
247
+ }
248
+ },
249
+ "original_video_source": "https://huggingface.co/datasets/MoeOver/record-test3/tree/main/videos",
250
+ "video_policy": "Videos are not uploaded to this repository; use the original HuggingFace dataset videos."
251
+ }
252
+ }
meta/tasks.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"task_index": 0, "task": "Grab the black cube"}