Robotics
LeRobot
Safetensors
sarm
pepijn223 HF Staff commited on
Commit
c945e2d
·
verified ·
1 Parent(s): 91395a7

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +119 -0
  3. model.safetensors +3 -0
  4. train_config.json +253 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: lerobot-data-collection/three-folds-dataset-full-11-07
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: sarm
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
10
+ - sarm
11
+ ---
12
+
13
+ # Model Card for sarm
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,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "sarm",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.base": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 480,
9
+ 640,
10
+ 3
11
+ ]
12
+ },
13
+ "observation.state": {
14
+ "type": "STATE",
15
+ "shape": [
16
+ 32
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "stage": {
22
+ "type": "REWARD",
23
+ "shape": [
24
+ 9,
25
+ 5
26
+ ]
27
+ },
28
+ "progress": {
29
+ "type": "REWARD",
30
+ "shape": [
31
+ 9,
32
+ 1
33
+ ]
34
+ },
35
+ "sparse_stage": {
36
+ "type": "REWARD",
37
+ "shape": [
38
+ 9,
39
+ 5
40
+ ]
41
+ },
42
+ "sparse_progress": {
43
+ "type": "REWARD",
44
+ "shape": [
45
+ 9,
46
+ 1
47
+ ]
48
+ },
49
+ "dense_stage": {
50
+ "type": "REWARD",
51
+ "shape": [
52
+ 9,
53
+ 5
54
+ ]
55
+ },
56
+ "dense_progress": {
57
+ "type": "REWARD",
58
+ "shape": [
59
+ 9,
60
+ 1
61
+ ]
62
+ }
63
+ },
64
+ "device": "cuda",
65
+ "use_amp": false,
66
+ "push_to_hub": true,
67
+ "repo_id": "pepijn223/sarm_dual9",
68
+ "private": null,
69
+ "tags": null,
70
+ "license": null,
71
+ "pretrained_path": null,
72
+ "image_dim": 512,
73
+ "text_dim": 512,
74
+ "num_frames": 9,
75
+ "frame_gap": 30,
76
+ "hidden_dim": 768,
77
+ "num_heads": 12,
78
+ "num_layers": 8,
79
+ "max_state_dim": 32,
80
+ "max_length": 9,
81
+ "use_temporal_sampler": true,
82
+ "dual_sparse_dense": true,
83
+ "num_sparse_stages": 2,
84
+ "sparse_subtask_names": [
85
+ "Bring arms up from starting position",
86
+ "fold the towel (3 folds in total)"
87
+ ],
88
+ "sparse_temporal_proportions": [
89
+ 0.09024656477258666,
90
+ 0.9097534352274134
91
+ ],
92
+ "num_dense_stages": 4,
93
+ "dense_subtask_names": [
94
+ "Bring robot arms up from starting position",
95
+ "Grab near side and do 1st fold",
96
+ "Grab side and do 2nd fold",
97
+ "Grab side and do 3rd fold to finish folding"
98
+ ],
99
+ "dense_temporal_proportions": [
100
+ 0.07669543912038806,
101
+ 0.19693673653769384,
102
+ 0.2531207457587962,
103
+ 0.4732470785831218
104
+ ],
105
+ "batch_size": 64,
106
+ "clip_batch_size": 64,
107
+ "dropout": 0.1,
108
+ "stage_loss_weight": 1.0,
109
+ "pretrained_model_path": null,
110
+ "image_key": "observation.images.base",
111
+ "state_key": "observation.state",
112
+ "dual_inference_mode": "sparse",
113
+ "normalization_mapping": {
114
+ "VISUAL": "IDENTITY",
115
+ "STATE": "MEAN_STD",
116
+ "LANGUAGE": "IDENTITY",
117
+ "REWARD": "IDENTITY"
118
+ }
119
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feb1a2808c3b858c50efeb15acc427dcc41df90697cfbf1c740b6e2e447b93c5
3
+ size 842368932
train_config.json ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lerobot-data-collection/three-folds-dataset-full-11-07",
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": null,
83
+ "policy": {
84
+ "type": "sarm",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.images.base": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 480,
91
+ 640,
92
+ 3
93
+ ]
94
+ },
95
+ "observation.state": {
96
+ "type": "STATE",
97
+ "shape": [
98
+ 32
99
+ ]
100
+ }
101
+ },
102
+ "output_features": {
103
+ "stage": {
104
+ "type": "REWARD",
105
+ "shape": [
106
+ 9,
107
+ 5
108
+ ]
109
+ },
110
+ "progress": {
111
+ "type": "REWARD",
112
+ "shape": [
113
+ 9,
114
+ 1
115
+ ]
116
+ },
117
+ "sparse_stage": {
118
+ "type": "REWARD",
119
+ "shape": [
120
+ 9,
121
+ 5
122
+ ]
123
+ },
124
+ "sparse_progress": {
125
+ "type": "REWARD",
126
+ "shape": [
127
+ 9,
128
+ 1
129
+ ]
130
+ },
131
+ "dense_stage": {
132
+ "type": "REWARD",
133
+ "shape": [
134
+ 9,
135
+ 5
136
+ ]
137
+ },
138
+ "dense_progress": {
139
+ "type": "REWARD",
140
+ "shape": [
141
+ 9,
142
+ 1
143
+ ]
144
+ }
145
+ },
146
+ "device": "cuda",
147
+ "use_amp": false,
148
+ "push_to_hub": true,
149
+ "repo_id": "pepijn223/sarm_dual9",
150
+ "private": null,
151
+ "tags": null,
152
+ "license": null,
153
+ "pretrained_path": null,
154
+ "image_dim": 512,
155
+ "text_dim": 512,
156
+ "num_frames": 9,
157
+ "frame_gap": 30,
158
+ "hidden_dim": 768,
159
+ "num_heads": 12,
160
+ "num_layers": 8,
161
+ "max_state_dim": 32,
162
+ "max_length": 9,
163
+ "use_temporal_sampler": true,
164
+ "dual_sparse_dense": true,
165
+ "num_sparse_stages": 2,
166
+ "sparse_subtask_names": [
167
+ "Bring arms up from starting position",
168
+ "fold the towel (3 folds in total)"
169
+ ],
170
+ "sparse_temporal_proportions": [
171
+ 0.09024656477258666,
172
+ 0.9097534352274134
173
+ ],
174
+ "num_dense_stages": 4,
175
+ "dense_subtask_names": [
176
+ "Bring robot arms up from starting position",
177
+ "Grab near side and do 1st fold",
178
+ "Grab side and do 2nd fold",
179
+ "Grab side and do 3rd fold to finish folding"
180
+ ],
181
+ "dense_temporal_proportions": [
182
+ 0.07669543912038806,
183
+ 0.19693673653769384,
184
+ 0.2531207457587962,
185
+ 0.4732470785831218
186
+ ],
187
+ "batch_size": 64,
188
+ "clip_batch_size": 64,
189
+ "dropout": 0.1,
190
+ "stage_loss_weight": 1.0,
191
+ "pretrained_model_path": null,
192
+ "image_key": "observation.images.base",
193
+ "state_key": "observation.state",
194
+ "dual_inference_mode": "sparse",
195
+ "normalization_mapping": {
196
+ "VISUAL": "IDENTITY",
197
+ "STATE": "MEAN_STD",
198
+ "LANGUAGE": "IDENTITY",
199
+ "REWARD": "IDENTITY"
200
+ }
201
+ },
202
+ "output_dir": "outputs/train/sarm_dual9",
203
+ "job_name": "sarm_bimanual",
204
+ "resume": false,
205
+ "seed": 1000,
206
+ "num_workers": 4,
207
+ "batch_size": 32,
208
+ "steps": 1000,
209
+ "eval_freq": 20000,
210
+ "log_freq": 200,
211
+ "save_checkpoint": true,
212
+ "save_freq": 20000,
213
+ "use_policy_training_preset": true,
214
+ "optimizer": {
215
+ "type": "adamw",
216
+ "lr": 5e-05,
217
+ "weight_decay": 0.001,
218
+ "grad_clip_norm": 10.0,
219
+ "betas": [
220
+ 0.9,
221
+ 0.999
222
+ ],
223
+ "eps": 1e-08
224
+ },
225
+ "scheduler": {
226
+ "type": "cosine_decay_with_warmup",
227
+ "num_warmup_steps": 500,
228
+ "num_decay_steps": 50000,
229
+ "peak_lr": 5e-05,
230
+ "decay_lr": 5e-06
231
+ },
232
+ "eval": {
233
+ "n_episodes": 50,
234
+ "batch_size": 50,
235
+ "use_async_envs": false
236
+ },
237
+ "wandb": {
238
+ "enable": true,
239
+ "disable_artifact": false,
240
+ "project": "sarm",
241
+ "entity": null,
242
+ "notes": null,
243
+ "run_id": "sorpakdr",
244
+ "mode": null
245
+ },
246
+ "use_rabc": false,
247
+ "reward_model_path": null,
248
+ "rabc_kappa": 0.01,
249
+ "rabc_epsilon": 1e-06,
250
+ "rabc_update_freq": 1,
251
+ "rename_map": {},
252
+ "checkpoint_path": null
253
+ }