Datasets:

THUgewu commited on
Commit
3aa01eb
·
verified ·
1 Parent(s): 9ca47a6

Add TsFile (converted from ymatari/move-stuff)

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/move_stuff.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/move_stuff.tsfile
13
+ ---
14
+
15
+ # move_stuff
16
+
17
+ Converted from the Hugging Face dataset [`ymatari/move-stuff`](https://huggingface.co/datasets/ymatari/move-stuff) to Apache TsFile format.
18
+
19
+ ## Source Dataset
20
+
21
+ - **Original dataset:** [`ymatari/move-stuff`](https://huggingface.co/datasets/ymatari/move-stuff)
22
+ - **Authors:** ymatari
23
+ - **License:** apache-2.0
24
+
25
+ ## Conversion Notes
26
+
27
+ - Conversion mode: `script`
28
+ - Time precision: `ms`
29
+ - TsFile data files: `['data/move_stuff.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/move_stuff.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/move_stuff.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6384c23968aad63fcb74c2fbf8c68840ca3284a6874b2464e8a0aaf360fba202
3
+ size 759774
meta/episodes.jsonl ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"episode_index": 0, "tasks": ["Move the stuff into the container"], "length": 761}
2
+ {"episode_index": 1, "tasks": ["Move the stuff into the container"], "length": 1169}
3
+ {"episode_index": 2, "tasks": ["Move the stuff into the container"], "length": 923}
4
+ {"episode_index": 3, "tasks": ["Move the stuff into the container"], "length": 734}
5
+ {"episode_index": 4, "tasks": ["Move the stuff into the container"], "length": 596}
6
+ {"episode_index": 5, "tasks": ["Move the stuff into the container"], "length": 799}
7
+ {"episode_index": 6, "tasks": ["Move the stuff into the container"], "length": 701}
8
+ {"episode_index": 7, "tasks": ["Move the stuff into the container"], "length": 620}
9
+ {"episode_index": 8, "tasks": ["Move the stuff into the container"], "length": 435}
10
+ {"episode_index": 9, "tasks": ["Move the stuff into the container"], "length": 555}
11
+ {"episode_index": 10, "tasks": ["Move the stuff into the container"], "length": 714}
12
+ {"episode_index": 11, "tasks": ["Move the stuff into the container"], "length": 883}
13
+ {"episode_index": 12, "tasks": ["Move the stuff into the container"], "length": 461}
14
+ {"episode_index": 13, "tasks": ["Move the stuff into the container"], "length": 391}
15
+ {"episode_index": 14, "tasks": ["Move the stuff into the container"], "length": 511}
16
+ {"episode_index": 15, "tasks": ["Move the stuff into the container"], "length": 518}
17
+ {"episode_index": 16, "tasks": ["Move the stuff into the container"], "length": 412}
18
+ {"episode_index": 17, "tasks": ["Move the stuff into the container"], "length": 380}
19
+ {"episode_index": 18, "tasks": ["Move the stuff into the container"], "length": 597}
20
+ {"episode_index": 19, "tasks": ["Move the stuff into the container"], "length": 797}
21
+ {"episode_index": 20, "tasks": ["Move the stuff into the container"], "length": 332}
22
+ {"episode_index": 21, "tasks": ["Move the stuff into the container"], "length": 463}
23
+ {"episode_index": 22, "tasks": ["Move the stuff into the container"], "length": 482}
24
+ {"episode_index": 23, "tasks": ["Move the stuff into the container"], "length": 371}
25
+ {"episode_index": 24, "tasks": ["Move the stuff into the container"], "length": 820}
26
+ {"episode_index": 25, "tasks": ["Move the stuff into the container"], "length": 364}
27
+ {"episode_index": 26, "tasks": ["Move the stuff into the container"], "length": 397}
28
+ {"episode_index": 27, "tasks": ["Move the stuff into the container"], "length": 853}
29
+ {"episode_index": 28, "tasks": ["Move the stuff into the container"], "length": 457}
30
+ {"episode_index": 29, "tasks": ["Move the stuff into the container"], "length": 598}
31
+ {"episode_index": 30, "tasks": ["Move the stuff into the container"], "length": 452}
32
+ {"episode_index": 31, "tasks": ["Move the stuff into the container"], "length": 526}
33
+ {"episode_index": 32, "tasks": ["Move the stuff into the container"], "length": 467}
34
+ {"episode_index": 33, "tasks": ["Move the stuff into the container"], "length": 476}
35
+ {"episode_index": 34, "tasks": ["Move the stuff into the container"], "length": 479}
36
+ {"episode_index": 35, "tasks": ["Move the stuff into the container"], "length": 341}
37
+ {"episode_index": 36, "tasks": ["Move the stuff into the container"], "length": 781}
38
+ {"episode_index": 37, "tasks": ["Move the stuff into the container"], "length": 365}
39
+ {"episode_index": 38, "tasks": ["Move the stuff into the container"], "length": 537}
40
+ {"episode_index": 39, "tasks": ["Move the stuff into the container"], "length": 316}
41
+ {"episode_index": 40, "tasks": ["Move the stuff into the container"], "length": 638}
42
+ {"episode_index": 41, "tasks": ["Move the stuff into the container"], "length": 389}
43
+ {"episode_index": 42, "tasks": ["Move the stuff into the container"], "length": 780}
44
+ {"episode_index": 43, "tasks": ["Move the stuff into the container"], "length": 399}
45
+ {"episode_index": 44, "tasks": ["Move the stuff into the container"], "length": 1194}
46
+ {"episode_index": 45, "tasks": ["Move the stuff into the container"], "length": 391}
47
+ {"episode_index": 46, "tasks": ["Move the stuff into the container"], "length": 589}
48
+ {"episode_index": 47, "tasks": ["Move the stuff into the container"], "length": 455}
49
+ {"episode_index": 48, "tasks": ["Move the stuff into the container"], "length": 771}
50
+ {"episode_index": 49, "tasks": ["Move the stuff into the container"], "length": 634}
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,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v2.1",
3
+ "robot_type": "so101_follower",
4
+ "total_episodes": 50,
5
+ "total_frames": 29074,
6
+ "total_tasks": 1,
7
+ "total_videos": 150,
8
+ "total_chunks": 1,
9
+ "chunks_size": 1000,
10
+ "fps": 30,
11
+ "splits": {
12
+ "train": "0:50"
13
+ },
14
+ "data_path": "data/move_stuff.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": "ymatari/move-stuff",
140
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
141
+ "converted_data_path": "data/move_stuff.tsfile",
142
+ "table_name": "move_stuff",
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": 29074,
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.surface",
183
+ "observation.images.wrist"
184
+ ],
185
+ "original_video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
186
+ "original_video_features": {
187
+ "observation.images.top": {
188
+ "dtype": "video",
189
+ "shape": [
190
+ 480,
191
+ 640,
192
+ 3
193
+ ],
194
+ "names": [
195
+ "height",
196
+ "width",
197
+ "channels"
198
+ ],
199
+ "info": {
200
+ "video.height": 480,
201
+ "video.width": 640,
202
+ "video.codec": "av1",
203
+ "video.pix_fmt": "yuv420p",
204
+ "video.is_depth_map": false,
205
+ "video.fps": 30,
206
+ "video.channels": 3,
207
+ "has_audio": false
208
+ }
209
+ },
210
+ "observation.images.surface": {
211
+ "dtype": "video",
212
+ "shape": [
213
+ 480,
214
+ 640,
215
+ 3
216
+ ],
217
+ "names": [
218
+ "height",
219
+ "width",
220
+ "channels"
221
+ ],
222
+ "info": {
223
+ "video.height": 480,
224
+ "video.width": 640,
225
+ "video.codec": "av1",
226
+ "video.pix_fmt": "yuv420p",
227
+ "video.is_depth_map": false,
228
+ "video.fps": 30,
229
+ "video.channels": 3,
230
+ "has_audio": false
231
+ }
232
+ },
233
+ "observation.images.wrist": {
234
+ "dtype": "video",
235
+ "shape": [
236
+ 480,
237
+ 640,
238
+ 3
239
+ ],
240
+ "names": [
241
+ "height",
242
+ "width",
243
+ "channels"
244
+ ],
245
+ "info": {
246
+ "video.height": 480,
247
+ "video.width": 640,
248
+ "video.codec": "av1",
249
+ "video.pix_fmt": "yuv420p",
250
+ "video.is_depth_map": false,
251
+ "video.fps": 30,
252
+ "video.channels": 3,
253
+ "has_audio": false
254
+ }
255
+ }
256
+ },
257
+ "original_video_source": "https://huggingface.co/datasets/ymatari/move-stuff/tree/main/videos",
258
+ "video_policy": "Videos are not uploaded to this repository; use the original HuggingFace dataset videos."
259
+ }
260
+ }
meta/tasks.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"task_index": 0, "task": "Move the stuff into the container"}