CRPlab commited on
Commit
b3c46ed
·
verified ·
1 Parent(s): d0c55dd

Upload policy weights, train config and readme

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