sakehaosdfadfasf commited on
Commit
ab542b3
·
verified ·
1 Parent(s): be407ac

Upload ketchup pick and place dataset with FFmpeg H.264 videos

Browse files
README.md CHANGED
@@ -15,11 +15,27 @@ Pick and place manipulation task where the robot grasps a ketchup bottle and pla
15
  ## Data Format
16
  This dataset follows the LeRobot format with:
17
  - Robot states in `observation.state` (7DOF: x, y, z, roll, pitch, yaw, gripper)
18
- - Actions as next states
19
  - Video recordings from multiple camera angles
 
 
 
 
 
20
 
21
  ## Usage
22
  ```python
23
- from lerobot.datasets import LeRobotDataset
 
 
24
  dataset = LeRobotDataset("sakehaosdfadfasf/ketchup_pick_place")
 
 
 
 
 
25
  ```
 
 
 
 
 
15
  ## Data Format
16
  This dataset follows the LeRobot format with:
17
  - Robot states in `observation.state` (7DOF: x, y, z, roll, pitch, yaw, gripper)
18
+ - Actions as next robot states
19
  - Video recordings from multiple camera angles
20
+ - Videos encoded with H.264 codec using FFmpeg for maximum compatibility
21
+
22
+ ## Camera Setup
23
+ - **top**: RGB camera feed
24
+ - **wrist**: RGB camera feed
25
 
26
  ## Usage
27
  ```python
28
+ from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
29
+
30
+ # Load dataset
31
  dataset = LeRobotDataset("sakehaosdfadfasf/ketchup_pick_place")
32
+
33
+ # Visualize data
34
+ python -m lerobot.scripts.visualize_dataset \
35
+ --repo-id sakehaosdfadfasf/ketchup_pick_place \
36
+ --episode-index 0
37
  ```
38
+
39
+ ## Video Format
40
+ Videos are encoded using FFmpeg with H.264 codec, YUV420P pixel format, and CRF 18 for high quality.
41
+ This ensures maximum compatibility with LeRobot's video decoding pipeline.
meta/info.json CHANGED
@@ -5,20 +5,42 @@
5
  "total_frames": 154,
6
  "total_tasks": 1,
7
  "total_chunks": 1,
8
- "chunks_size": 1000,
9
  "fps": 10,
10
  "features": {
11
  "observation.state": {
12
  "dtype": "float32",
13
  "shape": [
14
  7
15
- ]
 
 
 
 
 
 
 
 
 
 
 
16
  },
17
  "action": {
18
  "dtype": "float32",
19
  "shape": [
20
  7
21
- ]
 
 
 
 
 
 
 
 
 
 
 
22
  },
23
  "episode_index": {
24
  "dtype": "int64",
@@ -51,8 +73,52 @@
51
  "task_index": {
52
  "dtype": "int64",
53
  "shape": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
55
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  "data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
57
- "video_path": "videos/chunk-{episode_chunk:03d}/episode_{episode_index:06d}_{camera_name}.mp4"
 
 
 
 
 
 
 
 
58
  }
 
5
  "total_frames": 154,
6
  "total_tasks": 1,
7
  "total_chunks": 1,
8
+ "chunks_size": 154,
9
  "fps": 10,
10
  "features": {
11
  "observation.state": {
12
  "dtype": "float32",
13
  "shape": [
14
  7
15
+ ],
16
+ "_info": {
17
+ "names": [
18
+ "x",
19
+ "y",
20
+ "z",
21
+ "roll",
22
+ "pitch",
23
+ "yaw",
24
+ "gripper"
25
+ ]
26
+ }
27
  },
28
  "action": {
29
  "dtype": "float32",
30
  "shape": [
31
  7
32
+ ],
33
+ "_info": {
34
+ "names": [
35
+ "x",
36
+ "y",
37
+ "z",
38
+ "roll",
39
+ "pitch",
40
+ "yaw",
41
+ "gripper"
42
+ ]
43
+ }
44
  },
45
  "episode_index": {
46
  "dtype": "int64",
 
73
  "task_index": {
74
  "dtype": "int64",
75
  "shape": []
76
+ },
77
+ "observation.images.top": {
78
+ "dtype": "video",
79
+ "shape": [
80
+ 480,
81
+ 640,
82
+ 3
83
+ ],
84
+ "_info": {
85
+ "video_path": "videos/chunk-{episode_chunk:03d}/episode_{episode_index:06d}_top.mp4"
86
+ }
87
+ },
88
+ "observation.images.wrist": {
89
+ "dtype": "video",
90
+ "shape": [
91
+ 480,
92
+ 640,
93
+ 3
94
+ ],
95
+ "_info": {
96
+ "video_path": "videos/chunk-{episode_chunk:03d}/episode_{episode_index:06d}_wrist.mp4"
97
+ }
98
  }
99
  },
100
+ "encoding": {
101
+ "video": {
102
+ "codec": "h264",
103
+ "pix_fmt": "yuv420p",
104
+ "g": 2,
105
+ "crf": 18
106
+ }
107
+ },
108
+ "video_info": {
109
+ "video.fps": 10,
110
+ "video.codec": "h264",
111
+ "video.pix_fmt": "yuv420p",
112
+ "video.preset": "medium"
113
+ },
114
  "data_path": "data/chunk-{episode_chunk:03d}/episode_{episode_index:06d}.parquet",
115
+ "video_path": "videos/chunk-{episode_chunk:03d}/episode_{episode_index:06d}_{camera_name}.mp4",
116
+ "camera_keys": [
117
+ "top",
118
+ "wrist"
119
+ ],
120
+ "camera_names": [
121
+ "top",
122
+ "wrist"
123
+ ]
124
  }
videos/chunk-000/episode_000000_top.mp4 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b91d2d2882dd824930e524bb6f01d564c549966c878172927e7e63b14f6ebea8
3
- size 942604
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b936ee0b56dcb41ab1ef7dce0e699e54946b200037599377cd72d709af90a31d
3
+ size 877957
videos/chunk-000/episode_000000_wrist.mp4 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f7d3d067d1c33857b38bd1643608137af09409002860632d717f3d8b6c3a2a4c
3
- size 602431
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42fe583771a4e2801d4a7cd3b77e8e443a4c1ef007b34011efaf84901efca7a5
3
+ size 559241