KelinLiIC commited on
Commit
da0e98e
·
verified ·
1 Parent(s): 4f03156

Add the dp model of pickcube

Browse files
ft_maniskill/pickcube/models/dp/config.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
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.contact_force": {
40
+ "type": "STATE",
41
+ "shape": [
42
+ 1
43
+ ]
44
+ }
45
+ },
46
+ "output_features": {
47
+ "action": {
48
+ "type": "ACTION",
49
+ "shape": [
50
+ 8
51
+ ]
52
+ }
53
+ },
54
+ "device": "cuda",
55
+ "use_amp": false,
56
+ "use_peft": false,
57
+ "push_to_hub": false,
58
+ "repo_id": null,
59
+ "private": null,
60
+ "tags": null,
61
+ "license": null,
62
+ "pretrained_path": null,
63
+ "pretrained_revision": null,
64
+ "horizon": 16,
65
+ "n_action_steps": 8,
66
+ "normalization_mapping": {
67
+ "VISUAL": "MEAN_STD",
68
+ "STATE": "MIN_MAX",
69
+ "ACTION": "MIN_MAX"
70
+ },
71
+ "drop_n_last_frames": 7,
72
+ "vision_backbone": "resnet18",
73
+ "resize_shape": null,
74
+ "crop_ratio": 1.0,
75
+ "crop_shape": [
76
+ 420,
77
+ 420
78
+ ],
79
+ "crop_is_random": true,
80
+ "pretrained_backbone_weights": null,
81
+ "use_group_norm": true,
82
+ "spatial_softmax_num_keypoints": 32,
83
+ "use_separate_rgb_encoder_per_camera": false,
84
+ "down_dims": [
85
+ 512,
86
+ 1024,
87
+ 2048
88
+ ],
89
+ "kernel_size": 5,
90
+ "n_groups": 8,
91
+ "diffusion_step_embed_dim": 128,
92
+ "use_film_scale_modulation": true,
93
+ "noise_scheduler_type": "DDPM",
94
+ "num_train_timesteps": 100,
95
+ "beta_schedule": "squaredcos_cap_v2",
96
+ "beta_start": 0.0001,
97
+ "beta_end": 0.02,
98
+ "prediction_type": "epsilon",
99
+ "clip_sample": true,
100
+ "clip_sample_range": 1.0,
101
+ "num_inference_steps": null,
102
+ "compile_model": false,
103
+ "compile_mode": "reduce-overhead",
104
+ "do_mask_loss_for_padding": false,
105
+ "optimizer_lr": 0.0001,
106
+ "optimizer_betas": [
107
+ 0.95,
108
+ 0.999
109
+ ],
110
+ "optimizer_eps": 1e-08,
111
+ "optimizer_weight_decay": 1e-06,
112
+ "scheduler_name": "cosine",
113
+ "scheduler_warmup_steps": 500
114
+ }
ft_maniskill/pickcube/models/dp/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2318977f2e6e5e975e387a0a4705e773ed5889b51e6816543dedabc5835c4172
3
+ size 1067234688
ft_maniskill/pickcube/models/dp/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": "MIN_MAX",
19
+ "ACTION": "MIN_MAX"
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/pickcube/models/dp/policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:995e67357bae2eb544a1e706a647324f99da6c67906129664387a0a6f239227a
3
+ size 12444
ft_maniskill/pickcube/models/dp/policy_preprocessor.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.contact_force": {
61
+ "type": "STATE",
62
+ "shape": [
63
+ 1
64
+ ]
65
+ },
66
+ "action": {
67
+ "type": "ACTION",
68
+ "shape": [
69
+ 8
70
+ ]
71
+ }
72
+ },
73
+ "norm_map": {
74
+ "VISUAL": "MEAN_STD",
75
+ "STATE": "MIN_MAX",
76
+ "ACTION": "MIN_MAX"
77
+ }
78
+ },
79
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
80
+ }
81
+ ]
82
+ }
ft_maniskill/pickcube/models/dp/policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97c2c9eada2edb378fabe0b38ad834b69a00feb6b84260bf3658ea846f1ba6db
3
+ size 12452
ft_maniskill/pickcube/models/dp/train_config.json ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "pickcube_vis-1000-raw",
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": "diffusion",
89
+ "n_obs_steps": 2,
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.contact_force": {
126
+ "type": "STATE",
127
+ "shape": [
128
+ 1
129
+ ]
130
+ }
131
+ },
132
+ "output_features": {
133
+ "action": {
134
+ "type": "ACTION",
135
+ "shape": [
136
+ 8
137
+ ]
138
+ }
139
+ },
140
+ "device": "cuda",
141
+ "use_amp": false,
142
+ "use_peft": false,
143
+ "push_to_hub": false,
144
+ "repo_id": null,
145
+ "private": null,
146
+ "tags": null,
147
+ "license": null,
148
+ "pretrained_path": null,
149
+ "pretrained_revision": null,
150
+ "horizon": 16,
151
+ "n_action_steps": 8,
152
+ "normalization_mapping": {
153
+ "VISUAL": "MEAN_STD",
154
+ "STATE": "MIN_MAX",
155
+ "ACTION": "MIN_MAX"
156
+ },
157
+ "drop_n_last_frames": 7,
158
+ "vision_backbone": "resnet18",
159
+ "resize_shape": null,
160
+ "crop_ratio": 1.0,
161
+ "crop_shape": [
162
+ 420,
163
+ 420
164
+ ],
165
+ "crop_is_random": true,
166
+ "pretrained_backbone_weights": null,
167
+ "use_group_norm": true,
168
+ "spatial_softmax_num_keypoints": 32,
169
+ "use_separate_rgb_encoder_per_camera": false,
170
+ "down_dims": [
171
+ 512,
172
+ 1024,
173
+ 2048
174
+ ],
175
+ "kernel_size": 5,
176
+ "n_groups": 8,
177
+ "diffusion_step_embed_dim": 128,
178
+ "use_film_scale_modulation": true,
179
+ "noise_scheduler_type": "DDPM",
180
+ "num_train_timesteps": 100,
181
+ "beta_schedule": "squaredcos_cap_v2",
182
+ "beta_start": 0.0001,
183
+ "beta_end": 0.02,
184
+ "prediction_type": "epsilon",
185
+ "clip_sample": true,
186
+ "clip_sample_range": 1.0,
187
+ "num_inference_steps": null,
188
+ "compile_model": false,
189
+ "compile_mode": "reduce-overhead",
190
+ "do_mask_loss_for_padding": false,
191
+ "optimizer_lr": 0.0001,
192
+ "optimizer_betas": [
193
+ 0.95,
194
+ 0.999
195
+ ],
196
+ "optimizer_eps": 1e-08,
197
+ "optimizer_weight_decay": 1e-06,
198
+ "scheduler_name": "cosine",
199
+ "scheduler_warmup_steps": 500
200
+ },
201
+ "reward_model": null,
202
+ "output_dir": "/out/dp",
203
+ "job_name": "diffusion",
204
+ "resume": false,
205
+ "seed": 1000,
206
+ "cudnn_deterministic": false,
207
+ "num_workers": 4,
208
+ "batch_size": 32,
209
+ "prefetch_factor": 4,
210
+ "persistent_workers": true,
211
+ "steps": 150000,
212
+ "env_eval_freq": 20000,
213
+ "log_freq": 200,
214
+ "eval_steps": 0,
215
+ "max_eval_samples": 0,
216
+ "tolerance_s": 0.0001,
217
+ "save_checkpoint": true,
218
+ "save_freq": 7500,
219
+ "use_policy_training_preset": true,
220
+ "optimizer": {
221
+ "type": "adam",
222
+ "lr": 0.0001,
223
+ "weight_decay": 1e-06,
224
+ "grad_clip_norm": 10.0,
225
+ "betas": [
226
+ 0.95,
227
+ 0.999
228
+ ],
229
+ "eps": 1e-08
230
+ },
231
+ "scheduler": {
232
+ "type": "diffuser",
233
+ "num_warmup_steps": 500,
234
+ "name": "cosine"
235
+ },
236
+ "eval": {
237
+ "n_episodes": 50,
238
+ "batch_size": 18,
239
+ "use_async_envs": true,
240
+ "recording": false,
241
+ "recording_repo_id": null,
242
+ "recording_private": false,
243
+ "max_episodes_rendered": 10
244
+ },
245
+ "wandb": {
246
+ "enable": false,
247
+ "disable_artifact": false,
248
+ "project": "lerobot",
249
+ "entity": null,
250
+ "notes": null,
251
+ "run_id": null,
252
+ "mode": null,
253
+ "add_tags": true
254
+ },
255
+ "peft": null,
256
+ "job": {
257
+ "target": null,
258
+ "image": "huggingface/lerobot-gpu:latest",
259
+ "timeout": "2d",
260
+ "detach": false,
261
+ "tags": []
262
+ },
263
+ "save_checkpoint_to_hub": false,
264
+ "sample_weighting": null,
265
+ "dagger_sampling": null,
266
+ "rename_map": {},
267
+ "features": {
268
+ "image_keys": null,
269
+ "state_dims": null,
270
+ "action_dims": null
271
+ },
272
+ "checkpoint_path": null
273
+ }