Robotics
LeRobot
Safetensors
act
allen30 commited on
Commit
c4920be
·
verified ·
1 Parent(s): 72c49ae

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +71 -0
  3. model.safetensors +3 -0
  4. train_config.json +237 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: victor158/aicapstone_cupstacking_v1
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: act
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - act
9
+ - lerobot
10
+ - robotics
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,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "act",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 9
9
+ ]
10
+ },
11
+ "observation.images.wrist": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.front": {
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
+ 8
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": false,
39
+ "push_to_hub": true,
40
+ "repo_id": "allen30/policy_cupstacking_act_data50",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "chunk_size": 64,
46
+ "n_action_steps": 8,
47
+ "normalization_mapping": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MEAN_STD",
50
+ "ACTION": "MEAN_STD"
51
+ },
52
+ "vision_backbone": "resnet18",
53
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
54
+ "replace_final_stride_with_dilation": false,
55
+ "pre_norm": false,
56
+ "dim_model": 512,
57
+ "n_heads": 8,
58
+ "dim_feedforward": 3200,
59
+ "feedforward_activation": "relu",
60
+ "n_encoder_layers": 4,
61
+ "n_decoder_layers": 1,
62
+ "use_vae": true,
63
+ "latent_dim": 32,
64
+ "n_vae_encoder_layers": 4,
65
+ "temporal_ensemble_coeff": null,
66
+ "dropout": 0.1,
67
+ "kl_weight": 10.0,
68
+ "optimizer_lr": 1e-05,
69
+ "optimizer_weight_decay": 0.0001,
70
+ "optimizer_lr_backbone": 1e-05
71
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a06483acefed82351a7fd66d969b7caba851bde94f52fccd33cd78d33bbde6
3
+ size 206572760
train_config.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "victor158/aicapstone_cupstacking_v1",
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
+ ],
42
+ "image_transforms": {
43
+ "enable": false,
44
+ "max_num_transforms": 3,
45
+ "random_order": false,
46
+ "tfs": {
47
+ "brightness": {
48
+ "weight": 1.0,
49
+ "type": "ColorJitter",
50
+ "kwargs": {
51
+ "brightness": [
52
+ 0.8,
53
+ 1.2
54
+ ]
55
+ }
56
+ },
57
+ "contrast": {
58
+ "weight": 1.0,
59
+ "type": "ColorJitter",
60
+ "kwargs": {
61
+ "contrast": [
62
+ 0.8,
63
+ 1.2
64
+ ]
65
+ }
66
+ },
67
+ "saturation": {
68
+ "weight": 1.0,
69
+ "type": "ColorJitter",
70
+ "kwargs": {
71
+ "saturation": [
72
+ 0.5,
73
+ 1.5
74
+ ]
75
+ }
76
+ },
77
+ "hue": {
78
+ "weight": 1.0,
79
+ "type": "ColorJitter",
80
+ "kwargs": {
81
+ "hue": [
82
+ -0.05,
83
+ 0.05
84
+ ]
85
+ }
86
+ },
87
+ "sharpness": {
88
+ "weight": 1.0,
89
+ "type": "SharpnessJitter",
90
+ "kwargs": {
91
+ "sharpness": [
92
+ 0.5,
93
+ 1.5
94
+ ]
95
+ }
96
+ },
97
+ "affine": {
98
+ "weight": 1.0,
99
+ "type": "RandomAffine",
100
+ "kwargs": {
101
+ "degrees": [
102
+ -5.0,
103
+ 5.0
104
+ ],
105
+ "translate": [
106
+ 0.05,
107
+ 0.05
108
+ ]
109
+ }
110
+ }
111
+ }
112
+ },
113
+ "revision": null,
114
+ "use_imagenet_stats": true,
115
+ "video_backend": "torchcodec",
116
+ "streaming": false
117
+ },
118
+ "env": null,
119
+ "policy": {
120
+ "type": "act",
121
+ "n_obs_steps": 1,
122
+ "input_features": {
123
+ "observation.state": {
124
+ "type": "STATE",
125
+ "shape": [
126
+ 9
127
+ ]
128
+ },
129
+ "observation.images.wrist": {
130
+ "type": "VISUAL",
131
+ "shape": [
132
+ 3,
133
+ 480,
134
+ 640
135
+ ]
136
+ },
137
+ "observation.images.front": {
138
+ "type": "VISUAL",
139
+ "shape": [
140
+ 3,
141
+ 480,
142
+ 640
143
+ ]
144
+ }
145
+ },
146
+ "output_features": {
147
+ "action": {
148
+ "type": "ACTION",
149
+ "shape": [
150
+ 8
151
+ ]
152
+ }
153
+ },
154
+ "device": "cuda",
155
+ "use_amp": false,
156
+ "use_peft": false,
157
+ "push_to_hub": true,
158
+ "repo_id": "allen30/policy_cupstacking_act_data50",
159
+ "private": null,
160
+ "tags": null,
161
+ "license": null,
162
+ "pretrained_path": null,
163
+ "chunk_size": 64,
164
+ "n_action_steps": 8,
165
+ "normalization_mapping": {
166
+ "VISUAL": "MEAN_STD",
167
+ "STATE": "MEAN_STD",
168
+ "ACTION": "MEAN_STD"
169
+ },
170
+ "vision_backbone": "resnet18",
171
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
172
+ "replace_final_stride_with_dilation": false,
173
+ "pre_norm": false,
174
+ "dim_model": 512,
175
+ "n_heads": 8,
176
+ "dim_feedforward": 3200,
177
+ "feedforward_activation": "relu",
178
+ "n_encoder_layers": 4,
179
+ "n_decoder_layers": 1,
180
+ "use_vae": true,
181
+ "latent_dim": 32,
182
+ "n_vae_encoder_layers": 4,
183
+ "temporal_ensemble_coeff": null,
184
+ "dropout": 0.1,
185
+ "kl_weight": 10.0,
186
+ "optimizer_lr": 1e-05,
187
+ "optimizer_weight_decay": 0.0001,
188
+ "optimizer_lr_backbone": 1e-05
189
+ },
190
+ "output_dir": "outputs/train/act_data50",
191
+ "job_name": "act_data50",
192
+ "resume": false,
193
+ "seed": 1000,
194
+ "num_workers": 4,
195
+ "batch_size": 4,
196
+ "steps": 100000,
197
+ "eval_freq": 20000,
198
+ "log_freq": 200,
199
+ "tolerance_s": 0.0001,
200
+ "save_checkpoint": true,
201
+ "save_freq": 10000,
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": "aicapstone-allen",
224
+ "entity": null,
225
+ "notes": null,
226
+ "run_id": "aumwucgu",
227
+ "mode": null
228
+ },
229
+ "peft": null,
230
+ "use_rabc": false,
231
+ "rabc_progress_path": null,
232
+ "rabc_kappa": 0.01,
233
+ "rabc_epsilon": 1e-06,
234
+ "rabc_head_mode": "sparse",
235
+ "rename_map": {},
236
+ "checkpoint_path": null
237
+ }