serialexperimentsleon commited on
Commit
358a344
·
verified ·
1 Parent(s): 890eeb9

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. config.yaml +647 -0
  2. videos/80602_0/epoch_20/0_traj_1000000_envseed.mp4 +0 -0
  3. videos/80602_0/epoch_20/10_traj_1000010_envseed.mp4 +0 -0
  4. videos/80602_0/epoch_20/11_traj_1000011_envseed.mp4 +0 -0
  5. videos/80602_0/epoch_20/14_traj_1000014_envseed.mp4 +0 -0
  6. videos/80602_0/epoch_20/15_traj_1000015_envseed.mp4 +0 -0
  7. videos/80602_0/epoch_20/16_traj_1000016_envseed.mp4 +0 -0
  8. videos/80602_0/epoch_20/17_traj_1000017_envseed.mp4 +0 -0
  9. videos/80602_0/epoch_20/19_traj_1000019_envseed.mp4 +0 -0
  10. videos/80602_0/epoch_20/1_traj_1000001_envseed.mp4 +0 -0
  11. videos/80602_0/epoch_20/20_traj_1000020_envseed.mp4 +0 -0
  12. videos/80602_0/epoch_20/21_traj_1000021_envseed.mp4 +0 -0
  13. videos/80602_0/epoch_20/22_traj_1000022_envseed.mp4 +0 -0
  14. videos/80602_0/epoch_20/24_traj_1000024_envseed.mp4 +0 -0
  15. videos/80602_0/epoch_20/26_traj_1000026_envseed.mp4 +0 -0
  16. videos/80602_0/epoch_20/29_traj_1000029_envseed.mp4 +0 -0
  17. videos/80602_0/epoch_20/2_traj_1000002_envseed.mp4 +0 -0
  18. videos/80602_0/epoch_20/30_traj_1000030_envseed.mp4 +0 -0
  19. videos/80602_0/epoch_20/31_traj_1000031_envseed.mp4 +0 -0
  20. videos/80602_0/epoch_20/32_traj_1000032_envseed.mp4 +0 -0
  21. videos/80602_0/epoch_20/33_traj_1000033_envseed.mp4 +0 -0
  22. videos/80602_0/epoch_20/34_traj_1000034_envseed.mp4 +0 -0
  23. videos/80602_0/epoch_20/35_traj_1000035_envseed.mp4 +0 -0
  24. videos/80602_0/epoch_20/36_traj_1000036_envseed.mp4 +0 -0
  25. videos/80602_0/epoch_20/37_traj_1000037_envseed.mp4 +0 -0
  26. videos/80602_0/epoch_20/38_traj_1000038_envseed.mp4 +0 -0
  27. videos/80602_0/epoch_20/39_traj_1000039_envseed.mp4 +0 -0
  28. videos/80602_0/epoch_20/40_traj_1000040_envseed.mp4 +0 -0
  29. videos/80602_0/epoch_20/41_traj_1000041_envseed.mp4 +0 -0
  30. videos/80602_0/epoch_20/43_traj_1000043_envseed.mp4 +0 -0
  31. videos/80602_0/epoch_20/44_traj_1000044_envseed.mp4 +0 -0
  32. videos/80602_0/epoch_20/45_traj_1000045_envseed.mp4 +0 -0
  33. videos/80602_0/epoch_20/47_traj_1000047_envseed.mp4 +0 -0
  34. videos/80602_0/epoch_20/48_traj_1000048_envseed.mp4 +0 -0
  35. videos/80602_0/epoch_20/49_traj_1000049_envseed.mp4 +0 -0
  36. videos/80602_0/epoch_20/4_traj_1000004_envseed.mp4 +0 -0
  37. videos/80602_0/epoch_20/52_traj_1000052_envseed.mp4 +0 -0
  38. videos/80602_0/epoch_20/54_traj_1000054_envseed.mp4 +0 -0
  39. videos/80602_0/epoch_20/55_traj_1000055_envseed.mp4 +0 -0
  40. videos/80602_0/epoch_20/56_traj_1000056_envseed.mp4 +0 -0
  41. videos/80602_0/epoch_20/57_traj_1000057_envseed.mp4 +0 -0
  42. videos/80602_0/epoch_20/59_traj_1000059_envseed.mp4 +0 -0
  43. videos/80602_0/epoch_20/5_traj_1000005_envseed.mp4 +0 -0
  44. videos/80602_0/epoch_20/60_traj_1000060_envseed.mp4 +0 -0
  45. videos/80602_0/epoch_20/61_traj_1000061_envseed.mp4 +0 -0
  46. videos/80602_0/epoch_20/62_traj_1000062_envseed.mp4 +0 -0
  47. videos/80602_0/epoch_20/63_traj_1000063_envseed.mp4 +0 -0
  48. videos/80602_0/epoch_20/64_traj_1000064_envseed.mp4 +0 -0
  49. videos/80602_0/epoch_20/65_traj_1000065_envseed.mp4 +0 -0
  50. videos/80602_0/epoch_20/66_traj_1000066_envseed.mp4 +0 -0
