serialexperimentsleon commited on
Commit
a6c0803
·
verified ·
1 Parent(s): 6d264f0

Add files using upload-large-folder tool

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