Robotics
LeRobot
Safetensors
act
jloganolson commited on
Commit
71409b6
·
verified ·
1 Parent(s): 5467632

Upload policy weights, train config and readme

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