Robotics
LeRobot
Safetensors
act
jayyucippg commited on
Commit
23a26cb
·
verified ·
1 Parent(s): 20e89fe

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 +217 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: jayyucippg/record-side-views-2
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: act
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - act
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
+ python -m lerobot.scripts.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
+ python -m 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
+ "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
+ 6
14
+ ]
15
+ },
16
+ "observation.images.side": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ }
24
+ },
25
+ "output_features": {
26
+ "action": {
27
+ "type": "ACTION",
28
+ "shape": [
29
+ 6
30
+ ]
31
+ }
32
+ },
33
+ "device": "cuda",
34
+ "use_amp": false,
35
+ "push_to_hub": true,
36
+ "repo_id": "jayyucippg/act_side_views_2",
37
+ "private": null,
38
+ "tags": null,
39
+ "license": null,
40
+ "chunk_size": 100,
41
+ "n_action_steps": 100,
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:dfc78f101ec8dcdce6c47f42e331aa92e15a736129faec606e5543ef18f15934
3
+ size 206700792
train_config.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "jayyucippg/record-side-views-2",
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
+ 24,
31
+ 25,
32
+ 26,
33
+ 27,
34
+ 28,
35
+ 29,
36
+ 30,
37
+ 31,
38
+ 32,
39
+ 33,
40
+ 34,
41
+ 35,
42
+ 36,
43
+ 37,
44
+ 38,
45
+ 39,
46
+ 40,
47
+ 42,
48
+ 43,
49
+ 44,
50
+ 45,
51
+ 46,
52
+ 47,
53
+ 48,
54
+ 49
55
+ ],
56
+ "image_transforms": {
57
+ "enable": false,
58
+ "max_num_transforms": 3,
59
+ "random_order": false,
60
+ "tfs": {
61
+ "brightness": {
62
+ "weight": 1.0,
63
+ "type": "ColorJitter",
64
+ "kwargs": {
65
+ "brightness": [
66
+ 0.8,
67
+ 1.2
68
+ ]
69
+ }
70
+ },
71
+ "contrast": {
72
+ "weight": 1.0,
73
+ "type": "ColorJitter",
74
+ "kwargs": {
75
+ "contrast": [
76
+ 0.8,
77
+ 1.2
78
+ ]
79
+ }
80
+ },
81
+ "saturation": {
82
+ "weight": 1.0,
83
+ "type": "ColorJitter",
84
+ "kwargs": {
85
+ "saturation": [
86
+ 0.5,
87
+ 1.5
88
+ ]
89
+ }
90
+ },
91
+ "hue": {
92
+ "weight": 1.0,
93
+ "type": "ColorJitter",
94
+ "kwargs": {
95
+ "hue": [
96
+ -0.05,
97
+ 0.05
98
+ ]
99
+ }
100
+ },
101
+ "sharpness": {
102
+ "weight": 1.0,
103
+ "type": "SharpnessJitter",
104
+ "kwargs": {
105
+ "sharpness": [
106
+ 0.5,
107
+ 1.5
108
+ ]
109
+ }
110
+ }
111
+ }
112
+ },
113
+ "revision": null,
114
+ "use_imagenet_stats": true,
115
+ "video_backend": "torchcodec"
116
+ },
117
+ "env": null,
118
+ "policy": {
119
+ "type": "act",
120
+ "n_obs_steps": 1,
121
+ "normalization_mapping": {
122
+ "VISUAL": "MEAN_STD",
123
+ "STATE": "MEAN_STD",
124
+ "ACTION": "MEAN_STD"
125
+ },
126
+ "input_features": {
127
+ "observation.state": {
128
+ "type": "STATE",
129
+ "shape": [
130
+ 6
131
+ ]
132
+ },
133
+ "observation.images.side": {
134
+ "type": "VISUAL",
135
+ "shape": [
136
+ 3,
137
+ 480,
138
+ 640
139
+ ]
140
+ }
141
+ },
142
+ "output_features": {
143
+ "action": {
144
+ "type": "ACTION",
145
+ "shape": [
146
+ 6
147
+ ]
148
+ }
149
+ },
150
+ "device": "cuda",
151
+ "use_amp": false,
152
+ "push_to_hub": true,
153
+ "repo_id": "jayyucippg/act_side_views_2",
154
+ "private": null,
155
+ "tags": null,
156
+ "license": null,
157
+ "chunk_size": 100,
158
+ "n_action_steps": 100,
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": "/mnt/hdd/jyq/tmp/train/act-side-views-14-1",
180
+ "job_name": "act-side-views-2",
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
+ "save_checkpoint": true,
189
+ "save_freq": 20000,
190
+ "use_policy_training_preset": true,
191
+ "optimizer": {
192
+ "type": "adamw",
193
+ "lr": 1e-05,
194
+ "weight_decay": 0.0001,
195
+ "grad_clip_norm": 10.0,
196
+ "betas": [
197
+ 0.9,
198
+ 0.999
199
+ ],
200
+ "eps": 1e-08
201
+ },
202
+ "scheduler": null,
203
+ "eval": {
204
+ "n_episodes": 50,
205
+ "batch_size": 50,
206
+ "use_async_envs": false
207
+ },
208
+ "wandb": {
209
+ "enable": false,
210
+ "disable_artifact": false,
211
+ "project": "lerobot",
212
+ "entity": null,
213
+ "notes": null,
214
+ "run_id": null,
215
+ "mode": null
216
+ }
217
+ }