Robotics
LeRobot
Safetensors
act
antwoor commited on
Commit
6ed2845
·
verified ·
1 Parent(s): 1af14a4

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 +248 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: antwoor/color_figures
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: act
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
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,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "act",
3
+ "n_obs_steps": 1,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD",
6
+ "STATE": "MEAN_STD",
7
+ "ACTION": "MEAN_STD"
8
+ },
9
+ "input_features": {
10
+ "observation.state": {
11
+ "type": "STATE",
12
+ "shape": [
13
+ 7
14
+ ]
15
+ },
16
+ "observation.images.camera_1": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ },
24
+ "observation.images.camera_2": {
25
+ "type": "VISUAL",
26
+ "shape": [
27
+ 3,
28
+ 480,
29
+ 640
30
+ ]
31
+ }
32
+ },
33
+ "output_features": {
34
+ "action": {
35
+ "type": "ACTION",
36
+ "shape": [
37
+ 7
38
+ ]
39
+ }
40
+ },
41
+ "device": "cuda",
42
+ "use_amp": false,
43
+ "push_to_hub": true,
44
+ "repo_id": "None",
45
+ "private": null,
46
+ "tags": null,
47
+ "license": null,
48
+ "chunk_size": 100,
49
+ "n_action_steps": 1,
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": 0.01,
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:514c26c587ba90c519004bac73fa59d46cd6812b2a91c0681825c227087fde1a
3
+ size 206709300
train_config.json ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "antwoor/color_figures",
4
+ "root": null,
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
+ }
62
+ },
63
+ "revision": null,
64
+ "use_imagenet_stats": true,
65
+ "video_backend": "torchcodec"
66
+ },
67
+ "env": {
68
+ "type": "mcx",
69
+ "task": "pick all objects and place it in the box",
70
+ "fps": 30,
71
+ "features": {
72
+ "action": {
73
+ "type": "ACTION",
74
+ "shape": [
75
+ 7
76
+ ]
77
+ },
78
+ "pixels": {
79
+ "type": "VISUAL",
80
+ "shape": [
81
+ 480,
82
+ 640,
83
+ 3
84
+ ]
85
+ },
86
+ "agent_pos": {
87
+ "type": "STATE",
88
+ "shape": [
89
+ 7
90
+ ]
91
+ }
92
+ },
93
+ "features_map": {
94
+ "action": "action",
95
+ "agent_pos": "observation.state",
96
+ "pixels": "observation.image"
97
+ },
98
+ "ip": "192.168.56.101",
99
+ "obs_type": "pixels_agent_pos",
100
+ "action_mean": [
101
+ 0.0,
102
+ 0.0,
103
+ 0.0,
104
+ 0.0,
105
+ 0.0,
106
+ 0.0,
107
+ 0.0
108
+ ],
109
+ "action_std": [
110
+ 1.0,
111
+ 1.0,
112
+ 1.0,
113
+ 1.0,
114
+ 1.0,
115
+ 1.0,
116
+ 1.0
117
+ ],
118
+ "agent_pos_mean": [
119
+ 0.0,
120
+ 0.0,
121
+ 0.0,
122
+ 0.0,
123
+ 0.0,
124
+ 0.0,
125
+ 0.0
126
+ ],
127
+ "agent_pos_std": [
128
+ 1.0,
129
+ 1.0,
130
+ 1.0,
131
+ 1.0,
132
+ 1.0,
133
+ 1.0,
134
+ 1.0
135
+ ],
136
+ "episode_length": 30,
137
+ "render_mode": "rgb_array",
138
+ "visualization_width": 480,
139
+ "visualization_height": 640
140
+ },
141
+ "policy": {
142
+ "type": "act",
143
+ "n_obs_steps": 1,
144
+ "normalization_mapping": {
145
+ "VISUAL": "MEAN_STD",
146
+ "STATE": "MEAN_STD",
147
+ "ACTION": "MEAN_STD"
148
+ },
149
+ "input_features": {
150
+ "observation.state": {
151
+ "type": "STATE",
152
+ "shape": [
153
+ 7
154
+ ]
155
+ },
156
+ "observation.images.camera_1": {
157
+ "type": "VISUAL",
158
+ "shape": [
159
+ 3,
160
+ 480,
161
+ 640
162
+ ]
163
+ },
164
+ "observation.images.camera_2": {
165
+ "type": "VISUAL",
166
+ "shape": [
167
+ 3,
168
+ 480,
169
+ 640
170
+ ]
171
+ }
172
+ },
173
+ "output_features": {
174
+ "action": {
175
+ "type": "ACTION",
176
+ "shape": [
177
+ 7
178
+ ]
179
+ }
180
+ },
181
+ "device": "cuda",
182
+ "use_amp": false,
183
+ "push_to_hub": true,
184
+ "repo_id": "None",
185
+ "private": null,
186
+ "tags": null,
187
+ "license": null,
188
+ "chunk_size": 100,
189
+ "n_action_steps": 1,
190
+ "vision_backbone": "resnet18",
191
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
192
+ "replace_final_stride_with_dilation": false,
193
+ "pre_norm": false,
194
+ "dim_model": 512,
195
+ "n_heads": 8,
196
+ "dim_feedforward": 3200,
197
+ "feedforward_activation": "relu",
198
+ "n_encoder_layers": 4,
199
+ "n_decoder_layers": 1,
200
+ "use_vae": true,
201
+ "latent_dim": 32,
202
+ "n_vae_encoder_layers": 4,
203
+ "temporal_ensemble_coeff": 0.01,
204
+ "dropout": 0.1,
205
+ "kl_weight": 10.0,
206
+ "optimizer_lr": 1e-05,
207
+ "optimizer_weight_decay": 0.0001,
208
+ "optimizer_lr_backbone": 1e-05
209
+ },
210
+ "output_dir": "outputs/train/act_color_te_001",
211
+ "job_name": "mcx_act",
212
+ "resume": false,
213
+ "seed": 1000,
214
+ "num_workers": 4,
215
+ "batch_size": 8,
216
+ "steps": 50000,
217
+ "eval_freq": -1,
218
+ "log_freq": 25,
219
+ "save_checkpoint": true,
220
+ "save_freq": 10000,
221
+ "use_policy_training_preset": true,
222
+ "optimizer": {
223
+ "type": "adamw",
224
+ "lr": 1e-05,
225
+ "weight_decay": 0.0001,
226
+ "grad_clip_norm": 10.0,
227
+ "betas": [
228
+ 0.9,
229
+ 0.999
230
+ ],
231
+ "eps": 1e-08
232
+ },
233
+ "scheduler": null,
234
+ "eval": {
235
+ "n_episodes": 50,
236
+ "batch_size": 50,
237
+ "use_async_envs": false
238
+ },
239
+ "wandb": {
240
+ "enable": false,
241
+ "disable_artifact": false,
242
+ "project": "lerobot",
243
+ "entity": null,
244
+ "notes": null,
245
+ "run_id": null,
246
+ "mode": null
247
+ }
248
+ }