XNX25 commited on
Commit
934487d
·
verified ·
1 Parent(s): 29f63f2

Add TsFile (converted from Kunalmod/so101_groot)

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/kunalmod_so101_groot.tsfile filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,123 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ authors:
4
+ - Kunalmod
5
+ task_categories:
6
+ - robotics
7
+ tags:
8
+ - tsfile
9
+ - timeseries
10
+ - tabular
11
+ modality:
12
+ - timeseries
13
+ - tabular
14
+ pretty_name: SO101 Block-to-Box TsFile
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: data/kunalmod_so101_groot.tsfile
20
+ size_categories:
21
+ - 10K<n<100K
22
+ ---
23
+
24
+ # SO101 Block-to-Box TsFile
25
+
26
+ This dataset provides the numeric robot trajectories from
27
+ [`Kunalmod/so101_groot`](https://huggingface.co/datasets/Kunalmod/so101_groot) as one Apache TsFile table. The LeRobot
28
+ v2.1 SO101 demonstrations cover grasping a block and placing it in a box.
29
+
30
+ ## Source Dataset
31
+
32
+ - Author, repository owner, and uploader: [Kunalmod](https://huggingface.co/Kunalmod) (`Kunalmod`)
33
+ - License: Apache-2.0
34
+ - Split: `train`
35
+ - Scale: 50 episodes, 47,507 frame rows, 1 task, and 50 source Parquet shards
36
+ - Sampling frequency: 30 fps
37
+ - Robot type: `so101`
38
+ - LeRobot codebase version: `v2.1`
39
+ - Source data layout: `data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet`
40
+ - Paper and citation: the source card does not provide either one
41
+ - Task `0`: `Grasp a block and put it in the box.`
42
+
43
+ ## Data Layout
44
+
45
+ - TsFile: `data/kunalmod_so101_groot.tsfile`
46
+ - Table: `kunalmod_so101_groot`
47
+ - Rows: 47,507
48
+ - Devices: 50, identified by the two TAG columns
49
+ - Time precision: milliseconds
50
+ - Per-episode Time range: 0 to 39,600 ms
51
+
52
+ All 50 episode shards are represented in the table. Filter by `episode_index`
53
+ and `task_index` to select an episode trajectory.
54
+
55
+ ## Schema
56
+
57
+ | Column | TsFile type | Role | Meaning |
58
+ |---|---|---|---|
59
+ | `Time` | TIMESTAMP | TIME | `round(timestamp * 1000)` in milliseconds |
60
+ | `episode_index` | STRING | TAG | Source episode index stored by the TsFile device/tag mechanism |
61
+ | `task_index` | STRING | TAG | Source task index stored by the TsFile device/tag mechanism |
62
+ | `frame_index` | INT64 | FIELD | Frame position within the episode |
63
+ | `sample_index` | INT64 | FIELD | Source global `index` value |
64
+ | `action_0` ... `action_5` | FLOAT | FIELD | Six SO101 action components |
65
+ | `observation_state_0` ... `observation_state_5` | FLOAT | FIELD | Six SO101 joint-state components |
66
+
67
+ The action and state component order is `main_shoulder_pan`,
68
+ `main_shoulder_lift`, `main_elbow_flex`, `main_wrist_flex`, `main_wrist_roll`,
69
+ and `main_gripper`.
70
+
71
+ ## Transform Details
72
+
73
+ - `Time` is derived from the source timestamp and restarts at zero for every
74
+ episode. The source `timestamp` is omitted because it equals `Time / 1000`
75
+ seconds.
76
+ - `index` is renamed to `sample_index`; `frame_index` is preserved.
77
+ - `action[6]` is flattened to `action_0` through `action_5`.
78
+ - `observation.state[6]` is flattened to `observation_state_0` through
79
+ `observation_state_5`.
80
+ - Rows are ordered by `episode_index`, `task_index`, and `Time`.
81
+ - No source trajectory row, episode, task, action dimension, or state dimension
82
+ is removed.
83
+
84
+ ## Videos
85
+
86
+ The 100 source MP4 files remain in the original repository and are not
87
+ included here. Each camera has 50 files at 640x480 and 30 fps:
88
+
89
+ - [`observation.images.base`](https://huggingface.co/datasets/Kunalmod/so101_groot/tree/main/videos/chunk-000/observation.images.base)
90
+ - [`observation.images.wrist`](https://huggingface.co/datasets/Kunalmod/so101_groot/tree/main/videos/chunk-000/observation.images.wrist)
91
+
92
+ Their source pattern is
93
+ `videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4`.
94
+ Use `episode_index` and `frame_index` to align each numeric row with both video
95
+ streams.
96
+
97
+ ## Usage
98
+
99
+ ```python
100
+ from tsfile import ColumnCategory, TsFileReader
101
+
102
+ path = "data/kunalmod_so101_groot.tsfile"
103
+ reader = TsFileReader(path)
104
+ table_name = "kunalmod_so101_groot"
105
+ schema = reader.get_all_table_schemas()[table_name]
106
+ columns = [
107
+ column.get_column_name()
108
+ for column in schema.get_columns()
109
+ if column.get_category() in (ColumnCategory.TAG, ColumnCategory.FIELD)
110
+ ]
111
+
112
+ with reader.query_table(table_name, columns, batch_size=65536) as result:
113
+ batch = result.read_arrow_batch()
114
+ print(batch.to_pandas().head())
115
+ reader.close()
116
+ ```
117
+
118
+ ## Attribution
119
+
120
+ The demonstrations were published by [Kunalmod](https://huggingface.co/Kunalmod) under the
121
+ Apache-2.0 license and were created with
122
+ [LeRobot](https://github.com/huggingface/lerobot). Cite the original Hugging
123
+ Face dataset URL above when using the data.
data/kunalmod_so101_groot.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:135e892a98252808e8173befee293e0f46b530b88eae14ed1596e1cbf7863778
3
+ size 524344
meta/episodes.jsonl ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"episode_index": 0, "tasks": ["Grasp a block and put it in the box."], "length": 921}
2
+ {"episode_index": 1, "tasks": ["Grasp a block and put it in the box."], "length": 1009}
3
+ {"episode_index": 2, "tasks": ["Grasp a block and put it in the box."], "length": 911}
4
+ {"episode_index": 3, "tasks": ["Grasp a block and put it in the box."], "length": 993}
5
+ {"episode_index": 4, "tasks": ["Grasp a block and put it in the box."], "length": 1119}
6
+ {"episode_index": 5, "tasks": ["Grasp a block and put it in the box."], "length": 883}
7
+ {"episode_index": 6, "tasks": ["Grasp a block and put it in the box."], "length": 992}
8
+ {"episode_index": 7, "tasks": ["Grasp a block and put it in the box."], "length": 941}
9
+ {"episode_index": 8, "tasks": ["Grasp a block and put it in the box."], "length": 929}
10
+ {"episode_index": 9, "tasks": ["Grasp a block and put it in the box."], "length": 1056}
11
+ {"episode_index": 10, "tasks": ["Grasp a block and put it in the box."], "length": 964}
12
+ {"episode_index": 11, "tasks": ["Grasp a block and put it in the box."], "length": 973}
13
+ {"episode_index": 12, "tasks": ["Grasp a block and put it in the box."], "length": 1047}
14
+ {"episode_index": 13, "tasks": ["Grasp a block and put it in the box."], "length": 1023}
15
+ {"episode_index": 14, "tasks": ["Grasp a block and put it in the box."], "length": 1065}
16
+ {"episode_index": 15, "tasks": ["Grasp a block and put it in the box."], "length": 1007}
17
+ {"episode_index": 16, "tasks": ["Grasp a block and put it in the box."], "length": 786}
18
+ {"episode_index": 17, "tasks": ["Grasp a block and put it in the box."], "length": 923}
19
+ {"episode_index": 18, "tasks": ["Grasp a block and put it in the box."], "length": 1068}
20
+ {"episode_index": 19, "tasks": ["Grasp a block and put it in the box."], "length": 1103}
21
+ {"episode_index": 20, "tasks": ["Grasp a block and put it in the box."], "length": 989}
22
+ {"episode_index": 21, "tasks": ["Grasp a block and put it in the box."], "length": 899}
23
+ {"episode_index": 22, "tasks": ["Grasp a block and put it in the box."], "length": 897}
24
+ {"episode_index": 23, "tasks": ["Grasp a block and put it in the box."], "length": 979}
25
+ {"episode_index": 24, "tasks": ["Grasp a block and put it in the box."], "length": 947}
26
+ {"episode_index": 25, "tasks": ["Grasp a block and put it in the box."], "length": 1034}
27
+ {"episode_index": 26, "tasks": ["Grasp a block and put it in the box."], "length": 1189}
28
+ {"episode_index": 27, "tasks": ["Grasp a block and put it in the box."], "length": 849}
29
+ {"episode_index": 28, "tasks": ["Grasp a block and put it in the box."], "length": 939}
30
+ {"episode_index": 29, "tasks": ["Grasp a block and put it in the box."], "length": 881}
31
+ {"episode_index": 30, "tasks": ["Grasp a block and put it in the box."], "length": 952}
32
+ {"episode_index": 31, "tasks": ["Grasp a block and put it in the box."], "length": 875}
33
+ {"episode_index": 32, "tasks": ["Grasp a block and put it in the box."], "length": 902}
34
+ {"episode_index": 33, "tasks": ["Grasp a block and put it in the box."], "length": 981}
35
+ {"episode_index": 34, "tasks": ["Grasp a block and put it in the box."], "length": 973}
36
+ {"episode_index": 35, "tasks": ["Grasp a block and put it in the box."], "length": 1041}
37
+ {"episode_index": 36, "tasks": ["Grasp a block and put it in the box."], "length": 853}
38
+ {"episode_index": 37, "tasks": ["Grasp a block and put it in the box."], "length": 955}
39
+ {"episode_index": 38, "tasks": ["Grasp a block and put it in the box."], "length": 995}
40
+ {"episode_index": 39, "tasks": ["Grasp a block and put it in the box."], "length": 855}
41
+ {"episode_index": 40, "tasks": ["Grasp a block and put it in the box."], "length": 912}
42
+ {"episode_index": 41, "tasks": ["Grasp a block and put it in the box."], "length": 834}
43
+ {"episode_index": 42, "tasks": ["Grasp a block and put it in the box."], "length": 846}
44
+ {"episode_index": 43, "tasks": ["Grasp a block and put it in the box."], "length": 940}
45
+ {"episode_index": 44, "tasks": ["Grasp a block and put it in the box."], "length": 940}
46
+ {"episode_index": 45, "tasks": ["Grasp a block and put it in the box."], "length": 825}
47
+ {"episode_index": 46, "tasks": ["Grasp a block and put it in the box."], "length": 835}
48
+ {"episode_index": 47, "tasks": ["Grasp a block and put it in the box."], "length": 915}
49
+ {"episode_index": 48, "tasks": ["Grasp a block and put it in the box."], "length": 828}
50
+ {"episode_index": 49, "tasks": ["Grasp a block and put it in the box."], "length": 934}
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,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v2.1",
3
+ "robot_type": "so101",
4
+ "total_episodes": 50,
5
+ "total_frames": 47507,
6
+ "total_tasks": 1,
7
+ "total_videos": 100,
8
+ "total_chunks": 1,
9
+ "chunks_size": 1000,
10
+ "fps": 30,
11
+ "splits": {
12
+ "train": "0:50"
13
+ },
14
+ "data_path": "data/kunalmod_so101_groot.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": "string",
26
+ "source_dtype": "int64",
27
+ "shape": [
28
+ 1
29
+ ],
30
+ "tsfile_role": "TAG"
31
+ },
32
+ "task_index": {
33
+ "dtype": "string",
34
+ "source_dtype": "int64",
35
+ "shape": [
36
+ 1
37
+ ],
38
+ "tsfile_role": "TAG"
39
+ },
40
+ "frame_index": {
41
+ "dtype": "int64",
42
+ "shape": [
43
+ 1
44
+ ],
45
+ "tsfile_role": "FIELD"
46
+ },
47
+ "sample_index": {
48
+ "dtype": "int64",
49
+ "shape": [
50
+ 1
51
+ ],
52
+ "tsfile_role": "FIELD"
53
+ },
54
+ "action_0": {
55
+ "dtype": "float32",
56
+ "shape": [
57
+ 1
58
+ ],
59
+ "tsfile_role": "FIELD"
60
+ },
61
+ "action_1": {
62
+ "dtype": "float32",
63
+ "shape": [
64
+ 1
65
+ ],
66
+ "tsfile_role": "FIELD"
67
+ },
68
+ "action_2": {
69
+ "dtype": "float32",
70
+ "shape": [
71
+ 1
72
+ ],
73
+ "tsfile_role": "FIELD"
74
+ },
75
+ "action_3": {
76
+ "dtype": "float32",
77
+ "shape": [
78
+ 1
79
+ ],
80
+ "tsfile_role": "FIELD"
81
+ },
82
+ "action_4": {
83
+ "dtype": "float32",
84
+ "shape": [
85
+ 1
86
+ ],
87
+ "tsfile_role": "FIELD"
88
+ },
89
+ "action_5": {
90
+ "dtype": "float32",
91
+ "shape": [
92
+ 1
93
+ ],
94
+ "tsfile_role": "FIELD"
95
+ },
96
+ "observation_state_0": {
97
+ "dtype": "float32",
98
+ "shape": [
99
+ 1
100
+ ],
101
+ "tsfile_role": "FIELD"
102
+ },
103
+ "observation_state_1": {
104
+ "dtype": "float32",
105
+ "shape": [
106
+ 1
107
+ ],
108
+ "tsfile_role": "FIELD"
109
+ },
110
+ "observation_state_2": {
111
+ "dtype": "float32",
112
+ "shape": [
113
+ 1
114
+ ],
115
+ "tsfile_role": "FIELD"
116
+ },
117
+ "observation_state_3": {
118
+ "dtype": "float32",
119
+ "shape": [
120
+ 1
121
+ ],
122
+ "tsfile_role": "FIELD"
123
+ },
124
+ "observation_state_4": {
125
+ "dtype": "float32",
126
+ "shape": [
127
+ 1
128
+ ],
129
+ "tsfile_role": "FIELD"
130
+ },
131
+ "observation_state_5": {
132
+ "dtype": "float32",
133
+ "shape": [
134
+ 1
135
+ ],
136
+ "tsfile_role": "FIELD"
137
+ }
138
+ },
139
+ "video_path_original": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
140
+ "tsfile_conversion": {
141
+ "source_dataset": "Kunalmod/so101_groot",
142
+ "original_dataset_url": "https://huggingface.co/datasets/Kunalmod/so101_groot",
143
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
144
+ "converted_data_path": "data/kunalmod_so101_groot.tsfile",
145
+ "table_name": "kunalmod_so101_groot",
146
+ "granularity": "merged",
147
+ "time_precision": "ms",
148
+ "time_mapping": {
149
+ "source": "timestamp",
150
+ "formula": "round(timestamp * 1000)",
151
+ "unit": "milliseconds",
152
+ "restarts_per_episode": true
153
+ },
154
+ "tag_columns": [
155
+ "episode_index",
156
+ "task_index"
157
+ ],
158
+ "row_count": 47507,
159
+ "episode_count": 50,
160
+ "source_episode_file_count": 50,
161
+ "flattened_features": {
162
+ "action": [
163
+ "action_0",
164
+ "action_1",
165
+ "action_2",
166
+ "action_3",
167
+ "action_4",
168
+ "action_5"
169
+ ],
170
+ "observation.state": [
171
+ "observation_state_0",
172
+ "observation_state_1",
173
+ "observation_state_2",
174
+ "observation_state_3",
175
+ "observation_state_4",
176
+ "observation_state_5"
177
+ ]
178
+ },
179
+ "renamed_features": {
180
+ "index": "sample_index"
181
+ },
182
+ "dropped_features": [
183
+ "timestamp"
184
+ ],
185
+ "omitted_video_features": [
186
+ "observation.images.base",
187
+ "observation.images.wrist"
188
+ ],
189
+ "original_video_features": {
190
+ "observation.images.base": {
191
+ "dtype": "video",
192
+ "shape": [
193
+ 480,
194
+ 640,
195
+ 3
196
+ ],
197
+ "names": [
198
+ "height",
199
+ "width",
200
+ "channels"
201
+ ],
202
+ "info": {
203
+ "video.height": 480,
204
+ "video.width": 640,
205
+ "video.codec": "av1",
206
+ "video.pix_fmt": "yuv420p",
207
+ "video.is_depth_map": false,
208
+ "video.fps": 30,
209
+ "video.channels": 3,
210
+ "has_audio": false
211
+ }
212
+ },
213
+ "observation.images.wrist": {
214
+ "dtype": "video",
215
+ "shape": [
216
+ 480,
217
+ 640,
218
+ 3
219
+ ],
220
+ "names": [
221
+ "height",
222
+ "width",
223
+ "channels"
224
+ ],
225
+ "info": {
226
+ "video.height": 480,
227
+ "video.width": 640,
228
+ "video.codec": "av1",
229
+ "video.pix_fmt": "yuv420p",
230
+ "video.is_depth_map": false,
231
+ "video.fps": 30,
232
+ "video.channels": 3,
233
+ "has_audio": false
234
+ }
235
+ }
236
+ },
237
+ "original_video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
238
+ "original_video_source": "https://huggingface.co/datasets/Kunalmod/so101_groot/tree/main/videos",
239
+ "video_policy": "Videos stay in the original repository and are not included with the TsFile.",
240
+ "frame_video_alignment": "episode_index and frame_index preserve alignment with both source MP4 streams.",
241
+ "source_author": {
242
+ "name": "Kunalmod",
243
+ "huggingface_user": "Kunalmod",
244
+ "url": "https://huggingface.co/Kunalmod"
245
+ },
246
+ "task_index_mapping": {
247
+ "0": "Grasp a block and put it in the box."
248
+ }
249
+ }
250
+ }
meta/modality.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "state": {
3
+ "single_arm": {
4
+ "start": 0,
5
+ "end": 5
6
+ },
7
+ "gripper": {
8
+ "start": 5,
9
+ "end": 6
10
+ }
11
+ },
12
+ "action": {
13
+ "single_arm": {
14
+ "start": 0,
15
+ "end": 5
16
+ },
17
+ "gripper": {
18
+ "start": 5,
19
+ "end": 6
20
+ }
21
+ },
22
+ "video": {
23
+ "wrist": {
24
+ "original_key": "observation.images.wrist",
25
+ "resolution": [
26
+ 640,
27
+ 480
28
+ ],
29
+ "channels": 3,
30
+ "fps": 30.0
31
+ },
32
+ "base": {
33
+ "original_key": "observation.images.base",
34
+ "resolution": [
35
+ 640,
36
+ 480
37
+ ],
38
+ "channels": 3,
39
+ "fps": 30.0
40
+ }
41
+ },
42
+ "annotation": {
43
+ "human.task_description": {
44
+ "original_key": "task_index"
45
+ }
46
+ }
47
+ }
meta/tasks.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"task_index": 0, "task": "Grasp a block and put it in the box."}