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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: train_act_image
|
| 2 |
+
_target_: memory_diffusion_policy.workspace.train_act_image_workspace.TrainACTImageWorkspace
|
| 3 |
+
task_name: ${task.name}
|
| 4 |
+
shape_meta: ${task.shape_meta}
|
| 5 |
+
exp_name: default
|
| 6 |
+
horizon: 100
|
| 7 |
+
n_obs_steps: 1
|
| 8 |
+
n_action_steps: 16
|
| 9 |
+
n_latency_steps: 0
|
| 10 |
+
dataset_obs_steps: ${n_obs_steps}
|
| 11 |
+
past_action_visible: false
|
| 12 |
+
keypoint_visible_rate: 1.0
|
| 13 |
+
rollout_mode: wandb
|
| 14 |
+
rollout_n_envs: null
|
| 15 |
+
policy:
|
| 16 |
+
_target_: memory_diffusion_policy.policy.act_image_policy.ACTImagePolicy
|
| 17 |
+
shape_meta: ${shape_meta}
|
| 18 |
+
chunk_size: ${horizon}
|
| 19 |
+
n_action_steps: ${n_action_steps}
|
| 20 |
+
n_obs_steps: ${n_obs_steps}
|
| 21 |
+
kl_weight: 10.0
|
| 22 |
+
hidden_dim: 512
|
| 23 |
+
dim_feedforward: 3200
|
| 24 |
+
nheads: 8
|
| 25 |
+
enc_layers: 4
|
| 26 |
+
dec_layers: 7
|
| 27 |
+
dropout: 0.1
|
| 28 |
+
pre_norm: false
|
| 29 |
+
position_embedding: sine
|
| 30 |
+
backbone: resnet18
|
| 31 |
+
backbone_pretrained: true
|
| 32 |
+
lr_backbone: 1.0e-05
|
| 33 |
+
temporal_agg: false
|
| 34 |
+
temporal_agg_k: 0.01
|
| 35 |
+
dataloader:
|
| 36 |
+
batch_size: 8
|
| 37 |
+
num_workers: 8
|
| 38 |
+
shuffle: true
|
| 39 |
+
pin_memory: true
|
| 40 |
+
persistent_workers: false
|
| 41 |
+
val_dataloader:
|
| 42 |
+
batch_size: 8
|
| 43 |
+
num_workers: 8
|
| 44 |
+
shuffle: false
|
| 45 |
+
pin_memory: true
|
| 46 |
+
persistent_workers: false
|
| 47 |
+
optimizer:
|
| 48 |
+
_target_: torch.optim.AdamW
|
| 49 |
+
lr: 1.0e-05
|
| 50 |
+
betas:
|
| 51 |
+
- 0.9
|
| 52 |
+
- 0.999
|
| 53 |
+
eps: 1.0e-08
|
| 54 |
+
weight_decay: 0.0001
|
| 55 |
+
training:
|
| 56 |
+
device: cuda:0
|
| 57 |
+
seed: 42
|
| 58 |
+
debug: false
|
| 59 |
+
resume: true
|
| 60 |
+
lr_scheduler: cosine
|
| 61 |
+
lr_warmup_steps: 500
|
| 62 |
+
num_epochs: 2000
|
| 63 |
+
gradient_accumulate_every: 1
|
| 64 |
+
use_ema: false
|
| 65 |
+
rollout_every: 0
|
| 66 |
+
checkpoint_every: 25
|
| 67 |
+
val_every: 0
|
| 68 |
+
sample_every: 0
|
| 69 |
+
max_train_steps: null
|
| 70 |
+
max_val_steps: null
|
| 71 |
+
tqdm_interval_sec: 1.0
|
| 72 |
+
logging:
|
| 73 |
+
project: act_baseline
|
| 74 |
+
resume: true
|
| 75 |
+
mode: online
|
| 76 |
+
name: ${now:%Y.%m.%d-%H.%M.%S}_${name}_${task_name}
|
| 77 |
+
tags:
|
| 78 |
+
- ${name}
|
| 79 |
+
- ${task_name}
|
| 80 |
+
- ${exp_name}
|
| 81 |
+
id: null
|
| 82 |
+
group: null
|
| 83 |
+
checkpoint:
|
| 84 |
+
topk:
|
| 85 |
+
monitor_key: test_mean_score
|
| 86 |
+
mode: max
|
| 87 |
+
k: 0
|
| 88 |
+
format_str: epoch={epoch:04d}-test_mean_score={test_mean_score:.3f}.ckpt
|
| 89 |
+
save_last_ckpt: true
|
| 90 |
+
save_last_snapshot: false
|
| 91 |
+
save_every_n_epochs: ${training.checkpoint_every}
|
| 92 |
+
multi_run:
|
| 93 |
+
run_dir: data/outputs/${now:%Y.%m.%d}/${now:%H.%M.%S}_${name}_${task_name}
|
| 94 |
+
wandb_name_base: ${now:%Y.%m.%d-%H.%M.%S}_${name}_${task_name}
|
| 95 |
+
task:
|
| 96 |
+
name: insert_peg_image_abs_jinglin
|
| 97 |
+
rotation_rep: rotation_6d
|
| 98 |
+
default_orientation_axisangle:
|
| 99 |
+
- 3.14159265
|
| 100 |
+
- 0.0
|
| 101 |
+
- 0.0
|
| 102 |
+
image_shape:
|
| 103 |
+
- 3
|
| 104 |
+
- 96
|
| 105 |
+
- 96
|
| 106 |
+
shape_meta:
|
| 107 |
+
obs:
|
| 108 |
+
peg_focus_view_image:
|
| 109 |
+
shape:
|
| 110 |
+
- 3
|
| 111 |
+
- 96
|
| 112 |
+
- 96
|
| 113 |
+
type: rgb
|
| 114 |
+
robot0_eye_in_hand_image:
|
| 115 |
+
shape:
|
| 116 |
+
- 3
|
| 117 |
+
- 96
|
| 118 |
+
- 96
|
| 119 |
+
type: rgb
|
| 120 |
+
robot0_eef_pos:
|
| 121 |
+
shape:
|
| 122 |
+
- 3
|
| 123 |
+
type: low_dim
|
| 124 |
+
robot0_eef_quat:
|
| 125 |
+
shape:
|
| 126 |
+
- 4
|
| 127 |
+
type: low_dim
|
| 128 |
+
robot0_gripper_qpos:
|
| 129 |
+
shape:
|
| 130 |
+
- 2
|
| 131 |
+
type: low_dim
|
| 132 |
+
action:
|
| 133 |
+
shape:
|
| 134 |
+
- 10
|
| 135 |
+
task_name: insert_peg
|
| 136 |
+
dataset_path: data/image_insertpeg_jinglin.hdf5
|
| 137 |
+
abs_action: true
|
| 138 |
+
env_runner:
|
| 139 |
+
_target_: memory_diffusion_policy.env_runner.robosuite_pomdp_image_runner.RobosuitePomdpImageRunner
|
| 140 |
+
env_name: InsertPegVision
|
| 141 |
+
dataset_path: data/image_insertpeg_jinglin.hdf5
|
| 142 |
+
shape_meta:
|
| 143 |
+
obs:
|
| 144 |
+
peg_focus_view_image:
|
| 145 |
+
shape:
|
| 146 |
+
- 3
|
| 147 |
+
- 96
|
| 148 |
+
- 96
|
| 149 |
+
type: rgb
|
| 150 |
+
robot0_eye_in_hand_image:
|
| 151 |
+
shape:
|
| 152 |
+
- 3
|
| 153 |
+
- 96
|
| 154 |
+
- 96
|
| 155 |
+
type: rgb
|
| 156 |
+
robot0_eef_pos:
|
| 157 |
+
shape:
|
| 158 |
+
- 3
|
| 159 |
+
type: low_dim
|
| 160 |
+
robot0_eef_quat:
|
| 161 |
+
shape:
|
| 162 |
+
- 4
|
| 163 |
+
type: low_dim
|
| 164 |
+
robot0_gripper_qpos:
|
| 165 |
+
shape:
|
| 166 |
+
- 2
|
| 167 |
+
type: low_dim
|
| 168 |
+
action:
|
| 169 |
+
shape:
|
| 170 |
+
- 10
|
| 171 |
+
n_train: 4
|
| 172 |
+
n_train_vis: 2
|
| 173 |
+
train_start_seed: 0
|
| 174 |
+
n_test: 20
|
| 175 |
+
n_test_vis: 4
|
| 176 |
+
test_start_seed: 100000
|
| 177 |
+
max_steps: 2500
|
| 178 |
+
n_obs_steps: ${n_obs_steps}
|
| 179 |
+
n_action_steps: ${n_action_steps}
|
| 180 |
+
render_obs_key: peg_focus_view_image
|
| 181 |
+
abs_action: true
|
| 182 |
+
rotation_rep: ${task.rotation_rep}
|
| 183 |
+
default_orientation_axisangle: ${task.default_orientation_axisangle}
|
| 184 |
+
fps: 10
|
| 185 |
+
past_action: ${past_action_visible}
|
| 186 |
+
n_envs: ${oc.select:rollout_n_envs,null}
|
| 187 |
+
rollout_mode: ${oc.select:rollout_mode,wandb}
|
| 188 |
+
dataset:
|
| 189 |
+
_target_: memory_diffusion_policy.dataset.robomimic_3d_replay_image_dataset.Robomimic3DReplayImageDataset
|
| 190 |
+
shape_meta:
|
| 191 |
+
obs:
|
| 192 |
+
peg_focus_view_image:
|
| 193 |
+
shape:
|
| 194 |
+
- 3
|
| 195 |
+
- 96
|
| 196 |
+
- 96
|
| 197 |
+
type: rgb
|
| 198 |
+
robot0_eye_in_hand_image:
|
| 199 |
+
shape:
|
| 200 |
+
- 3
|
| 201 |
+
- 96
|
| 202 |
+
- 96
|
| 203 |
+
type: rgb
|
| 204 |
+
robot0_eef_pos:
|
| 205 |
+
shape:
|
| 206 |
+
- 3
|
| 207 |
+
type: low_dim
|
| 208 |
+
robot0_eef_quat:
|
| 209 |
+
shape:
|
| 210 |
+
- 4
|
| 211 |
+
type: low_dim
|
| 212 |
+
robot0_gripper_qpos:
|
| 213 |
+
shape:
|
| 214 |
+
- 2
|
| 215 |
+
type: low_dim
|
| 216 |
+
action:
|
| 217 |
+
shape:
|
| 218 |
+
- 10
|
| 219 |
+
dataset_path: data/image_insertpeg_jinglin.hdf5
|
| 220 |
+
horizon: ${horizon}
|
| 221 |
+
pad_before: ${eval:'${n_obs_steps}-1+${n_latency_steps}'}
|
| 222 |
+
pad_after: ${eval:'${n_action_steps}-1'}
|
| 223 |
+
n_obs_steps: ${dataset_obs_steps}
|
| 224 |
+
abs_action: true
|
| 225 |
+
rotation_rep: ${task.rotation_rep}
|
| 226 |
+
action_key: actions_abs
|
| 227 |
+
use_legacy_normalizer: false
|
| 228 |
+
use_cache: true
|
| 229 |
+
max_demos: null
|
| 230 |
+
seed: 42
|
| 231 |
+
val_ratio: 0.05
|