jae0311 commited on
Commit
3f6b8ae
·
verified ·
1 Parent(s): 59c8257

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +169 -0
  2. data/chunk-000/file-000.parquet +3 -0
  3. data/chunk-000/file-001.parquet +3 -0
  4. data/chunk-000/file-002.parquet +3 -0
  5. data/chunk-000/file-003.parquet +3 -0
  6. data/chunk-000/file-004.parquet +3 -0
  7. data/chunk-000/file-005.parquet +3 -0
  8. data/chunk-000/file-006.parquet +3 -0
  9. data/chunk-000/file-007.parquet +3 -0
  10. data/chunk-000/file-008.parquet +3 -0
  11. data/chunk-000/file-009.parquet +3 -0
  12. data/chunk-000/file-010.parquet +3 -0
  13. data/chunk-000/file-011.parquet +3 -0
  14. data/chunk-000/file-012.parquet +3 -0
  15. data/chunk-000/file-013.parquet +3 -0
  16. data/chunk-000/file-014.parquet +3 -0
  17. data/chunk-000/file-015.parquet +3 -0
  18. data/chunk-000/file-016.parquet +3 -0
  19. data/chunk-000/file-017.parquet +3 -0
  20. data/chunk-000/file-018.parquet +3 -0
  21. data/chunk-000/file-019.parquet +3 -0
  22. data/chunk-000/file-020.parquet +3 -0
  23. meta/episodes/chunk-000/file-000.parquet +3 -0
  24. meta/episodes/chunk-000/file-001.parquet +3 -0
  25. meta/episodes/chunk-000/file-002.parquet +3 -0
  26. meta/episodes/chunk-000/file-003.parquet +3 -0
  27. meta/episodes/chunk-000/file-004.parquet +3 -0
  28. meta/episodes/chunk-000/file-005.parquet +3 -0
  29. meta/episodes/chunk-000/file-006.parquet +3 -0
  30. meta/episodes/chunk-000/file-007.parquet +3 -0
  31. meta/episodes/chunk-000/file-008.parquet +3 -0
  32. meta/episodes/chunk-000/file-009.parquet +3 -0
  33. meta/episodes/chunk-000/file-010.parquet +3 -0
  34. meta/episodes/chunk-000/file-011.parquet +3 -0
  35. meta/episodes/chunk-000/file-012.parquet +3 -0
  36. meta/episodes/chunk-000/file-013.parquet +3 -0
  37. meta/episodes/chunk-000/file-014.parquet +3 -0
  38. meta/episodes/chunk-000/file-015.parquet +3 -0
  39. meta/episodes/chunk-000/file-016.parquet +3 -0
  40. meta/episodes/chunk-000/file-017.parquet +3 -0
  41. meta/episodes/chunk-000/file-018.parquet +3 -0
  42. meta/episodes/chunk-000/file-019.parquet +3 -0
  43. meta/episodes/chunk-000/file-020.parquet +3 -0
  44. meta/info.json +135 -0
  45. meta/stats.json +632 -0
  46. meta/tasks.parquet +3 -0
  47. videos/add_marker.py +63 -0
  48. videos/add_task_markers.py +102 -0
  49. videos/observation.images.top/chunk-000/file-000.mp4 +3 -0
  50. videos/observation.images.top/chunk-000/file-001.mp4 +3 -0
