Robotics
LeRobot
Safetensors
act
LogicDeposit commited on
Commit
1c05235
·
verified ·
1 Parent(s): 349373c

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +79 -0
  3. model.safetensors +3 -0
  4. train_config.json +296 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: LogicDeposit/AdamU_260403_TransferCube
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,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "act",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 16
9
+ ]
10
+ },
11
+ "observation.images.head": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 360,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.wrist_left": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.images.wrist_right": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 480,
32
+ 640
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 16
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "LogicDeposit/AdamU_260403_TransferCube_act",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": null,
53
+ "chunk_size": 30,
54
+ "n_action_steps": 30,
55
+ "normalization_mapping": {
56
+ "VISUAL": "MEAN_STD",
57
+ "STATE": "MEAN_STD",
58
+ "ACTION": "MEAN_STD"
59
+ },
60
+ "vision_backbone": "resnet18",
61
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
62
+ "replace_final_stride_with_dilation": false,
63
+ "pre_norm": false,
64
+ "dim_model": 512,
65
+ "n_heads": 8,
66
+ "dim_feedforward": 3200,
67
+ "feedforward_activation": "relu",
68
+ "n_encoder_layers": 4,
69
+ "n_decoder_layers": 1,
70
+ "use_vae": true,
71
+ "latent_dim": 32,
72
+ "n_vae_encoder_layers": 4,
73
+ "temporal_ensemble_coeff": null,
74
+ "dropout": 0.1,
75
+ "kl_weight": 10.0,
76
+ "optimizer_lr": 1e-05,
77
+ "optimizer_weight_decay": 0.0001,
78
+ "optimizer_lr_backbone": 1e-05
79
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bcf9f9f140f842f6c4c23f9490c4d824d3b45a09220ad02670a7d0c08a870fe
3
+ size 206494976
train_config.json ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "LogicDeposit/AdamU_260403_TransferCube",
4
+ "root": "data/processed/AdamU_260403_TransferCube",
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": true,
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
+ }
163
+ },
164
+ "revision": null,
165
+ "use_imagenet_stats": true,
166
+ "video_backend": "pyav",
167
+ "streaming": false
168
+ },
169
+ "env": null,
170
+ "policy": {
171
+ "type": "act",
172
+ "n_obs_steps": 1,
173
+ "input_features": {
174
+ "observation.state": {
175
+ "type": "STATE",
176
+ "shape": [
177
+ 16
178
+ ]
179
+ },
180
+ "observation.images.head": {
181
+ "type": "VISUAL",
182
+ "shape": [
183
+ 3,
184
+ 360,
185
+ 640
186
+ ]
187
+ },
188
+ "observation.images.wrist_left": {
189
+ "type": "VISUAL",
190
+ "shape": [
191
+ 3,
192
+ 480,
193
+ 640
194
+ ]
195
+ },
196
+ "observation.images.wrist_right": {
197
+ "type": "VISUAL",
198
+ "shape": [
199
+ 3,
200
+ 480,
201
+ 640
202
+ ]
203
+ }
204
+ },
205
+ "output_features": {
206
+ "action": {
207
+ "type": "ACTION",
208
+ "shape": [
209
+ 16
210
+ ]
211
+ }
212
+ },
213
+ "device": "cuda",
214
+ "use_amp": false,
215
+ "use_peft": false,
216
+ "push_to_hub": true,
217
+ "repo_id": "LogicDeposit/AdamU_260403_TransferCube_act",
218
+ "private": null,
219
+ "tags": null,
220
+ "license": null,
221
+ "pretrained_path": null,
222
+ "chunk_size": 30,
223
+ "n_action_steps": 30,
224
+ "normalization_mapping": {
225
+ "VISUAL": "MEAN_STD",
226
+ "STATE": "MEAN_STD",
227
+ "ACTION": "MEAN_STD"
228
+ },
229
+ "vision_backbone": "resnet18",
230
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
231
+ "replace_final_stride_with_dilation": false,
232
+ "pre_norm": false,
233
+ "dim_model": 512,
234
+ "n_heads": 8,
235
+ "dim_feedforward": 3200,
236
+ "feedforward_activation": "relu",
237
+ "n_encoder_layers": 4,
238
+ "n_decoder_layers": 1,
239
+ "use_vae": true,
240
+ "latent_dim": 32,
241
+ "n_vae_encoder_layers": 4,
242
+ "temporal_ensemble_coeff": null,
243
+ "dropout": 0.1,
244
+ "kl_weight": 10.0,
245
+ "optimizer_lr": 1e-05,
246
+ "optimizer_weight_decay": 0.0001,
247
+ "optimizer_lr_backbone": 1e-05
248
+ },
249
+ "output_dir": "ckpt/AdamU_260403_TransferCube/act/regular/20260410_173315",
250
+ "job_name": "act",
251
+ "resume": false,
252
+ "seed": 1000,
253
+ "num_workers": 4,
254
+ "batch_size": 48,
255
+ "steps": 51300,
256
+ "eval_freq": 20000,
257
+ "log_freq": 200,
258
+ "tolerance_s": 0.0001,
259
+ "save_checkpoint": true,
260
+ "save_freq": 10000,
261
+ "use_policy_training_preset": true,
262
+ "optimizer": {
263
+ "type": "adamw",
264
+ "lr": 1e-05,
265
+ "weight_decay": 0.0001,
266
+ "grad_clip_norm": 10.0,
267
+ "betas": [
268
+ 0.9,
269
+ 0.999
270
+ ],
271
+ "eps": 1e-08
272
+ },
273
+ "scheduler": null,
274
+ "eval": {
275
+ "n_episodes": 50,
276
+ "batch_size": 50,
277
+ "use_async_envs": false
278
+ },
279
+ "wandb": {
280
+ "enable": true,
281
+ "disable_artifact": false,
282
+ "project": "pnd-learning",
283
+ "entity": null,
284
+ "notes": null,
285
+ "run_id": "lz97bvc1",
286
+ "mode": null
287
+ },
288
+ "peft": null,
289
+ "use_rabc": false,
290
+ "rabc_progress_path": null,
291
+ "rabc_kappa": 0.01,
292
+ "rabc_epsilon": 1e-06,
293
+ "rabc_head_mode": "sparse",
294
+ "rename_map": {},
295
+ "checkpoint_path": null
296
+ }