Robotics
LeRobot
Safetensors
act
Jbutch commited on
Commit
7198053
·
verified ·
1 Parent(s): 8e1267c

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 +242 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: hangyufeng/record-project2
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,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.front": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 6
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "use_peft": false,
31
+ "push_to_hub": true,
32
+ "repo_id": "Jbutch/act_p2_ep48",
33
+ "private": null,
34
+ "tags": null,
35
+ "license": null,
36
+ "pretrained_path": null,
37
+ "chunk_size": 100,
38
+ "n_action_steps": 100,
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:a436f6f7c504122ee4bc322964188973cd03f3344456d976dc0f213dae625d9b
3
+ size 206699736
train_config.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "hangyufeng/record-project2",
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
+ ],
55
+ "image_transforms": {
56
+ "enable": false,
57
+ "max_num_transforms": 3,
58
+ "random_order": false,
59
+ "tfs": {
60
+ "brightness": {
61
+ "weight": 1.0,
62
+ "type": "ColorJitter",
63
+ "kwargs": {
64
+ "brightness": [
65
+ 0.8,
66
+ 1.2
67
+ ]
68
+ }
69
+ },
70
+ "contrast": {
71
+ "weight": 1.0,
72
+ "type": "ColorJitter",
73
+ "kwargs": {
74
+ "contrast": [
75
+ 0.8,
76
+ 1.2
77
+ ]
78
+ }
79
+ },
80
+ "saturation": {
81
+ "weight": 1.0,
82
+ "type": "ColorJitter",
83
+ "kwargs": {
84
+ "saturation": [
85
+ 0.5,
86
+ 1.5
87
+ ]
88
+ }
89
+ },
90
+ "hue": {
91
+ "weight": 1.0,
92
+ "type": "ColorJitter",
93
+ "kwargs": {
94
+ "hue": [
95
+ -0.05,
96
+ 0.05
97
+ ]
98
+ }
99
+ },
100
+ "sharpness": {
101
+ "weight": 1.0,
102
+ "type": "SharpnessJitter",
103
+ "kwargs": {
104
+ "sharpness": [
105
+ 0.5,
106
+ 1.5
107
+ ]
108
+ }
109
+ },
110
+ "affine": {
111
+ "weight": 1.0,
112
+ "type": "RandomAffine",
113
+ "kwargs": {
114
+ "degrees": [
115
+ -5.0,
116
+ 5.0
117
+ ],
118
+ "translate": [
119
+ 0.05,
120
+ 0.05
121
+ ]
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "revision": null,
127
+ "use_imagenet_stats": true,
128
+ "video_backend": "torchcodec",
129
+ "streaming": false
130
+ },
131
+ "env": null,
132
+ "policy": {
133
+ "type": "act",
134
+ "n_obs_steps": 1,
135
+ "input_features": {
136
+ "observation.state": {
137
+ "type": "STATE",
138
+ "shape": [
139
+ 6
140
+ ]
141
+ },
142
+ "observation.images.front": {
143
+ "type": "VISUAL",
144
+ "shape": [
145
+ 3,
146
+ 480,
147
+ 640
148
+ ]
149
+ }
150
+ },
151
+ "output_features": {
152
+ "action": {
153
+ "type": "ACTION",
154
+ "shape": [
155
+ 6
156
+ ]
157
+ }
158
+ },
159
+ "device": "cuda",
160
+ "use_amp": false,
161
+ "use_peft": false,
162
+ "push_to_hub": true,
163
+ "repo_id": "Jbutch/act_p2_ep48",
164
+ "private": null,
165
+ "tags": null,
166
+ "license": null,
167
+ "pretrained_path": null,
168
+ "chunk_size": 100,
169
+ "n_action_steps": 100,
170
+ "normalization_mapping": {
171
+ "VISUAL": "MEAN_STD",
172
+ "STATE": "MEAN_STD",
173
+ "ACTION": "MEAN_STD"
174
+ },
175
+ "vision_backbone": "resnet18",
176
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
177
+ "replace_final_stride_with_dilation": false,
178
+ "pre_norm": false,
179
+ "dim_model": 512,
180
+ "n_heads": 8,
181
+ "dim_feedforward": 3200,
182
+ "feedforward_activation": "relu",
183
+ "n_encoder_layers": 4,
184
+ "n_decoder_layers": 1,
185
+ "use_vae": true,
186
+ "latent_dim": 32,
187
+ "n_vae_encoder_layers": 4,
188
+ "temporal_ensemble_coeff": null,
189
+ "dropout": 0.1,
190
+ "kl_weight": 10.0,
191
+ "optimizer_lr": 1e-05,
192
+ "optimizer_weight_decay": 0.0001,
193
+ "optimizer_lr_backbone": 1e-05
194
+ },
195
+ "output_dir": "/net/scratch/jbutch/lerobot/multi_p2_8gpu/episodes_48",
196
+ "job_name": "act_so101_ep48",
197
+ "resume": false,
198
+ "seed": 1000,
199
+ "num_workers": 4,
200
+ "batch_size": 8,
201
+ "steps": 100000,
202
+ "eval_freq": 20000,
203
+ "log_freq": 200,
204
+ "tolerance_s": 0.0001,
205
+ "save_checkpoint": true,
206
+ "save_freq": 20000,
207
+ "use_policy_training_preset": true,
208
+ "optimizer": {
209
+ "type": "adamw",
210
+ "lr": 1e-05,
211
+ "weight_decay": 0.0001,
212
+ "grad_clip_norm": 10.0,
213
+ "betas": [
214
+ 0.9,
215
+ 0.999
216
+ ],
217
+ "eps": 1e-08
218
+ },
219
+ "scheduler": null,
220
+ "eval": {
221
+ "n_episodes": 50,
222
+ "batch_size": 50,
223
+ "use_async_envs": false
224
+ },
225
+ "wandb": {
226
+ "enable": true,
227
+ "disable_artifact": false,
228
+ "project": "lerobot",
229
+ "entity": null,
230
+ "notes": null,
231
+ "run_id": "tnufae95",
232
+ "mode": null
233
+ },
234
+ "peft": null,
235
+ "use_rabc": false,
236
+ "rabc_progress_path": null,
237
+ "rabc_kappa": 0.01,
238
+ "rabc_epsilon": 1e-06,
239
+ "rabc_head_mode": "sparse",
240
+ "rename_map": {},
241
+ "checkpoint_path": null
242
+ }