m3 commited on
Commit
8fe3cd9
·
verified ·
1 Parent(s): 61e2aa2

Update to LeRobot v3.0 format

Browse files
convert_local_v21_to_v30.py ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+
3
+ import json
4
+ import pandas as pd
5
+ import shutil
6
+ from pathlib import Path
7
+ import jsonlines
8
+
9
+ def load_jsonlines(fpath):
10
+ with jsonlines.open(fpath, "r") as reader:
11
+ return list(reader)
12
+
13
+ def convert_local_dataset():
14
+ root = Path(".")
15
+
16
+ # Load info.json
17
+ with open("meta/info.json", "r") as f:
18
+ info = json.load(f)
19
+
20
+ # Update to v3.0
21
+ info["codebase_version"] = "v3.0"
22
+
23
+ # Remove deprecated fields
24
+ if "total_chunks" in info:
25
+ del info["total_chunks"]
26
+ if "total_videos" in info:
27
+ del info["total_videos"]
28
+
29
+ # Add new v3.0 fields
30
+ info["data_files_size_in_mb"] = 100
31
+ info["video_files_size_in_mb"] = 500
32
+ info["data_path"] = "data/chunk-{chunk_index:03d}/file_{file_index:03d}.parquet"
33
+ info["video_path"] = "videos/chunk-{chunk_index:03d}/{video_key}/file_{file_index:03d}.mp4"
34
+
35
+ # Convert fps to float
36
+ info["fps"] = float(info["fps"])
37
+
38
+ # Add fps to all non-video features
39
+ for key in info["features"]:
40
+ if info["features"][key]["dtype"] != "video":
41
+ info["features"][key]["fps"] = info["fps"]
42
+
43
+ # Write updated info.json
44
+ with open("meta/info.json", "w") as f:
45
+ json.dump(info, f, indent=4)
46
+
47
+ # Convert tasks.jsonl to tasks.json (v3.0 format)
48
+ if Path("meta/tasks.jsonl").exists():
49
+ tasks = load_jsonlines(Path("meta/tasks.jsonl"))
50
+ tasks_dict = {str(task["task_index"]): task["task"] for task in tasks}
51
+
52
+ with open("meta/tasks.json", "w") as f:
53
+ json.dump(tasks_dict, f, indent=4)
54
+
55
+ # Remove old file
56
+ Path("meta/tasks.jsonl").unlink()
57
+
58
+ # Convert episodes.jsonl to episodes.json (v3.0 format)
59
+ if Path("meta/episodes.jsonl").exists():
60
+ episodes = load_jsonlines(Path("meta/episodes.jsonl"))
61
+ episodes_dict = {str(ep["episode_index"]): ep for ep in episodes}
62
+
63
+ with open("meta/episodes.json", "w") as f:
64
+ json.dump(episodes_dict, f, indent=4)
65
+
66
+ # Remove old file
67
+ Path("meta/episodes.jsonl").unlink()
68
+
69
+ # Convert episodes_stats.jsonl to episodes_stats.json
70
+ if Path("meta/episodes_stats.jsonl").exists():
71
+ stats = load_jsonlines(Path("meta/episodes_stats.jsonl"))
72
+ stats_dict = {str(stat["episode_index"]): stat for stat in stats}
73
+
74
+ with open("meta/episodes_stats.json", "w") as f:
75
+ json.dump(stats_dict, f, indent=4)
76
+
77
+ # Remove old file
78
+ Path("meta/episodes_stats.jsonl").unlink()
79
+
80
+ print("Dataset successfully converted from v2.1 to v3.0")
81
+ print("Updated files:")
82
+ print("- meta/info.json (codebase_version updated to v3.0)")
83
+ print("- meta/tasks.jsonl -> meta/tasks.json")
84
+ print("- meta/episodes.jsonl -> meta/episodes.json")
85
+ print("- meta/episodes_stats.jsonl -> meta/episodes_stats.json")
86
+
87
+ if __name__ == "__main__":
88
+ convert_local_dataset()
meta/episodes.json ADDED
@@ -0,0 +1,1108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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grasp the block to the box"
6
+ ],
7
+ "length": 569
8
+ },
9
+ "1": {
10
+ "episode_index": 1,
11
+ "tasks": [
12
+ "Grasp the block to the box"
13
+ ],
14
+ "length": 401
15
+ },
16
+ "2": {
17
+ "episode_index": 2,
18
+ "tasks": [
19
+ "Grasp the block to the box"
20
+ ],
21
+ "length": 334
22
+ },
23
+ "3": {
24
+ "episode_index": 3,
25
+ "tasks": [
26
+ "Grasp the block to the box"
27
+ ],
28
+ "length": 398
29
+ },
30
+ "4": {
31
+ "episode_index": 4,
32
+ "tasks": [
33
+ "Grasp the block to the box"
34
+ ],
35
+ "length": 393
36
+ },
37
+ "5": {
38
+ "episode_index": 5,
39
+ "tasks": [
40
+ "Grasp the block to the box"
41
+ ],
42
+ "length": 358
43
+ },
44
+ "6": {
45
+ "episode_index": 6,
46
+ "tasks": [
47
+ "Grasp the block to the box"
48
+ ],
49
+ "length": 331
50
+ },
51
+ "7": {
52
+ "episode_index": 7,
53
+ "tasks": [
54
+ "Grasp the block to the box"
55
+ ],
56
+ "length": 349
57
+ },
58
+ "8": {
59
+ "episode_index": 8,
60
+ "tasks": [
61
+ "Grasp the block to the box"
62
+ ],
63
+ "length": 359
64
+ },
65
+ "9": {
66
+ "episode_index": 9,
67
+ "tasks": [
68
+ "Grasp the block to the box"
69
+ ],
70
+ "length": 362
71
+ },
72
+ "10": {
73
+ "episode_index": 10,
74
+ "tasks": [
75
+ "Grasp the block to the box"
76
+ ],
77
+ "length": 417
78
+ },
79
+ "11": {
80
+ "episode_index": 11,
81
+ "tasks": [
82
+ "Grasp the block to the box"
83
+ ],
84
+ "length": 309
85
+ },
86
+ "12": {
87
+ "episode_index": 12,
88
+ "tasks": [
89
+ "Grasp the block to the box"
90
+ ],
91
+ "length": 265
92
+ },
93
+ "13": {
94
+ "episode_index": 13,
95
+ "tasks": [
96
+ "Grasp the block to the box"
97
+ ],
98
+ "length": 356
99
+ },
100
+ "14": {
101
+ "episode_index": 14,
102
+ "tasks": [
103
+ "Grasp the block to the box"
104
+ ],
105
+ "length": 348
106
+ },
107
+ "15": {
108
+ "episode_index": 15,
109
+ "tasks": [
110
+ "Grasp the block to the box"
111
+ ],
112
+ "length": 311
113
+ },
114
+ "16": {
115
+ "episode_index": 16,
116
+ "tasks": [
117
+ "Grasp the block to the box"
118
+ ],
119
+ "length": 267
120
+ },
121
+ "17": {
122
+ "episode_index": 17,
123
+ "tasks": [
124
+ "Grasp the block to the box"
125
+ ],
126
+ "length": 296
127
+ },
128
+ "18": {
129
+ "episode_index": 18,
130
+ "tasks": [
131
+ "Grasp the block to the box"
132
+ ],
133
+ "length": 305
134
+ },
135
+ "19": {
136
+ "episode_index": 19,
137
+ "tasks": [
138
+ "Grasp the block to the box"
139
+ ],
140
+ "length": 370
141
+ },
142
+ "20": {
143
+ "episode_index": 20,
144
+ "tasks": [
145
+ "Grasp the block to the box"
146
+ ],
147
+ "length": 307
148
+ },
149
+ "21": {
150
+ "episode_index": 21,
151
+ "tasks": [
152
+ "Grasp the block to the box"
153
+ ],
154
+ "length": 276
155
+ },
156
+ "22": {
157
+ "episode_index": 22,
158
+ "tasks": [
159
+ "Grasp the block to the box"
160
+ ],
161
+ "length": 332
162
+ },
163
+ "23": {
164
+ "episode_index": 23,
165
+ "tasks": [
166
+ "Grasp the block to the box"
167
+ ],
168
+ "length": 319
169
+ },
170
+ "24": {
171
+ "episode_index": 24,
172
+ "tasks": [
173
+ "Grasp the block to the box"
174
+ ],
175
+ "length": 332
176
+ },
177
+ "25": {
178
+ "episode_index": 25,
179
+ "tasks": [
180
+ "Grasp the block to the box"
181
+ ],
182
+ "length": 356
183
+ },
184
+ "26": {
185
+ "episode_index": 26,
186
+ "tasks": [
187
+ "Grasp the block to the box"
188
+ ],
189
+ "length": 322
190
+ },
191
+ "27": {
192
+ "episode_index": 27,
193
+ "tasks": [
194
+ "Grasp the block to the box"
195
+ ],
196
+ "length": 373
197
+ },
198
+ "28": {
199
+ "episode_index": 28,
200
+ "tasks": [
201
+ "Grasp the block to the box"
202
+ ],
203
+ "length": 307
204
+ },
205
+ "29": {
206
+ "episode_index": 29,
207
+ "tasks": [
208
+ "Grasp the block to the box"
209
+ ],
210
+ "length": 419
211
+ },
212
+ "30": {
213
+ "episode_index": 30,
214
+ "tasks": [
215
+ "Grasp the block to the box"
216
+ ],
217
+ "length": 326
218
+ },
219
+ "31": {
220
+ "episode_index": 31,
221
+ "tasks": [
222
+ "Grasp the block to the box"
223
+ ],
224
+ "length": 367
225
+ },
226
+ "32": {
227
+ "episode_index": 32,
228
+ "tasks": [
229
+ "Grasp the block to the box"
230
+ ],
231
+ "length": 366
232
+ },
233
+ "33": {
234
+ "episode_index": 33,
235
+ "tasks": [
236
+ "Grasp the block to the box"
237
+ ],
238
+ "length": 335
239
+ },
240
+ "34": {
241
+ "episode_index": 34,
242
+ "tasks": [
243
+ "Grasp the block to the box"
244
+ ],
245
+ "length": 461
246
+ },
247
+ "35": {
248
+ "episode_index": 35,
249
+ "tasks": [
250
+ "Grasp the block to the box"
251
+ ],
252
+ "length": 378
253
+ },
254
+ "36": {
255
+ "episode_index": 36,
256
+ "tasks": [
257
+ "Grasp the block to the box"
258
+ ],
259
+ "length": 365
260
+ },
261
+ "37": {
262
+ "episode_index": 37,
263
+ "tasks": [
264
+ "Grasp the block to the box"
265
+ ],
266
+ "length": 409
267
+ },
268
+ "38": {
269
+ "episode_index": 38,
270
+ "tasks": [
271
+ "Grasp the block to the box"
272
+ ],
273
+ "length": 352
274
+ },
275
+ "39": {
276
+ "episode_index": 39,
277
+ "tasks": [
278
+ "Grasp the block to the box"
279
+ ],
280
+ "length": 334
281
+ },
282
+ "40": {
283
+ "episode_index": 40,
284
+ "tasks": [
285
+ "Grasp the block to the box"
286
+ ],
287
+ "length": 309
288
+ },
289
+ "41": {
290
+ "episode_index": 41,
291
+ "tasks": [
292
+ "Grasp the block to the box"
293
+ ],
294
+ "length": 395
295
+ },
296
+ "42": {
297
+ "episode_index": 42,
298
+ "tasks": [
299
+ "Grasp the block to the box"
300
+ ],
301
+ "length": 331
302
+ },
303
+ "43": {
304
+ "episode_index": 43,
305
+ "tasks": [
306
+ "Grasp the block to the box"
307
+ ],
308
+ "length": 357
309
+ },
310
+ "44": {
311
+ "episode_index": 44,
312
+ "tasks": [
313
+ "Grasp the block to the box"
314
+ ],
315
+ "length": 295
316
+ },
317
+ "45": {
318
+ "episode_index": 45,
319
+ "tasks": [
320
+ "Grasp the block to the box"
321
+ ],
322
+ "length": 334
323
+ },
324
+ "46": {
325
+ "episode_index": 46,
326
+ "tasks": [
327
+ "Grasp the block to the box"
328
+ ],
329
+ "length": 387
330
+ },
331
+ "47": {
332
+ "episode_index": 47,
333
+ "tasks": [
334
+ "Grasp the block to the box"
335
+ ],
336
+ "length": 423
337
+ },
338
+ "48": {
339
+ "episode_index": 48,
340
+ "tasks": [
341
+ "Grasp the block to the box"
342
+ ],
343
+ "length": 307
344
+ },
345
+ "49": {
346
+ "episode_index": 49,
347
+ "tasks": [
348
+ "Grasp the block to the box"
349
+ ],
350
+ "length": 331
351
+ },
352
+ "50": {
353
+ "episode_index": 50,
354
+ "tasks": [
355
+ "Grasp the block to the box"
356
+ ],
357
+ "length": 339
358
+ },
359
+ "51": {
360
+ "episode_index": 51,
361
+ "tasks": [
362
+ "Grasp the block to the box"
363
+ ],
364
+ "length": 375
365
+ },
366
+ "52": {
367
+ "episode_index": 52,
368
+ "tasks": [
369
+ "Grasp the block to the box"
370
+ ],
371
+ "length": 381
372
+ },
373
+ "53": {
374
+ "episode_index": 53,
375
+ "tasks": [
376
+ "Grasp the block to the box"
377
+ ],
378
+ "length": 320
379
+ },
380
+ "54": {
381
+ "episode_index": 54,
382
+ "tasks": [
383
+ "Grasp the block to the box"
384
+ ],
385
+ "length": 321
386
+ },
387
+ "55": {
388
+ "episode_index": 55,
389
+ "tasks": [
390
+ "Grasp the block to the box"
391
+ ],
392
+ "length": 330
393
+ },
394
+ "56": {
395
+ "episode_index": 56,
396
+ "tasks": [
397
+ "Grasp the block to the box"
398
+ ],
399
+ "length": 312
400
+ },
401
+ "57": {
402
+ "episode_index": 57,
403
+ "tasks": [
404
+ "Grasp the block to the box"
405
+ ],
406
+ "length": 269
407
+ },
408
+ "58": {
409
+ "episode_index": 58,
410
+ "tasks": [
411
+ "Grasp the block to the box"
412
+ ],
413
+ "length": 301
414
+ },
415
+ "59": {
416
+ "episode_index": 59,
417
+ "tasks": [
418
+ "Grasp the block to the box"
419
+ ],
420
+ "length": 309
421
+ },
422
+ "60": {
423
+ "episode_index": 60,
424
+ "tasks": [
425
+ "Grasp the block to the box"
426
+ ],
427
+ "length": 282
428
+ },
429
+ "61": {
430
+ "episode_index": 61,
431
+ "tasks": [
432
+ "Grasp the block to the box"
433
+ ],
434
+ "length": 358
435
+ },
436
+ "62": {
437
+ "episode_index": 62,
438
+ "tasks": [
439
+ "Grasp the block to the box"
440
+ ],
441
+ "length": 361
442
+ },
443
+ "63": {
444
+ "episode_index": 63,
445
+ "tasks": [
446
+ "Grasp the block to the box"
447
+ ],
448
+ "length": 337
449
+ },
450
+ "64": {
451
+ "episode_index": 64,
452
+ "tasks": [
453
+ "Grasp the block to the box"
454
+ ],
455
+ "length": 407
456
+ },
457
+ "65": {
458
+ "episode_index": 65,
459
+ "tasks": [
460
+ "Grasp the block to the box"
461
+ ],
462
+ "length": 422
463
+ },
464
+ "66": {
465
+ "episode_index": 66,
466
+ "tasks": [
467
+ "Grasp the block to the box"
468
+ ],
469
+ "length": 413
470
+ },
471
+ "67": {
472
+ "episode_index": 67,
473
+ "tasks": [
474
+ "Grasp the block to the box"
475
+ ],
476
+ "length": 316
477
+ },
478
+ "68": {
479
+ "episode_index": 68,
480
+ "tasks": [
481
+ "Grasp the block to the box"
482
+ ],
483
+ "length": 332
484
+ },
485
+ "69": {
486
+ "episode_index": 69,
487
+ "tasks": [
488
+ "Grasp the block to the box"
489
+ ],
490
+ "length": 330
491
+ },
492
+ "70": {
493
+ "episode_index": 70,
494
+ "tasks": [
495
+ "Grasp the block to the box"
496
+ ],
497
+ "length": 356
498
+ },
499
+ "71": {
500
+ "episode_index": 71,
501
+ "tasks": [
502
+ "Grasp the block to the box"
503
+ ],
504
+ "length": 404
505
+ },
506
+ "72": {
507
+ "episode_index": 72,
508
+ "tasks": [
509
+ "Grasp the block to the box"
510
+ ],
511
+ "length": 345
512
+ },
513
+ "73": {
514
+ "episode_index": 73,
515
+ "tasks": [
516
+ "Grasp the block to the box"
517
+ ],
518
+ "length": 339
519
+ },
520
+ "74": {
521
+ "episode_index": 74,
522
+ "tasks": [
523
+ "Grasp the block to the box"
524
+ ],
525
+ "length": 347
526
+ },
527
+ "75": {
528
+ "episode_index": 75,
529
+ "tasks": [
530
+ "Grasp the block to the box"
531
+ ],
532
+ "length": 363
533
+ },
534
+ "76": {
535
+ "episode_index": 76,
536
+ "tasks": [
537
+ "Grasp the block to the box"
538
+ ],
539
+ "length": 334
540
+ },
541
+ "77": {
542
+ "episode_index": 77,
543
+ "tasks": [
544
+ "Grasp the block to the box"
545
+ ],
546
+ "length": 345
547
+ },
548
+ "78": {
549
+ "episode_index": 78,
550
+ "tasks": [
551
+ "Grasp the block to the box"
552
+ ],
553
+ "length": 339
554
+ },
555
+ "79": {
556
+ "episode_index": 79,
557
+ "tasks": [
558
+ "Grasp the block to the box"
559
+ ],
560
+ "length": 354
561
+ },
562
+ "80": {
563
+ "episode_index": 80,
564
+ "tasks": [
565
+ "Grasp the block to the box"
566
+ ],
567
+ "length": 382
568
+ },
569
+ "81": {
570
+ "episode_index": 81,
571
+ "tasks": [
572
+ "Grasp the block to the box"
573
+ ],
574
+ "length": 343
575
+ },
576
+ "82": {
577
+ "episode_index": 82,
578
+ "tasks": [
579
+ "Grasp the block to the box"
580
+ ],
581
+ "length": 426
582
+ },
583
+ "83": {
584
+ "episode_index": 83,
585
+ "tasks": [
586
+ "Grasp the block to the box"
587
+ ],
588
+ "length": 317
589
+ },
590
+ "84": {
591
+ "episode_index": 84,
592
+ "tasks": [
593
+ "Grasp the block to the box"
594
+ ],
595
+ "length": 296
596
+ },
597
+ "85": {
598
+ "episode_index": 85,
599
+ "tasks": [
600
+ "Grasp the block to the box"
601
+ ],
602
+ "length": 292
603
+ },
604
+ "86": {
605
+ "episode_index": 86,
606
+ "tasks": [
607
+ "Grasp the block to the box"
608
+ ],
609
+ "length": 253
610
+ },
611
+ "87": {
612
+ "episode_index": 87,
613
+ "tasks": [
614
+ "Grasp the block to the box"
615
+ ],
616
+ "length": 295
617
+ },
618
+ "88": {
619
+ "episode_index": 88,
620
+ "tasks": [
621
+ "Grasp the block to the box"
622
+ ],
623
+ "length": 298
624
+ },
625
+ "89": {
626
+ "episode_index": 89,
627
+ "tasks": [
628
+ "Grasp the block to the box"
629
+ ],
630
+ "length": 355
631
+ },
632
+ "90": {
633
+ "episode_index": 90,
634
+ "tasks": [
635
+ "Grasp the block to the box"
636
+ ],
637
+ "length": 280
638
+ },
639
+ "91": {
640
+ "episode_index": 91,
641
+ "tasks": [
642
+ "Grasp the block to the box"
643
+ ],
644
+ "length": 288
645
+ },
646
+ "92": {
647
+ "episode_index": 92,
648
+ "tasks": [
649
+ "Grasp the block to the box"
650
+ ],
651
+ "length": 365
652
+ },
653
+ "93": {
654
+ "episode_index": 93,
655
+ "tasks": [
656
+ "Grasp the block to the box"
657
+ ],
658
+ "length": 390
659
+ },
660
+ "94": {
661
+ "episode_index": 94,
662
+ "tasks": [
663
+ "Grasp the block to the box"
664
+ ],
665
+ "length": 278
666
+ },
667
+ "95": {
668
+ "episode_index": 95,
669
+ "tasks": [
670
+ "Grasp the block to the box"
671
+ ],
672
+ "length": 294
673
+ },
674
+ "96": {
675
+ "episode_index": 96,
676
+ "tasks": [
677
+ "Grasp the block to the box"
678
+ ],
679
+ "length": 294
680
+ },
681
+ "97": {
682
+ "episode_index": 97,
683
+ "tasks": [
684
+ "Grasp the block to the box"
685
+ ],
686
+ "length": 317
687
+ },
688
+ "98": {
689
+ "episode_index": 98,
690
+ "tasks": [
691
+ "Grasp the block to the box"
692
+ ],
693
+ "length": 305
694
+ },
695
+ "99": {
696
+ "episode_index": 99,
697
+ "tasks": [
698
+ "Grasp the block to the box"
699
+ ],
700
+ "length": 296
701
+ },
702
+ "100": {
703
+ "episode_index": 100,
704
+ "tasks": [
705
+ "Grasp the block to the box"
706
+ ],
707
+ "length": 296
708
+ },
709
+ "101": {
710
+ "episode_index": 101,
711
+ "tasks": [
712
+ "Grasp the block to the box"
713
+ ],
714
+ "length": 276
715
+ },
716
+ "102": {
717
+ "episode_index": 102,
718
+ "tasks": [
719
+ "Grasp the block to the box"
720
+ ],
721
+ "length": 288
722
+ },
723
+ "103": {
724
+ "episode_index": 103,
725
+ "tasks": [
726
+ "Grasp the block to the box"
727
+ ],
728
+ "length": 259
729
+ },
730
+ "104": {
731
+ "episode_index": 104,
732
+ "tasks": [
733
+ "Grasp the block to the box"
734
+ ],
735
+ "length": 302
736
+ },
737
+ "105": {
738
+ "episode_index": 105,
739
+ "tasks": [
740
+ "Grasp the block to the box"
741
+ ],
742
+ "length": 233
743
+ },
744
+ "106": {
745
+ "episode_index": 106,
746
+ "tasks": [
747
+ "Grasp the block to the box"
748
+ ],
749
+ "length": 236
750
+ },
751
+ "107": {
752
+ "episode_index": 107,
753
+ "tasks": [
754
+ "Grasp the block to the box"
755
+ ],
756
+ "length": 324
757
+ },
758
+ "108": {
759
+ "episode_index": 108,
760
+ "tasks": [
761
+ "Grasp the block to the box"
762
+ ],
763
+ "length": 273
764
+ },
765
+ "109": {
766
+ "episode_index": 109,
767
+ "tasks": [
768
+ "Grasp the block to the box"
769
+ ],
770
+ "length": 371
771
+ },
772
+ "110": {
773
+ "episode_index": 110,
774
+ "tasks": [
775
+ "Grasp the block to the box"
776
+ ],
777
+ "length": 305
778
+ },
779
+ "111": {
780
+ "episode_index": 111,
781
+ "tasks": [
782
+ "Grasp the block to the box"
783
+ ],
784
+ "length": 252
785
+ },
786
+ "112": {
787
+ "episode_index": 112,
788
+ "tasks": [
789
+ "Grasp the block to the box"
790
+ ],
791
+ "length": 268
792
+ },
793
+ "113": {
794
+ "episode_index": 113,
795
+ "tasks": [
796
+ "Grasp the block to the box"
797
+ ],
798
+ "length": 361
799
+ },
800
+ "114": {
801
+ "episode_index": 114,
802
+ "tasks": [
803
+ "Grasp the block to the box"
804
+ ],
805
+ "length": 310
806
+ },
807
+ "115": {
808
+ "episode_index": 115,
809
+ "tasks": [
810
+ "Grasp the block to the box"
811
+ ],
812
+ "length": 338
813
+ },
814
+ "116": {
815
+ "episode_index": 116,
816
+ "tasks": [
817
+ "Grasp the block to the box"
818
+ ],
819
+ "length": 324
820
+ },
821
+ "117": {
822
+ "episode_index": 117,
823
+ "tasks": [
824
+ "Grasp the block to the box"
825
+ ],
826
+ "length": 331
827
+ },
828
+ "118": {
829
+ "episode_index": 118,
830
+ "tasks": [
831
+ "Grasp the block to the box"
832
+ ],
833
+ "length": 331
834
+ },
835
+ "119": {
836
+ "episode_index": 119,
837
+ "tasks": [
838
+ "Grasp the block to the box"
839
+ ],
840
+ "length": 281
841
+ },
842
+ "120": {
843
+ "episode_index": 120,
844
+ "tasks": [
845
+ "Grasp the block to the box"
846
+ ],
847
+ "length": 235
848
+ },
849
+ "121": {
850
+ "episode_index": 121,
851
+ "tasks": [
852
+ "Grasp the block to the box"
853
+ ],
854
+ "length": 302
855
+ },
856
+ "122": {
857
+ "episode_index": 122,
858
+ "tasks": [
859
+ "Grasp the block to the box"
860
+ ],
861
+ "length": 311
862
+ },
863
+ "123": {
864
+ "episode_index": 123,
865
+ "tasks": [
866
+ "Grasp the block to the box"
867
+ ],
868
+ "length": 293
869
+ },
870
+ "124": {
871
+ "episode_index": 124,
872
+ "tasks": [
873
+ "Grasp the block to the box"
874
+ ],
875
+ "length": 274
876
+ },
877
+ "125": {
878
+ "episode_index": 125,
879
+ "tasks": [
880
+ "Grasp the block to the box"
881
+ ],
882
+ "length": 274
883
+ },
884
+ "126": {
885
+ "episode_index": 126,
886
+ "tasks": [
887
+ "Grasp the block to the box"
888
+ ],
889
+ "length": 279
890
+ },
891
+ "127": {
892
+ "episode_index": 127,
893
+ "tasks": [
894
+ "Grasp the block to the box"
895
+ ],
896
+ "length": 297
897
+ },
898
+ "128": {
899
+ "episode_index": 128,
900
+ "tasks": [
901
+ "Grasp the block to the box"
902
+ ],
903
+ "length": 484
904
+ },
905
+ "129": {
906
+ "episode_index": 129,
907
+ "tasks": [
908
+ "Grasp the block to the box"
909
+ ],
910
+ "length": 340
911
+ },
912
+ "130": {
913
+ "episode_index": 130,
914
+ "tasks": [
915
+ "Grasp the block to the box"
916
+ ],
917
+ "length": 371
918
+ },
919
+ "131": {
920
+ "episode_index": 131,
921
+ "tasks": [
922
+ "Grasp the block to the box"
923
+ ],
924
+ "length": 376
925
+ },
926
+ "132": {
927
+ "episode_index": 132,
928
+ "tasks": [
929
+ "Grasp the block to the box"
930
+ ],
931
+ "length": 337
932
+ },
933
+ "133": {
934
+ "episode_index": 133,
935
+ "tasks": [
936
+ "Grasp the block to the box"
937
+ ],
938
+ "length": 390
939
+ },
940
+ "134": {
941
+ "episode_index": 134,
942
+ "tasks": [
943
+ "Grasp the block to the box"
944
+ ],
945
+ "length": 435
946
+ },
947
+ "135": {
948
+ "episode_index": 135,
949
+ "tasks": [
950
+ "Grasp the block to the box"
951
+ ],
952
+ "length": 368
953
+ },
954
+ "136": {
955
+ "episode_index": 136,
956
+ "tasks": [
957
+ "Grasp the block to the box"
958
+ ],
959
+ "length": 281
960
+ },
961
+ "137": {
962
+ "episode_index": 137,
963
+ "tasks": [
964
+ "Grasp the block to the box"
965
+ ],
966
+ "length": 356
967
+ },
968
+ "138": {
969
+ "episode_index": 138,
970
+ "tasks": [
971
+ "Grasp the block to the box"
972
+ ],
973
+ "length": 365
974
+ },
975
+ "139": {
976
+ "episode_index": 139,
977
+ "tasks": [
978
+ "Grasp the block to the box"
979
+ ],
980
+ "length": 403
981
+ },
982
+ "140": {
983
+ "episode_index": 140,
984
+ "tasks": [
985
+ "Grasp the block to the box"
986
+ ],
987
+ "length": 284
988
+ },
989
+ "141": {
990
+ "episode_index": 141,
991
+ "tasks": [
992
+ "Grasp the block to the box"
993
+ ],
994
+ "length": 392
995
+ },
996
+ "142": {
997
+ "episode_index": 142,
998
+ "tasks": [
999
+ "Grasp the block to the box"
1000
+ ],
1001
+ "length": 365
1002
+ },
1003
+ "143": {
1004
+ "episode_index": 143,
1005
+ "tasks": [
1006
+ "Grasp the block to the box"
1007
+ ],
1008
+ "length": 323
1009
+ },
1010
+ "144": {
1011
+ "episode_index": 144,
1012
+ "tasks": [
1013
+ "Grasp the block to the box"
1014
+ ],
1015
+ "length": 326
1016
+ },
1017
+ "145": {
1018
+ "episode_index": 145,
1019
+ "tasks": [
1020
+ "Grasp the block to the box"
1021
+ ],
1022
+ "length": 375
1023
+ },
1024
+ "146": {
1025
+ "episode_index": 146,
1026
+ "tasks": [
1027
+ "Grasp the block to the box"
1028
+ ],
1029
+ "length": 302
1030
+ },
1031
+ "147": {
1032
+ "episode_index": 147,
1033
+ "tasks": [
1034
+ "Grasp the block to the box"
1035
+ ],
1036
+ "length": 309
1037
+ },
1038
+ "148": {
1039
+ "episode_index": 148,
1040
+ "tasks": [
1041
+ "Grasp the block to the box"
1042
+ ],
1043
+ "length": 393
1044
+ },
1045
+ "149": {
1046
+ "episode_index": 149,
1047
+ "tasks": [
1048
+ "Grasp the block to the box"
1049
+ ],
1050
+ "length": 270
1051
+ },
1052
+ "150": {
1053
+ "episode_index": 150,
1054
+ "tasks": [
1055
+ "Grasp the block to the box"
1056
+ ],
1057
+ "length": 406
1058
+ },
1059
+ "151": {
1060
+ "episode_index": 151,
1061
+ "tasks": [
1062
+ "Grasp the block to the box"
1063
+ ],
1064
+ "length": 268
1065
+ },
1066
+ "152": {
1067
+ "episode_index": 152,
1068
+ "tasks": [
1069
+ "Grasp the block to the box"
1070
+ ],
1071
+ "length": 283
1072
+ },
1073
+ "153": {
1074
+ "episode_index": 153,
1075
+ "tasks": [
1076
+ "Grasp the block to the box"
1077
+ ],
1078
+ "length": 287
1079
+ },
1080
+ "154": {
1081
+ "episode_index": 154,
1082
+ "tasks": [
1083
+ "Grasp the block to the box"
1084
+ ],
1085
+ "length": 289
1086
+ },
1087
+ "155": {
1088
+ "episode_index": 155,
1089
+ "tasks": [
1090
+ "Grasp the block to the box"
1091
+ ],
1092
+ "length": 285
1093
+ },
1094
+ "156": {
1095
+ "episode_index": 156,
1096
+ "tasks": [
1097
+ "Grasp the block to the box"
1098
+ ],
1099
+ "length": 263
1100
+ },
1101
+ "157": {
1102
+ "episode_index": 157,
1103
+ "tasks": [
1104
+ "Grasp the block to the box"
1105
+ ],
1106
+ "length": 296
1107
+ }
1108
+ }
meta/episodes_stats.json ADDED
The diff for this file is too large to render. See raw diff
 
