Robotics
LeRobot
Safetensors
act
kingdeng05 commited on
Commit
8f90764
·
verified ·
1 Parent(s): da17e40

Upload policy weights, train config and readme

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