Robotics
LeRobot
Safetensors
gaze_flow_matching
fecasado commited on
Commit
31ef227
·
verified ·
1 Parent(s): 73ce25f

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 +252 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: fecasado/Ncubes-to-Nbaskets-320x240
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: gaze_flow_matching
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - gaze_flow_matching
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for gaze_flow_matching
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": "gaze_flow_matching",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.right": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 240,
9
+ 320,
10
+ 3
11
+ ]
12
+ },
13
+ "observation.images.left": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 240,
17
+ 320,
18
+ 3
19
+ ]
20
+ },
21
+ "observation.images.user": {
22
+ "type": "VISUAL",
23
+ "shape": [
24
+ 240,
25
+ 320,
26
+ 3
27
+ ]
28
+ }
29
+ },
30
+ "output_features": {
31
+ "action": {
32
+ "type": "ACTION",
33
+ "shape": [
34
+ 26
35
+ ]
36
+ }
37
+ },
38
+ "device": "cuda",
39
+ "use_amp": false,
40
+ "use_peft": false,
41
+ "push_to_hub": true,
42
+ "repo_id": "fecasado/gfm-cubes-baseline-vit",
43
+ "private": null,
44
+ "tags": null,
45
+ "license": null,
46
+ "pretrained_path": null,
47
+ "normalization_mapping": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MEAN_STD",
50
+ "ACTION": "MEAN_STD"
51
+ },
52
+ "gaze_feature_dim": 3,
53
+ "gaze_state_indices": [
54
+ -3,
55
+ -2,
56
+ -1
57
+ ],
58
+ "gaze_temporal_window": 1,
59
+ "vision_backbone": "resnet18",
60
+ "vit_token_size": 16,
61
+ "vit_foveation_strides": [
62
+ 1,
63
+ 2,
64
+ 6
65
+ ],
66
+ "vit_foveation_grid_sizes": [
67
+ 2,
68
+ 3,
69
+ 3
70
+ ],
71
+ "vit_model_size": "base",
72
+ "vit_pretrained_repo_id": "iantc104/mae_vitb_vit",
73
+ "vit_freeze": true,
74
+ "vit_backbone": "vit",
75
+ "gaze_cross_camera": false,
76
+ "gaze_cross_camera_method_train": "roma",
77
+ "gaze_cross_camera_method_inference": "roma",
78
+ "gaze_cross_camera_match_every": 5,
79
+ "gaze_cross_camera_timeout": 0.05,
80
+ "gaze_cross_camera_cache": null,
81
+ "obs_step_size": 1,
82
+ "n_action_steps": 2,
83
+ "horizon": 16,
84
+ "n_sampling_steps": 8,
85
+ "use_temporal_ensemble": true,
86
+ "temporal_ensemble_coeff": -0.01,
87
+ "dim_model": 512,
88
+ "n_heads": 8,
89
+ "mlp_ratio": 4.0,
90
+ "dropout": 0.1,
91
+ "dit_n_layers": 8,
92
+ "dit_time_dim": 256,
93
+ "pool_n_queries": 16,
94
+ "pool_n_layers": 4,
95
+ "use_gaze": false,
96
+ "use_gaze_as_action": false,
97
+ "gaze_model_repo_id": "",
98
+ "gaze_noise": 0.01,
99
+ "image_norm_mode": "mean_std",
100
+ "state_norm_mode": "min_max",
101
+ "action_norm_mode": "min_max",
102
+ "image_to_gaze_key": {},
103
+ "optimizer_lr": 0.0001,
104
+ "optimizer_lr_backbone": 0.0001,
105
+ "optimizer_betas": [
106
+ 0.95,
107
+ 0.999
108
+ ],
109
+ "optimizer_eps": 1e-08,
110
+ "optimizer_weight_decay": 1e-06,
111
+ "scheduler_name": "cosine",
112
+ "scheduler_warmup_steps": 500,
113
+ "use_ema": true,
114
+ "ema_decay": 0.99,
115
+ "input_shape": [
116
+ 240,
117
+ 320
118
+ ],
119
+ "visualize": true
120
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e41a2049c33d8c9f932085758cb8f93396878cb380f363cbbca4633730f132d
3
+ size 601631752
train_config.json ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "fecasado/Ncubes-to-Nbaskets-320x240",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": true,
8
+ "max_num_transforms": 1,
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
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "gaze_flow_matching",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.images.right": {
89
+ "type": "VISUAL",
90
+ "shape": [
91
+ 240,
92
+ 320,
93
+ 3
94
+ ]
95
+ },
96
+ "observation.images.left": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 240,
100
+ 320,
101
+ 3
102
+ ]
103
+ },
104
+ "observation.images.user": {
105
+ "type": "VISUAL",
106
+ "shape": [
107
+ 240,
108
+ 320,
109
+ 3
110
+ ]
111
+ }
112
+ },
113
+ "output_features": {
114
+ "action": {
115
+ "type": "ACTION",
116
+ "shape": [
117
+ 26
118
+ ]
119
+ }
120
+ },
121
+ "device": "cuda",
122
+ "use_amp": false,
123
+ "use_peft": false,
124
+ "push_to_hub": true,
125
+ "repo_id": "fecasado/gfm-cubes-baseline-vit",
126
+ "private": null,
127
+ "tags": null,
128
+ "license": null,
129
+ "pretrained_path": null,
130
+ "normalization_mapping": {
131
+ "VISUAL": "MEAN_STD",
132
+ "STATE": "MEAN_STD",
133
+ "ACTION": "MEAN_STD"
134
+ },
135
+ "gaze_feature_dim": 3,
136
+ "gaze_state_indices": [
137
+ -3,
138
+ -2,
139
+ -1
140
+ ],
141
+ "gaze_temporal_window": 1,
142
+ "vision_backbone": "resnet18",
143
+ "vit_token_size": 16,
144
+ "vit_foveation_strides": [
145
+ 1,
146
+ 2,
147
+ 6
148
+ ],
149
+ "vit_foveation_grid_sizes": [
150
+ 2,
151
+ 3,
152
+ 3
153
+ ],
154
+ "vit_model_size": "base",
155
+ "vit_pretrained_repo_id": "iantc104/mae_vitb_vit",
156
+ "vit_freeze": true,
157
+ "vit_backbone": "vit",
158
+ "gaze_cross_camera": false,
159
+ "gaze_cross_camera_method_train": "roma",
160
+ "gaze_cross_camera_method_inference": "roma",
161
+ "gaze_cross_camera_match_every": 5,
162
+ "gaze_cross_camera_timeout": 0.05,
163
+ "gaze_cross_camera_cache": null,
164
+ "obs_step_size": 1,
165
+ "n_action_steps": 2,
166
+ "horizon": 16,
167
+ "n_sampling_steps": 8,
168
+ "use_temporal_ensemble": true,
169
+ "temporal_ensemble_coeff": -0.01,
170
+ "dim_model": 512,
171
+ "n_heads": 8,
172
+ "mlp_ratio": 4.0,
173
+ "dropout": 0.1,
174
+ "dit_n_layers": 8,
175
+ "dit_time_dim": 256,
176
+ "pool_n_queries": 16,
177
+ "pool_n_layers": 4,
178
+ "use_gaze": false,
179
+ "use_gaze_as_action": false,
180
+ "gaze_model_repo_id": "",
181
+ "gaze_noise": 0.01,
182
+ "image_norm_mode": "mean_std",
183
+ "state_norm_mode": "min_max",
184
+ "action_norm_mode": "min_max",
185
+ "image_to_gaze_key": {},
186
+ "optimizer_lr": 0.0001,
187
+ "optimizer_lr_backbone": 0.0001,
188
+ "optimizer_betas": [
189
+ 0.95,
190
+ 0.999
191
+ ],
192
+ "optimizer_eps": 1e-08,
193
+ "optimizer_weight_decay": 1e-06,
194
+ "scheduler_name": "cosine",
195
+ "scheduler_warmup_steps": 500,
196
+ "use_ema": true,
197
+ "ema_decay": 0.99,
198
+ "input_shape": [
199
+ 240,
200
+ 320
201
+ ],
202
+ "visualize": true
203
+ },
204
+ "reward_model": null,
205
+ "output_dir": "outputs/train/gfm-cubes-baseline-vit",
206
+ "job_name": "gfm-cubes-baseline-vit",
207
+ "resume": false,
208
+ "seed": 1000,
209
+ "cudnn_deterministic": false,
210
+ "num_workers": 15,
211
+ "batch_size": 128,
212
+ "prefetch_factor": 4,
213
+ "persistent_workers": true,
214
+ "steps": 100000,
215
+ "eval_freq": 20000,
216
+ "log_freq": 200,
217
+ "tolerance_s": 0.0001,
218
+ "save_checkpoint": true,
219
+ "save_freq": 10000,
220
+ "use_policy_training_preset": true,
221
+ "optimizer": {
222
+ "type": "adamw",
223
+ "lr": 0.0001,
224
+ "weight_decay": 1e-06,
225
+ "grad_clip_norm": 10.0,
226
+ "betas": [
227
+ 0.95,
228
+ 0.999
229
+ ],
230
+ "eps": 1e-08
231
+ },
232
+ "scheduler": null,
233
+ "eval": {
234
+ "n_episodes": 50,
235
+ "batch_size": 11,
236
+ "use_async_envs": true
237
+ },
238
+ "wandb": {
239
+ "enable": true,
240
+ "disable_artifact": true,
241
+ "project": "lerobot",
242
+ "entity": null,
243
+ "notes": null,
244
+ "run_id": "ygwzfrro",
245
+ "mode": null,
246
+ "add_tags": true
247
+ },
248
+ "peft": null,
249
+ "sample_weighting": null,
250
+ "rename_map": {},
251
+ "checkpoint_path": null
252
+ }