jgoler commited on
Commit
e1d8d05
·
verified ·
1 Parent(s): 886ac32

add recycling/pretrain/config.yaml

Browse files
Files changed (1) hide show
  1. recycling/pretrain/config.yaml +293 -0
recycling/pretrain/config.yaml ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: policy
2
+ exp_name: humanhand-original-h2
3
+ group_tag: default
4
+ task_name: ${task.name}
5
+ _target_: behavior_prompting.train_network.workspace.train_policy_workspace.TrainPolicyWorkspace
6
+ shape_meta: ${task.shape_meta}
7
+ ema:
8
+ _target_: diffusers.training_utils.EMAModel
9
+ inv_gamma: 1.0
10
+ decay: 0.9999
11
+ min_decay: 0.0
12
+ power: 0.75
13
+ update_after_step: 0
14
+ logging:
15
+ project: behavior_prompting
16
+ resume: false
17
+ mode: online
18
+ name: ${now:%Y.%m.%d-%H.%M.%S}_${exp_name}_${name}_${task_name}_${model.name}
19
+ tags:
20
+ - ${name}
21
+ - ${task_name}
22
+ - ${exp_name}
23
+ - ${group_tag}
24
+ - ${model.name}
25
+ id: null
26
+ group: null
27
+ multi_run:
28
+ run_dir: runs/${now:%Y.%m.%d}/${now:%H.%M.%S}_${exp_name}_${name}_${task_name}_${model.name}
29
+ wandb_name_base: ${now:%Y.%m.%d-%H.%M.%S}_${exp_name}_${name}_${task_name}_${model.name}
30
+ rollout:
31
+ distribute: true
32
+ training:
33
+ pretrained_checkpoint_path: null
34
+ resume_checkpoint_path: null
35
+ max_train_steps: null
36
+ max_val_steps: 64
37
+ sample_size: 64
38
+ sample_max_tasks: 5
39
+ seed: 0
40
+ tqdm_interval_sec: 1.0
41
+ repeat_dataset_n_times: 1
42
+ use_cached_normalizer: false
43
+ override_cached_normalizer: false
44
+ early_stopping:
45
+ patience: null
46
+ min_delta: 0.0
47
+ lr_decay_epochs: null
48
+ rollout:
49
+ enable_expensive_vis_every: 1
50
+ enable_expensive_vis_last_epoch: true
51
+ intermediate_max_tasks: null
52
+ intermediate_init_runner_kwargs: null
53
+ compilation_plugin:
54
+ _target_: accelerate.utils.TorchDynamoPlugin
55
+ backend: inductor
56
+ mode: default
57
+ fullgraph: false
58
+ dynamic: true
59
+ disable: true
60
+ group_dataloader_by_task:
61
+ enabled: false
62
+ balanced: true
63
+ log_frequency: false
64
+ rollout_every: -1
65
+ lr_scheduler: cosine
66
+ lr_warmup_proportion: 0.05
67
+ num_epochs: 444
68
+ gradient_accumulate_every: 1
69
+ use_ema: true
70
+ freeze_encoder: false
71
+ val_every: 5
72
+ sample_every: 10
73
+ mixed_precision: 'no'
74
+ clip_grad_norm: 0.5
75
+ task:
76
+ name: umi
77
+ train_rollout_max_tasks: 6
78
+ train_rollout_only_task_names: null
79
+ eval_dataset_path: null
80
+ eval_rollout_only_task_names: null
81
+ eval_rollout_max_tasks: null
82
+ obs_down_sample_steps: 3
83
+ ultrawide_down_sample_steps: 1
84
+ low_dim_obs_horizon: 2
85
+ img_obs_horizon: 2
86
+ action_horizon: 16
87
+ ignore_proprioception: false
88
+ shape_meta:
89
+ image_resolution: 224
90
+ prompt_sequence_length: 512
91
+ max_prompt_full_demos: 1
92
+ prompt_chunk_n_actions: 20
93
+ pad_end_prompt_actions: repeat
94
+ max_sequence_length: 1200
95
+ use_prompting: false
96
+ prompt_sample_mode: pair
97
+ action:
98
+ shape:
99
+ - 10
100
+ horizon: ${task.action_horizon}
101
+ down_sample_steps: ${task.obs_down_sample_steps}
102
+ rotation_rep: rotation_6d
103
+ components:
104
+ - type: right_pos
105
+ size: 3
106
+ - type: right_rot
107
+ size: 6
108
+ - type: right_gripper_width
109
+ size: 1
110
+ obs:
111
+ camera_right_main_rgb:
112
+ shape:
113
+ - 3
114
+ - 224
115
+ - 224
116
+ horizon: ${task.img_obs_horizon}
117
+ down_sample_steps: ${task.obs_down_sample_steps}
118
+ type: rgb
119
+ ignore_by_policy: false
120
+ include_in_receding_obs: true
121
+ include_in_prompt_current_obs: true
122
+ prompt_type: observation
123
+ camera_right_ultrawide_rgb:
124
+ shape:
125
+ - 3
126
+ - 224
127
+ - 224
128
+ horizon: ${task.img_obs_horizon}
129
+ down_sample_steps: ${task.ultrawide_down_sample_steps}
130
+ type: rgb
131
+ ignore_by_policy: false
132
+ include_in_receding_obs: true
133
+ include_in_prompt_current_obs: true
134
+ prompt_type: observation
135
+ gripper_right_eef_pos:
136
+ shape:
137
+ - 3
138
+ horizon: ${task.low_dim_obs_horizon}
139
+ down_sample_steps: ${task.obs_down_sample_steps}
140
+ type: low_dim
141
+ ignore_by_policy: ${task.ignore_proprioception}
142
+ include_in_receding_obs: true
143
+ include_in_prompt_current_obs: false
144
+ prompt_type: ignore
145
+ sampler_prompt_type: proprioception
146
+ gripper_right_eef_rot_axis_angle:
147
+ raw_shape:
148
+ - 3
149
+ shape:
150
+ - 6
151
+ horizon: ${task.low_dim_obs_horizon}
152
+ down_sample_steps: ${task.obs_down_sample_steps}
153
+ type: low_dim
154
+ rotation_rep: rotation_6d
155
+ ignore_by_policy: ${task.ignore_proprioception}
156
+ include_in_receding_obs: true
157
+ include_in_prompt_current_obs: false
158
+ prompt_type: ignore
159
+ sampler_prompt_type: proprioception
160
+ gripper_right_gripper_width:
161
+ shape:
162
+ - 1
163
+ horizon: ${task.low_dim_obs_horizon}
164
+ down_sample_steps: ${task.obs_down_sample_steps}
165
+ type: low_dim
166
+ ignore_by_policy: ${task.ignore_proprioception}
167
+ include_in_receding_obs: true
168
+ include_in_prompt_current_obs: false
169
+ prompt_type: ignore
170
+ gripper_right_eef_rot_axis_angle_wrt_start:
171
+ raw_shape:
172
+ - 3
173
+ shape:
174
+ - 6
175
+ horizon: ${task.low_dim_obs_horizon}
176
+ down_sample_steps: ${task.obs_down_sample_steps}
177
+ type: low_dim
178
+ in_replay_buffer: false
179
+ ignore_by_policy: ${task.ignore_proprioception}
180
+ include_in_receding_obs: true
181
+ include_in_prompt_current_obs: false
182
+ prompt_type: ignore
183
+ task_name: ${name}
184
+ pose_repr:
185
+ obs_pose_repr: relative
186
+ action_pose_repr: relative
187
+ eval_image_transforms:
188
+ _target_: behavior_prompting.train_network.common.augmentation.ImageAugmentation
189
+ shape_meta: ${shape_meta}
190
+ transforms:
191
+ - type: CenterCrop
192
+ ratio: 0.95
193
+ train_image_transforms:
194
+ _target_: behavior_prompting.train_network.common.augmentation.ImageAugmentation
195
+ shape_meta: ${shape_meta}
196
+ transforms:
197
+ - type: RandomCrop
198
+ ratio: 0.95
199
+ - _target_: torchvision.transforms.ColorJitter
200
+ brightness: 0.3
201
+ contrast: 0.4
202
+ saturation: 0.5
203
+ hue: 0.08
204
+ dataset:
205
+ _target_: behavior_prompting.train_network.dataset.umi_task_dataset.UmiTaskDataset
206
+ shape_meta: ${shape_meta}
207
+ dataset_path: /home/jgoler/gripper2gripper/iPhUMI/python_package/iphumi/demonstration_processing/tmp_sessions/humanhand/replay_buffer_humanhand.zarr
208
+ cache_dir: null
209
+ pose_repr: ${task.pose_repr}
210
+ action_padding: true
211
+ temporally_independent_normalization: false
212
+ max_normalizer_iterations: null
213
+ seed: 42
214
+ val_ratio: 0.05
215
+ include_labels: false
216
+ sample_type: episode
217
+ max_segments: -1
218
+ prompt_relative_to: last
219
+ gripper_masking: null
220
+ checkpoint:
221
+ save_last_ckpt: false
222
+ save_last_snapshot: false
223
+ topk:
224
+ monitor_key: val_action_mse_error_all
225
+ format_str: epoch={epoch:04d}-val_action_mse_error_all={val_action_mse_error_all:.3f}.ckpt
226
+ k: 10
227
+ mode: min
228
+ save_train_loss_ckpt_every: 5
229
+ model:
230
+ _target_: behavior_prompting.train_network.policy.diffusion_unet_policy.DiffusionUnetPolicy
231
+ name: diffusion_unet
232
+ shape_meta: ${shape_meta}
233
+ noise_scheduler:
234
+ _target_: diffusers.DDIMScheduler
235
+ num_train_timesteps: 50
236
+ beta_start: 0.0001
237
+ beta_end: 0.02
238
+ beta_schedule: squaredcos_cap_v2
239
+ clip_sample: true
240
+ set_alpha_to_one: true
241
+ steps_offset: 0
242
+ prediction_type: epsilon
243
+ num_inference_steps: 16
244
+ obs_as_global_cond: true
245
+ diffusion_step_embed_dim: 128
246
+ down_dims:
247
+ - 256
248
+ - 512
249
+ - 1024
250
+ kernel_size: 5
251
+ n_groups: 8
252
+ cond_predict_scale: true
253
+ input_pertub: 0.1
254
+ train_diffusion_n_samples: 1
255
+ obs_encoder:
256
+ _target_: behavior_prompting.train_network.model.vision.timm_obs_encoder.TimmObsEncoder
257
+ shape_meta: ${shape_meta}
258
+ model_name: vit_base_patch16_clip_224.openai
259
+ pretrained: true
260
+ frozen: false
261
+ global_pool: ''
262
+ feature_aggregation: attention_pool_2d
263
+ position_encording: sinusoidal
264
+ downsample_ratio: 32
265
+ train_image_transforms: ${...task.train_image_transforms}
266
+ eval_image_transforms: ${...task.eval_image_transforms}
267
+ use_group_norm: true
268
+ share_rgb_model: false
269
+ use_vision_norm: true
270
+ pretrained_lr_scale: 0.1
271
+ use_finetuned_language_encoder: ${oc.select:task.use_finetuned_language_encoder,false}
272
+ text_encoder_model_name: openai/clip-vit-base-patch16
273
+ dataloader:
274
+ batch_size: 72
275
+ num_workers: 8
276
+ shuffle: true
277
+ pin_memory: true
278
+ persistent_workers: true
279
+ drop_last: true
280
+ val_dataloader:
281
+ batch_size: 32
282
+ num_workers: 8
283
+ shuffle: true
284
+ pin_memory: true
285
+ persistent_workers: false
286
+ drop_last: true
287
+ optimizer:
288
+ lr: 7.5e-05
289
+ betas:
290
+ - 0.95
291
+ - 0.999
292
+ eps: 1.0e-08
293
+ weight_decay: 1.0e-06