Robotics
LeRobot
Safetensors
mact_flow
aposadasn commited on
Commit
7af6ee7
·
verified ·
1 Parent(s): fae6109

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +120 -0
  3. model.safetensors +3 -0
  4. train_config.json +290 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: aposadasn/xarm7_beavrsim_shellgame_labeled_cartesian
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: mact_flow
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
10
+ - mact_flow
11
+ ---
12
+
13
+ # Model Card for mact_flow
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ _Model type not recognized — please update this template._
19
+
20
+
21
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
22
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
23
+
24
+ ---
25
+
26
+ ## How to Get Started with the Model
27
+
28
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
29
+ Below is the short version on how to train and run inference/eval:
30
+
31
+ ### Train from scratch
32
+
33
+ ```bash
34
+ lerobot-train \
35
+ --dataset.repo_id=${HF_USER}/<dataset> \
36
+ --policy.type=act \
37
+ --output_dir=outputs/train/<desired_policy_repo_id> \
38
+ --job_name=lerobot_training \
39
+ --policy.device=cuda \
40
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
41
+ --wandb.enable=true
42
+ ```
43
+
44
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
45
+
46
+ ### Evaluate the policy/run inference
47
+
48
+ ```bash
49
+ lerobot-record \
50
+ --robot.type=so100_follower \
51
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
52
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
53
+ --episodes=10
54
+ ```
55
+
56
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
57
+
58
+ ---
59
+
60
+ ## Model Details
61
+
62
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "mact_flow",
3
+ "n_obs_steps": 20,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 8
9
+ ]
10
+ },
11
+ "observation.images.overhead": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.environment_state": {
20
+ "type": "ENV",
21
+ "shape": [
22
+ 13
23
+ ]
24
+ }
25
+ },
26
+ "output_features": {
27
+ "action": {
28
+ "type": "ACTION",
29
+ "shape": [
30
+ 8
31
+ ]
32
+ }
33
+ },
34
+ "device": "cuda",
35
+ "use_amp": false,
36
+ "use_peft": false,
37
+ "push_to_hub": true,
38
+ "repo_id": "arclabmit/xarm7_beavrsim_mact_flow_shell_game_model",
39
+ "private": null,
40
+ "tags": null,
41
+ "license": null,
42
+ "pretrained_path": null,
43
+ "n_history_tokens": 20,
44
+ "chunk_size": 32,
45
+ "n_action_steps": 1,
46
+ "observation_stride": 8,
47
+ "normalization_mapping": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MEAN_STD",
50
+ "ACTION": "MIN_MAX"
51
+ },
52
+ "vision_backbone": "resnet18",
53
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
54
+ "replace_final_stride_with_dilation": false,
55
+ "dim_model": 512,
56
+ "n_heads": 8,
57
+ "dim_feedforward": 3200,
58
+ "n_dit_layers": 16,
59
+ "dit_attention_head_dim": 64,
60
+ "n_cond_self_attn_layers": 2,
61
+ "num_inference_steps": 4,
62
+ "num_timestep_buckets": 1000,
63
+ "noise_beta_alpha": 1.5,
64
+ "noise_beta_beta": 1.0,
65
+ "noise_s": 0.999,
66
+ "do_mask_loss_for_padding": true,
67
+ "temporal_ensemble_coeff": null,
68
+ "dropout": 0.1,
69
+ "optimizer_lr": 0.0001,
70
+ "optimizer_weight_decay": 0.0001,
71
+ "optimizer_lr_backbone": 1e-05,
72
+ "freeze_history_backbone": false,
73
+ "n_mamba2_layers": 4,
74
+ "n_spatial_attn_layers": 2,
75
+ "n_spatial_tokens": 16,
76
+ "use_optical_flow": false,
77
+ "max_images_per_chunk": 64,
78
+ "history_image_size": [
79
+ 224,
80
+ 224
81
+ ],
82
+ "spatial_adapter_hidden_dim": 512,
83
+ "spatial_adapter_dropout": 0.1,
84
+ "use_vq_mode": true,
85
+ "n_vq_codes": 8,
86
+ "vq_dim": null,
87
+ "vq_commitment_weight": 0.25,
88
+ "vq_mode_loss_weight": 5.0,
89
+ "vq_codebook_loss_weight": 1.0,
90
+ "use_teacher_forcing": true,
91
+ "use_classifier_inference": true,
92
+ "teacher_forcing_start_prob": 1.0,
93
+ "teacher_forcing_end_prob": 0.0,
94
+ "teacher_forcing_decay_steps": 50000,
95
+ "use_action_mode_classifier": true,
96
+ "action_mode_hidden_dim": 128,
97
+ "action_mode_n_conv_layers": 2,
98
+ "action_mode_kernel_size": 5,
99
+ "action_mode_bootstrap_weight": 1.0,
100
+ "action_mode_pred_weight": 1.0,
101
+ "action_mode_use_ee": true,
102
+ "fk_head_hidden_dim": 64,
103
+ "fk_head_loss_weight": 1.0,
104
+ "use_point_tracking": true,
105
+ "n_tracked_points": 3,
106
+ "tracking_point_dim": 3,
107
+ "tracking_loss_weight": 1.0,
108
+ "use_history_mode_classifier": true,
109
+ "history_mode_loss_weight": 2.0,
110
+ "use_env_state_as_privileged_supervision": true,
111
+ "env_state_positions_slice": [
112
+ 0,
113
+ 9
114
+ ],
115
+ "env_state_target_id_index": 9,
116
+ "env_state_ee_pos_slice": [
117
+ 10,
118
+ 13
119
+ ]
120
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ef6d1b04411a01f0564910f2bdb679213abc3f887234cb72e12c496e07c23e3
3
+ size 457008232
train_config.json ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "aposadasn/xarm7_beavrsim_shellgame_labeled_cartesian",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": false,
8
+ "max_num_transforms": 3,
9
+ "random_order": false,
10
+ "tfs": {
11
+ "brightness": {
12
+ "weight": 1.0,
13
+ "type": "ColorJitter",
14
+ "kwargs": {
15
+ "brightness": [
16
+ 0.8,
17
+ 1.2
18
+ ]
19
+ }
20
+ },
21
+ "contrast": {
22
+ "weight": 1.0,
23
+ "type": "ColorJitter",
24
+ "kwargs": {
25
+ "contrast": [
26
+ 0.8,
27
+ 1.2
28
+ ]
29
+ }
30
+ },
31
+ "saturation": {
32
+ "weight": 1.0,
33
+ "type": "ColorJitter",
34
+ "kwargs": {
35
+ "saturation": [
36
+ 0.5,
37
+ 1.5
38
+ ]
39
+ }
40
+ },
41
+ "hue": {
42
+ "weight": 1.0,
43
+ "type": "ColorJitter",
44
+ "kwargs": {
45
+ "hue": [
46
+ -0.05,
47
+ 0.05
48
+ ]
49
+ }
50
+ },
51
+ "sharpness": {
52
+ "weight": 1.0,
53
+ "type": "SharpnessJitter",
54
+ "kwargs": {
55
+ "sharpness": [
56
+ 0.5,
57
+ 1.5
58
+ ]
59
+ }
60
+ },
61
+ "affine": {
62
+ "weight": 1.0,
63
+ "type": "RandomAffine",
64
+ "kwargs": {
65
+ "degrees": [
66
+ -5.0,
67
+ 5.0
68
+ ],
69
+ "translate": [
70
+ 0.05,
71
+ 0.05
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "revision": null,
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": {
83
+ "type": "beavr",
84
+ "task": null,
85
+ "fps": 30,
86
+ "features": {
87
+ "action": {
88
+ "type": "ACTION",
89
+ "shape": [
90
+ 8
91
+ ]
92
+ },
93
+ "agent_pos": {
94
+ "type": "STATE",
95
+ "shape": [
96
+ 8
97
+ ]
98
+ },
99
+ "overhead": {
100
+ "type": "VISUAL",
101
+ "shape": [
102
+ 3,
103
+ 480,
104
+ 640
105
+ ]
106
+ }
107
+ },
108
+ "features_map": {
109
+ "action": "action",
110
+ "agent_pos": "observation.state",
111
+ "overhead": "observation.images.overhead"
112
+ },
113
+ "max_parallel_tasks": 1,
114
+ "disable_env_checker": true,
115
+ "scene": "scene_shell_game",
116
+ "episode_length": 1000,
117
+ "seed": null
118
+ },
119
+ "policy": {
120
+ "type": "mact_flow",
121
+ "n_obs_steps": 20,
122
+ "input_features": {
123
+ "observation.state": {
124
+ "type": "STATE",
125
+ "shape": [
126
+ 8
127
+ ]
128
+ },
129
+ "observation.images.overhead": {
130
+ "type": "VISUAL",
131
+ "shape": [
132
+ 3,
133
+ 480,
134
+ 640
135
+ ]
136
+ },
137
+ "observation.environment_state": {
138
+ "type": "ENV",
139
+ "shape": [
140
+ 13
141
+ ]
142
+ }
143
+ },
144
+ "output_features": {
145
+ "action": {
146
+ "type": "ACTION",
147
+ "shape": [
148
+ 8
149
+ ]
150
+ }
151
+ },
152
+ "device": "cuda",
153
+ "use_amp": false,
154
+ "use_peft": false,
155
+ "push_to_hub": true,
156
+ "repo_id": "arclabmit/xarm7_beavrsim_mact_flow_shell_game_model",
157
+ "private": null,
158
+ "tags": null,
159
+ "license": null,
160
+ "pretrained_path": null,
161
+ "n_history_tokens": 20,
162
+ "chunk_size": 32,
163
+ "n_action_steps": 1,
164
+ "observation_stride": 8,
165
+ "normalization_mapping": {
166
+ "VISUAL": "MEAN_STD",
167
+ "STATE": "MEAN_STD",
168
+ "ACTION": "MIN_MAX"
169
+ },
170
+ "vision_backbone": "resnet18",
171
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
172
+ "replace_final_stride_with_dilation": false,
173
+ "dim_model": 512,
174
+ "n_heads": 8,
175
+ "dim_feedforward": 3200,
176
+ "n_dit_layers": 16,
177
+ "dit_attention_head_dim": 64,
178
+ "n_cond_self_attn_layers": 2,
179
+ "num_inference_steps": 4,
180
+ "num_timestep_buckets": 1000,
181
+ "noise_beta_alpha": 1.5,
182
+ "noise_beta_beta": 1.0,
183
+ "noise_s": 0.999,
184
+ "do_mask_loss_for_padding": true,
185
+ "temporal_ensemble_coeff": null,
186
+ "dropout": 0.1,
187
+ "optimizer_lr": 0.0001,
188
+ "optimizer_weight_decay": 0.0001,
189
+ "optimizer_lr_backbone": 1e-05,
190
+ "freeze_history_backbone": false,
191
+ "n_mamba2_layers": 4,
192
+ "n_spatial_attn_layers": 2,
193
+ "n_spatial_tokens": 16,
194
+ "use_optical_flow": false,
195
+ "max_images_per_chunk": 64,
196
+ "history_image_size": [
197
+ 224,
198
+ 224
199
+ ],
200
+ "spatial_adapter_hidden_dim": 512,
201
+ "spatial_adapter_dropout": 0.1,
202
+ "use_vq_mode": true,
203
+ "n_vq_codes": 8,
204
+ "vq_dim": null,
205
+ "vq_commitment_weight": 0.25,
206
+ "vq_mode_loss_weight": 5.0,
207
+ "vq_codebook_loss_weight": 1.0,
208
+ "use_teacher_forcing": true,
209
+ "use_classifier_inference": true,
210
+ "teacher_forcing_start_prob": 1.0,
211
+ "teacher_forcing_end_prob": 0.0,
212
+ "teacher_forcing_decay_steps": 50000,
213
+ "use_action_mode_classifier": true,
214
+ "action_mode_hidden_dim": 128,
215
+ "action_mode_n_conv_layers": 2,
216
+ "action_mode_kernel_size": 5,
217
+ "action_mode_bootstrap_weight": 1.0,
218
+ "action_mode_pred_weight": 1.0,
219
+ "action_mode_use_ee": true,
220
+ "fk_head_hidden_dim": 64,
221
+ "fk_head_loss_weight": 1.0,
222
+ "use_point_tracking": true,
223
+ "n_tracked_points": 3,
224
+ "tracking_point_dim": 3,
225
+ "tracking_loss_weight": 1.0,
226
+ "use_history_mode_classifier": true,
227
+ "history_mode_loss_weight": 2.0,
228
+ "use_env_state_as_privileged_supervision": true,
229
+ "env_state_positions_slice": [
230
+ 0,
231
+ 9
232
+ ],
233
+ "env_state_target_id_index": 9,
234
+ "env_state_ee_pos_slice": [
235
+ 10,
236
+ 13
237
+ ]
238
+ },
239
+ "output_dir": "outputs/train/2026-03-05/12-45-49_xarm7_mact_beavrsim_shell_game",
240
+ "job_name": "xarm7_mact_beavrsim_shell_game",
241
+ "resume": false,
242
+ "seed": 1000,
243
+ "num_workers": 4,
244
+ "batch_size": 8,
245
+ "steps": 100000,
246
+ "eval_freq": 20000,
247
+ "log_freq": 200,
248
+ "tolerance_s": 0.0001,
249
+ "save_checkpoint": true,
250
+ "save_freq": 20000,
251
+ "use_policy_training_preset": true,
252
+ "optimizer": {
253
+ "type": "adam",
254
+ "lr": 0.0001,
255
+ "weight_decay": 0.0001,
256
+ "grad_clip_norm": 10.0,
257
+ "betas": [
258
+ 0.9,
259
+ 0.999
260
+ ],
261
+ "eps": 1e-08
262
+ },
263
+ "scheduler": {
264
+ "type": "diffuser",
265
+ "num_warmup_steps": 500,
266
+ "name": "cosine"
267
+ },
268
+ "eval": {
269
+ "n_episodes": 50,
270
+ "batch_size": 50,
271
+ "use_async_envs": false
272
+ },
273
+ "wandb": {
274
+ "enable": true,
275
+ "disable_artifact": false,
276
+ "project": "lerobot",
277
+ "entity": null,
278
+ "notes": null,
279
+ "run_id": "6a5kerwv",
280
+ "mode": null
281
+ },
282
+ "peft": null,
283
+ "use_rabc": false,
284
+ "rabc_progress_path": null,
285
+ "rabc_kappa": 0.01,
286
+ "rabc_epsilon": 1e-06,
287
+ "rabc_head_mode": "sparse",
288
+ "rename_map": {},
289
+ "checkpoint_path": null
290
+ }