Robotics
LeRobot
Safetensors
act
AriRyo commited on
Commit
9760c9a
·
verified ·
1 Parent(s): 407ee22

Upload policy weights, train config and readme

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