jgoler commited on
Commit
18bb1ce
·
verified ·
1 Parent(s): e08ab7e

add cup_saucer/finetune-25/config.yaml

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