Robotics
LeRobot
Safetensors
act
learner1119 commited on
Commit
b937588
·
verified ·
1 Parent(s): 41a463c

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