config.yaml ADDED
@@ -0,0 +1,647 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: ${seed}
8
+ valid_dataset_shuffle_seed: 0
9
+ train_dataset_shuffle_seed: 0
10
+ device: cuda
11
+ save_video: true
12
+ save_train_video: true
13
+ use_tb: true
14
+ use_wandb: true
15
+ wandb_run_id: '80602_0'
16
+ wandb_notes: 80602_0_req_82977_0
17
+ eval: false
18
+ eval_on_sim: true
19
+ eval_on_sim_past_checkpoints: false
20
+ simulation: true
21
+ true_action_history: false
22
+ train_pad_after: 4
23
+ process_contact_features: ${eval}
24
+ obs_type: pixels
25
+ use_color: true
26
+ use_depth: true
27
+ use_masks: false
28
+ mask_list:
29
+ - EE_obj_mask
30
+ mask_representation: channels
31
+ segmentation_model_name: gt_segmentation
32
+ crop_hw:
33
+ - 144
34
+ - 144
35
+ crop_down_offset: 48
36
+ color_crop_type: null
37
+ depth_crop_type: null
38
+ segmask_crop_type: null
39
+ add_crop_binary_mask: false
40
+ add_coord_conv_map: false
41
+ use_context_color: false
42
+ use_context_depth: false
43
+ use_context_segmask: false
44
+ context_color_crop_type: null
45
+ context_depth_crop_type: null
46
+ context_segmask_crop_type: null
47
+ context_add_crop_binary_mask: false
48
+ context_add_coord_conv_map: false
49
+ use_contact_map: false
50
+ use_sdf_maps: false
51
+ use_normals_maps: false
52
+ which_objects: both
53
+ max_contact_prob: 1.0
54
+ max_depth: 2.0
55
+ grasped_dtc_max_value: 0.2
56
+ env_dtc_max_value: 0.4
57
+ grasped_normals_mask_max_dtc_value: 0.2
58
+ env_normals_mask_max_dtc_value: 0.4
59
+ clamp_dtc: true
60
+ dtc_adaptive_normalization: false
61
+ mask_normals_within_sdf: true
62
+ adaptive_normals_mask: true
63
+ learnable_contact_preprocess_params: false
64
+ contact_model_name: gt_contact
65
+ contact_estimation_model_ckpt_path: ~/fish_leon/contact_estimation/artifacts/175604_2/checkpoints/epoch=09-val_loss=0.00.ckpt
66
+ encoder_type: small
67
+ debug_timestamps: false
68
+ open_loop: false
69
+ action_trajectories: true
70
+ stop_after_action: false
71
+ interpolation_frequency: 25
72
+ policy_frequency: 5
73
+ wait_for_new_camera_frames: true
74
+ baseline: false
75
+ use_num_train_epochs_to_determine_lr_schedule: true
76
+ grasped_book_config:
77
+ randomize_color: false
78
+ randomize_density: false
79
+ density_randomization_bounds:
80
+ - 650
81
+ - 850
82
+ randomize_height: false
83
+ height_randomization_bounds:
84
+ - 0.165
85
+ - 0.25
86
+ randomize_width: false
87
+ width_randomization_bounds:
88
+ - 0.03
89
+ - 0.065
90
+ randomize_length: false
91
+ length_randomization_bounds:
92
+ - 0.1
93
+ - 0.15
94
+ env_books_config:
95
+ num_env_books: 8
96
+ randomize_color: false
97
+ randomize_density: false
98
+ density_randomization_bounds:
99
+ - 655
100
+ - 1015
101
+ randomize_height: false
102
+ height_randomization_bounds:
103
+ - 0.2475
104
+ - 0.2525
105
+ randomize_width: false
106
+ width_randomization_bounds:
107
+ - 0.015
108
+ - 0.05
109
+ randomize_length: false
110
+ length_randomization_bounds:
111
+ - 0.15
112
+ - 0.2
113
+ shuffle_mode: none
114
+ slot_config:
115
+ negative_tolerance: 0.0035
116
+ left_of_book_index: 4
117
+ y_randomization_bounds:
118
+ - -0.05
119
+ - 0.05
120
+ book_ends_config:
121
+ mode: spring
122
+ length: 0.2
123
+ width: 0.025
124
+ height: 0.25
125
+ mass: 1.0
126
+ color: '#808080'
127
+ friction: 0.0
128
+ wall_height: 0.25
129
+ wall_length: 0.2
130
+ wall_width: 0.025
131
+ travel_limit: 0.125
132
+ joint_stiffness: 100.0
133
+ joint_damping: 20.0
134
+ record_sim_videos: true
135
+ resume_wandb_run: true
136
+ train_demo_idxs_list_or_num: -1
137
+ log_train_every_steps: 25
138
+ name_of_expert_demo: 206_sim_demos_leftof4thbook_springbookends_nograspedrand_noenvrand_slotrand_20hz_act
139
+ expert_dataset_dirpath: ${root_dir}/FISH/expert_demos/${suite.name}/${task_name}/${name_of_expert_demo}
140
+ store_dataset_in_memory: false
141
+ expert_dataset: ${expert_dataset_dirpath}/demos.zarr
142
+ action_key: action
143
+ semantic_demo_grouping_name: semantic_demo_grouping.yaml
144
+ semantic_demo_grouping: ${expert_dataset_dirpath}/${semantic_demo_grouping_name}
145
+ include_groups_list: all
146
+ expert_dataset_config: ${expert_dataset_dirpath}/demo_config.yaml
147
+ name_of_valid_demo: 206_sim_demos_leftof4thbook_springbookends_nograspedrand_noenvrand_slotrand_20hz_act
148
+ train_num_groups: 176
149
+ valid_dataset_dir: ${root_dir}/FISH/expert_demos/${suite.name}/${task_name}/${name_of_valid_demo}/demos.zarr
150
+ valid_demo_idxs_list_or_num: null
151
+ val_num_groups: 30
152
+ universal_unseen_env_seed_start: 1000000
153
+ load_bc: ${agent.load_checkpoint}
154
+ checkpoint_epoch_list:
155
+ - 99
156
+ - 199
157
+ - 299
158
+ - 399
159
+ - 499
160
+ - 599
161
+ - 699
162
+ - 799
163
+ - 899
164
+ - 999
165
+ - 1249
166
+ - 1499
167
+ - 1749
168
+ - 1999
169
+ - 2999
170
+ - 3999
171
+ - 4999
172
+ - 5999
173
+ - 6999
174
+ - 7999
175
+ - 8999
176
+ - 9999
177
+ snapshot_root_dir: /mnt/grasp_high_usage/leonmkim/contact_estimation/FISH
178
+ save_snapshot: true
179
+ save_last_snapshot: true
180
+ save_snapshot_when_done: true
181
+ top_k_checkpoints: 10
182
+ save_snapshot_link_to_weights_dir: deprecated
183
+ restore_missing_checkpoint: null
184
+ restore_and_eval_all_missing_checkpoints: false
185
+ bc_regularize: false
186
+ bc_weight_type: qfilter
187
+ username: leonmkim
188
+ hostname: grasp-login1
189
+ local_snapshot_root_dir: /mnt/bighdd/fish_contact_backup
190
+ local_snapshot_dir: ${local_snapshot_root_dir}/exp_local/${suite.name}_${obs_type}/${task_name}
191
+ experiment_dir: ./exp_local/${suite.name}_${obs_type}/${task_name}/${wandb_run_id}
192
+ agent:
193
+ _target_: agent.diffusion_policy.DiffusionPolicyAgent
194
+ name: diffusion_policy
195
+ load_checkpoint: ${eval}
196
+ device: ${device}
197
+ n_obs_steps: ${.config.policy_cfg.n_obs_steps}
198
+ suite_name: ${suite.name}
199
+ obs_type: ${obs_type}
200
+ enable_arm: ${eval}
201
+ enable_camera: ${eval}
202
+ use_tb: ${use_tb}
203
+ desired_image_shape:
204
+ - 13
205
+ - 180
206
+ - 240
207
+ orig_cam_shape:
208
+ - 3
209
+ - 240
210
+ - 320
211
+ actions_prenormalized: ${simulation}
212
+ config:
213
+ _target_: agent.diffusion_policy.DiffusionPolicyAgentConfig
214
+ compile: false
215
+ device: ${device}
216
+ cam_resize_shape: ${agent.desired_image_shape}
217
+ orig_cam_shape: ${agent.orig_cam_shape}
218
+ policy_frequency: ${policy_frequency}
219
+ interpolation_frequency: ${interpolation_frequency}
220
+ deterministic_actions: true
221
+ deterministic_actions_seed: 0
222
+ policy_cfg:
223
+ _target_: lerobot.common.policies.diffusion.configuration_diffusion.DiffusionConfig
224
+ n_obs_steps: 1
225
+ horizon: 28
226
+ n_action_steps: ${agent.config.policy_cfg.horizon}
227
+ output_shapes:
228
+ action:
229
+ - 7
230
+ input_normalization_modes:
231
+ observation.image: mean_std
232
+ observation.state: min_max
233
+ observation.action_history: min_max
234
+ output_normalization_modes:
235
+ action: min_max
236
+ vision_backbone: resnet18
237
+ crop_distractors_tlhw: null
238
+ pretrained_backbone_weights: null
239
+ transforms:
240
+ - _target_: torchaug.transforms.RandomAffine
241
+ degrees:
242
+ - -5
243
+ - 5
244
+ translate:
245
+ - 0.05
246
+ - 0.05
247
+ batch_transform: true
248
+ num_chunks: -1
249
+ batch_inplace: true
250
+ - _target_: torchvision.transforms.v2.Grayscale
251
+ num_output_channels: 3
252
+ use_group_norm: true
253
+ spatial_softmax_num_keypoints: 32
254
+ action_history_encoder_config:
255
+ _target_: lerobot.common.policies.diffusion.configuration_diffusion.Unet1dEncoderConfig
256
+ in_channels: 7
257
+ out_channels: 32
258
+ history_length: 4
259
+ kernel_size: ${agent.config.policy_cfg.kernel_size}
260
+ downsample_kernel_size: 3
261
+ downsample_stride: 2
262
+ downsample_padding: 1
263
+ down_dims:
264
+ - 128
265
+ - 256
266
+ - 512
267
+ kernel_size: 5
268
+ n_groups: 8
269
+ diffusion_step_embed_dim: 128
270
+ use_film_scale_modulation: true
271
+ noise_scheduler_type: DDIM
272
+ beta_schedule: squaredcos_cap_v2
273
+ beta_start: 0.0001
274
+ beta_end: 0.02
275
+ prediction_type: epsilon
276
+ clip_sample: true
277
+ clip_sample_range: 1.0
278
+ num_train_timesteps: 50
279
+ num_inference_steps: 10
280
+ do_mask_loss_for_padding: false
281
+ start_horizon_at_current_step: true
282
+ input_shapes:
283
+ observation.image:
284
+ - 13
285
+ - 180
286
+ - 240
287
+ context_observation.image:
288
+ - 13
289
+ - 180
290
+ - 240
291
+ observation.state:
292
+ - 8
293
+ observation.action_history:
294
+ - 7
295
+ train_cfg:
296
+ _target_: utils.TrainConfig
297
+ lr: 0.0001
298
+ lr_scheduler: cosine
299
+ lr_warmup_steps: 500
300
+ adam_betas:
301
+ - 0.95
302
+ - 0.999
303
+ adam_eps: 1.0e-08
304
+ adam_weight_decay: 1.0e-06
305
+ grad_clip_norm: 10
306
+ offline_steps: 229000
307
+ use_amp: true
308
+ optimizer: adamw
309
+ observation_cfg:
310
+ _target_: agent.encoder.VisualFeatureSet
311
+ use_depth: ${use_depth}
312
+ use_color: ${use_color}
313
+ mask_input_dict:
314
+ _target_: agent.encoder.MaskInputDict
315
+ enable: ${use_masks}
316
+ representation: ${mask_representation}
317
+ mask_list: ${mask_list}
318
+ segmentation_model_name: ${segmentation_model_name}
319
+ crop_input_config:
320
+ _target_: agent.encoder.CropInputConfig
321
+ color_crop_type: ${color_crop_type}
322
+ depth_crop_type: ${depth_crop_type}
323
+ segmask_crop_type: ${segmask_crop_type}
324
+ crop_hw: ${crop_hw}
325
+ crop_down_offset: ${crop_down_offset}
326
+ add_crop_binary_mask: ${add_crop_binary_mask}
327
+ add_coord_conv_map: ${add_coord_conv_map}
328
+ context_input_config:
329
+ _target_: agent.encoder.ContextInputConfig
330
+ use_color: ${use_context_color}
331
+ use_depth: ${use_context_depth}
332
+ mask_input_dict:
333
+ _target_: agent.encoder.MaskInputDict
334
+ enable: ${use_context_segmask}
335
+ representation: ${mask_representation}
336
+ mask_list: ${mask_list}
337
+ segmentation_model_name: ${segmentation_model_name}
338
+ crop_input_config:
339
+ _target_: agent.encoder.CropInputConfig
340
+ color_crop_type: ${context_color_crop_type}
341
+ depth_crop_type: ${context_depth_crop_type}
342
+ segmask_crop_type: ${context_segmask_crop_type}
343
+ crop_hw: ${crop_hw}
344
+ crop_down_offset: ${crop_down_offset}
345
+ add_crop_binary_mask: ${context_add_crop_binary_mask}
346
+ add_coord_conv_map: ${context_add_coord_conv_map}
347
+ mask_soft_approx_scheduler_config:
348
+ _target_: agent.encoder.MaskSoftApproxSchedulerConfig
349
+ num_steps: 40000
350
+ initial_value: 10.0
351
+ final_value: 1000.0
352
+ interpolation_scheme: cosine
353
+ use_contact_map: ${use_contact_map}
354
+ use_sdf_maps: ${use_sdf_maps}
355
+ use_normals_maps: ${use_normals_maps}
356
+ which_objects: ${which_objects}
357
+ grasped_dtc_max_value: ${grasped_dtc_max_value}
358
+ env_dtc_max_value: ${env_dtc_max_value}
359
+ grasped_normals_mask_max_dtc_value: ${grasped_normals_mask_max_dtc_value}
360
+ env_normals_mask_max_dtc_value: ${env_normals_mask_max_dtc_value}
361
+ clamp_dtc: ${clamp_dtc}
362
+ max_contact_prob: ${max_contact_prob}
363
+ mask_normals_within_sdf: ${mask_normals_within_sdf}
364
+ dtc_adaptive_normalization: ${dtc_adaptive_normalization}
365
+ adaptive_normals_mask: ${adaptive_normals_mask}
366
+ max_depth: ${max_depth}
367
+ image_shape: ${agent.desired_image_shape}
368
+ learnable_contact_preprocess_params: ${learnable_contact_preprocess_params}
369
+ learning_rate: 0.0001
370
+ weight_decay: 0.0
371
+ contact_model_name: ${contact_model_name}
372
+ zero_centered: false
373
+ crop_distractors_tlhw: ${agent.config.policy_cfg.crop_distractors_tlhw}
374
+ suite:
375
+ suite: frankagym
376
+ name: frankagym
377
+ frame_stack: ${agent.n_obs_steps}
378
+ action_repeat: 1
379
+ discount: 0.99
380
+ hidden_dim: 1024
381
+ num_train_frames: 1000000
382
+ num_seed_frames: 0
383
+ num_train_epochs: 1000
384
+ validate_every_epochs: 20
385
+ eval_on_sim_every_epochs: 20
386
+ validate_diffusion_on_action_loss_every_epochs: 20
387
+ eval_on_sim_every_epochs_diffusion: 500
388
+ train_eval_diffusion_on_action_loss_every_epochs: 20
389
+ check_topk_every_epochs: 20
390
+ save_snapshot_every_epochs: 25
391
+ num_seen_eval_envs: 0
392
+ num_unseen_eval_envs: 100
393
+ evals_per_env: 1
394
+ eval_every_frames: 2000
395
+ num_eval_episodes: 5
396
+ save_snapshot: true
397
+ wait_for_user_to_start_episode: true
398
+ task_make_fn:
399
+ _target_: suite.frankagym.make
400
+ name: ${task_name}
401
+ height: 240
402
+ width: 320
403
+ frame_stack: ${suite.frame_stack}
404
+ action_repeat: ${suite.action_repeat}
405
+ seed: ${seed}
406
+ enable_arm: ${agent.enable_arm}
407
+ enable_gripper: ${enable_gripper}
408
+ start_with_gripper_open: ${start_with_gripper_open}
409
+ enable_camera: ${agent.enable_camera}
410
+ path_to_depth_extrinsics: ${path_to_depth_extrinsics}
411
+ contact_estimation_model_ckpt_path: ${contact_estimation_model_ckpt_path}
412
+ x_limit: ${x_limit}
413
+ y_limit: ${y_limit}
414
+ z_limit: ${z_limit}
415
+ device: ${device}
416
+ interpolation_frequency: ${interpolation_frequency}
417
+ policy_frequency: ${policy_frequency}
418
+ debug_timestamps: ${debug_timestamps}
419
+ stop_after_action: ${stop_after_action}
420
+ open_loop: ${open_loop}
421
+ wait_for_new_camera_frames: ${wait_for_new_camera_frames}
422
+ action_key: ${action_key}
423
+ action_trajectory_horizon: ${agent.config.policy_cfg.horizon}
424
+ action_trajectories: ${action_trajectories}
425
+ path_to_zarr_dataset: ${expert_dataset}
426
+ agent_policy_cfg:
427
+ _target_: agent.diffusion_policy.DiffusionPolicyAgentConfig
428
+ compile: false
429
+ device: ${device}
430
+ cam_resize_shape: ${agent.desired_image_shape}
431
+ orig_cam_shape: ${agent.orig_cam_shape}
432
+ policy_frequency: ${policy_frequency}
433
+ interpolation_frequency: ${interpolation_frequency}
434
+ deterministic_actions: true
435
+ deterministic_actions_seed: 0
436
+ policy_cfg:
437
+ _target_: lerobot.common.policies.diffusion.configuration_diffusion.DiffusionConfig
438
+ n_obs_steps: 1
439
+ horizon: 28
440
+ n_action_steps: ${agent.config.policy_cfg.horizon}
441
+ output_shapes:
442
+ action:
443
+ - 7
444
+ input_normalization_modes:
445
+ observation.image: mean_std
446
+ observation.state: min_max
447
+ observation.action_history: min_max
448
+ output_normalization_modes:
449
+ action: min_max
450
+ vision_backbone: resnet18
451
+ crop_distractors_tlhw: null
452
+ pretrained_backbone_weights: null
453
+ transforms:
454
+ - _target_: torchaug.transforms.RandomAffine
455
+ degrees:
456
+ - -5
457
+ - 5
458
+ translate:
459
+ - 0.05
460
+ - 0.05
461
+ batch_transform: true
462
+ num_chunks: -1
463
+ batch_inplace: true
464
+ - _target_: torchvision.transforms.v2.Grayscale
465
+ num_output_channels: 3
466
+ use_group_norm: true
467
+ spatial_softmax_num_keypoints: 32
468
+ action_history_encoder_config:
469
+ _target_: lerobot.common.policies.diffusion.configuration_diffusion.Unet1dEncoderConfig
470
+ in_channels: 7
471
+ out_channels: 32
472
+ history_length: 4
473
+ kernel_size: ${agent.config.policy_cfg.kernel_size}
474
+ downsample_kernel_size: 3
475
+ downsample_stride: 2
476
+ downsample_padding: 1
477
+ down_dims:
478
+ - 128
479
+ - 256
480
+ - 512
481
+ kernel_size: 5
482
+ n_groups: 8
483
+ diffusion_step_embed_dim: 128
484
+ use_film_scale_modulation: true
485
+ noise_scheduler_type: DDIM
486
+ beta_schedule: squaredcos_cap_v2
487
+ beta_start: 0.0001
488
+ beta_end: 0.02
489
+ prediction_type: epsilon
490
+ clip_sample: true
491
+ clip_sample_range: 1.0
492
+ num_train_timesteps: 50
493
+ num_inference_steps: 10
494
+ do_mask_loss_for_padding: false
495
+ start_horizon_at_current_step: true
496
+ input_shapes:
497
+ observation.image:
498
+ - 13
499
+ - 180
500
+ - 240
501
+ context_observation.image:
502
+ - 13
503
+ - 180
504
+ - 240
505
+ observation.state:
506
+ - 8
507
+ observation.action_history:
508
+ - 7
509
+ train_cfg:
510
+ _target_: utils.TrainConfig
511
+ lr: 0.0001
512
+ lr_scheduler: cosine
513
+ lr_warmup_steps: 500
514
+ adam_betas:
515
+ - 0.95
516
+ - 0.999
517
+ adam_eps: 1.0e-08
518
+ adam_weight_decay: 1.0e-06
519
+ grad_clip_norm: 10
520
+ offline_steps: 229000
521
+ use_amp: true
522
+ optimizer: adamw
523
+ observation_cfg:
524
+ _target_: agent.encoder.VisualFeatureSet
525
+ use_depth: ${use_depth}
526
+ use_color: ${use_color}
527
+ mask_input_dict:
528
+ _target_: agent.encoder.MaskInputDict
529
+ enable: ${use_masks}
530
+ representation: ${mask_representation}
531
+ mask_list: ${mask_list}
532
+ segmentation_model_name: ${segmentation_model_name}
533
+ crop_input_config:
534
+ _target_: agent.encoder.CropInputConfig
535
+ color_crop_type: ${color_crop_type}
536
+ depth_crop_type: ${depth_crop_type}
537
+ segmask_crop_type: ${segmask_crop_type}
538
+ crop_hw: ${crop_hw}
539
+ crop_down_offset: ${crop_down_offset}
540
+ add_crop_binary_mask: ${add_crop_binary_mask}
541
+ add_coord_conv_map: ${add_coord_conv_map}
542
+ context_input_config:
543
+ _target_: agent.encoder.ContextInputConfig
544
+ use_color: ${use_context_color}
545
+ use_depth: ${use_context_depth}
546
+ mask_input_dict:
547
+ _target_: agent.encoder.MaskInputDict
548
+ enable: ${use_context_segmask}
549
+ representation: ${mask_representation}
550
+ mask_list: ${mask_list}
551
+ segmentation_model_name: ${segmentation_model_name}
552
+ crop_input_config:
553
+ _target_: agent.encoder.CropInputConfig
554
+ color_crop_type: ${context_color_crop_type}
555
+ depth_crop_type: ${context_depth_crop_type}
556
+ segmask_crop_type: ${context_segmask_crop_type}
557
+ crop_hw: ${crop_hw}
558
+ crop_down_offset: ${crop_down_offset}
559
+ add_crop_binary_mask: ${context_add_crop_binary_mask}
560
+ add_coord_conv_map: ${context_add_coord_conv_map}
561
+ mask_soft_approx_scheduler_config:
562
+ _target_: agent.encoder.MaskSoftApproxSchedulerConfig
563
+ num_steps: 40000
564
+ initial_value: 10.0
565
+ final_value: 1000.0
566
+ interpolation_scheme: cosine
567
+ use_contact_map: ${use_contact_map}
568
+ use_sdf_maps: ${use_sdf_maps}
569
+ use_normals_maps: ${use_normals_maps}
570
+ which_objects: ${which_objects}
571
+ grasped_dtc_max_value: ${grasped_dtc_max_value}
572
+ env_dtc_max_value: ${env_dtc_max_value}
573
+ grasped_normals_mask_max_dtc_value: ${grasped_normals_mask_max_dtc_value}
574
+ env_normals_mask_max_dtc_value: ${env_normals_mask_max_dtc_value}
575
+ clamp_dtc: ${clamp_dtc}
576
+ max_contact_prob: ${max_contact_prob}
577
+ mask_normals_within_sdf: ${mask_normals_within_sdf}
578
+ dtc_adaptive_normalization: ${dtc_adaptive_normalization}
579
+ adaptive_normals_mask: ${adaptive_normals_mask}
580
+ max_depth: ${max_depth}
581
+ image_shape: ${agent.desired_image_shape}
582
+ learnable_contact_preprocess_params: ${learnable_contact_preprocess_params}
583
+ learning_rate: 0.0001
584
+ weight_decay: 0.0
585
+ contact_model_name: ${contact_model_name}
586
+ zero_centered: false
587
+ crop_distractors_tlhw: ${agent.config.policy_cfg.crop_distractors_tlhw}
588
+ true_action_history: ${true_action_history}
589
+ num_train_frames_bc: 50000
590
+ num_train_frames_drq: 1100000
591
+ stddev_schedule_drq: linear(1.0,0.1,100000)
592
+ task_name: FrankaInsertion-v1
593
+ num_train_frames_vinn: 25000
594
+ num_train_frames_diffusion: 1000000
595
+ num_train_epochs_bc: 5000
596
+ num_train_epochs_diffusion: 1000
597
+ validate_every_epochs_bc: 5
598
+ validate_every_epochs_diffusion: 20
599
+ validate_diffusion_on_action_loss_every_epochs: 20
600
+ train_eval_diffusion_on_action_loss_every_epochs: 20
601
+ eval_on_sim_every_epochs_diffusion: 20
602
+ check_topk_every_epochs: 5
603
+ check_topk_every_epochs_diffusion: 20
604
+ save_snapshot_every_epochs_diffusion: 25
605
+ x_limit:
606
+ - 0.2
607
+ - 0.7
608
+ y_limit:
609
+ - -0.4
610
+ - 0.4
611
+ z_limit:
612
+ - -0.05
613
+ - 0.55
614
+ home_displacement:
615
+ - 0.55
616
+ - 0.0
617
+ - 0.55
618
+ - 180.0
619
+ - 0.0
620
+ - 0.0
621
+ enable_gripper: true
622
+ start_with_gripper_open: true
623
+ offset_mask:
624
+ - 1
625
+ - 1
626
+ - 1
627
+ - 1
628
+ - 1
629
+ - 1
630
+ path_to_depth_extrinsics: ~/fish_leon/FISH/cfgs/camera_poses/camera_poses_L515/20240904-122305/color_tf_world.npy
631
+ test:
632
+ username: leonmkim
633
+ hostname: grasp-login1
634
+ name_of_expert_demo: 112_240x320_all_twodim_left_to_right_annotated_start_idx_5hz_zstd7_EE_pxl_coords_expert_demos_imp_act
635
+ root_dir: ~/fish_leon
636
+ expert_dataset_dirpath: ${test.root_dir}/FISH/expert_demos/${suite.name}/${task_name}/${test.name_of_expert_demo}
637
+ expert_dataset: ${test.expert_dataset_dirpath}/demos.zarr
638
+ semantic_demo_grouping_name: semantic_demo_grouping.yaml
639
+ semantic_demo_grouping: ${test.expert_dataset_dirpath}/${test.semantic_demo_grouping_name}
640
+ include_groups_list: all
641
+ batch_size: 128
642
+ store_dataset_in_memory: false
643
+ use_tb: true
644
+ local_snapshot_root_dir: /mnt/bighdd/fish_contact_backup
645
+ local_snapshot_dir: ${test.local_snapshot_root_dir}/exp_local/${suite.name}_${obs_type}/${task_name}
646
+ resume_wandb_run: false
647
+ feature_type: 180x240_1_RGB_D_2.0_acthist_hst4_out32_dwnkrnl3_dwnstrd2_dwnpd1
videos/80602_0/epoch_20/0_traj_1000000_envseed.mp4 ADDED
Binary file (57.7 kB). View file
 