meta/info.json CHANGED
@@ -1,18 +1,16 @@
1
  {
2
- "codebase_version": "v2.1",
3
  "robot_type": "so101_follower",
4
  "total_episodes": 158,
5
  "total_frames": 52754,
6
  "total_tasks": 1,
7
- "total_videos": 316,
8
- "total_chunks": 1,
9
  "chunks_size": 1000,
10
- "fps": 30,
11
  "splits": {
12
  "train": "0:158"
13
  },
14
- "data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
15
- "video_path": "videos/chunk-{episode_chunk:03d}/{video_key}/episode_{episode_index:06d}.mp4",
16
  "features": {
17
  "action": {
18
  "dtype": "float32",
@@ -26,7 +24,8 @@
26
  "wrist_flex.pos",
27
  "wrist_roll.pos",
28
  "gripper.pos"
29
- ]
 
30
  },
31
  "observation.state": {
32
  "dtype": "float32",
@@ -40,7 +39,8 @@
40
  "wrist_flex.pos",
41
  "wrist_roll.pos",
42
  "gripper.pos"
43
- ]
 
44
  },
45
  "observation.images.handeye": {
46
  "dtype": "video",
@@ -93,35 +93,42 @@
93
  "shape": [
94
  1
95
  ],
96
- "names": null
 
97
  },
