Robotics
LeRobot
Safetensors
act
learner1119 commited on
Commit
7a7febf
·
verified ·
1 Parent(s): 8bb7003

Upload policy weights, train config and readme

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