videos/80602_0/epoch_20/10_traj_1000010_envseed.mp4 ADDED
Binary file (57.9 kB). View file
 
videos/80602_0/epoch_20/11_traj_1000011_envseed.mp4 ADDED
Binary file (56.9 kB). View file
 
videos/80602_0/epoch_20/14_traj_1000014_envseed.mp4 ADDED
Binary file (54.7 kB). View file
 
videos/80602_0/epoch_20/15_traj_1000015_envseed.mp4 ADDED
Binary file (56 kB). View file
 
videos/80602_0/epoch_20/16_traj_1000016_envseed.mp4 ADDED
Binary file (56.2 kB). View file
 
videos/80602_0/epoch_20/17_traj_1000017_envseed.mp4 ADDED
Binary file (55.1 kB). View file
 
videos/80602_0/epoch_20/19_traj_1000019_envseed.mp4 ADDED
Binary file (56 kB). View file
 
videos/80602_0/epoch_20/1_traj_1000001_envseed.mp4 ADDED
Binary file (55.3 kB). View file
 
videos/80602_0/epoch_20/20_traj_1000020_envseed.mp4 ADDED
Binary file (58 kB). View file
 
videos/80602_0/epoch_20/21_traj_1000021_envseed.mp4 ADDED
Binary file (56.1 kB). View file
 