98
  "frame_index": {
99
  "dtype": "int64",
100
  "shape": [
101
  1
102
  ],
103
- "names": null
 
104
  },
105
  "episode_index": {
106
  "dtype": "int64",
107
  "shape": [
108
  1
109
  ],
110
- "names": null
 
111
  },
112
  "index": {
113
  "dtype": "int64",
114
  "shape": [
115
  1
116
  ],
117
- "names": null
 
118
  },
119
  "task_index": {
120
  "dtype": "int64",
121
  "shape": [
122
  1
123
  ],
124
- "names": null
 
125
  }
126
- }
 
 
127
  }
 
1
  {
2
+ "codebase_version": "v3.0",
3
  "robot_type": "so101_follower",
4
  "total_episodes": 158,
5
  "total_frames": 52754,
6
  "total_tasks": 1,
 
 
7
  "chunks_size": 1000,
8
+ "fps": 30.0,
9
  "splits": {
10
  "train": "0:158"
11
  },
12
+ "data_path": "data/chunk-{chunk_index:03d}/file_{file_index:03d}.parquet",
13
+ "video_path": "videos/chunk-{chunk_index:03d}/{video_key}/file_{file_index:03d}.mp4",
14
  "features": {
15
  "action": {
16
  "dtype": "float32",
 
24
  "wrist_flex.pos",
25
  "wrist_roll.pos",
26
  "gripper.pos"
27
+ ],
28
+ "fps": 30.0
29
  },
30
  "observation.state": {
31
  "dtype": "float32",
 
39
  "wrist_flex.pos",
40
  "wrist_roll.pos",
41
  "gripper.pos"
42
+ ],
43
+ "fps": 30.0
44
  },
