Robotics
LeRobot
Safetensors
act
AdamAxelrod commited on
Commit
7401314
·
verified ·
1 Parent(s): 61561bd

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +70 -0
  3. model.safetensors +3 -0
  4. train_config.json +294 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: AdamAxelrod/space_mouse_puple_dot
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: act
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - act
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for act
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ [Action Chunking with Transformers (ACT)](https://huggingface.co/papers/2304.13705) is an imitation-learning method that predicts short action chunks instead of single steps. It learns from teleoperated data and often achieves high success rates.
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,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "act",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 6
9
+ ]
10
+ },
11
+ "observation.images.overhead_cam": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.wrist_cam": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 6
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": true,
38
+ "push_to_hub": true,
39
+ "repo_id": "AdamAxelrod/space_mouse_puple_dot_100demos_model",
40
+ "private": null,
41
+ "tags": null,
42
+ "license": null,
43
+ "pretrained_path": null,
44
+ "chunk_size": 50,
45
+ "n_action_steps": 50,
46
+ "normalization_mapping": {
47
+ "VISUAL": "MEAN_STD",
48
+ "STATE": "MEAN_STD",
49
+ "ACTION": "MEAN_STD"
50
+ },
51
+ "vision_backbone": "resnet18",
52
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
53
+ "replace_final_stride_with_dilation": false,
54
+ "pre_norm": false,
55
+ "dim_model": 512,
56
+ "n_heads": 8,
57
+ "dim_feedforward": 3200,
58
+ "feedforward_activation": "relu",
59
+ "n_encoder_layers": 4,
60
+ "n_decoder_layers": 1,
61
+ "use_vae": true,
62
+ "latent_dim": 32,
63
+ "n_vae_encoder_layers": 4,
64
+ "temporal_ensemble_coeff": null,
65
+ "dropout": 0.1,
66
+ "kl_weight": 10.0,
67
+ "optimizer_lr": 1e-05,
68
+ "optimizer_weight_decay": 0.0001,
69
+ "optimizer_lr_backbone": 1e-05
70
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61f2f4d27a8ed2bf71f61c92ae738ffbfb81f8e910b1197bff36b4ce215143c7
3
+ size 206494928
train_config.json ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "AdamAxelrod/space_mouse_puple_dot",
4
+ "root": null,
5
+ "episodes": [
6
+ 0,
7
+ 1,
8
+ 2,
9
+ 3,
10
+ 4,
11
+ 5,
12
+ 6,
13
+ 7,
14
+ 8,
15
+ 9,
16
+ 10,
17
+ 11,
18
+ 12,
19
+ 13,
20
+ 14,
21
+ 15,
22
+ 16,
23
+ 17,
24
+ 18,
25
+ 19,
26
+ 20,
27
+ 21,
28
+ 22,
29
+ 23,
30
+ 24,
31
+ 25,
32
+ 26,
33
+ 27,
34
+ 28,
35
+ 29,
36
+ 30,
37
+ 31,
38
+ 32,
39
+ 33,
40
+ 34,
41
+ 35,
42
+ 36,
43
+ 37,
44
+ 38,
45
+ 39,
46
+ 40,
47
+ 41,
48
+ 42,
49
+ 43,
50
+ 44,
51
+ 45,
52
+ 46,
53
+ 47,
54
+ 48,
55
+ 49,
56
+ 50,
57
+ 51,
58
+ 52,
59
+ 53,
60
+ 54,
61
+ 55,
62
+ 56,
63
+ 57,
64
+ 58,
65
+ 59,
66
+ 60,
67
+ 61,
68
+ 62,
69
+ 63,
70
+ 64,
71
+ 65,
72
+ 66,
73
+ 67,
74
+ 68,
75
+ 69,
76
+ 70,
77
+ 71,
78
+ 72,
79
+ 73,
80
+ 74,
81
+ 75,
82
+ 76,
83
+ 77,
84
+ 78,
85
+ 79,
86
+ 80,
87
+ 81,
88
+ 82,
89
+ 83,
90
+ 84,
91
+ 85,
92
+ 86,
93
+ 87,
94
+ 88,
95
+ 89,
96
+ 90,
97
+ 91,
98
+ 92,
99
+ 93,
100
+ 94,
101
+ 95,
102
+ 96,
103
+ 97,
104
+ 98,
105
+ 99
106
+ ],
107
+ "image_transforms": {
108
+ "enable": false,
109
+ "max_num_transforms": 3,
110
+ "random_order": false,
111
+ "tfs": {
112
+ "brightness": {
113
+ "weight": 1.0,
114
+ "type": "ColorJitter",
115
+ "kwargs": {
116
+ "brightness": [
117
+ 0.8,
118
+ 1.2
119
+ ]
120
+ }
121
+ },
122
+ "contrast": {
123
+ "weight": 1.0,
124
+ "type": "ColorJitter",
125
+ "kwargs": {
126
+ "contrast": [
127
+ 0.8,
128
+ 1.2
129
+ ]
130
+ }
131
+ },
132
+ "saturation": {
133
+ "weight": 1.0,
134
+ "type": "ColorJitter",
135
+ "kwargs": {
136
+ "saturation": [
137
+ 0.5,
138
+ 1.5
139
+ ]
140
+ }
141
+ },
142
+ "hue": {
143
+ "weight": 1.0,
144
+ "type": "ColorJitter",
145
+ "kwargs": {
146
+ "hue": [
147
+ -0.05,
148
+ 0.05
149
+ ]
150
+ }
151
+ },
152
+ "sharpness": {
153
+ "weight": 1.0,
154
+ "type": "SharpnessJitter",
155
+ "kwargs": {
156
+ "sharpness": [
157
+ 0.5,
158
+ 1.5
159
+ ]
160
+ }
161
+ },
162
+ "affine": {
163
+ "weight": 1.0,
164
+ "type": "RandomAffine",
165
+ "kwargs": {
166
+ "degrees": [
167
+ -5.0,
168
+ 5.0
169
+ ],
170
+ "translate": [
171
+ 0.05,
172
+ 0.05
173
+ ]
174
+ }
175
+ }
176
+ }
177
+ },
178
+ "revision": null,
179
+ "use_imagenet_stats": true,
180
+ "video_backend": "pyav",
181
+ "streaming": false
182
+ },
183
+ "env": null,
184
+ "policy": {
185
+ "type": "act",
186
+ "n_obs_steps": 1,
187
+ "input_features": {
188
+ "observation.state": {
189
+ "type": "STATE",
190
+ "shape": [
191
+ 6
192
+ ]
193
+ },
194
+ "observation.images.overhead_cam": {
195
+ "type": "VISUAL",
196
+ "shape": [
197
+ 3,
198
+ 480,
199
+ 640
200
+ ]
201
+ },
202
+ "observation.images.wrist_cam": {
203
+ "type": "VISUAL",
204
+ "shape": [
205
+ 3,
206
+ 480,
207
+ 640
208
+ ]
209
+ }
210
+ },
211
+ "output_features": {
212
+ "action": {
213
+ "type": "ACTION",
214
+ "shape": [
215
+ 6
216
+ ]
217
+ }
218
+ },
219
+ "device": "cuda",
220
+ "use_amp": true,
221
+ "push_to_hub": true,
222
+ "repo_id": "AdamAxelrod/space_mouse_puple_dot_100demos_model",
223
+ "private": null,
224
+ "tags": null,
225
+ "license": null,
226
+ "pretrained_path": null,
227
+ "chunk_size": 50,
228
+ "n_action_steps": 50,
229
+ "normalization_mapping": {
230
+ "VISUAL": "MEAN_STD",
231
+ "STATE": "MEAN_STD",
232
+ "ACTION": "MEAN_STD"
233
+ },
234
+ "vision_backbone": "resnet18",
235
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
236
+ "replace_final_stride_with_dilation": false,
237
+ "pre_norm": false,
238
+ "dim_model": 512,
239
+ "n_heads": 8,
240
+ "dim_feedforward": 3200,
241
+ "feedforward_activation": "relu",
242
+ "n_encoder_layers": 4,
243
+ "n_decoder_layers": 1,
244
+ "use_vae": true,
245
+ "latent_dim": 32,
246
+ "n_vae_encoder_layers": 4,
247
+ "temporal_ensemble_coeff": null,
248
+ "dropout": 0.1,
249
+ "kl_weight": 10.0,
250
+ "optimizer_lr": 1e-05,
251
+ "optimizer_weight_decay": 0.0001,
252
+ "optimizer_lr_backbone": 1e-05
253
+ },
254
+ "output_dir": "outputs\\train\\space_mouse_puple_dot_100demos_seed42",
255
+ "job_name": "space_mouse_puple_dot_100demos_seed42",
256
+ "resume": false,
257
+ "seed": 1000,
258
+ "num_workers": 4,
259
+ "batch_size": 32,
260
+ "steps": 50000,
261
+ "eval_freq": 20000,
262
+ "log_freq": 200,
263
+ "save_checkpoint": true,
264
+ "save_freq": 5000,
265
+ "use_policy_training_preset": true,
266
+ "optimizer": {
267
+ "type": "adamw",
268
+ "lr": 1e-05,
269
+ "weight_decay": 0.0001,
270
+ "grad_clip_norm": 10.0,
271
+ "betas": [
272
+ 0.9,
273
+ 0.999
274
+ ],
275
+ "eps": 1e-08
276
+ },
277
+ "scheduler": null,
278
+ "eval": {
279
+ "n_episodes": 50,
280
+ "batch_size": 50,
281
+ "use_async_envs": false
282
+ },
283
+ "wandb": {
284
+ "enable": true,
285
+ "disable_artifact": false,
286
+ "project": "lerobot",
287
+ "entity": null,
288
+ "notes": null,
289
+ "run_id": "omb7e8hk",
290
+ "mode": null
291
+ },
292
+ "checkpoint_path": null,
293
+ "rename_map": {}
294
+ }