videos/80602_0/epoch_20/22_traj_1000022_envseed.mp4 ADDED
Binary file (55 kB). View file
 
videos/80602_0/epoch_20/24_traj_1000024_envseed.mp4 ADDED
Binary file (56.2 kB). View file
 
videos/80602_0/epoch_20/26_traj_1000026_envseed.mp4 ADDED
Binary file (56.6 kB). View file
 
videos/80602_0/epoch_20/29_traj_1000029_envseed.mp4 ADDED
Binary file (55.6 kB). View file
 
videos/80602_0/epoch_20/2_traj_1000002_envseed.mp4 ADDED
Binary file (58.1 kB). View file
 
videos/80602_0/epoch_20/30_traj_1000030_envseed.mp4 ADDED
Binary file (57 kB). View file
 
videos/80602_0/epoch_20/31_traj_1000031_envseed.mp4 ADDED
Binary file (55.3 kB). View file
 
videos/80602_0/epoch_20/32_traj_1000032_envseed.mp4 ADDED
Binary file (56.2 kB). View file
 
videos/80602_0/epoch_20/33_traj_1000033_envseed.mp4 ADDED
Binary file (57 kB). View file
 
videos/80602_0/epoch_20/34_traj_1000034_envseed.mp4 ADDED
Binary file (56.7 kB). View file
 