README.md ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - robotics
5
+ tags:
6
+ - LeRobot
7
+ configs:
8
+ - config_name: default
9
+ data_files: data/*/*.parquet
10
+ ---
11
+
12
+ This dataset was created using [LeRobot](https://github.com/huggingface/lerobot).
13
+
14
+
15
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=jae0311/serving_20260527_140234">
16
+ <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
17
+ <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
18
+ </a>
19
+
20
+
21
+ ## Dataset Description
22
+
23
+
24
+
25
+ - **Homepage:** [More Information Needed]
26
+ - **Paper:** [More Information Needed]
27
+ - **License:** apache-2.0
28
+
29
+ ## Dataset Structure
30
+
31
+ [meta/info.json](meta/info.json):
32
+ ```json
33
+ {
34
+ "codebase_version": "v3.0",
35
+ "fps": 30,
36
+ "features": {
37
+ "action": {
38
+ "dtype": "float32",
39
+ "names": [
40
+ "shoulder_pan.pos",
41
+ "shoulder_lift.pos",
42
+ "elbow_flex.pos",
43
+ "wrist_flex.pos",
44
+ "wrist_roll.pos",
45
+ "gripper.pos"
46
+ ],
47
+ "shape": [
48
+ 6
49
+ ]
50
+ },
51
+ "observation.state": {
52
+ "dtype": "float32",
53
+ "names": [
54
+ "shoulder_pan.pos",
55
+ "shoulder_lift.pos",
56
+ "elbow_flex.pos",
57
+ "wrist_flex.pos",
58
+ "wrist_roll.pos",
59
+ "gripper.pos"
60
+ ],
61
+ "shape": [
62
+ 6
63
+ ]
64
+ },
65
+ "observation.images.top": {
66
+ "dtype": "video",
67
+ "shape": [
68
+ 480,
69
+ 640,
70
+ 3
71
+ ],
72
+ "names": [
73
+ "height",
74
+ "width",
75
+ "channels"
76
+ ],
77
+ "info": {
78
+ "video.height": 480,
79
+ "video.width": 640,
80
+ "video.codec": "av1",
81
+ "video.pix_fmt": "yuv420p",
82
+ "video.is_depth_map": false,
83
+ "video.fps": 30,
84
+ "video.channels": 3,
85
+ "has_audio": false
86
+ }
87
+ },
88
+ "observation.images.wrist": {
89
+ "dtype": "video",
90
+ "shape": [
91
+ 480,
92
+ 640,
93
+ 3
94
+ ],
95
+ "names": [
96
+ "height",
97
+ "width",
98
+ "channels"
99
+ ],
100
+ "info": {
101
+ "video.height": 480,
102
+ "video.width": 640,
103
+ "video.codec": "av1",
104
+ "video.pix_fmt": "yuv420p",
105
+ "video.is_depth_map": false,
106
+ "video.fps": 30,
107
+ "video.channels": 3,
108
+ "has_audio": false
109
+ }
110
+ },
111
+ "timestamp": {
112
+ "dtype": "float32",
113
+ "shape": [
114
+ 1
115
+ ],
116
+ "names": null
117
+ },
118
+ "frame_index": {
119
+ "dtype": "int64",
120
+ "shape": [
121
+ 1
122
+ ],
123
+ "names": null
124
+ },
125
+ "episode_index": {
126
+ "dtype": "int64",
127
+ "shape": [
128
+ 1
129
+ ],
130
+ "names": null
131
+ },
132
+ "index": {
133
+ "dtype": "int64",
134
+ "shape": [
135
+ 1
136
+ ],
137
+ "names": null
138
+ },
139
+ "task_index": {
140
+ "dtype": "int64",
141
+ "shape": [
142
+ 1
143
+ ],
144
+ "names": null
145
+ }
146
+ },
147
+ "total_episodes": 267,
148
+ "total_frames": 153662,
149
+ "total_tasks": 1,
150
+ "chunks_size": 1000,
151
+ "data_files_size_in_mb": 100,
152
+ "video_files_size_in_mb": 200,
153
+ "data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet",
154
+ "video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4",
155
+ "robot_type": "omx_follower",
156
+ "splits": {
157
+ "train": "0:267"
158
+ }
159
+ }
160
+ ```
161
+
162
+
163
+ ## Citation
164
+
165
+ **BibTeX:**
166
+
167
+ ```bibtex
168
+ [More Information Needed]
169
+ ```
data/chunk-000/file-000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b41386b1e4eb48269d5271989b87c91fd65b2514e016a1def30e9b9d37f00a2
3
+ size 155104
data/chunk-000/file-001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9708106b9b0bf6be44edf93512dbe465094497a7fbb1042f2cb839af139ff57
3
+ size 265243
data/chunk-000/file-002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dcd5ecbf8f293cbe8a3d67fb786f7aa148306be7aa6ee9a5e02c7eeb917f925
3
+ size 74676
data/chunk-000/file-003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16bc3b07b0fd8e0e214790c416d94c4ab465c6685ed19cfca564c1ded52619ac
3
+ size 367596
data/chunk-000/file-004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ba1d09518ceff3c8bb50b257d82055a7771e3b027b6fe45981bb163890ae5f1
3
+ size 215002
data/chunk-000/file-005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b41a6af9df6eb1dd898111c3e3959f62337ace34d2a5de6f07ebda818afc386
3
+ size 299557
data/chunk-000/file-006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f0d23ed3611164796eea693ab5b66bc88ec48c8945c79ce47935569d7d3a3b9
3
+ size 90920
data/chunk-000/file-007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bb379c9f98629bf4a4239e0d707f7f0117e89531df53cc49ca222859e88ff6f
3
+ size 68340
data/chunk-000/file-008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:779e0378bb5c893d1b997b19c5ac6f2c73a5b7bfd2f9dff6d98262e8eaafb5f9
3
+ size 74830
data/chunk-000/file-009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2ddd87d30f0e92865495aa47ece763c921d7f13130f1d44c9534f8bc5b81108
3
+ size 83462
data/chunk-000/file-010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3214bc784dbb0432847fef94deb249e1c608b2763228aabf8748f0e84bb09439
3
+ size 55076
data/chunk-000/file-011.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b75c01d0e402961671c8bc93f5b18397d9798c2a656fa9e7333fd62e36bde68d
3
+ size 334057
data/chunk-000/file-012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69157c379b5a1f272dcca7fc51099f788a4d044e192c7ee4b05fcddfd3bbe9bb
3
+ size 92044
data/chunk-000/file-013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0cc60a81799c6c21c99906b382021375f0160204235e15a5057edb625740ddf
3
+ size 846619
data/chunk-000/file-014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d69996aaa3ecc426c055bfbe6d241722b234debc57bb8e1bfc802c71f7b7e9b3
3
+ size 416906
data/chunk-000/file-015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14fc2061a39117934a28a54d8549a43d3702b709d7f00b3f4c5f6c7e24d69e69
3
+ size 75709
data/chunk-000/file-016.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe86c50c9f16e70a690bb381d6c78d3dbff9db9199ce85138ff14caf9a085c1e
3
+ size 229604
data/chunk-000/file-017.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2c23cadccde8ef11d38146cb585275c7e9c689f39065488f4ee95091cb3b67b
3
+ size 62649
data/chunk-000/file-018.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:345621db59841130a7e280438a51f7a496ef5efb1ddcee7786eb1202ea80b1aa
3
+ size 105410
data/chunk-000/file-019.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:261f1a113c6d223f76961458888d00d644af173cb7cbbc18d6158f8886356939
3
+ size 295402
data/chunk-000/file-020.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7aa4ad24a314e864f1af8bcbdf2ac40ef5d76f4ab443f76767ba1336691cd38
3
+ size 137930
meta/episodes/chunk-000/file-000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75646aef5250b45343496bab0ad96ef55d5f8d90422f4df4304d4c1d3a7bb2f2
3
+ size 99235
meta/episodes/chunk-000/file-001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4f90ee6ced5535ac16b0ecdaa71be772de561dc1143a4b9b20771a587258863
3
+ size 109286
meta/episodes/chunk-000/file-002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b6d94c68d658d98177bfe3a5104080ecbffe7b7ef5b88b6c86d98adba4669a0
3
+ size 94845
meta/episodes/chunk-000/file-003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e348498b21b3906347fdc9753256f431b8dc8538c19558841d4d1799a94af6ee
3
+ size 127451
meta/episodes/chunk-000/file-004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f88a9444a5020aa6963e4104bd795203f7c1b2260c2afde694d67b1333e645a
3
+ size 112984
meta/episodes/chunk-000/file-005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff5289e7943c0144f915a2d57c46c74986ff39d536828f5829d2d3f4bd380174
3
+ size 128400
meta/episodes/chunk-000/file-006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:923947d14bb694e9e30ae5e51ea3288f87965edf7d7a758d9fb5dc126a731f55
3
+ size 97637
meta/episodes/chunk-000/file-007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6de255ede02eb880a16a4facc8583701a1f3064c9dace9d52fc91be53d57a287
3
+ size 94803
meta/episodes/chunk-000/file-008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74c4dde3d8b035d080c144761531414f4afee2438c23d3ee2fee31d5966ce600
3
+ size 96175
meta/episodes/chunk-000/file-009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a747cc3cc5d7e0640ba6ba66bfb25b02f232b6cd751993c0ca58fb317b7b7503
3
+ size 96173
meta/episodes/chunk-000/file-010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4edc5083448dc79aa9211d8cda9428a28c0090ccd22716b4db7fb798bad171d
3
+ size 93181
meta/episodes/chunk-000/file-011.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca1e6e5ed3f065ad50f324a2a5ed06b9483565fa41485abdd4bd00e023fcef89
3
+ size 131395
meta/episodes/chunk-000/file-012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1963e1b3da8716bd56556dd4bf2903c983e65cbe6cf8299ff6ec70b8d43f467e
3
+ size 99167
meta/episodes/chunk-000/file-013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c3540e9668116dbdd0f86cd856128766d29962a7536ffc64d657d9da85e37b9
3
+ size 155701
meta/episodes/chunk-000/file-014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:323fca902fb231deac16551b8e05b9b4ff0ab64b294cbd50e3f1c08b9ad636df
3
+ size 121866
meta/episodes/chunk-000/file-015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f1a34944c00be25a7bca077176b2840533727fe616de31c1c2136d58dad040c
3
+ size 93339
meta/episodes/chunk-000/file-016.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb2412f11b1e9c7c45c06c4f492d15d569a2cde03ac89d80b7a80a52271d23af
3
+ size 108156
meta/episodes/chunk-000/file-017.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f485181c93c902ad6c35e12a0f8d3d51bda9cbd2d92d5be7a1fc687c08fa21e
3
+ size 93297
meta/episodes/chunk-000/file-018.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4236b31640d92d733f0ff258fb832cf6118a846e7db2e6309d2e83d412a4fce0
3
+ size 96293
meta/episodes/chunk-000/file-019.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19d8372548711ba13a2b25a032a880edf7da25f1cb5b14193b794980a863526a
3
+ size 115201
meta/episodes/chunk-000/file-020.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a497ad76128db50b516e92d6979a388f011fc99422a280226ecd293e228b3f3a
3
+ size 112807
meta/info.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "codebase_version": "v3.0",
3
+ "fps": 30,
4
+ "features": {
5
+ "action": {
6
+ "dtype": "float32",
7
+ "names": [
8
+ "shoulder_pan.pos",
9
+ "shoulder_lift.pos",
10
+ "elbow_flex.pos",
11
+ "wrist_flex.pos",
12
+ "wrist_roll.pos",
13
+ "gripper.pos"
14
+ ],
15
+ "shape": [
16
+ 6
17
+ ]
18
+ },
19
+ "observation.state": {
20
+ "dtype": "float32",
21
+ "names": [
22
+ "shoulder_pan.pos",
23
+ "shoulder_lift.pos",
24
+ "elbow_flex.pos",
25
+ "wrist_flex.pos",
26
+ "wrist_roll.pos",
27
+ "gripper.pos"
28
+ ],
29
+ "shape": [
30
+ 6
31
+ ]
32
+ },
33
+ "observation.images.top": {
34
+ "dtype": "video",
35
+ "shape": [
36
+ 480,
37
+ 640,
38
+ 3
39
+ ],
40
+ "names": [
41
+ "height",
42
+ "width",
43
+ "channels"
44
+ ],
45
+ "info": {
46
+ "video.height": 480,
47
+ "video.width": 640,
48
+ "video.codec": "av1",
49
+ "video.pix_fmt": "yuv420p",
50
+ "video.is_depth_map": false,
51
+ "video.fps": 30,
52
+ "video.channels": 3,
53
+ "has_audio": false
54
+ }
55
+ },
56
+ "observation.images.wrist": {
57
+ "dtype": "video",
58
+ "shape": [
59
+ 480,
60
+ 640,
61
+ 3
62
+ ],
63
+ "names": [
64
+ "height",
65
+ "width",
66
+ "channels"
67
+ ],
68
+ "info": {
69
+ "video.height": 480,
70
+ "video.width": 640,
71
+ "video.codec": "av1",
72
+ "video.pix_fmt": "yuv420p",
73
+ "video.is_depth_map": false,
74
+ "video.fps": 30,
75
+ "video.channels": 3,
76
+ "has_audio": false
77
+ }
78
+ },
79
+ "timestamp": {
80
+ "dtype": "float32",
81
+ "shape": [
82
+ 1
83
+ ],
84
+ "names": null
85
+ },
86
+ "frame_index": {
87
+ "dtype": "int64",
88
+ "shape": [
89
+ 1
90
+ ],
91
+ "names": null
92
+ },
93
+ "episode_index": {
94
+ "dtype": "int64",
95
+ "shape": [
96
+ 1
97
+ ],
98
+ "names": null
99
+ },
100
+ "index": {
101
+ "dtype": "int64",
102
+ "shape": [
103
+ 1
104
+ ],
105
+ "names": null
106
+ },
107
+ "task_index": {
108
+ "dtype": "int64",
109
+ "shape": [
110
+ 1
111
+ ],
112
+ "names": null
113
+ }
114
+ },
115
+ "total_episodes": 267,
116
+ "total_frames": 153662,
117
+ "total_tasks": 1,
118
+ "chunks_size": 1000,
119
+ "data_files_size_in_mb": 100,
120
+ "video_files_size_in_mb": 200,
121
+ "data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet",
122
+ "video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4",
123
+ "robot_type": "omx_follower",
124
+ "splits": {
125
+ "train": "0:267"
126
+ },
127
+ "tasks": {
128
+ "0": "serve cup to the left",
129
+ "1": "serve cup to the right",
130
+ "2": "place plate at center",
131
+ "3": "return to home",
132
+ "4": "serve cup to the left and place plate at center",
133
+ "5": "serve cup to the right and place plate at center"
134
+ }
135
+ }
meta/stats.json ADDED
@@ -0,0 +1,632 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": {
3
+ "min": [
4
+ 0.0
5
+ ],
6
+ "max": [
7
+ 39.93333333333333
8
+ ],
9
+ "mean": [
10
+ 10.38857419917897
11
+ ],
12
+ "std": [
13
+ 6.8225940418991184
14
+ ],
15
+ "count": [
16
+ 154685
17
+ ],
18
+ "q01": [
19
+ 0.19044484878913
20
+ ],
21
+ "q10": [
22
+ 2.062003720565018
23
+ ],
24
+ "q50": [
25
+ 10.381948916227538
26
+ ],
27
+ "q90": [
28
+ 18.71170117777674
29
+ ],
30
+ "q99": [
31
+ 20.586078149562358
32
+ ]
33
+ },
34
+ "action": {
35
+ "min": [
36
+ -54.57875442504883,
37
+ -69.27960968017578,
38
+ -40.85470199584961,
39
+ -35.53113555908203,
40
+ -26.300365447998047,
41
+ 46.5445671081543
42
+ ],
43
+ "max": [
44
+ 25.372406005859375,
45
+ 32.991451263427734,
46
+ 55.848594665527344,
47
+ 59.023197174072266,
48
+ 98.97435760498047,
49
+ 76.26373291015625
50
+ ],
51
+ "mean": [
52
+ -5.781173071881603,
53
+ -20.48065751031747,
54
+ 18.04677980494941,
55
+ 3.197145477018502,
56
+ 11.40892629972929,
57
+ 52.72741702141086
58
+ ],
59
+ "std": [
60
+ 18.73401861179422,
61
+ 27.630300588690915,
62
+ 24.238614846470266,
63
+ 24.8030037813778,
64
+ 22.635565365348526,
65
+ 7.460025046943749
66
+ ],
67
+ "count": [
68
+ 154685
69
+ ],
70
+ "q01": [
71
+ -35.90271637462577,
72
+ -68.30142030627788,
73
+ -16.161404457030446,
74
+ -22.048924012913023,
75
+ -3.6376535566206014,
76
+ 46.87899339774439
77
+ ],
78
+ "q10": [
79
+ -34.1533441524452,
80
+ -62.76138996972086,
81
+ -11.83432953990741,
82
+ -18.601800925144833,
83
+ -1.8231406891284387,
84
+ 47.00003497530018
85
+ ],
86
+ "q50": [
87
+ 2.3117753863860013,
88
+ -15.30309207548522,
89
+ 16.67946991615364,
90
+ -1.1775462306944053,
91
+ 4.431327307055566,
92
+ 48.54618546154873
93
+ ],
94
+ "q90": [
95
+ 12.81007507419782,
96
+ 9.14510136404409,
97
+ 51.40795908833535,
98
+ 27.213617720463233,
99
+ 39.247007473111445,
100
+ 64.53162512768112
101
+ ],
102
+ "q99": [
103
+ 14.547551009071894,
104
+ 13.513243753480449,
105
+ 54.96931548899503,
106
+ 32.4164659596919,
107
+ 42.45677026832214,
108
+ 66.1867718828571
109
+ ]
110
+ },
111
+ "observation.state": {
112
+ "min": [
113
+ -53.99267578125,
114
+ -65.81196594238281,
115
+ -40.02442169189453,
116
+ -30.061050415039062,
117
+ -25.22588539123535,
118
+ 48.400489807128906
119
+ ],
120
+ "max": [
121
+ 25.177045822143555,
122
+ 34.5543327331543,
123
+ 55.848594665527344,
124
+ 57.75335693359375,
125
+ 74.993896484375,
126
+ 75.94627380371094
127
+ ],
128
+ "mean": [
129
+ -5.775038711660791,
130
+ -19.04768657306704,
131
+ 18.514175643178763,
132
+ 5.330129874727474,
133
+ 11.312286825990398,
134
+ 55.67085397233713
135
+ ],
136
+ "std": [
137
+ 18.669789074731778,
138
+ 27.556404134264515,
139
+ 24.075615919841262,
140
+ 24.043287608348365,
141
+ 21.990035768705578,
142
+ 5.954655900035038
143
+ ],
144
+ "count": [
145
+ 154685
146
+ ],
147
+ "q01": [
148
+ -35.63711850383744,
149
+ -64.93500080712137,
150
+ -15.52465105808701,
151
+ -17.94529856505054,
152
+ -3.154380052865302,
153
+ 48.76554351958647
154
+ ],
155
+ "q10": [
156
+ -34.028835445023844,
157
+ -61.120092536645565,
158
+ -11.21439424080356,
159
+ -15.38480453692262,
160
+ -1.467973089885178,
161
+ 48.86742325371762
162
+ ],
163
+ "q50": [
164
+ 2.2261362795761883,
165
+ -14.052632288741586,
166
+ 17.200552076390803,
167
+ 1.1637917794174906,
168
+ 4.519809622601954,
169
+ 55.48366718442453
170
+ ],
171
+ "q90": [
172
+ 12.816434036119174,
173
+ 11.209609028946282,
174
+ 51.58136391744181,
175
+ 28.059950880724088,
176
+ 38.228699122010255,
177
+ 64.54865602088472
178
+ ],
179
+ "q99": [
180
+ 14.377647627309774,
181
+ 14.958217266955646,
182
+ 54.92247175806553,
183
+ 32.4896703855534,
184
+ 40.17813712659316,
185
+ 65.9632454747734
186
+ ]
187
+ },
188
+ "frame_index": {
189
+ "min": [
190
+ 0
191
+ ],
192
+ "max": [
193
+ 1198
194
+ ],
195
+ "mean": [
196
+ 311.65722597536904
197
+ ],
198
+ "std": [
199
+ 204.67782125697335
200
+ ],
201
+ "count": [
202
+ 154685
203
+ ],
204
+ "q01": [
205
+ 5.713345466521075
206
+ ],
207
+ "q10": [
208
+ 61.86011161927536
209
+ ],
210
+ "q50": [
211
+ 311.42154477551105
212
+ ],
213
+ "q90": [
214
+ 561.3510353309786
215
+ ],
216
+ "q99": [
217
+ 617.5823444840239
218
+ ]
219
+ },
220
+ "task_index": {
221
+ "min": [
222
+ 0
223
+ ],
224
+ "max": [
225
+ 0
226
+ ],
227
+ "mean": [
228
+ 0.0
229
+ ],
230
+ "std": [
231
+ 0.0
232
+ ],
233
+ "count": [
234
+ 154685
235
+ ],
236
+ "q01": [
237
+ 3.999999999999419e-16
238
+ ],
239
+ "q10": [
240
+ 3.9999999999994134e-15
241
+ ],
242
+ "q50": [
243
+ 1.999999999999709e-14
244
+ ],
245
+ "q90": [
246
+ 3.599999999999478e-14
247
+ ],
248
+ "q99": [
249
+ 3.9599999999994216e-14
250
+ ]
251
+ },
252
+ "observation.images.top": {
253
+ "min": [
254
+ [
255
+ [
256
+ 0.0
257
+ ]
258
+ ],
259
+ [
260
+ [
261
+ 0.0
262
+ ]
263
+ ],
264
+ [
265
+ [
266
+ 0.0
267
+ ]
268
+ ]
269
+ ],
270
+ "max": [
271
+ [
272
+ [
273
+ 1.0
274
+ ]
275
+ ],
276
+ [
277
+ [
278
+ 1.0
279
+ ]
280
+ ],
281
+ [
282
+ [
283
+ 1.0
284
+ ]
285
+ ]
286
+ ],
287
+ "mean": [
288
+ [
289
+ [
290
+ 0.502248797970934
291
+ ]
292
+ ],
293
+ [
294
+ [
295
+ 0.4946365298304945
296
+ ]
297
+ ],
298
+ [
299
+ [
300
+ 0.4381638098977132
301
+ ]
302
+ ]
303
+ ],
304
+ "std": [
305
+ [
306
+ [
307
+ 0.005417393102732372
308
+ ]
309
+ ],
310
+ [
311
+ [
312
+ 0.004922405036441855
313
+ ]
314
+ ],
315
+ [
316
+ [
317
+ 0.005002585578768893
318
+ ]
319
+ ]
320
+ ],
321
+ "count": [
322
+ 2969952000
323
+ ],
324
+ "q01": [
325
+ [
326
+ [
327
+ -1.3565640989563225e-11
328
+ ]
329
+ ],
330
+ [
331
+ [
332
+ -1.3563734521833428e-11
333
+ ]
334
+ ],
335
+ [
336
+ [
337
+ -1.369144757815852e-11
338
+ ]
339
+ ]
340
+ ],
341
+ "q10": [
342
+ [
343
+ [
344
+ 0.004061964730646022
345
+ ]
346
+ ],
347
+ [
348
+ [
349
+ 0.05290377029205982
350
+ ]
351
+ ],
352
+ [
353
+ [
354
+ 0.005511637736339211
355
+ ]
356
+ ]
357
+ ],
358
+ "q50": [
359
+ [
360
+ [
361
+ 0.5821528306100838
362
+ ]
363
+ ],
364
+ [
365
+ [
366
+ 0.5668647359698578
367
+ ]
368
+ ],
369
+ [
370
+ [
371
+ 0.3199852179366317
372
+ ]
373
+ ]
374
+ ],
375
+ "q90": [
376
+ [
377
+ [
378
+ 0.7345859835019154
379
+ ]
380
+ ],
381
+ [
382
+ [
383
+ 0.7305056238584982
384
+ ]
385
+ ],
386
+ [
387
+ [
388
+ 0.9224999329392294
389
+ ]
390
+ ]
391
+ ],
392
+ "q99": [
393
+ [
394
+ [
395
+ 0.8271365496432693
396
+ ]
397
+ ],
398
+ [
399
+ [
400
+ 0.8347117809794962
401
+ ]
402
+ ],
403
+ [
404
+ [
405
+ 0.999740834755305
406
+ ]
407
+ ]
408
+ ]
409
+ },
410
+ "index": {
411
+ "min": [
412
+ 0
413
+ ],
414
+ "max": [
415
+ 153661
416
+ ],
417
+ "mean": [
418
+ 77201.85458835702
419
+ ],
420
+ "std": [
421
+ 44445.126374416286
422
+ ],
423
+ "count": [
424
+ 154685
425
+ ],
426
+ "q01": [
427
+ 76895.91070784812
428
+ ],
429
+ "q10": [
430
+ 76952.05747400077
431
+ ],
432
+ "q50": [
433
+ 77201.66244551448
434
+ ],
435
+ "q90": [
436
+ 77451.54839771263
437
+ ],
438
+ "q99": [
439
+ 77507.77970686564
440
+ ]
441
+ },
442
+ "observation.images.wrist": {
443
+ "min": [
444
+ [
445
+ [
446
+ 0.0
447
+ ]
448
+ ],
449
+ [
450
+ [
451
+ 0.0
452
+ ]
453
+ ],
454
+ [
455
+ [
456
+ 0.0
457
+ ]
458
+ ]
459
+ ],
460
+ "max": [
461
+ [
462
+ [
463
+ 1.0
464
+ ]
465
+ ],
466
+ [
467
+ [
468
+ 1.0
469
+ ]
470
+ ],
471
+ [
472
+ [
473
+ 1.0
474
+ ]
475
+ ]
476
+ ],
477
+ "mean": [
478
+ [
479
+ [
480
+ 0.5107159916204366
481
+ ]
482
+ ],
483
+ [
484
+ [
485
+ 0.5051791720447162
486
+ ]
487
+ ],
488
+ [
489
+ [
490
+ 0.4946568151243374
491
+ ]
492
+ ]
493
+ ],
494
+ "std": [
495
+ [
496
+ [
497
+ 0.0208811726394678
498
+ ]
499
+ ],
500
+ [
501
+ [
502
+ 0.020944501923346303
503
+ ]
504
+ ],
505
+ [
506
+ [
507
+ 0.03939949016367755
508
+ ]
509
+ ]
510
+ ],
511
+ "count": [
512
+ 2969952000
513
+ ],
514
+ "q01": [
515
+ [
516
+ [
517
+ 0.021537714917954844
518
+ ]
519
+ ],
520
+ [
521
+ [
522
+ 0.0293826730456287
523
+ ]
524
+ ],
525
+ [
526
+ [
527
+ 0.022600068772434832
528
+ ]
529
+ ]
530
+ ],
531
+ "q10": [
532
+ [
533
+ [
534
+ 0.09578089075134959
535
+ ]
536
+ ],
537
+ [
538
+ [
539
+ 0.1037154421017048
540
+ ]
541
+ ],
542
+ [
543
+ [
544
+ 0.12106217250652418
545
+ ]
546
+ ]
547
+ ],
548
+ "q50": [
549
+ [
550
+ [
551
+ 0.5552267466029839
552
+ ]
553
+ ],
554
+ [
555
+ [
556
+ 0.5454328533399198
557
+ ]
558
+ ],
559
+ [
560
+ [
561
+ 0.5264113896143434
562
+ ]
563
+ ]
564
+ ],
565
+ "q90": [
566
+ [
567
+ [
568
+ 0.8083183509555966
569
+ ]
570
+ ],
571
+ [
572
+ [
573
+ 0.8080760819256769
574
+ ]
575
+ ],
576
+ [
577
+ [
578
+ 0.7942400323583082
579
+ ]
580
+ ]
581
+ ],
582
+ "q99": [
583
+ [
584
+ [
585
+ 0.9706178600462562
586
+ ]
587
+ ],
588
+ [
589
+ [
590
+ 0.9544210745241949
591
+ ]
592
+ ],
593
+ [
594
+ [
595
+ 0.9953440287754134
596
+ ]
597
+ ]
598
+ ]
599
+ },
600
+ "episode_index": {
601
+ "min": [
602
+ 0
603
+ ],
604
+ "max": [
605
+ 266
606
+ ],
607
+ "mean": [
608
+ 134.29595629828367
609
+ ],
610
+ "std": [
611
+ 78.88842324272066
612
+ ],
613
+ "count": [
614
+ 154685
615
+ ],
616
+ "q01": [
617
+ 134.29595629828367
618
+ ],
619
+ "q10": [
620
+ 134.29595629828367
621
+ ],
622
+ "q50": [
623
+ 134.29595629828367
624
+ ],
625
+ "q90": [
626
+ 134.29595629828367
627
+ ],
628
+ "q99": [
629
+ 134.29595629828367
630
+ ]
631
+ }
632
+ }
meta/tasks.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4bc9f23ba9bc45f87c44af9c98375f17b480a307ca1fc8a843264666fc3a06b
3
+ size 2258
videos/add_marker.py ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Add a colored square marker to the top-right corner of a video.
3
+ Usage: python add_marker.py --color blue|red [--size N] input.mp4 output.mp4
4
+ """
5
+ import argparse
6
+ import subprocess
7
+ import sys
8
+ from pathlib import Path
9
+
10
+
11
+ COLOR_MAP = {
12
+ "blue": "0x0000FF",
13
+ "red": "0xFF0000",
14
+ }
15
+
16
+ # For 640x480: place an 80x80 square 10px from the right and top edges
17
+ # This puts it well outside the typical table/workspace area
18
+ DEFAULT_SIZE = 80
19
+ DEFAULT_X_OFFSET = 10 # from right edge
20
+ DEFAULT_Y_OFFSET = 10 # from top edge
21
+
22
+
23
+ def add_marker(input_path: Path, output_path: Path, color: str, size: int, x_offset: int, y_offset: int):
24
+ probe = subprocess.run(
25
+ ["ffprobe", "-v", "quiet", "-print_format", "json", "-show_streams", str(input_path)],
26
+ capture_output=True, text=True, check=True,
27
+ )
28
+ import json
29
+ width = int(json.loads(probe.stdout)["streams"][0]["width"])
30
+
31
+ x = width - size - x_offset
32
+ y = y_offset
33
+ hex_color = COLOR_MAP[color]
34
+
35
+ drawbox = f"drawbox=x={x}:y={y}:w={size}:h={size}:color={hex_color}:t=fill"
36
+
37
+ cmd = [
38
+ "ffmpeg", "-y",
39
+ "-i", str(input_path),
40
+ "-vf", drawbox,
41
+ "-c:v", "libx264", # re-encode as H.264 so VLC can play it easily
42
+ "-crf", "18",
43
+ "-preset", "fast",
44
+ "-an",
45
+ str(output_path),
46
+ ]
47
+ print(f"Marker: {color} square {size}x{size} at x={x}, y={y}")
48
+ print(f"Running: {' '.join(cmd)}")
49
+ subprocess.run(cmd, check=True)
50
+ print(f"Done → {output_path}")
51
+
52
+
53
+ if __name__ == "__main__":
54
+ parser = argparse.ArgumentParser()
55
+ parser.add_argument("input", type=Path)
56
+ parser.add_argument("output", type=Path)
57
+ parser.add_argument("--color", choices=["blue", "red"], default="blue")
58
+ parser.add_argument("--size", type=int, default=DEFAULT_SIZE)
59
+ parser.add_argument("--x_offset", type=int, default=DEFAULT_X_OFFSET)
60
+ parser.add_argument("--y_offset", type=int, default=DEFAULT_Y_OFFSET)
61
+ args = parser.parse_args()
62
+
63
+ add_marker(args.input, args.output, args.color, args.size, args.x_offset, args.y_offset)
videos/add_task_markers.py ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Add colored square markers to observation.images.top videos based on task type:
3
+ - BLUE: serve cup to the left / serve cup to the left and place plate at center
4
+ - RED: serve cup to the right / serve cup to the right and place plate at center
5
+ - No marker: other tasks (place plate at center, return to home)
6
+
7
+ Overwrites the original video files in-place.
8
+ """
9
+ import os
10
+ import shutil
11
+ import subprocess
12
+ from pathlib import Path
13
+
14
+ import pandas as pd
15
+
16
+ DATASET_ROOT = Path("/home/jr/ws2/lerobot/datasets/serving_with_palm")
17
+ VIDEO_DIR = DATASET_ROOT / "videos/observation.images.top/chunk-000"
18
+ EP_DIR = DATASET_ROOT / "meta/episodes/chunk-000"
19
+
20
+ BLUE_TASKS = {"serve cup to the left", "serve cup to the left and place plate at center"}
21
+ RED_TASKS = {"serve cup to the right", "serve cup to the right and place plate at center"}
22
+
23
+ MARKER_SIZE = 100
24
+ VID_WIDTH = 640
25
+ X = VID_WIDTH - MARKER_SIZE - 10 # 530
26
+ Y = 10
27
+
28
+
29
+ def build_drawbox(color_hex: str, ranges: list[tuple]) -> str:
30
+ enable = "+".join(f"between(t,{t0:.6f},{t1:.6f})" for t0, t1 in ranges)
31
+ return (
32
+ f"drawbox=x={X}:y={Y}:w={MARKER_SIZE}:h={MARKER_SIZE}"
33
+ f":color={color_hex}:t=fill:enable='{enable}'"
34
+ )
35
+
36
+
37
+ def process_video(vid_file: Path, blue_ranges: list, red_ranges: list):
38
+ filters = []
39
+ if blue_ranges:
40
+ filters.append(build_drawbox("0x0000FF", blue_ranges))
41
+ if red_ranges:
42
+ filters.append(build_drawbox("0xFF0000", red_ranges))
43
+
44
+ vf = ",".join(filters)
45
+ tmp = vid_file.with_suffix(".tmp.mp4")
46
+
47
+ cmd = [
48
+ "ffmpeg", "-y",
49
+ "-i", str(vid_file),
50
+ "-vf", vf,
51
+ "-c:v", "libx264", "-crf", "18", "-preset", "fast",
52
+ "-an",
53
+ str(tmp),
54
+ ]
55
+ result = subprocess.run(cmd, capture_output=True, text=True)
56
+ if result.returncode != 0:
57
+ print(f" ERROR: {result.stderr[-500:]}")
58
+ tmp.unlink(missing_ok=True)
59
+ return False
60
+
61
+ shutil.move(str(tmp), str(vid_file))
62
+ return True
63
+
64
+
65
+ def main():
66
+ # Load all episode metadata
67
+ all_rows = []
68
+ for f in sorted(os.listdir(EP_DIR)):
69
+ all_rows.append(pd.read_parquet(EP_DIR / f))
70
+ episodes = pd.concat(all_rows).reset_index(drop=True)
71
+
72
+ file_idx_col = "videos/observation.images.top/file_index"
73
+ from_col = "videos/observation.images.top/from_timestamp"
74
+ to_col = "videos/observation.images.top/to_timestamp"
75
+
76
+ # Group by video file index
77
+ for file_idx, group in episodes.groupby(file_idx_col):
78
+ vid_file = VIDEO_DIR / f"file-{int(file_idx):03d}.mp4"
79
+ if not vid_file.exists():
80
+ print(f"SKIP {vid_file.name}: file not found")
81
+ continue
82
+
83
+ blue_ranges, red_ranges = [], []
84
+ for _, row in group.iterrows():
85
+ task = row["tasks"][0]
86
+ t0, t1 = row[from_col], row[to_col]
87
+ if task in BLUE_TASKS:
88
+ blue_ranges.append((t0, t1))
89
+ elif task in RED_TASKS:
90
+ red_ranges.append((t0, t1))
91
+
92
+ if not blue_ranges and not red_ranges:
93
+ print(f"SKIP {vid_file.name}: no color markers needed")
94
+ continue
95
+
96
+ print(f"Processing {vid_file.name}: {len(blue_ranges)} blue, {len(red_ranges)} red segments ...")
97
+ ok = process_video(vid_file, blue_ranges, red_ranges)
98
+ print(f" {'OK' if ok else 'FAILED'} → {vid_file.name}")
99
+
100
+
101
+ if __name__ == "__main__":
102
+ main()
videos/observation.images.top/chunk-000/file-000.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:292e138520f5917c5669713600da2307169d0b56ed5b2e9f64d1c0e7892d4300
3
+ size 32630084
videos/observation.images.top/chunk-000/file-001.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f68902297ad1f4f8545c65f40c6f74918e2f0bce48c5d49ac0755cea74c3c3a2
3
+ size 62786122