File size: 4,568 Bytes
c42ed4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
data_mount_dir: null
output_root: null
wandb_project: null
wandb_entity: null
task_name: null
resume: true
save_steps: 10000
epoch_save_interval: 10000
freeze_vision: false
freeze_vlm: false
debug: false
seed: 42
total_batch_size: 512
batch_size: 64
use_bf16: true
num_workers: 8
prefetch_factor: 2
pretrain_model_load_path: null
action_chunk_size: 51
rotation_type: 6d
vla_name: CogACT2
attn_backend: fa4
model:
  action_chunk_size: 51
  rotation_type: 6d
  state_encoder:
    state_mask_prob: 0.0
  extra_encoders:
    fov:
      dim: 2
      enabled: true
      use_norm: false
      concat_mask: false
      num_tokens: 3
      need_stat: true
  act_head:
    state_fov_injection: adaln
    type: flow_matching
    position_embedding:
      pe_type: hwt_rope
      rope:
        base: 10000.0
        action_start: 512
        history_t_minus_one: true
    action_feature_length: 1000
    use_attn_mask: true
    cfg_type: attn_mask
    flow_matching_config:
      net:
        model_type: DiT-L
        compile_elementwise: true
        ln_elementwise_affine: false
        attn_backend: fa4
        qk_norm: true
        input_x_norm: false
        input_z_norm: false
      predict_x0: true
      predict_x0_v: false
      time_sample_method: logit
      sample_mean: 0.0
      class_dropout_prob: 0.1
      cfg_visual_only_ratio: 0.5
      random_chunk:
        enabled: false
        min_len: 8
        sample_method: uniform
      loss_config:
        loss_calculator_type: SimpleLossCalculator
        trans_weight: 1
        rot_weight: 1
        gripper_weight: 1
        joint_weight: 1
        progress_weight: 0.0
        image_xy_weight: 0.1
        point_xyz_weight: 0.1
        cam_robot_trans_weight: 1.0
        cam_robot_rot_weight: 1.0
        cam_robot_gripper_weight: 1.0
        huber_clamp_losses:
        - name: point_xyz
          threshold: 0.04
        - name: cam_robot_trans
          threshold: 0.02
        first_order_weight: 0.0
        second_order_weight: 0.0
  repeated_diffusion_steps: 8
  pack_vlm_tokens: true
  vl_encoders:
  - name: Qwen35VLEncoder
    model_name_or_path: Alibaba-DAMO-Academy/RynnBrain1.1-2B
    use_system_prompt: true
  lora:
    enabled: false
    r: 64
    alpha: 128
    dropout: 0.05
    module_strategy:
      vision: lora
      language: lora
      vl_projector: train
train_dataset:
  data_root_dir: null
  data_mix: robotwin
  seed: 42
  unnorm_key: null
  episode_dataset_name: episodic_dataset.npy
  collator:
    class: PaddedCollatorForCotrainV2
    vla_prepend_rows: 21
    num_views: 3
  frame_dataset:
    action_chunk_size: 30
    use_episode_frame_index: false
    post_processor: LightPostProcessor
    validate_camera_calibration: true
    max_invalid_calibration_retries: 10
  post_processor:
    instruction_lower: true
  datasets_params:
    common:
      action_chunk_size: 30
      stride: 1
      action_space: camera
      state_space: camera
      random_gen_image: false
      rotation_type: 6d
      state_rotation_type: null
      translation_action_from_state_type: abs
      rotation_action_from_state_type: abs
      state_include_gripper: true
      use_action_norm: true
      use_state_norm: true
      extra_encoders:
        fov:
          dim: 2
          enabled: true
          use_norm: false
          concat_mask: false
          num_tokens: 3
          need_stat: true
      view_number: 3
      norm_type: gaussian
      force_gripper_identity_norm: true
      video_backend: decord
      video_index_dir: null
    RobotwinEpisodicDataset:
      data_format: unified
      use_lmdb: true
      use_action_norm: true
      use_state_norm: true
      unified_end_frame: true
      view_number: 3
      min_action_length: 10
      action_chunk_fill_mode: interpolation
      resize: true
      image_size:
      - 352
      - 256
      use_episode_json_instruction: true
      instruction_prefix: ''
      clean_only: false
      skip_loop_episodes: false
      image_aug: true
      image_augmentation_params:
        brightness: 0.3
        contrast: 0.4
        saturation: 0.5
        hue: 0.1
        apply_jitter_prob: 0.8
        gamma: 0.1
        rgb_gain_prob: 0.7
        rgb_gain_range:
        - 0.8
        - 1.2
        shadow_prob: 0.7
        shadow_depth_range:
        - 0.15
        - 0.35
        shadow_sigma_range:
        - 0.25
        - 0.6
      image_history:
        enable: true
        offsets:
        - -30
        random_drop: true
      data_subdir: data
      lmdb_path: null
vla_prepend_rows: 21
trajectory_chunk_size: 30