Robotics
LeRobot
Safetensors
act
learner1119 commited on
Commit
26bd1a4
·
verified ·
1 Parent(s): 25255cd

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