ArthurGoldFishKing commited on
Commit
0791224
·
verified ·
1 Parent(s): e2e8388

Add normalization processors and train_config

Browse files
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
+ 7
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "MEAN_STD",
18
+ "STATE": "MIN_MAX",
19
+ "ACTION": "QUANTILES"
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
+ }
policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b152212518a6ca624b1f505884756c35f972f40e39313a945499d7b447c232e
3
+ size 6632
policy_preprocessor.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.wrist": {
27
+ "type": "VISUAL",
28
+ "shape": [
29
+ 3,
30
+ 256,
31
+ 256
32
+ ]
33
+ },
34
+ "observation.state": {
35
+ "type": "STATE",
36
+ "shape": [
37
+ 7
38
+ ]
39
+ },
40
+ "action": {
41
+ "type": "ACTION",
42
+ "shape": [
43
+ 7
44
+ ]
45
+ }
46
+ },
47
+ "norm_map": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MIN_MAX",
50
+ "ACTION": "QUANTILES"
51
+ }
52
+ },
53
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
54
+ }
55
+ ]
56
+ }
policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b7d654295acf22755ef8e8b16f729faf4aa8759532de220577849798e9470dc
3
+ size 6640
train_config.json ADDED
@@ -0,0 +1,382 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "arthur/fan_grasp",
4
+ "repo_type": "dataset",
5
+ "root": "/home/arthur/Documents/Arthur/Robotic/Robot_Friday/lerobot/data",
6
+ "episodes": [
7
+ 0,
8
+ 1,
9
+ 2,
10
+ 3,
11
+ 4,
12
+ 5,
13
+ 6,
14
+ 7,
15
+ 8,
16
+ 9,
17
+ 10,
18
+ 11,
19
+ 13,
20
+ 15,
21
+ 16,
22
+ 17,
23
+ 18,
24
+ 19,
25
+ 20,
26
+ 21,
27
+ 22,
28
+ 24,
29
+ 25,
30
+ 26,
31
+ 27,
32
+ 29,
33
+ 30,
34
+ 31,
35
+ 32,
36
+ 33,
37
+ 34,
38
+ 35,
39
+ 37,
40
+ 38,
41
+ 39,
42
+ 40,
43
+ 41,
44
+ 42,
45
+ 43,
46
+ 44,
47
+ 45,
48
+ 46,
49
+ 47,
50
+ 48,
51
+ 49,
52
+ 50,
53
+ 51,
54
+ 52,
55
+ 53,
56
+ 54,
57
+ 55,
58
+ 56,
59
+ 57,
60
+ 58,
61
+ 59,
62
+ 60,
63
+ 61,
64
+ 62,
65
+ 63,
66
+ 64,
67
+ 65,
68
+ 66,
69
+ 67,
70
+ 68,
71
+ 69,
72
+ 70,
73
+ 72,
74
+ 73,
75
+ 74,
76
+ 75,
77
+ 76,
78
+ 78,
79
+ 79,
80
+ 80,
81
+ 81,
82
+ 82,
83
+ 83,
84
+ 85,
85
+ 86,
86
+ 87,
87
+ 88,
88
+ 89,
89
+ 91,
90
+ 92,
91
+ 93,
92
+ 94,
93
+ 95
94
+ ],
95
+ "exclude_episodes": null,
96
+ "image_transforms": {
97
+ "enable": false,
98
+ "max_num_transforms": 3,
99
+ "random_order": false,
100
+ "tfs": {
101
+ "brightness": {
102
+ "weight": 1.0,
103
+ "type": "ColorJitter",
104
+ "kwargs": {
105
+ "brightness": [
106
+ 0.8,
107
+ 1.2
108
+ ]
109
+ }
110
+ },
111
+ "contrast": {
112
+ "weight": 1.0,
113
+ "type": "ColorJitter",
114
+ "kwargs": {
115
+ "contrast": [
116
+ 0.8,
117
+ 1.2
118
+ ]
119
+ }
120
+ },
121
+ "saturation": {
122
+ "weight": 1.0,
123
+ "type": "ColorJitter",
124
+ "kwargs": {
125
+ "saturation": [
126
+ 0.5,
127
+ 1.5
128
+ ]
129
+ }
130
+ },
131
+ "hue": {
132
+ "weight": 1.0,
133
+ "type": "ColorJitter",
134
+ "kwargs": {
135
+ "hue": [
136
+ -0.05,
137
+ 0.05
138
+ ]
139
+ }
140
+ },
141
+ "sharpness": {
142
+ "weight": 1.0,
143
+ "type": "SharpnessJitter",
144
+ "kwargs": {
145
+ "sharpness": [
146
+ 0.5,
147
+ 1.5
148
+ ]
149
+ }
150
+ },
151
+ "affine": {
152
+ "weight": 1.0,
153
+ "type": "RandomAffine",
154
+ "kwargs": {
155
+ "degrees": [
156
+ -5.0,
157
+ 5.0
158
+ ],
159
+ "translate": [
160
+ 0.05,
161
+ 0.05
162
+ ]
163
+ }
164
+ }
165
+ }
166
+ },
167
+ "revision": null,
168
+ "use_imagenet_stats": true,
169
+ "video_backend": "pyav",
170
+ "return_uint8": false,
171
+ "depth_output_unit": "mm",
172
+ "streaming": false,
173
+ "eval_split": 0.0
174
+ },
175
+ "env": null,
176
+ "policy": {
177
+ "type": "diffusion",
178
+ "n_obs_steps": 2,
179
+ "input_features": {
180
+ "observation.images.wrist": {
181
+ "type": "VISUAL",
182
+ "shape": [
183
+ 3,
184
+ 256,
185
+ 256
186
+ ]
187
+ },
188
+ "observation.state": {
189
+ "type": "STATE",
190
+ "shape": [
191
+ 7
192
+ ]
193
+ }
194
+ },
195
+ "output_features": {
196
+ "action": {
197
+ "type": "ACTION",
198
+ "shape": [
199
+ 7
200
+ ]
201
+ }
202
+ },
203
+ "device": "cuda",
204
+ "use_amp": false,
205
+ "use_peft": false,
206
+ "push_to_hub": false,
207
+ "repo_id": null,
208
+ "private": null,
209
+ "tags": null,
210
+ "license": null,
211
+ "pretrained_path": null,
212
+ "pretrained_revision": null,
213
+ "horizon": 16,
214
+ "n_action_steps": 8,
215
+ "normalization_mapping": {
216
+ "VISUAL": "MEAN_STD",
217
+ "STATE": "MIN_MAX",
218
+ "ACTION": "QUANTILES"
219
+ },
220
+ "drop_n_last_frames": 7,
221
+ "vision_backbone": "resnet18",
222
+ "resize_shape": null,
223
+ "crop_ratio": 1.0,
224
+ "crop_shape": [
225
+ 240,
226
+ 240
227
+ ],
228
+ "crop_is_random": true,
229
+ "pretrained_backbone_weights": null,
230
+ "use_group_norm": true,
231
+ "spatial_softmax_num_keypoints": 32,
232
+ "use_separate_rgb_encoder_per_camera": true,
233
+ "down_dims": [
234
+ 512,
235
+ 1024,
236
+ 2048
237
+ ],
238
+ "kernel_size": 5,
239
+ "n_groups": 8,
240
+ "diffusion_step_embed_dim": 128,
241
+ "use_film_scale_modulation": true,
242
+ "gradient_checkpointing": false,
243
+ "noise_scheduler_type": "DDIM",
244
+ "num_train_timesteps": 100,
245
+ "beta_schedule": "squaredcos_cap_v2",
246
+ "beta_start": 0.0001,
247
+ "beta_end": 0.02,
248
+ "prediction_type": "epsilon",
249
+ "clip_sample": true,
250
+ "clip_sample_range": 1.0,
251
+ "num_inference_steps": 10,
252
+ "compile_model": false,
253
+ "compile_mode": "reduce-overhead",
254
+ "do_mask_loss_for_padding": false,
255
+ "optimizer_lr": 0.0001,
256
+ "optimizer_betas": [
257
+ 0.95,
258
+ 0.999
259
+ ],
260
+ "optimizer_eps": 1e-08,
261
+ "optimizer_weight_decay": 1e-06,
262
+ "scheduler_name": "cosine",
263
+ "scheduler_warmup_steps": 500
264
+ },
265
+ "reward_model": null,
266
+ "output_dir": "/home/arthur/Documents/Arthur/Robotic/Robot_Friday/outputs/train/diffusion_fan_grasp",
267
+ "job_name": "diffusion_fan_grasp",
268
+ "resume": false,
269
+ "seed": 1000,
270
+ "cudnn_deterministic": false,
271
+ "num_workers": 8,
272
+ "batch_size": 32,
273
+ "prefetch_factor": 4,
274
+ "persistent_workers": true,
275
+ "dataloader_multiprocessing_context": "spawn",
276
+ "steps": 375000,
277
+ "env_eval_freq": 0,
278
+ "log_freq": 200,
279
+ "eval_steps": 0,
280
+ "max_eval_samples": 0,
281
+ "tolerance_s": 0.0001,
282
+ "save_checkpoint": true,
283
+ "save_freq": 10000,
284
+ "checkpoint_format": "safetensors",
285
+ "use_policy_training_preset": true,
286
+ "optimizer": {
287
+ "type": "adam",
288
+ "lr": 0.0001,
289
+ "weight_decay": 1e-06,
290
+ "grad_clip_norm": 10.0,
291
+ "betas": [
292
+ 0.95,
293
+ 0.999
294
+ ],
295
+ "eps": 1e-08
296
+ },
297
+ "scheduler": {
298
+ "type": "diffuser",
299
+ "num_warmup_steps": 500,
300
+ "name": "cosine"
301
+ },
302
+ "parallelism": {
303
+ "dp_replicate": 1,
304
+ "dp_shard": 1,
305
+ "context_parallel": {
306
+ "ring_degree": 1,
307
+ "ulysses_degree": 1
308
+ },
309
+ "cfg_parallel": 1
310
+ },
311
+ "accelerator": {
312
+ "mixed_precision": "no",
313
+ "gradient_accumulation": {
314
+ "steps": 1
315
+ },
316
+ "fsdp": {
317
+ "reshard_after_forward": true,
318
+ "wrap_modules": null,
319
+ "min_num_params": null,
320
+ "cpu_offload": false,
321
+ "ignored_modules": null
322
+ },
323
+ "ddp": {
324
+ "find_unused_parameters": true,
325
+ "gradient_as_bucket_view": false,
326
+ "static_graph": false
327
+ },
328
+ "compile": {
329
+ "enabled": false,
330
+ "backend": "inductor",
331
+ "mode": null,
332
+ "regional": true
333
+ },
334
+ "activation_checkpointing": {
335
+ "mode": "none"
336
+ }
337
+ },
338
+ "eval": {
339
+ "n_episodes": 50,
340
+ "batch_size": 19,
341
+ "use_async_envs": true,
342
+ "recording": false,
343
+ "recording_repo_id": null,
344
+ "recording_private": false
345
+ },
346
+ "ema": {
347
+ "enable": false,
348
+ "decay": null,
349
+ "update_after_step": 0,
350
+ "inv_gamma": 1.0,
351
+ "power": 0.75,
352
+ "min_decay": 0.0,
353
+ "max_decay": 0.9999,
354
+ "use_for_eval": true
355
+ },
356
+ "wandb": {
357
+ "enable": false,
358
+ "disable_artifact": false,
359
+ "project": "lerobot",
360
+ "entity": null,
361
+ "notes": null,
362
+ "run_id": null,
363
+ "resume": null,
364
+ "mode": null,
365
+ "console": "wrap",
366
+ "console_multipart": false,
367
+ "console_chunk_max_seconds": 0,
368
+ "add_tags": true
369
+ },
370
+ "peft": null,
371
+ "job": {
372
+ "target": null,
373
+ "image": "huggingface/lerobot-gpu:latest",
374
+ "timeout": "2d",
375
+ "detach": false,
376
+ "tags": []
377
+ },
378
+ "save_checkpoint_to_hub": false,
379
+ "sample_weighting": null,
380
+ "rename_map": {},
381
+ "checkpoint_path": null
382
+ }