videos/80602_0/epoch_20/35_traj_1000035_envseed.mp4 ADDED
Binary file (58.1 kB). View file
 
videos/80602_0/epoch_20/36_traj_1000036_envseed.mp4 ADDED
Binary file (56 kB). View file
 
videos/80602_0/epoch_20/37_traj_1000037_envseed.mp4 ADDED
Binary file (56.8 kB). View file
 
videos/80602_0/epoch_20/38_traj_1000038_envseed.mp4 ADDED
Binary file (56.8 kB). View file
 
videos/80602_0/epoch_20/39_traj_1000039_envseed.mp4 ADDED
Binary file (54.9 kB). View file
 
videos/80602_0/epoch_20/40_traj_1000040_envseed.mp4 ADDED
Binary file (55.9 kB). View file
 
videos/80602_0/epoch_20/41_traj_1000041_envseed.mp4 ADDED
Binary file (56.9 kB). View file
 
videos/80602_0/epoch_20/43_traj_1000043_envseed.mp4 ADDED
Binary file (57.9 kB). View file
 
videos/80602_0/epoch_20/44_traj_1000044_envseed.mp4 ADDED
Binary file (55.3 kB). View file
 
videos/80602_0/epoch_20/45_traj_1000045_envseed.mp4 ADDED
Binary file (57.7 kB). View file
 
