yilin-wu commited on
Commit
0fd7c56
·
verified ·
1 Parent(s): a44c30d

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +147 -0
README.md ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ task_categories:
5
+ - robotics
6
+ - reinforcement-learning
7
+ tags:
8
+ - robotics
9
+ - manipulation
10
+ - imitation-learning
11
+ - world-model
12
+ - robot-learning
13
+ - tabletop
14
+ pretty_name: "World Model Robot Manipulation Dataset (Our-50)"
15
+ size_categories:
16
+ - n<1K
17
+ ---
18
+
19
+ # World Model Robot Manipulation Dataset
20
+
21
+ A dataset of real-robot tabletop manipulation trajectories collected for world model training and imitation learning research. The setup follows DROID Dataset. Each trajectory pairs multi-camera video, proprioceptive state/action sequences, natural language task descriptions, and dense reward annotations with pre-extracted visual latents.
22
+
23
+ ## Dataset Summary
24
+
25
+ | Split | Trajectories | Success Rate | Avg. Length |
26
+ |-------|-------------|--------------|-------------|
27
+ | Train | 250 | 44.8% | 118 frames |
28
+ | Val | 100 | 44.0% | 106 frames |
29
+ | **Total** | **350** | **44.6%** | **115 frames** |
30
+
31
+ Five tabletop manipulation tasks, 50 train / 20 val trajectories per task.
32
+
33
+ ## Tasks
34
+
35
+ | Task ID | Description | Train SR | Val SR |
36
+ |---------|-------------|----------|--------|
37
+ | `bag_our` | Pick up a bag of chips and place it on a green plate | 54% | 60% |
38
+ | `marker_our` | Pick up a marker and place it in a cup/mug | 36% | 30% |
39
+ | `pour_our` | Pick up a cup of beans and place them in a bowl | 34% | 30% |
40
+ | `stack_our` | Pick up a bowl and stack it on top of another bowl | 60% | 60% |
41
+ | `towel_our` | Pick up a towel and place it in a basket | 40% | 40% |
42
+
43
+ Each task has multiple natural-language paraphrases (e.g. *"put the marker in the cup"*, *"put the marker in the mug"*, *"pick up the marker and place it in the cup"*).
44
+
45
+ ## Data Structure
46
+
47
+ ```
48
+ world_model_data_our_50/
49
+ ├── annotations/
50
+ │ ├── train/ {0..249}.json
51
+ │ └── val/ {0..99}.json
52
+ ├── annotation_rewards/
53
+ │ ├── train/ {0..249}.json # same schema as annotations, includes reward fields
54
+ │ └── val/ {0..99}.json
55
+ ├── latents/
56
+ │ ├── train/ {0..249}_sd3.npz
57
+ │ └── val/ {0..99}_sd3.npz
58
+ ├── videos/
59
+ │ ├── train/ {0..249}.mp4
60
+ │ └── val/ {0..99}.mp4
61
+ ├── norm_stats_recorded.json
62
+ └── norm_stats_relabel.json
63
+ ```
64
+
65
+ ### Annotation JSON Schema
66
+
67
+ Each `.json` file contains one trajectory with the following fields:
68
+
69
+ | Field | Type | Description |
70
+ |-------|------|-------------|
71
+ | `episode_id` | int | Sequential trajectory index within the split |
72
+ | `episode_id_orig` | str | Original episode identifier (e.g. `bag_our_003`) |
73
+ | `texts` | list[str] | Natural language task descriptions |
74
+ | `text_features` | float[768] | Pre-computed text embedding |
75
+ | `success` | int | Binary success label (1 = task completed) |
76
+ | `video_length` | int | Number of frames in the trajectory (32–334) |
77
+ | `video_path` | str | Relative path to the `.mp4` file |
78
+ | `latent_path` | str | Relative path to the latent `.npz` file |
79
+ | `num_cameras` | int | Always 3 |
80
+ | `states` | float[T][7] | Raw proprioceptive state per frame |
81
+ | `observation.state.cartesian_position` | float[T][6] | End-effector Cartesian pose (x, y, z, rx, ry, rz) |
82
+ | `observation.state.joint_position` | float[T][7] | 7-DOF joint positions |
83
+ | `observation.state.gripper_position` | float[T][1] | Gripper opening |
84
+ | `action.cartesian_position` | float[T][6] | Cartesian position action |
85
+ | `action.joint_position` | float[T][7] | Joint position action |
86
+ | `action.joint_velocity` | float[T][7] | Joint velocity action |
87
+ | `action.gripper_position` | float[T][1] | Gripper action |
88
+ | `reward_progress` | float[T] | Dense progress reward |
89
+ | `reward_success` | float[T] | Success-shaped reward |
90
+ | `reward_binary` | float[T] | Binary reward signal |
91
+
92
+ ### Video Format
93
+
94
+ - Resolution: **960 × 192** (three 320 × 192 camera views (left, right, wrist) concatenated horizontally)
95
+ - Codec: H.264
96
+ - Frame rate: **5 fps**
97
+ - Length: 32–334 frames per trajectory
98
+
99
+ ### Visual Latents
100
+
101
+ Pre-extracted with **Stable Diffusion 3** (SD3). Stored as `float16` NumPy arrays.
102
+
103
+ ```
104
+ latents.npz → key: "latents"
105
+ shape: (3, T, 60, 256)
106
+ │ │ │ └─ channel dim
107
+ │ │ └─ spatial tokens
108
+ │ └─ frames
109
+ └─ cameras
110
+ ```
111
+
112
+ ### Normalization Statistics
113
+
114
+ `norm_stats_recorded.json` and `norm_stats_relabel.json` provide mean/std statistics for the `state` and `actions` modalities, suitable for normalizing inputs during training.
115
+
116
+ ## Robot Setup
117
+
118
+ - **Robot**: Franka Emika Robot arm with parallel-jaw gripper (Robotiq Gripper)
119
+ - **Cameras**: 3 fixed cameras providing left, right, and wrist views
120
+ - **Control frequency**: 5 Hz (matches video frame rate)
121
+
122
+ ## Usage Example
123
+
124
+ ```python
125
+ import json
126
+ import numpy as np
127
+
128
+ # Load a trajectory
129
+ with open("annotations/train/0.json") as f:
130
+ traj = json.load(f)
131
+
132
+ print(traj["texts"]) # ['pick up the bag of chips and place it on the green plate']
133
+ print(traj["success"]) # 1
134
+ print(traj["video_length"]) # e.g. 112
135
+
136
+ # Joint positions: shape (T, 7)
137
+ joint_pos = np.array(traj["observation.state.joint_position"])
138
+
139
+ # Actions: shape (T, 7)
140
+ actions = np.array(traj["action.joint_position"])
141
+
142
+ # Visual latents: shape (3, T, 60, 256)
143
+ lat = np.load(traj["latent_path"].replace("latents/", "latents/"))["latents"]
144
+
145
+ # Rewards: shape (T,)
146
+ rewards = np.array(traj["reward_progress"])
147
+ ```