File size: 10,081 Bytes
d2fceff | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | output_dir: outputs/robotwin-full
batch_size: 24
num_workers: 4
prefetch_factor: 1
persistent_workers: true
lr_scheduler_type: cosine
learning_rate: 0.0001
warmup_steps: 0
num_epochs: 10
max_steps: null
log_every: 10
save_every: 500
keep_latest_state_only: true
eval_every: 250
eval_num_inference_steps: 10
eval_num_samples: 1
rank_timer_every: 10
rank_timer_sync_cuda: true
qwen_cache_batch_size: 32
qwen_cache_overwrite: false
qwen_cache_save_workers: 8
flux2_qwen3_model_spec: null
precache_arrow: true
precache_num_workers: 4
build_lerobot_meta_cache: true
build_norm_stats: true
precache_fuse_norm_stats: true
force_rebuild_norm_stats: false
norm_stats_use_arrow_cache: true
norm_stats_bulk_read_arrow: true
norm_stats_cache_enabled: true
norm_stats_cache_dir: null
precache_profile: false
precache_profile_min_sec: 0.0
gradient_accumulation_steps: 1
mixed_precision: bf16
seed: 42
max_grad_norm: 1.0
weight_decay: 0.01
resume: null
wandb:
enabled: true
workspace: null
project: imagewam
name: robotwin-full
group: null
mode: offline
data:
train:
_target_: imagewam.datasets.lerobot.robot_video_dataset.RobotVideoDataset
dataset_dirs:
- data/robotwin2.0
shape_meta:
images:
- key: cam_high
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_left_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_right_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
action:
- key: default
raw_shape: 14
shape: 14
state:
- key: default
raw_shape: 14
shape: 14
num_frames: 17
global_sample_stride: 1
action_video_freq_ratio: 1
video_size:
- 288
- 256
camera_key: null
val_set_proportion: 0.01
is_training_set: true
pretrained_norm_stats: ./data/robotwin2.0/dataset_stats.json
skip_padding_as_possible: false
concat_multi_camera: robotwin
robotwin_camera_layout: compact_288x256
video_augmentation:
_target_: imagewam.datasets.lerobot.transforms.image.VideoAugmentation
p: 0.5
augment_types:
- corrupt_only
- color_only
- both
color_jitter:
brightness: 0.2
contrast: 0.2
saturation: 0.2
hue: 0.03
gamma:
range:
- 0.9
- 1.1
gaussian_noise:
std: 0.01
random_resized_crop:
scale:
- 0.95
- 1.0
ratio: preserve
rotate:
degrees: 5.0
fill: mean
require_text_cache: false
endpoint_frames_only: true
nonidle_filter_path: data/robotwin2.0/nonidle_ranges.json
qwen_text_cache_dir: data/robotwin2.0/flux2_qwen3_cache_4b
qwen_context_len: 128
processor:
_target_: imagewam.datasets.lerobot.processors.imagewam_processor.ImageWAMProcessor
shape_meta:
images:
- key: cam_high
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_left_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_right_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
action:
- key: default
raw_shape: 14
shape: 14
state:
- key: default
raw_shape: 14
shape: 14
num_obs_steps: 17
image_obs_steps: 2
return_geometry_teacher_images: true
num_output_cameras: 3
action_output_dim: 14
proprio_output_dim: 14
action_state_transforms: null
use_stepwise_action_norm: false
norm_default_mode: z-score
norm_exception_mode: null
action_state_merger:
_target_: imagewam.datasets.lerobot.transforms.action_state_merger.ConcatLeftAlign
train_transforms:
- _target_: imagewam.datasets.lerobot.transforms.image.ToTensor
- _target_: torchvision.transforms.Resize
size:
- 240
- 320
val_transforms:
- _target_: imagewam.datasets.lerobot.transforms.image.ToTensor
- _target_: torchvision.transforms.Resize
size:
- 240
- 320
text_embedding_cache_dir: null
context_len: 128
qwen_text_cache_format: qwen3_flux2
val:
_target_: imagewam.datasets.lerobot.robot_video_dataset.RobotVideoDataset
dataset_dirs:
- data/robotwin2.0
shape_meta:
images:
- key: cam_high
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_left_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_right_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
action:
- key: default
raw_shape: 14
shape: 14
state:
- key: default
raw_shape: 14
shape: 14
num_frames: 17
global_sample_stride: 1
action_video_freq_ratio: 1
video_size:
- 288
- 256
camera_key: null
val_set_proportion: 0.01
is_training_set: false
pretrained_norm_stats: null
skip_padding_as_possible: false
concat_multi_camera: robotwin
robotwin_camera_layout: compact_288x256
video_augmentation: null
require_text_cache: false
endpoint_frames_only: true
nonidle_filter_path: data/robotwin2.0/nonidle_ranges.json
qwen_text_cache_dir: data/robotwin2.0/flux2_qwen3_cache_4b
qwen_context_len: 128
processor:
_target_: imagewam.datasets.lerobot.processors.imagewam_processor.ImageWAMProcessor
shape_meta:
images:
- key: cam_high
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_left_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
- key: cam_right_wrist
raw_shape:
- 3
- 480
- 640
shape:
- 3
- 240
- 320
action:
- key: default
raw_shape: 14
shape: 14
state:
- key: default
raw_shape: 14
shape: 14
num_obs_steps: 17
image_obs_steps: 2
return_geometry_teacher_images: true
num_output_cameras: 3
action_output_dim: 14
proprio_output_dim: 14
action_state_transforms: null
use_stepwise_action_norm: false
norm_default_mode: z-score
norm_exception_mode: null
action_state_merger:
_target_: imagewam.datasets.lerobot.transforms.action_state_merger.ConcatLeftAlign
train_transforms:
- _target_: imagewam.datasets.lerobot.transforms.image.ToTensor
- _target_: torchvision.transforms.Resize
size:
- 240
- 320
val_transforms:
- _target_: imagewam.datasets.lerobot.transforms.image.ToTensor
- _target_: torchvision.transforms.Resize
size:
- 240
- 320
text_embedding_cache_dir: null
context_len: 128
qwen_text_cache_format: qwen3_flux2
model:
_target_: imagewam.runtime.create_imagewam_flux2_klein
flux2_src_path: third_party/flux2
flux2_model_path: checkpoints/flux2/FLUX.2-klein-base-4B/flux-2-klein-base-4b.safetensors
ae_model_path: checkpoints/flux2/FLUX.2-dev/ae.safetensors
variant: klein-base-4b
qwen3_model_spec: checkpoints/Qwen/Qwen3-4B
qwen_context_len: 128
load_text_encoder: false
proprio_dim: 14
mot_checkpoint_mixed_attn: true
mot_gqa_implementation: repeat
mot_force_flash_attention: false
pack_proprio_after_text: true
action_dit_pretrained_path: checkpoints/action_dit_flux2_4b_robotwin_init.pt
flux2_lora_config:
enabled: false
rank: 16
alpha: 16.0
dropout: 0.0
save_lora_merged: false
save_trainable_only: false
target_suffixes:
- qkv
- proj
- linear1
- linear2
- img_mlp.0
- img_mlp.2
- txt_mlp.0
- txt_mlp.2
action_dit_config:
action_dim: 14
hidden_dim: 1024
num_heads: 24
attn_head_dim: 128
num_layers_double: 5
num_layers_single: 20
mlp_ratio: 4.0
max_action_horizon: 64
use_gradient_checkpointing: true
video_scheduler:
train_shift: 5.0
infer_shift: 5.0
num_train_timesteps: 1000
action_scheduler:
train_shift: 5.0
infer_shift: 5.0
num_train_timesteps: 1000
loss:
lambda_video: 0.5
lambda_action: 1.0
geometry_transition:
enabled: true
mode: bottleneck
action_condition: dropout
action_full_keep_prob: 0.5
target_read_prob_start: 1.0
target_read_prob_end: 0.0
target_read_decay_steps: 10000
target_read_always: false
weight: 0.1
scale_weight: 0.05
vggt_repo_path: null
vggt_model_id: checkpoints/VGGT-1B
vggt_drop_heads: true
projector_mid_channels: 256
num_heads: 8
objective:
- geometry_forcing
forcing_weight: 1.0
angular_weight: 0.5
forcing_norm_weight: 0.01
scale_head_hidden: null
background_weight: 0.1
share_teacher_forward: false
warp_ref_to_target: false
warp_method: flow
warp_drop_invalid: true
vggt_multiview: true
teacher_channels: 2048
num_camera_views: 3
camera_tiling: robotwin
use_action_aware_weight: true
action_weight_eta: 0.25
action_weight_temp: 0.07
loss_warmup_steps: 2000
loss_warmup_start_scale: 0.01
target_channels: 3
target_grid:
- 32
- 32
motion_thresh: 0.01
use_motion_weight: true
|