Robotics
LeRobot
Safetensors
act
Jefferzn commited on
Commit
3266dd4
·
verified ·
1 Parent(s): b19fd3d

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