Robotics
LeRobot
Safetensors
act
B111ue commited on
Commit
4f3f769
·
verified ·
1 Parent(s): dc7544c

Upload policy weights, train config and readme

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