Robotics
Transformers
Human
Pretraining
Manipulation
File size: 8,990 Bytes
af85cc3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
{
    "num_steps": 200000,
    "eval_every": 100000,
    "validate_every": 1000,
    "save_every": 5000,
    "resume_ckpt_path": null,
    "lr": 0.0001,
    "policy_class": "cross",
    "onscreen_render": false,
    "seed": 6,
    "temporal_agg": false,
    "real_robot": true,
    "load_pretrain": false,
    "height": 480,
    "width": 1280,
    "normalize_resnet": false,
    "wandb": true,
    "pretrained_path": null,
    "randomize_data_degree": 3,
    "randomize_data": false,
    "config": null,
    "eval": false,
    "batch_size": 32,
    "lr_tokenizer": 0.0001,
    "lr_action_head": 0.0001,
    "lr_trunk": 0.0001,
    "skip_mirrored_data": false,
    "actuator_network_dir": null,
    "history_len": null,
    "future_len": null,
    "prediction_len": null,
    "kl_weight": null,
    "chunk_size": 120,
    "hidden_dim": null,
    "dim_feedforward": null,
    "no_encoder": true,
    "dec_layers": 3,
    "nheads": 8,
    "use_pos_embd_image": 1,
    "use_pos_embd_action": 1,
    "feature_loss_weight": 0.0,
    "self_attention": 1,
    "same_backbones": true,
    "use_mask": false,
    "use_wrist": true,
    "data_aug": false,
    "grayscale": false,
    "randomize_color": false,
    "pretrain_image_width": 1276,
    "pretrain_image_height": 480,
    "gpu_id": 0,
    "train_ratio": 0.99,
    "min_val_num": 20,
    "share_cross_attn": false,
    "agg_modalities": false,
    "policy_config": {
        "lr": 0.0001,
        "lr_backbone": 1e-05,
        "embodiment_args_dict": {
            "normalize_state": true,
            "locoman": {
                "tokenizer": {
                    "hidden_dim": 128,
                    "nhead": 4,
                    "dim_head": 32,
                    "dropout": 0.1,
                    "main_image": {
                        "output_dim": 128,
                        "weights": "DEFAULT",
                        "resnet_model": "resnet18",
                        "num_of_copy": 1,
                        "token_num": 16
                    },
                    "wrist_image": {
                        "output_dim": 128,
                        "weights": "DEFAULT",
                        "resnet_model": "resnet18",
                        "num_of_copy": 1,
                        "token_num": 8
                    },
                    "body_pose_state": {
                        "input_dim": 6,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    },
                    "eef_pose_state": {
                        "input_dim": 12,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    },
                    "eef_to_body_pose_state": {
                        "input_dim": 12,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    },
                    "gripper_state": {
                        "input_dim": 2,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    }
                },
                "action_head": {
                    "eef_pose": {
                        "type": "transformer",
                        "input_dim": 128,
                        "output_dim": 12,
                        "crossattn_modality_dropout": 0.1,
                        "crossattn_heads": 4,
                        "crossattn_dim_head": 16,
                        "action_horizon": 120
                    },
                    "body_pose": {
                        "type": "transformer",
                        "input_dim": 128,
                        "output_dim": 6,
                        "crossattn_modality_dropout": 0.1,
                        "crossattn_heads": 4,
                        "crossattn_dim_head": 16,
                        "action_horizon": 120
                    },
                    "gripper": {
                        "type": "transformer",
                        "input_dim": 128,
                        "output_dim": 2,
                        "crossattn_modality_dropout": 0.1,
                        "crossattn_heads": 4,
                        "crossattn_dim_head": 16,
                        "action_horizon": 120
                    }
                }
            },
            "human": {
                "tokenizer": {
                    "hidden_dim": 128,
                    "nhead": 4,
                    "dim_head": 32,
                    "dropout": 0.1,
                    "main_image": {
                        "output_dim": 128,
                        "weights": "DEFAULT",
                        "resnet_model": "resnet18",
                        "num_of_copy": 1,
                        "token_num": 16
                    },
                    "body_pose_state": {
                        "input_dim": 6,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    },
                    "eef_pose_state": {
                        "input_dim": 12,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    },
                    "eef_to_body_pose_state": {
                        "input_dim": 12,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    },
                    "gripper_state": {
                        "input_dim": 2,
                        "output_dim": 128,
                        "widths": [
                            128,
                            128
                        ],
                        "tanh_end": false,
                        "ln": true,
                        "token_num": 4
                    }
                },
                "action_head": {
                    "eef_pose": {
                        "type": "transformer",
                        "input_dim": 128,
                        "output_dim": 12,
                        "crossattn_modality_dropout": 0.1,
                        "crossattn_heads": 4,
                        "crossattn_dim_head": 16,
                        "action_horizon": 120
                    },
                    "body_pose": {
                        "type": "transformer",
                        "input_dim": 128,
                        "output_dim": 6,
                        "crossattn_modality_dropout": 0.1,
                        "crossattn_heads": 4,
                        "crossattn_dim_head": 16,
                        "action_horizon": 120
                    },
                    "gripper": {
                        "type": "transformer",
                        "input_dim": 128,
                        "output_dim": 2,
                        "crossattn_modality_dropout": 0.1,
                        "crossattn_heads": 4,
                        "crossattn_dim_head": 16,
                        "action_horizon": 120
                    }
                }
            }
        },
        "transformer_args": {
            "output_len": {
                "eef_pose": 6,
                "body_pose": 6,
                "gripper": 6
            },
            "trunk_mode": "encoder_decoder",
            "hidden_dim": 128,
            "dropout": 0.5,
            "nheads": 16,
            "dim_feedforward": 256,
            "enc_layers": 4,
            "dec_layers": 4,
            "pre_norm": false,
            "token_postprocessing": "none"
        },
        "share_cross_attn": false,
        "agg_modalities": false
    }
}