KelinLiIC commited on
Commit
d52148c
·
verified ·
1 Parent(s): 50189e6

Add the haptic-act model of peg

Browse files
ft_maniskill/peg/models/haptic-act/config.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "acthaptic",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.base_camera": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 480,
10
+ 480
11
+ ]
12
+ },
13
+ "observation.images.wrist_camera": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 480,
18
+ 480
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 9
25
+ ]
26
+ },
27
+ "observation.qvel": {
28
+ "type": "STATE",
29
+ "shape": [
30
+ 9
31
+ ]
32
+ },
33
+ "observation.torque": {
34
+ "type": "STATE",
35
+ "shape": [
36
+ 7
37
+ ]
38
+ },
39
+ "observation.peg_box_force": {
40
+ "type": "STATE",
41
+ "shape": [
42
+ 1
43
+ ]
44
+ },
45
+ "observation.torque_hist": {
46
+ "type": "STATE",
47
+ "shape": [
48
+ 35
49
+ ]
50
+ },
51
+ "observation.wrench": {
52
+ "type": "STATE",
53
+ "shape": [
54
+ 6
55
+ ]
56
+ },
57
+ "observation.torque_do": {
58
+ "type": "STATE",
59
+ "shape": [
60
+ 7
61
+ ]
62
+ },
63
+ "observation.environment_state": {
64
+ "type": "ENV",
65
+ "shape": [
66
+ 30
67
+ ]
68
+ }
69
+ },
70
+ "output_features": {
71
+ "action": {
72
+ "type": "ACTION",
73
+ "shape": [
74
+ 8
75
+ ]
76
+ }
77
+ },
78
+ "device": "cuda",
79
+ "use_amp": false,
80
+ "use_peft": false,
81
+ "push_to_hub": false,
82
+ "repo_id": null,
83
+ "private": null,
84
+ "tags": null,
85
+ "license": null,
86
+ "pretrained_path": null,
87
+ "pretrained_revision": null,
88
+ "chunk_size": 100,
89
+ "n_action_steps": 50,
90
+ "normalization_mapping": {
91
+ "VISUAL": "MEAN_STD",
92
+ "STATE": "MEAN_STD",
93
+ "ACTION": "MEAN_STD"
94
+ },
95
+ "vision_backbone": "resnet18",
96
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
97
+ "replace_final_stride_with_dilation": false,
98
+ "pre_norm": false,
99
+ "dim_model": 512,
100
+ "n_heads": 8,
101
+ "dim_feedforward": 3200,
102
+ "feedforward_activation": "relu",
103
+ "n_encoder_layers": 4,
104
+ "n_decoder_layers": 1,
105
+ "use_vae": true,
106
+ "latent_dim": 32,
107
+ "n_vae_encoder_layers": 4,
108
+ "temporal_ensemble_coeff": null,
109
+ "dropout": 0.1,
110
+ "kl_weight": 10.0,
111
+ "optimizer_lr": 1e-05,
112
+ "optimizer_weight_decay": 0.0001,
113
+ "optimizer_lr_backbone": 1e-05,
114
+ "haptic_dropout": 0.3,
115
+ "aux_phase_weight": 0.0,
116
+ "n_phases": 7,
117
+ "replan_weight": 1.0,
118
+ "replan_pos_weight": 20.0
119
+ }
ft_maniskill/peg/models/haptic-act/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1feaa964f4ed142a39f3cfd12a19020fb7dad757c791d7f1fca4d38f4397a47
3
+ size 206788204
ft_maniskill/peg/models/haptic-act/policy_postprocessor.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "unnormalizer_processor",
6
+ "config": {
7
+ "eps": 1e-08,
8
+ "features": {
9
+ "action": {
10
+ "type": "ACTION",
11
+ "shape": [
12
+ 8
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "MEAN_STD",
18
+ "STATE": "MEAN_STD",
19
+ "ACTION": "MEAN_STD"
20
+ }
21
+ },
22
+ "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
23
+ },
24
+ {
25
+ "registry_name": "device_processor",
26
+ "config": {
27
+ "device": "cpu",
28
+ "float_dtype": null
29
+ }
30
+ }
31
+ ]
32
+ }
ft_maniskill/peg/models/haptic-act/policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f49cbe243c11661efe8e54208963bc71da88c0138b66c5a0fc034553dc035f8e
3
+ size 15484
ft_maniskill/peg/models/haptic-act/policy_preprocessor.json ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {}
8
+ }
9
+ },
10
+ {
11
+ "registry_name": "to_batch_processor",
12
+ "config": {}
13
+ },
14
+ {
15
+ "registry_name": "device_processor",
16
+ "config": {
17
+ "device": "cuda",
18
+ "float_dtype": null
19
+ }
20
+ },
21
+ {
22
+ "registry_name": "normalizer_processor",
23
+ "config": {
24
+ "eps": 1e-08,
25
+ "features": {
26
+ "observation.images.base_camera": {
27
+ "type": "VISUAL",
28
+ "shape": [
29
+ 3,
30
+ 480,
31
+ 480
32
+ ]
33
+ },
34
+ "observation.images.wrist_camera": {
35
+ "type": "VISUAL",
36
+ "shape": [
37
+ 3,
38
+ 480,
39
+ 480
40
+ ]
41
+ },
42
+ "observation.state": {
43
+ "type": "STATE",
44
+ "shape": [
45
+ 9
46
+ ]
47
+ },
48
+ "observation.qvel": {
49
+ "type": "STATE",
50
+ "shape": [
51
+ 9
52
+ ]
53
+ },
54
+ "observation.torque": {
55
+ "type": "STATE",
56
+ "shape": [
57
+ 7
58
+ ]
59
+ },
60
+ "observation.peg_box_force": {
61
+ "type": "STATE",
62
+ "shape": [
63
+ 1
64
+ ]
65
+ },
66
+ "observation.torque_hist": {
67
+ "type": "STATE",
68
+ "shape": [
69
+ 35
70
+ ]
71
+ },
72
+ "observation.wrench": {
73
+ "type": "STATE",
74
+ "shape": [
75
+ 6
76
+ ]
77
+ },
78
+ "observation.torque_do": {
79
+ "type": "STATE",
80
+ "shape": [
81
+ 7
82
+ ]
83
+ },
84
+ "observation.environment_state": {
85
+ "type": "ENV",
86
+ "shape": [
87
+ 30
88
+ ]
89
+ },
90
+ "action": {
91
+ "type": "ACTION",
92
+ "shape": [
93
+ 8
94
+ ]
95
+ }
96
+ },
97
+ "norm_map": {
98
+ "VISUAL": "MEAN_STD",
99
+ "STATE": "MEAN_STD",
100
+ "ACTION": "MEAN_STD"
101
+ }
102
+ },
103
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
104
+ }
105
+ ]
106
+ }
ft_maniskill/peg/models/haptic-act/policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05f3dcb2d6e45f2ace265dae0379f998d042b696924c9728c1c54225f3aeaee4
3
+ size 15492
ft_maniskill/peg/models/haptic-act/train_config.json ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "peg-contact-1000-ft-replan",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": false,
8
+ "max_num_transforms": 3,
9
+ "random_order": false,
10
+ "preset": null,
11
+ "tfs": {
12
+ "brightness": {
13
+ "weight": 1.0,
14
+ "type": "ColorJitter",
15
+ "kwargs": {
16
+ "brightness": [
17
+ 0.8,
18
+ 1.2
19
+ ]
20
+ }
21
+ },
22
+ "contrast": {
23
+ "weight": 1.0,
24
+ "type": "ColorJitter",
25
+ "kwargs": {
26
+ "contrast": [
27
+ 0.8,
28
+ 1.2
29
+ ]
30
+ }
31
+ },
32
+ "saturation": {
33
+ "weight": 1.0,
34
+ "type": "ColorJitter",
35
+ "kwargs": {
36
+ "saturation": [
37
+ 0.5,
38
+ 1.5
39
+ ]
40
+ }
41
+ },
42
+ "hue": {
43
+ "weight": 1.0,
44
+ "type": "ColorJitter",
45
+ "kwargs": {
46
+ "hue": [
47
+ -0.05,
48
+ 0.05
49
+ ]
50
+ }
51
+ },
52
+ "sharpness": {
53
+ "weight": 1.0,
54
+ "type": "SharpnessJitter",
55
+ "kwargs": {
56
+ "sharpness": [
57
+ 0.5,
58
+ 1.5
59
+ ]
60
+ }
61
+ },
62
+ "affine": {
63
+ "weight": 1.0,
64
+ "type": "RandomAffine",
65
+ "kwargs": {
66
+ "degrees": [
67
+ -5.0,
68
+ 5.0
69
+ ],
70
+ "translate": [
71
+ 0.05,
72
+ 0.05
73
+ ]
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "revision": null,
79
+ "use_imagenet_stats": true,
80
+ "video_backend": "torchcodec",
81
+ "return_uint8": false,
82
+ "depth_output_unit": "mm",
83
+ "streaming": false,
84
+ "eval_split": 0.0
85
+ },
86
+ "env": null,
87
+ "policy": {
88
+ "type": "acthaptic",
89
+ "n_obs_steps": 1,
90
+ "input_features": {
91
+ "observation.images.base_camera": {
92
+ "type": "VISUAL",
93
+ "shape": [
94
+ 3,
95
+ 480,
96
+ 480
97
+ ]
98
+ },
99
+ "observation.images.wrist_camera": {
100
+ "type": "VISUAL",
101
+ "shape": [
102
+ 3,
103
+ 480,
104
+ 480
105
+ ]
106
+ },
107
+ "observation.state": {
108
+ "type": "STATE",
109
+ "shape": [
110
+ 9
111
+ ]
112
+ },
113
+ "observation.qvel": {
114
+ "type": "STATE",
115
+ "shape": [
116
+ 9
117
+ ]
118
+ },
119
+ "observation.torque": {
120
+ "type": "STATE",
121
+ "shape": [
122
+ 7
123
+ ]
124
+ },
125
+ "observation.peg_box_force": {
126
+ "type": "STATE",
127
+ "shape": [
128
+ 1
129
+ ]
130
+ },
131
+ "observation.torque_hist": {
132
+ "type": "STATE",
133
+ "shape": [
134
+ 35
135
+ ]
136
+ },
137
+ "observation.wrench": {
138
+ "type": "STATE",
139
+ "shape": [
140
+ 6
141
+ ]
142
+ },
143
+ "observation.torque_do": {
144
+ "type": "STATE",
145
+ "shape": [
146
+ 7
147
+ ]
148
+ },
149
+ "observation.environment_state": {
150
+ "type": "ENV",
151
+ "shape": [
152
+ 30
153
+ ]
154
+ }
155
+ },
156
+ "output_features": {
157
+ "action": {
158
+ "type": "ACTION",
159
+ "shape": [
160
+ 8
161
+ ]
162
+ }
163
+ },
164
+ "device": "cuda",
165
+ "use_amp": false,
166
+ "use_peft": false,
167
+ "push_to_hub": false,
168
+ "repo_id": null,
169
+ "private": null,
170
+ "tags": null,
171
+ "license": null,
172
+ "pretrained_path": null,
173
+ "pretrained_revision": null,
174
+ "chunk_size": 100,
175
+ "n_action_steps": 50,
176
+ "normalization_mapping": {
177
+ "VISUAL": "MEAN_STD",
178
+ "STATE": "MEAN_STD",
179
+ "ACTION": "MEAN_STD"
180
+ },
181
+ "vision_backbone": "resnet18",
182
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
183
+ "replace_final_stride_with_dilation": false,
184
+ "pre_norm": false,
185
+ "dim_model": 512,
186
+ "n_heads": 8,
187
+ "dim_feedforward": 3200,
188
+ "feedforward_activation": "relu",
189
+ "n_encoder_layers": 4,
190
+ "n_decoder_layers": 1,
191
+ "use_vae": true,
192
+ "latent_dim": 32,
193
+ "n_vae_encoder_layers": 4,
194
+ "temporal_ensemble_coeff": null,
195
+ "dropout": 0.1,
196
+ "kl_weight": 10.0,
197
+ "optimizer_lr": 1e-05,
198
+ "optimizer_weight_decay": 0.0001,
199
+ "optimizer_lr_backbone": 1e-05,
200
+ "haptic_dropout": 0.3,
201
+ "aux_phase_weight": 0.0,
202
+ "n_phases": 7,
203
+ "replan_weight": 1.0,
204
+ "replan_pos_weight": 20.0
205
+ },
206
+ "reward_model": null,
207
+ "output_dir": "/out/ft",
208
+ "job_name": "acthaptic",
209
+ "resume": false,
210
+ "seed": 1000,
211
+ "cudnn_deterministic": false,
212
+ "num_workers": 4,
213
+ "batch_size": 32,
214
+ "prefetch_factor": 4,
215
+ "persistent_workers": true,
216
+ "steps": 200000,
217
+ "env_eval_freq": 20000,
218
+ "log_freq": 200,
219
+ "eval_steps": 0,
220
+ "max_eval_samples": 0,
221
+ "tolerance_s": 0.0001,
222
+ "save_checkpoint": true,
223
+ "save_freq": 10000,
224
+ "use_policy_training_preset": true,
225
+ "optimizer": {
226
+ "type": "adamw",
227
+ "lr": 1e-05,
228
+ "weight_decay": 0.0001,
229
+ "grad_clip_norm": 10.0,
230
+ "betas": [
231
+ 0.9,
232
+ 0.999
233
+ ],
234
+ "eps": 1e-08
235
+ },
236
+ "scheduler": null,
237
+ "eval": {
238
+ "n_episodes": 50,
239
+ "batch_size": 18,
240
+ "use_async_envs": true,
241
+ "recording": false,
242
+ "recording_repo_id": null,
243
+ "recording_private": false,
244
+ "max_episodes_rendered": 10
245
+ },
246
+ "wandb": {
247
+ "enable": false,
248
+ "disable_artifact": false,
249
+ "project": "lerobot",
250
+ "entity": null,
251
+ "notes": null,
252
+ "run_id": null,
253
+ "mode": null,
254
+ "add_tags": true
255
+ },
256
+ "peft": null,
257
+ "job": {
258
+ "target": null,
259
+ "image": "huggingface/lerobot-gpu:latest",
260
+ "timeout": "2d",
261
+ "detach": false,
262
+ "tags": []
263
+ },
264
+ "save_checkpoint_to_hub": false,
265
+ "sample_weighting": null,
266
+ "dagger_sampling": null,
267
+ "rename_map": {},
268
+ "features": {
269
+ "image_keys": null,
270
+ "state_dims": null,
271
+ "action_dims": null
272
+ },
273
+ "checkpoint_path": null
274
+ }