serialexperimentsleon commited on
Commit
6394f66
·
verified ·
1 Parent(s): 10e6e39

Add files using upload-large-folder tool

Browse files
Files changed (5) hide show
  1. config.yaml +450 -0
  2. snapshot_3499.pt +3 -0
  3. snapshot_3749.pt +3 -0
  4. snapshot_3999.pt +3 -0
  5. snapshot_last.pt +3 -0
config.yaml ADDED
@@ -0,0 +1,450 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ root_dir: /mnt/kostas-graid/datasets/extrinsic_contact_data
2
+ replay_buffer_size: 150000
3
+ replay_buffer_num_workers: 2
4
+ nstep: 3
5
+ batch_size: 128
6
+ seed: 0
7
+ device: cuda
8
+ save_video: true
9
+ save_train_video: true
10
+ use_tb: true
11
+ use_wandb: true
12
+ wandb_run_id: '265469'
13
+ wandb_notes: '265469_'
14
+ eval: false
15
+ process_contact_features: ${eval}
16
+ obs_type: pixels
17
+ use_color: true
18
+ use_depth: true
19
+ use_masks: true
20
+ mask_list:
21
+ - EE_obj_mask
22
+ mask_representation: channels
23
+ crop_hw:
24
+ - 144
25
+ - 144
26
+ crop_down_offset: 48
27
+ color_crop_type: null
28
+ depth_crop_type: null
29
+ segmask_crop_type: null
30
+ add_crop_binary_mask: false
31
+ add_coord_conv_map: false
32
+ use_context_color: false
33
+ use_context_depth: false
34
+ use_context_segmask: false
35
+ context_color_crop_type: null
36
+ context_depth_crop_type: null
37
+ context_segmask_crop_type: null
38
+ context_add_crop_binary_mask: false
39
+ context_add_coord_conv_map: false
40
+ use_contact_map: true
41
+ use_sdf_maps: true
42
+ use_normals_maps: true
43
+ which_objects: both
44
+ max_contact_prob: 0.1
45
+ max_depth: 2.0
46
+ grasped_dtc_max_value: 0.2
47
+ env_dtc_max_value: 0.4
48
+ grasped_normals_mask_max_dtc_value: 0.2
49
+ env_normals_mask_max_dtc_value: 0.4
50
+ clamp_dtc: true
51
+ dtc_adaptive_normalization: false
52
+ mask_normals_within_sdf: true
53
+ adaptive_normals_mask: true
54
+ learnable_contact_preprocess_params: true
55
+ contact_model_name: local_multitask_outhd64all_home_crop_h144w144d48_mask_ctxtmask_seed_220979_epoch_9
56
+ contact_estimation_model_ckpt_path: ~/fish_leon/contact_estimation/artifacts/175604_2/checkpoints/epoch=09-val_loss=0.00.ckpt
57
+ encoder_type: small
58
+ debug_timestamps: false
59
+ open_loop: false
60
+ action_trajectories: true
61
+ stop_after_action: false
62
+ interpolation_frequency: 25
63
+ policy_frequency: 5
64
+ wait_for_new_camera_frames: true
65
+ baseline: false
66
+ train_demo_idxs_list_or_num: -1
67
+ log_train_every_steps: 25
68
+ name_of_expert_demo: 54_240x320_hbm_twodim_fps_fix_annotated_start_idx_5hz_zstd7_EE_pxl_coords_expert_demos_imp_act
69
+ expert_dataset_dirpath: ${root_dir}/FISH/expert_demos/${suite.name}/${task_name}/${name_of_expert_demo}
70
+ store_dataset_in_memory: false
71
+ expert_dataset: ${expert_dataset_dirpath}/demos.zarr
72
+ action_key: ${oc.if_else:${action_trajectories}, 'action_trajectory_${interpolation_frequency}hz',
73
+ 'action'}
74
+ semantic_demo_grouping_name: semantic_demo_grouping.yaml
75
+ semantic_demo_grouping: ${expert_dataset_dirpath}/${semantic_demo_grouping_name}
76
+ include_groups_list:
77
+ - hbm_twodim
78
+ expert_dataset_config: ${expert_dataset_dirpath}/demo_config.yaml
79
+ name_of_valid_demo: 54_240x320_hbm_twodim_fps_fix_annotated_start_idx_5hz_zstd7_EE_pxl_coords_expert_demos_imp_act
80
+ valid_dataset_dir: ${root_dir}/FISH/expert_demos/${suite.name}/${task_name}/${name_of_valid_demo}/demos.zarr
81
+ valid_demo_idxs_list_or_num: null
82
+ val_num_groups: 0
83
+ load_bc: ${agent.load_checkpoint}
84
+ checkpoint_epoch_list:
85
+ - 99
86
+ - 199
87
+ - 299
88
+ - 399
89
+ - 499
90
+ - 599
91
+ - 699
92
+ - 799
93
+ - 899
94
+ - 999
95
+ - 1249
96
+ - 1499
97
+ - 1749
98
+ - 1999
99
+ - 2999
100
+ - 3999
101
+ - 4999
102
+ - 5999
103
+ - 6999
104
+ - 7999
105
+ - 8999
106
+ - 9999
107
+ snapshot_root_dir: /mnt/grasp_high_usage/leonmkim/contact_estimation/FISH
108
+ save_snapshot: true
109
+ save_last_snapshot: true
110
+ save_snapshot_when_done: true
111
+ top_k_checkpoints: 5
112
+ save_snapshot_link_to_weights_dir: deprecated
113
+ bc_regularize: false
114
+ bc_weight_type: qfilter
115
+ experiment_dir: ./exp_local/${suite.name}_${obs_type}/${task_name}/${wandb_run_id}
116
+ agent:
117
+ _target_: agent.diffusion_policy.DiffusionPolicyAgent
118
+ name: diffusion_policy
119
+ load_checkpoint: ${eval}
120
+ obs_shape:
121
+ - 14
122
+ - 240
123
+ - 320
124
+ action_shape:
125
+ - 36
126
+ - 7
127
+ device: ${device}
128
+ n_obs_steps: ${.config.policy_cfg.n_obs_steps}
129
+ suite_name: ${suite.name}
130
+ obs_type: ${obs_type}
131
+ enable_arm: ${eval}
132
+ enable_camera: ${eval}
133
+ use_tb: ${use_tb}
134
+ desired_image_shape:
135
+ - 13
136
+ - 180
137
+ - 240
138
+ orig_cam_shape:
139
+ - 3
140
+ - 240
141
+ - 320
142
+ config:
143
+ _target_: agent.diffusion_policy.DiffusionPolicyAgentConfig
144
+ compile: false
145
+ device: ${device}
146
+ cam_resize_shape: ${agent.desired_image_shape}
147
+ orig_cam_shape: ${agent.orig_cam_shape}
148
+ policy_cfg:
149
+ _target_: lerobot.common.policies.diffusion.configuration_diffusion.DiffusionConfig
150
+ n_obs_steps: 1
151
+ horizon: 36
152
+ n_action_steps: ${agent.config.policy_cfg.horizon}
153
+ output_shapes:
154
+ action:
155
+ - 7
156
+ input_normalization_modes:
157
+ observation.image: mean_std
158
+ observation.state: min_max
159
+ observation.action_history: min_max
160
+ output_normalization_modes:
161
+ action: min_max
162
+ vision_backbone: resnet18
163
+ pretrained_backbone_weights: null
164
+ transforms:
165
+ - _target_: torchaug.transforms.RandomAffine
166
+ degrees:
167
+ - -5
168
+ - 5
169
+ translate:
170
+ - 0.05
171
+ - 0.05
172
+ batch_transform: true
173
+ num_chunks: -1
174
+ batch_inplace: true
175
+ - _target_: torchaug.transforms.RandomColorJitter
176
+ brightness: 0.3
177
+ contrast: 0.4
178
+ saturation: 0.5
179
+ hue: 0.08
180
+ batch_transform: true
181
+ num_chunks: -1
182
+ batch_inplace: true
183
+ use_group_norm: true
184
+ spatial_softmax_num_keypoints: 32
185
+ action_history_encoder_config:
186
+ _target_: lerobot.common.policies.diffusion.configuration_diffusion.Unet1dEncoderConfig
187
+ in_channels: 7
188
+ out_channels: 32
189
+ history_length: 4
190
+ kernel_size: ${agent.config.policy_cfg.kernel_size}
191
+ downsample_kernel_size: 3
192
+ downsample_stride: 2
193
+ downsample_padding: 1
194
+ down_dims:
195
+ - 256
196
+ - 512
197
+ - 1024
198
+ kernel_size: 5
199
+ n_groups: 8
200
+ diffusion_step_embed_dim: 128
201
+ use_film_scale_modulation: true
202
+ noise_scheduler_type: DDIM
203
+ beta_schedule: squaredcos_cap_v2
204
+ beta_start: 0.0001
205
+ beta_end: 0.02
206
+ prediction_type: epsilon
207
+ clip_sample: true
208
+ clip_sample_range: 1.0
209
+ num_train_timesteps: 50
210
+ num_inference_steps: 10
211
+ do_mask_loss_for_padding: false
212
+ input_shapes:
213
+ observation.image:
214
+ - 13
215
+ - 180
216
+ - 240
217
+ context_observation.image:
218
+ - 13
219
+ - 180
220
+ - 240
221
+ observation.state:
222
+ - 8
223
+ observation.action_history:
224
+ - 7
225
+ train_cfg:
226
+ _target_: utils.TrainConfig
227
+ lr: 0.0001
228
+ lr_scheduler: cosine
229
+ lr_warmup_steps: 500
230
+ adam_betas:
231
+ - 0.95
232
+ - 0.999
233
+ adam_eps: 1.0e-08
234
+ adam_weight_decay: 1.0e-06
235
+ grad_clip_norm: 10
236
+ offline_steps: ${num_train_frames_diffusion}
237
+ use_amp: true
238
+ observation_cfg:
239
+ _target_: agent.encoder.VisualFeatureSet
240
+ use_depth: ${use_depth}
241
+ use_color: ${use_color}
242
+ mask_input_dict:
243
+ _target_: agent.encoder.MaskInputDict
244
+ enable: ${use_masks}
245
+ representation: ${mask_representation}
246
+ mask_list: ${mask_list}
247
+ crop_input_config:
248
+ _target_: agent.encoder.CropInputConfig
249
+ color_crop_type: ${color_crop_type}
250
+ depth_crop_type: ${depth_crop_type}
251
+ segmask_crop_type: ${segmask_crop_type}
252
+ crop_hw: ${crop_hw}
253
+ crop_down_offset: ${crop_down_offset}
254
+ add_crop_binary_mask: ${add_crop_binary_mask}
255
+ add_coord_conv_map: ${add_coord_conv_map}
256
+ context_input_config:
257
+ _target_: agent.encoder.ContextInputConfig
258
+ use_color: ${use_context_color}
259
+ use_depth: ${use_context_depth}
260
+ mask_input_dict:
261
+ _target_: agent.encoder.MaskInputDict
262
+ enable: ${use_context_segmask}
263
+ representation: ${mask_representation}
264
+ mask_list: ${mask_list}
265
+ crop_input_config:
266
+ _target_: agent.encoder.CropInputConfig
267
+ color_crop_type: ${context_color_crop_type}
268
+ depth_crop_type: ${context_depth_crop_type}
269
+ segmask_crop_type: ${context_segmask_crop_type}
270
+ crop_hw: ${crop_hw}
271
+ crop_down_offset: ${crop_down_offset}
272
+ add_crop_binary_mask: ${context_add_crop_binary_mask}
273
+ add_coord_conv_map: ${context_add_coord_conv_map}
274
+ mask_soft_approx_scheduler_config:
275
+ _target_: agent.encoder.MaskSoftApproxSchedulerConfig
276
+ num_steps: 40000
277
+ initial_value: 10.0
278
+ final_value: 1000.0
279
+ interpolation_scheme: cosine
280
+ use_contact_map: ${use_contact_map}
281
+ use_sdf_maps: ${use_sdf_maps}
282
+ use_normals_maps: ${use_normals_maps}
283
+ which_objects: ${which_objects}
284
+ grasped_dtc_max_value: ${grasped_dtc_max_value}
285
+ env_dtc_max_value: ${env_dtc_max_value}
286
+ grasped_normals_mask_max_dtc_value: ${grasped_normals_mask_max_dtc_value}
287
+ env_normals_mask_max_dtc_value: ${env_normals_mask_max_dtc_value}
288
+ clamp_dtc: ${clamp_dtc}
289
+ max_contact_prob: ${max_contact_prob}
290
+ mask_normals_within_sdf: ${mask_normals_within_sdf}
291
+ dtc_adaptive_normalization: ${dtc_adaptive_normalization}
292
+ adaptive_normals_mask: ${adaptive_normals_mask}
293
+ max_depth: ${max_depth}
294
+ image_shape: ${agent.desired_image_shape}
295
+ learnable_contact_preprocess_params: ${learnable_contact_preprocess_params}
296
+ learning_rate: 0.0001
297
+ weight_decay: 0.0
298
+ contact_model_name: ${contact_model_name}
299
+ zero_centered: false
300
+ suite:
301
+ suite: frankagym
302
+ name: frankagym
303
+ frame_stack: ${agent.n_obs_steps}
304
+ action_repeat: 1
305
+ discount: 0.99
306
+ hidden_dim: 1024
307
+ num_train_frames: 1000000
308
+ num_seed_frames: 0
309
+ num_train_epochs: 15000
310
+ validate_every_epochs: 250
311
+ validate_diffusion_on_action_loss_every_epochs: 250
312
+ train_eval_diffusion_on_action_loss_every_epochs: 250
313
+ check_topk_every_epochs: 250
314
+ save_snapshot_every_epochs: 1500
315
+ eval_every_frames: 2000
316
+ num_eval_episodes: 5
317
+ save_snapshot: true
318
+ wait_for_user_to_start_episode: true
319
+ task_make_fn:
320
+ _target_: suite.frankagym.make
321
+ name: ${task_name}
322
+ height: 240
323
+ width: 320
324
+ frame_stack: ${suite.frame_stack}
325
+ action_repeat: ${suite.action_repeat}
326
+ seed: ${seed}
327
+ enable_arm: ${agent.enable_arm}
328
+ enable_gripper: ${enable_gripper}
329
+ start_with_gripper_open: ${start_with_gripper_open}
330
+ enable_camera: ${agent.enable_camera}
331
+ path_to_depth_extrinsics: ${path_to_depth_extrinsics}
332
+ contact_estimation_model_ckpt_path: ${contact_estimation_model_ckpt_path}
333
+ x_limit: ${x_limit}
334
+ y_limit: ${y_limit}
335
+ z_limit: ${z_limit}
336
+ device: ${device}
337
+ interpolation_frequency: ${interpolation_frequency}
338
+ policy_frequency: ${policy_frequency}
339
+ debug_timestamps: ${debug_timestamps}
340
+ stop_after_action: ${stop_after_action}
341
+ open_loop: ${open_loop}
342
+ wait_for_new_camera_frames: ${wait_for_new_camera_frames}
343
+ action_key: ${action_key}
344
+ action_trajectory_horizon: ${agent.config.policy_cfg.horizon}
345
+ action_trajectories: ${action_trajectories}
346
+ path_to_zarr_dataset: ${expert_dataset}
347
+ observation_cfg:
348
+ _target_: agent.encoder.VisualFeatureSet
349
+ use_depth: ${use_depth}
350
+ use_color: ${use_color}
351
+ mask_input_dict:
352
+ _target_: agent.encoder.MaskInputDict
353
+ enable: ${use_masks}
354
+ representation: ${mask_representation}
355
+ mask_list: ${mask_list}
356
+ crop_input_config:
357
+ _target_: agent.encoder.CropInputConfig
358
+ color_crop_type: ${color_crop_type}
359
+ depth_crop_type: ${depth_crop_type}
360
+ segmask_crop_type: ${segmask_crop_type}
361
+ crop_hw: ${crop_hw}
362
+ crop_down_offset: ${crop_down_offset}
363
+ add_crop_binary_mask: ${add_crop_binary_mask}
364
+ add_coord_conv_map: ${add_coord_conv_map}
365
+ context_input_config:
366
+ _target_: agent.encoder.ContextInputConfig
367
+ use_color: ${use_context_color}
368
+ use_depth: ${use_context_depth}
369
+ mask_input_dict:
370
+ _target_: agent.encoder.MaskInputDict
371
+ enable: ${use_context_segmask}
372
+ representation: ${mask_representation}
373
+ mask_list: ${mask_list}
374
+ crop_input_config:
375
+ _target_: agent.encoder.CropInputConfig
376
+ color_crop_type: ${context_color_crop_type}
377
+ depth_crop_type: ${context_depth_crop_type}
378
+ segmask_crop_type: ${context_segmask_crop_type}
379
+ crop_hw: ${crop_hw}
380
+ crop_down_offset: ${crop_down_offset}
381
+ add_crop_binary_mask: ${context_add_crop_binary_mask}
382
+ add_coord_conv_map: ${context_add_coord_conv_map}
383
+ mask_soft_approx_scheduler_config:
384
+ _target_: agent.encoder.MaskSoftApproxSchedulerConfig
385
+ num_steps: 40000
386
+ initial_value: 10.0
387
+ final_value: 1000.0
388
+ interpolation_scheme: cosine
389
+ use_contact_map: ${use_contact_map}
390
+ use_sdf_maps: ${use_sdf_maps}
391
+ use_normals_maps: ${use_normals_maps}
392
+ which_objects: ${which_objects}
393
+ grasped_dtc_max_value: ${grasped_dtc_max_value}
394
+ env_dtc_max_value: ${env_dtc_max_value}
395
+ grasped_normals_mask_max_dtc_value: ${grasped_normals_mask_max_dtc_value}
396
+ env_normals_mask_max_dtc_value: ${env_normals_mask_max_dtc_value}
397
+ clamp_dtc: ${clamp_dtc}
398
+ max_contact_prob: ${max_contact_prob}
399
+ mask_normals_within_sdf: ${mask_normals_within_sdf}
400
+ dtc_adaptive_normalization: ${dtc_adaptive_normalization}
401
+ adaptive_normals_mask: ${adaptive_normals_mask}
402
+ max_depth: ${max_depth}
403
+ image_shape: ${agent.desired_image_shape}
404
+ learnable_contact_preprocess_params: ${learnable_contact_preprocess_params}
405
+ learning_rate: 0.0001
406
+ weight_decay: 0.0
407
+ contact_model_name: ${contact_model_name}
408
+ zero_centered: false
409
+ num_train_frames_bc: 50000
410
+ num_train_frames_drq: 1100000
411
+ stddev_schedule_drq: linear(1.0,0.1,100000)
412
+ task_name: FrankaInsertion-v1
413
+ num_train_frames_vinn: 25000
414
+ num_train_frames_diffusion: 1000000
415
+ num_train_epochs_bc: 5000
416
+ num_train_epochs_diffusion: 15000
417
+ validate_every_epochs_bc: 5
418
+ validate_every_epochs_diffusion: 250
419
+ validate_diffusion_on_action_loss_every_epochs: 250
420
+ train_eval_diffusion_on_action_loss_every_epochs: 250
421
+ check_topk_every_epochs: 5
422
+ check_topk_every_epochs_diffusion: 250
423
+ save_snapshot_every_epochs_diffusion: 1500
424
+ x_limit:
425
+ - 0.2
426
+ - 0.7
427
+ y_limit:
428
+ - -0.4
429
+ - 0.4
430
+ z_limit:
431
+ - -0.05
432
+ - 0.55
433
+ home_displacement:
434
+ - 0.55
435
+ - 0.0
436
+ - 0.55
437
+ - 180.0
438
+ - 0.0
439
+ - 0.0
440
+ enable_gripper: true
441
+ start_with_gripper_open: true
442
+ offset_mask:
443
+ - 1
444
+ - 1
445
+ - 1
446
+ - 1
447
+ - 1
448
+ - 1
449
+ path_to_depth_extrinsics: ~/fish_leon/FISH/cfgs/camera_poses/camera_poses_L515/20240904-122305/color_tf_world.npy
450
+ feature_type: 180x240_1_RGB_D_2.0_msk_channels_EE_obj_mask_cntct_0.1_DTC_clmpd_lrnbl_nrmls_DTCmask_adpt_lrnbl_both_lr_0.0001_wd_0.0_local_multitask_outhd64all_home_crop_h144w144d48_mask_ctxtmask_seed_220979_epoch_9_acthst_hst4_out32_dwnkrnl3_dwnstrd2_dwnpd1
snapshot_3499.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbc9ed020919f60745870d4f5357dd609356ff1b7e725596477fbf01e8a9ac88
3
+ size 909098584
snapshot_3749.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2619df7111d393588730e68f3007028422f05b6eb90d70820c35bb89e6c5e726
3
+ size 909098584
snapshot_3999.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:010e3878ac50d27fcf65c739e91af3ad3074802944e665687fb76ee8e7ccb391
3
+ size 909098584
snapshot_last.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:010e3878ac50d27fcf65c739e91af3ad3074802944e665687fb76ee8e7ccb391
3
+ size 909098584