Robotics
LeRobot
Safetensors
act
learner1119 commited on
Commit
1540bc8
·
verified ·
1 Parent(s): c201d8d

Upload policy weights, train config and readme

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