videos/80602_0/epoch_20/47_traj_1000047_envseed.mp4 ADDED
Binary file (56 kB). View file
 
videos/80602_0/epoch_20/48_traj_1000048_envseed.mp4 ADDED
Binary file (55.9 kB). View file
 
videos/80602_0/epoch_20/49_traj_1000049_envseed.mp4 ADDED
Binary file (55.9 kB). View file
 
videos/80602_0/epoch_20/4_traj_1000004_envseed.mp4 ADDED
Binary file (56.7 kB). View file
 
videos/80602_0/epoch_20/52_traj_1000052_envseed.mp4 ADDED
Binary file (57.5 kB). View file
 
videos/80602_0/epoch_20/54_traj_1000054_envseed.mp4 ADDED
Binary file (57.2 kB). View file
 
videos/80602_0/epoch_20/55_traj_1000055_envseed.mp4 ADDED
Binary file (54.1 kB). View file
 
videos/80602_0/epoch_20/56_traj_1000056_envseed.mp4 ADDED
Binary file (57.9 kB). View file
 
videos/80602_0/epoch_20/57_traj_1000057_envseed.mp4 ADDED
Binary file (54.1 kB). View file
 
videos/80602_0/epoch_20/59_traj_1000059_envseed.mp4 ADDED
Binary file (58.5 kB). View file
 
videos/80602_0/epoch_20/5_traj_1000005_envseed.mp4 ADDED
Binary file (55.6 kB). View file
 
videos/80602_0/epoch_20/60_traj_1000060_envseed.mp4 ADDED
Binary file (54.6 kB). View file
 
videos/80602_0/epoch_20/61_traj_1000061_envseed.mp4 ADDED
Binary file (55.7 kB). View file
 
videos/80602_0/epoch_20/62_traj_1000062_envseed.mp4 ADDED
Binary file (56.2 kB). View file
 
videos/80602_0/epoch_20/63_traj_1000063_envseed.mp4 ADDED
Binary file (57.3 kB). View file
 
videos/80602_0/epoch_20/64_traj_1000064_envseed.mp4 ADDED
Binary file (55.5 kB). View file
 
videos/80602_0/epoch_20/65_traj_1000065_envseed.mp4 ADDED
Binary file (56.6 kB). View file
 
videos/80602_0/epoch_20/66_traj_1000066_envseed.mp4 ADDED
Binary file (56.8 kB). View file