wangdx25 commited on
Commit
52d2ed8
·
verified ·
1 Parent(s): 4ab66ce

Add TsFile (converted from pierfabre/pig2)

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +54 -0
  3. data/pig2.tsfile +3 -0
  4. meta/info.json +236 -0
.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/pig2.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - robotics
5
+ tags:
6
+ - LeRobot
7
+ - so100
8
+ - test
9
+ - tsfile
10
+ - timeseries
11
+ - format:tsfile
12
+ pretty_name: pig2
13
+ modality: timeseries
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - split: train
18
+ path: data/pig2.tsfile
19
+ ---
20
+
21
+ # pig2 (TsFile)
22
+
23
+ Apache TsFile version of [`pierfabre/pig2`](https://huggingface.co/datasets/pierfabre/pig2).
24
+
25
+ ## Overview
26
+
27
+ A [LeRobot](https://github.com/huggingface/lerobot) robot-manipulation dataset. The source card is auto-generated ("This dataset was created using LeRobot") and does not add a free-text description; the facts below are taken from the source `meta/info.json`.
28
+
29
+ - **Robot:** so100
30
+ - **Episodes:** 50
31
+ - **Frames:** 26780
32
+ - **Sampling rate:** 30 fps
33
+ - **Splits:** a single `train` split
34
+
35
+ ## Schema (TsFile structure)
36
+
37
+ - **Time** (INT64, milliseconds) — `round(timestamp * 1000)`; the source `timestamp` column (seconds) is dropped because it equals `Time / 1000`.
38
+ - **episode_index** (TAG), **task_index** (TAG) — device dimensions; query one episode with `WHERE episode_index = <n>`.
39
+ - **frame_index** (FIELD, INT64), **sample_index** (FIELD, INT64, from the source `index`) — per-frame bookkeeping.
40
+ - Vector columns (single-precision FLOAT, source name with `.` → `_` and an element index appended):
41
+ - action → `action_0`..`action_5` (FLOAT)
42
+ - observation.state → `observation_state_0`..`observation_state_5` (FLOAT)
43
+
44
+ Camera video streams are **not** included in this repository; see the original dataset for the videos: https://huggingface.co/datasets/pierfabre/pig2 (`videos/` directory).
45
+
46
+ ## Usage
47
+
48
+ Read the `.tsfile` files with the Apache TsFile Java or Python SDK.
49
+
50
+ ## Source & license
51
+
52
+ - Original dataset: https://huggingface.co/datasets/pierfabre/pig2
53
+ - Author / publisher: pierfabre
54
+ - License: apache-2.0
data/pig2.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dc9b38f57ea48631daa5e6383b23d809c688187ee11ae4651e57003bbb8520b
3
+ size 382088
meta/info.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v2.1",
3
+ "robot_type": "so100",
4
+ "total_episodes": 50,
5
+ "total_frames": 26780,
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/pig2.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": "pierfabre/pig2",
140
+ "source_data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
141
+ "converted_data_path": "data/pig2.tsfile",
142
+ "table_name": "pig2",
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": 26780,
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.robot",
182
+ "observation.images.webcam"
183
+ ],
184
+ "original_video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
185
+ "original_video_features": {
186
+ "observation.images.robot": {
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.webcam": {
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/pierfabre/pig2/tree/main/videos",
234
+ "video_policy": "Videos are not uploaded to this repository; use the original HuggingFace dataset videos."
235
+ }
236
+ }