Robotics
LeRobot
Safetensors
act
Jingyi-Z commited on
Commit
f478a3e
·
verified ·
1 Parent(s): 01190d4

Upload policy weights, train config and readme

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