45
  "observation.images.handeye": {
46
  "dtype": "video",
 
93
  "shape": [
94
  1
95
  ],
96
+ "names": null,
97
+ "fps": 30.0
98
  },
99
  "frame_index": {
100
  "dtype": "int64",
101
  "shape": [
102
  1
103
  ],
104
+ "names": null,
105
+ "fps": 30.0
106
  },
107
  "episode_index": {
108
  "dtype": "int64",
109
  "shape": [
110
  1
111
  ],
112
+ "names": null,
113
+ "fps": 30.0
114
  },
115
  "index": {
116
  "dtype": "int64",
117
  "shape": [
118
  1
119
  ],
120
+ "names": null,
121
+ "fps": 30.0
122
  },
123
  "task_index": {
124
  "dtype": "int64",
125
  "shape": [
126
  1
127
  ],
128
+ "names": null,
129
+ "fps": 30.0
130
  }
131
+ },
132
+ "data_files_size_in_mb": 100,
133
+ "video_files_size_in_mb": 500
134
  }
meta/tasks.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "0": "Grasp the block to the box"
3
+ }
upload_to_hf.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+
3
+ from huggingface_hub import HfApi
4
+ from pathlib import Path
5
+
6
+ def upload_dataset():
7
+ api = HfApi()
8
+
9
+ # Upload the entire dataset directory
10
+ api.upload_folder(
11
+ folder_path=".",
12
+ repo_id="m3/so101_block2box",
13
+ repo_type="dataset",
14
+ commit_message="Update to LeRobot v3.0 format"
15
+ )
16
+
17
+ print("Dataset successfully uploaded to m3/so101_block2box")
18
+
19
+ if __name__ == "__main__":
20
+ upload_dataset()