Robotics
LeRobot
Safetensors
act
AriRyo commited on
Commit
38327fc
·
verified ·
1 Parent(s): 29020bf

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +71 -0
  3. model.safetensors +3 -0
  4. train_config.json +300 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: AriRyo/blockpick_gray_03
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: act
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
10
+ - act
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,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.above": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.side": {
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": false,
38
+ "use_peft": false,
39
+ "push_to_hub": true,
40
+ "repo_id": "AriRyo/blockpick_gray_act_96",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "chunk_size": 100,
46
+ "n_action_steps": 100,
47
+ "normalization_mapping": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MEAN_STD",
50
+ "ACTION": "MEAN_STD"
51
+ },
52
+ "vision_backbone": "resnet18",
53
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
54
+ "replace_final_stride_with_dilation": false,
55
+ "pre_norm": false,
56
+ "dim_model": 512,
57
+ "n_heads": 8,
58
+ "dim_feedforward": 3200,
59
+ "feedforward_activation": "relu",
60
+ "n_encoder_layers": 4,
61
+ "n_decoder_layers": 1,
62
+ "use_vae": true,
63
+ "latent_dim": 32,
64
+ "n_vae_encoder_layers": 4,
65
+ "temporal_ensemble_coeff": null,
66
+ "dropout": 0.1,
67
+ "kl_weight": 10.0,
68
+ "optimizer_lr": 1e-05,
69
+ "optimizer_weight_decay": 0.0001,
70
+ "optimizer_lr_backbone": 1e-05
71
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:230f0f9b521fbbdaedb090c5f3227ac35e75f30ea78a38ab6ad8cb6a44d03fa3
3
+ size 206699736
train_config.json ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "AriRyo/blockpick_gray_03",
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
+ ],
103
+ "image_transforms": {
104
+ "enable": false,
105
+ "max_num_transforms": 3,
106
+ "random_order": false,
107
+ "tfs": {
108
+ "brightness": {
109
+ "weight": 1.0,
110
+ "type": "ColorJitter",
111
+ "kwargs": {
112
+ "brightness": [
113
+ 0.8,
114
+ 1.2
115
+ ]
116
+ }
117
+ },
118
+ "contrast": {
119
+ "weight": 1.0,
120
+ "type": "ColorJitter",
121
+ "kwargs": {
122
+ "contrast": [
123
+ 0.8,
124
+ 1.2
125
+ ]
126
+ }
127
+ },
128
+ "saturation": {
129
+ "weight": 1.0,
130
+ "type": "ColorJitter",
131
+ "kwargs": {
132
+ "saturation": [
133
+ 0.5,
134
+ 1.5
135
+ ]
136
+ }
137
+ },
138
+ "hue": {
139
+ "weight": 1.0,
140
+ "type": "ColorJitter",
141
+ "kwargs": {
142
+ "hue": [
143
+ -0.05,
144
+ 0.05
145
+ ]
146
+ }
147
+ },
148
+ "sharpness": {
149
+ "weight": 1.0,
150
+ "type": "SharpnessJitter",
151
+ "kwargs": {
152
+ "sharpness": [
153
+ 0.5,
154
+ 1.5
155
+ ]
156
+ }
157
+ },
158
+ "affine": {
159
+ "weight": 1.0,
160
+ "type": "RandomAffine",
161
+ "kwargs": {
162
+ "degrees": [
163
+ -5.0,
164
+ 5.0
165
+ ],
166
+ "translate": [
167
+ 0.05,
168
+ 0.05
169
+ ]
170
+ }
171
+ }
172
+ }
173
+ },
174
+ "revision": null,
175
+ "use_imagenet_stats": true,
176
+ "video_backend": "torchcodec",
177
+ "streaming": false
178
+ },
179
+ "env": null,
180
+ "policy": {
181
+ "type": "act",
182
+ "n_obs_steps": 1,
183
+ "input_features": {
184
+ "observation.state": {
185
+ "type": "STATE",
186
+ "shape": [
187
+ 6
188
+ ]
189
+ },
190
+ "observation.images.above": {
191
+ "type": "VISUAL",
192
+ "shape": [
193
+ 3,
194
+ 480,
195
+ 640
196
+ ]
197
+ },
198
+ "observation.images.side": {
199
+ "type": "VISUAL",
200
+ "shape": [
201
+ 3,
202
+ 480,
203
+ 640
204
+ ]
205
+ }
206
+ },
207
+ "output_features": {
208
+ "action": {
209
+ "type": "ACTION",
210
+ "shape": [
211
+ 6
212
+ ]
213
+ }
214
+ },
215
+ "device": "cuda",
216
+ "use_amp": false,
217
+ "use_peft": false,
218
+ "push_to_hub": true,
219
+ "repo_id": "AriRyo/blockpick_gray_act_96",
220
+ "private": null,
221
+ "tags": null,
222
+ "license": null,
223
+ "pretrained_path": null,
224
+ "chunk_size": 100,
225
+ "n_action_steps": 100,
226
+ "normalization_mapping": {
227
+ "VISUAL": "MEAN_STD",
228
+ "STATE": "MEAN_STD",
229
+ "ACTION": "MEAN_STD"
230
+ },
231
+ "vision_backbone": "resnet18",
232
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
233
+ "replace_final_stride_with_dilation": false,
234
+ "pre_norm": false,
235
+ "dim_model": 512,
236
+ "n_heads": 8,
237
+ "dim_feedforward": 3200,
238
+ "feedforward_activation": "relu",
239
+ "n_encoder_layers": 4,
240
+ "n_decoder_layers": 1,
241
+ "use_vae": true,
242
+ "latent_dim": 32,
243
+ "n_vae_encoder_layers": 4,
244
+ "temporal_ensemble_coeff": null,
245
+ "dropout": 0.1,
246
+ "kl_weight": 10.0,
247
+ "optimizer_lr": 1e-05,
248
+ "optimizer_weight_decay": 0.0001,
249
+ "optimizer_lr_backbone": 1e-05
250
+ },
251
+ "output_dir": "outputs/train/blockpick_gray_act_96",
252
+ "job_name": "blockpick_gray_act_96",
253
+ "resume": false,
254
+ "seed": 1000,
255
+ "cudnn_deterministic": false,
256
+ "num_workers": 4,
257
+ "batch_size": 8,
258
+ "steps": 100000,
259
+ "eval_freq": 20000,
260
+ "log_freq": 200,
261
+ "tolerance_s": 0.0001,
262
+ "save_checkpoint": true,
263
+ "save_freq": 20000,
264
+ "use_policy_training_preset": true,
265
+ "optimizer": {
266
+ "type": "adamw",
267
+ "lr": 1e-05,
268
+ "weight_decay": 0.0001,
269
+ "grad_clip_norm": 10.0,
270
+ "betas": [
271
+ 0.9,
272
+ 0.999
273
+ ],
274
+ "eps": 1e-08
275
+ },
276
+ "scheduler": null,
277
+ "eval": {
278
+ "n_episodes": 50,
279
+ "batch_size": 50,
280
+ "use_async_envs": false
281
+ },
282
+ "wandb": {
283
+ "enable": true,
284
+ "disable_artifact": true,
285
+ "project": "lerobot",
286
+ "entity": null,
287
+ "notes": null,
288
+ "run_id": "r219paw6",
289
+ "mode": null,
290
+ "add_tags": true
291
+ },
292
+ "peft": null,
293
+ "use_rabc": false,
294
+ "rabc_progress_path": null,
295
+ "rabc_kappa": 0.01,
296
+ "rabc_epsilon": 1e-06,
297
+ "rabc_head_mode": "sparse",
298
+ "rename_map": {},
299
+ "checkpoint_path": null
300
+ }