Robotics
LeRobot
Safetensors
gaze_flow_matching
fecasado commited on
Commit
42a2e9a
·
verified ·
1 Parent(s): c3bd369

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +134 -0
  3. model.safetensors +3 -0
  4. train_config.json +266 -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
+ - gaze_flow_matching
9
+ - lerobot
10
+ - robotics
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,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-27a",
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
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
61
+ "vit_token_size": 16,
62
+ "vit_foveation_strides": [
63
+ 1,
64
+ 2,
65
+ 6
66
+ ],
67
+ "vit_foveation_grid_sizes": [
68
+ 2,
69
+ 3,
70
+ 3
71
+ ],
72
+ "vit_model_size": "base",
73
+ "vit_pretrained_repo_id": "",
74
+ "vit_freeze": false,
75
+ "vit_backbone": "resnet18",
76
+ "gaze_cross_camera": false,
77
+ "gaze_cross_camera_method_train": "roma",
78
+ "gaze_cross_camera_method_inference": "roma",
79
+ "gaze_cross_camera_match_every": 5,
80
+ "gaze_cross_camera_timeout": 0.05,
81
+ "gaze_cross_camera_cache": null,
82
+ "gaze_cross_camera_smoothing": 0.9,
83
+ "gaze_heatmap": false,
84
+ "gaze_heatmap_sigma": 60.0,
85
+ "gaze_heatmap_decay": 1.0,
86
+ "gaze_camera": "user",
87
+ "gaze_overlay": false,
88
+ "gaze_overlay_radius": 12,
89
+ "gaze_overlay_alpha": 0.5,
90
+ "gaze_film": false,
91
+ "gaze_foveation_resnet": true,
92
+ "gaze_foveation_crop_size": 100,
93
+ "gaze_foveation_crop_factor": 2.0,
94
+ "gaze_smoothing": 0.8,
95
+ "obs_step_size": 1,
96
+ "n_action_steps": 2,
97
+ "horizon": 16,
98
+ "n_sampling_steps": 8,
99
+ "use_temporal_ensemble": true,
100
+ "temporal_ensemble_coeff": -0.01,
101
+ "dim_model": 512,
102
+ "n_heads": 8,
103
+ "mlp_ratio": 4.0,
104
+ "dropout": 0.1,
105
+ "dit_n_layers": 8,
106
+ "dit_time_dim": 256,
107
+ "pool_n_queries": 16,
108
+ "pool_n_layers": 4,
109
+ "use_gaze": true,
110
+ "use_gaze_as_action": false,
111
+ "gaze_model_repo_id": "",
112
+ "gaze_noise": 0.01,
113
+ "image_norm_mode": "mean_std",
114
+ "state_norm_mode": "min_max",
115
+ "action_norm_mode": "min_max",
116
+ "image_to_gaze_key": {},
117
+ "optimizer_lr": 0.0001,
118
+ "optimizer_lr_backbone": 0.0001,
119
+ "optimizer_betas": [
120
+ 0.95,
121
+ 0.999
122
+ ],
123
+ "optimizer_eps": 1e-08,
124
+ "optimizer_weight_decay": 1e-06,
125
+ "scheduler_name": "cosine",
126
+ "scheduler_warmup_steps": 500,
127
+ "use_ema": true,
128
+ "ema_decay": 0.99,
129
+ "input_shape": [
130
+ 240,
131
+ 320
132
+ ],
133
+ "visualize": true
134
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f88cafb55752f0adc6fe3083df8475d61c0a82fc3341ad29fa6e7476632d0831
3
+ size 300950600
train_config.json ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-27a",
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
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
144
+ "vit_token_size": 16,
145
+ "vit_foveation_strides": [
146
+ 1,
147
+ 2,
148
+ 6
149
+ ],
150
+ "vit_foveation_grid_sizes": [
151
+ 2,
152
+ 3,
153
+ 3
154
+ ],
155
+ "vit_model_size": "base",
156
+ "vit_pretrained_repo_id": "",
157
+ "vit_freeze": false,
158
+ "vit_backbone": "resnet18",
159
+ "gaze_cross_camera": false,
160
+ "gaze_cross_camera_method_train": "roma",
161
+ "gaze_cross_camera_method_inference": "roma",
162
+ "gaze_cross_camera_match_every": 5,
163
+ "gaze_cross_camera_timeout": 0.05,
164
+ "gaze_cross_camera_cache": null,
165
+ "gaze_cross_camera_smoothing": 0.9,
166
+ "gaze_heatmap": false,
167
+ "gaze_heatmap_sigma": 60.0,
168
+ "gaze_heatmap_decay": 1.0,
169
+ "gaze_camera": "user",
170
+ "gaze_overlay": false,
171
+ "gaze_overlay_radius": 12,
172
+ "gaze_overlay_alpha": 0.5,
173
+ "gaze_film": false,
174
+ "gaze_foveation_resnet": true,
175
+ "gaze_foveation_crop_size": 100,
176
+ "gaze_foveation_crop_factor": 2.0,
177
+ "gaze_smoothing": 0.8,
178
+ "obs_step_size": 1,
179
+ "n_action_steps": 2,
180
+ "horizon": 16,
181
+ "n_sampling_steps": 8,
182
+ "use_temporal_ensemble": true,
183
+ "temporal_ensemble_coeff": -0.01,
184
+ "dim_model": 512,
185
+ "n_heads": 8,
186
+ "mlp_ratio": 4.0,
187
+ "dropout": 0.1,
188
+ "dit_n_layers": 8,
189
+ "dit_time_dim": 256,
190
+ "pool_n_queries": 16,
191
+ "pool_n_layers": 4,
192
+ "use_gaze": true,
193
+ "use_gaze_as_action": false,
194
+ "gaze_model_repo_id": "",
195
+ "gaze_noise": 0.01,
196
+ "image_norm_mode": "mean_std",
197
+ "state_norm_mode": "min_max",
198
+ "action_norm_mode": "min_max",
199
+ "image_to_gaze_key": {},
200
+ "optimizer_lr": 0.0001,
201
+ "optimizer_lr_backbone": 0.0001,
202
+ "optimizer_betas": [
203
+ 0.95,
204
+ 0.999
205
+ ],
206
+ "optimizer_eps": 1e-08,
207
+ "optimizer_weight_decay": 1e-06,
208
+ "scheduler_name": "cosine",
209
+ "scheduler_warmup_steps": 500,
210
+ "use_ema": true,
211
+ "ema_decay": 0.99,
212
+ "input_shape": [
213
+ 240,
214
+ 320
215
+ ],
216
+ "visualize": true
217
+ },
218
+ "reward_model": null,
219
+ "output_dir": "outputs/train/gfm-cubes-27a",
220
+ "job_name": "gfm-cubes-27a",
221
+ "resume": false,
222
+ "seed": 1000,
223
+ "cudnn_deterministic": false,
224
+ "num_workers": 15,
225
+ "batch_size": 128,
226
+ "prefetch_factor": 4,
227
+ "persistent_workers": true,
228
+ "steps": 100000,
229
+ "eval_freq": 20000,
230
+ "log_freq": 200,
231
+ "tolerance_s": 0.0001,
232
+ "save_checkpoint": true,
233
+ "save_freq": 10000,
234
+ "use_policy_training_preset": true,
235
+ "optimizer": {
236
+ "type": "adamw",
237
+ "lr": 0.0001,
238
+ "weight_decay": 1e-06,
239
+ "grad_clip_norm": 10.0,
240
+ "betas": [
241
+ 0.95,
242
+ 0.999
243
+ ],
244
+ "eps": 1e-08
245
+ },
246
+ "scheduler": null,
247
+ "eval": {
248
+ "n_episodes": 50,
249
+ "batch_size": 11,
250
+ "use_async_envs": true
251
+ },
252
+ "wandb": {
253
+ "enable": true,
254
+ "disable_artifact": true,
255
+ "project": "lerobot",
256
+ "entity": null,
257
+ "notes": null,
258
+ "run_id": "iticxnw0",
259
+ "mode": null,
260
+ "add_tags": true
261
+ },
262
+ "peft": null,
263
+ "sample_weighting": null,
264
+ "rename_map": {},
265
+ "checkpoint_path": null
266
+ }