Robotics
LeRobot
Safetensors
act
jayyucippg commited on
Commit
9ce1218
·
verified ·
1 Parent(s): d56d2c7

Upload policy weights, train config and readme

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