Robotics
LeRobot
Safetensors
gaze_act
fecasado commited on
Commit
eee3a35
·
verified ·
1 Parent(s): bc69020

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +124 -0
  3. model.safetensors +3 -0
  4. train_config.json +256 -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_act
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - gaze_act
11
+ ---
12
+
13
+ # Model Card for gaze_act
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,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "gaze_act",
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/gact-cubes-25b1",
43
+ "private": null,
44
+ "tags": null,
45
+ "license": null,
46
+ "pretrained_path": null,
47
+ "chunk_size": 30,
48
+ "n_action_steps": 1,
49
+ "normalization_mapping": {
50
+ "VISUAL": "MEAN_STD",
51
+ "STATE": "MEAN_STD",
52
+ "ACTION": "MEAN_STD"
53
+ },
54
+ "vision_backbone": "resnet18",
55
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
56
+ "replace_final_stride_with_dilation": false,
57
+ "pre_norm": false,
58
+ "dim_model": 512,
59
+ "n_heads": 8,
60
+ "dim_feedforward": 3200,
61
+ "feedforward_activation": "relu",
62
+ "n_encoder_layers": 4,
63
+ "n_decoder_layers": 1,
64
+ "use_vae": true,
65
+ "latent_dim": 32,
66
+ "n_vae_encoder_layers": 4,
67
+ "temporal_ensemble_coeff": 0.01,
68
+ "dropout": 0.1,
69
+ "kl_weight": 10.0,
70
+ "optimizer_lr": 1e-05,
71
+ "optimizer_weight_decay": 0.0001,
72
+ "optimizer_lr_backbone": 1e-05,
73
+ "vit_token_size": 16,
74
+ "vit_foveation_strides": [
75
+ 1,
76
+ 2,
77
+ 6
78
+ ],
79
+ "vit_foveation_grid_sizes": [
80
+ 2,
81
+ 3,
82
+ 3
83
+ ],
84
+ "vit_model_size": "base",
85
+ "vit_pretrained_repo_id": "",
86
+ "vit_freeze": false,
87
+ "vit_backbone": "resnet18",
88
+ "gaze_feature_dim": 3,
89
+ "gaze_state_indices": [
90
+ -3,
91
+ -2,
92
+ -1
93
+ ],
94
+ "gaze_temporal_window": 1,
95
+ "gaze_cross_camera": true,
96
+ "gaze_cross_camera_method_train": "roma",
97
+ "gaze_cross_camera_method_inference": "roma",
98
+ "gaze_cross_camera_match_every": 5,
99
+ "gaze_cross_camera_timeout": 0.05,
100
+ "gaze_cross_camera_smoothing": 0.9,
101
+ "gaze_cross_camera_cache": null,
102
+ "gaze_token": false,
103
+ "gaze_heatmap": false,
104
+ "gaze_heatmap_sigma": 60.0,
105
+ "gaze_heatmap_decay": 1.0,
106
+ "gaze_film": false,
107
+ "gaze_film_multilayer": false,
108
+ "gaze_foveation_resnet": false,
109
+ "gaze_foveation_crop_size": 160,
110
+ "gaze_foveation_crop_factor": 2.0,
111
+ "gaze_smoothing": 0.0,
112
+ "gaze_overlay": true,
113
+ "gaze_overlay_radius": 12,
114
+ "gaze_overlay_alpha": 0.5,
115
+ "gaze_camera": "user",
116
+ "gaze_attention_guidance": false,
117
+ "gaze_attention_weight": 1.0,
118
+ "gaze_contrastive": false,
119
+ "gaze_contrastive_weight": 0.1,
120
+ "gaze_contrastive_negatives": 16,
121
+ "gaze_contrastive_tau": 0.07,
122
+ "gaze_prediction": false,
123
+ "gaze_prediction_weight": 0.1
124
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebab8022ef91e04d2f48c98cdfc5267935b7d671cbe4188e5eabc6edf5a3a247
3
+ size 206461792
train_config.json ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_act",
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/gact-cubes-25b1",
126
+ "private": null,
127
+ "tags": null,
128
+ "license": null,
129
+ "pretrained_path": null,
130
+ "chunk_size": 30,
131
+ "n_action_steps": 1,
132
+ "normalization_mapping": {
133
+ "VISUAL": "MEAN_STD",
134
+ "STATE": "MEAN_STD",
135
+ "ACTION": "MEAN_STD"
136
+ },
137
+ "vision_backbone": "resnet18",
138
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
139
+ "replace_final_stride_with_dilation": false,
140
+ "pre_norm": false,
141
+ "dim_model": 512,
142
+ "n_heads": 8,
143
+ "dim_feedforward": 3200,
144
+ "feedforward_activation": "relu",
145
+ "n_encoder_layers": 4,
146
+ "n_decoder_layers": 1,
147
+ "use_vae": true,
148
+ "latent_dim": 32,
149
+ "n_vae_encoder_layers": 4,
150
+ "temporal_ensemble_coeff": 0.01,
151
+ "dropout": 0.1,
152
+ "kl_weight": 10.0,
153
+ "optimizer_lr": 1e-05,
154
+ "optimizer_weight_decay": 0.0001,
155
+ "optimizer_lr_backbone": 1e-05,
156
+ "vit_token_size": 16,
157
+ "vit_foveation_strides": [
158
+ 1,
159
+ 2,
160
+ 6
161
+ ],
162
+ "vit_foveation_grid_sizes": [
163
+ 2,
164
+ 3,
165
+ 3
166
+ ],
167
+ "vit_model_size": "base",
168
+ "vit_pretrained_repo_id": "",
169
+ "vit_freeze": false,
170
+ "vit_backbone": "resnet18",
171
+ "gaze_feature_dim": 3,
172
+ "gaze_state_indices": [
173
+ -3,
174
+ -2,
175
+ -1
176
+ ],
177
+ "gaze_temporal_window": 1,
178
+ "gaze_cross_camera": true,
179
+ "gaze_cross_camera_method_train": "roma",
180
+ "gaze_cross_camera_method_inference": "roma",
181
+ "gaze_cross_camera_match_every": 5,
182
+ "gaze_cross_camera_timeout": 0.05,
183
+ "gaze_cross_camera_smoothing": 0.9,
184
+ "gaze_cross_camera_cache": null,
185
+ "gaze_token": false,
186
+ "gaze_heatmap": false,
187
+ "gaze_heatmap_sigma": 60.0,
188
+ "gaze_heatmap_decay": 1.0,
189
+ "gaze_film": false,
190
+ "gaze_film_multilayer": false,
191
+ "gaze_foveation_resnet": false,
192
+ "gaze_foveation_crop_size": 160,
193
+ "gaze_foveation_crop_factor": 2.0,
194
+ "gaze_smoothing": 0.0,
195
+ "gaze_overlay": true,
196
+ "gaze_overlay_radius": 12,
197
+ "gaze_overlay_alpha": 0.5,
198
+ "gaze_camera": "user",
199
+ "gaze_attention_guidance": false,
200
+ "gaze_attention_weight": 1.0,
201
+ "gaze_contrastive": false,
202
+ "gaze_contrastive_weight": 0.1,
203
+ "gaze_contrastive_negatives": 16,
204
+ "gaze_contrastive_tau": 0.07,
205
+ "gaze_prediction": false,
206
+ "gaze_prediction_weight": 0.1
207
+ },
208
+ "reward_model": null,
209
+ "output_dir": "outputs/train/gact-cubes-25b1",
210
+ "job_name": "gact-cubes-25b1",
211
+ "resume": false,
212
+ "seed": 1000,
213
+ "cudnn_deterministic": false,
214
+ "num_workers": 15,
215
+ "batch_size": 128,
216
+ "prefetch_factor": 4,
217
+ "persistent_workers": true,
218
+ "steps": 100000,
219
+ "eval_freq": 20000,
220
+ "log_freq": 200,
221
+ "tolerance_s": 0.0001,
222
+ "save_checkpoint": true,
223
+ "save_freq": 10000,
224
+ "use_policy_training_preset": true,
225
+ "optimizer": {
226
+ "type": "adamw",
227
+ "lr": 1e-05,
228
+ "weight_decay": 0.0001,
229
+ "grad_clip_norm": 10.0,
230
+ "betas": [
231
+ 0.9,
232
+ 0.999
233
+ ],
234
+ "eps": 1e-08
235
+ },
236
+ "scheduler": null,
237
+ "eval": {
238
+ "n_episodes": 50,
239
+ "batch_size": 11,
240
+ "use_async_envs": true
241
+ },
242
+ "wandb": {
243
+ "enable": true,
244
+ "disable_artifact": true,
245
+ "project": "lerobot",
246
+ "entity": null,
247
+ "notes": null,
248
+ "run_id": "q3c91p9z",
249
+ "mode": null,
250
+ "add_tags": true
251
+ },
252
+ "peft": null,
253
+ "sample_weighting": null,
254
+ "rename_map": {},
255
+ "checkpoint_path": null
256
+ }