Foresight Forcing
Initial release
d2fceff
Raw History Blame Contribute Delete
10.1 kB
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