Robotics
LeRobot
Safetensors
act
ac-pate commited on
Commit
ae3d9de
·
verified ·
1 Parent(s): 6def59f

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +82 -0
  2. config.json +77 -0
  3. model.safetensors +3 -0
  4. train_config.json +204 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - Mimic-Robotics/bimanual_blue_block_handover_1
4
+ - Mimic-Robotics/bimanual_blue_block_handover_2
5
+ - Mimic-Robotics/bimanual_blue_block_handover_3
6
+ - Mimic-Robotics/bimanual_blue_block_handover_4
7
+ - Mimic-Robotics/bimanual_blue_block_handover_5
8
+ - Mimic-Robotics/bimanual_blue_block_handover_6
9
+ - Mimic-Robotics/bimanual_blue_block_handover_7
10
+ - Mimic-Robotics/bimanual_blue_block_handover_14
11
+ - Mimic-Robotics/bimanual_blue_block_handover_15
12
+ - Mimic-Robotics/bimanual_blue_block_handover_16
13
+ - Mimic-Robotics/bimanual_blue_block_handover_17
14
+ - Mimic-Robotics/bimanual_blue_block_handover_18
15
+ - Mimic-Robotics/bimanual_blue_block_handover_19
16
+ - Mimic-Robotics/bimanual_blue_block_handover_20
17
+ - Mimic-Robotics/bimanual_blue_block_handover_21
18
+ - Mimic-Robotics/bimanual_blue_block_handover_22
19
+ - Mimic-Robotics/bimanual_blue_block_handover_23
20
+ - Mimic-Robotics/bimanual_blue_block_handover_24
21
+ - Mimic-Robotics/bimanual_blue_block_handover_25
22
+ - Mimic-Robotics/bimanual_blue_block_handover_26
23
+ library_name: lerobot
24
+ license: apache-2.0
25
+ model_name: act
26
+ pipeline_tag: robotics
27
+ tags:
28
+ - act
29
+ - robotics
30
+ - lerobot
31
+ ---
32
+
33
+ # Model Card for act
34
+
35
+ <!-- Provide a quick summary of what the model is/does. -->
36
+
37
+
38
+ [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.
39
+
40
+
41
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
42
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
43
+
44
+ ---
45
+
46
+ ## How to Get Started with the Model
47
+
48
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
49
+ Below is the short version on how to train and run inference/eval:
50
+
51
+ ### Train from scratch
52
+
53
+ ```bash
54
+ python -m lerobot.scripts.train \
55
+ --dataset.repo_id=${HF_USER}/<dataset> \
56
+ --policy.type=act \
57
+ --output_dir=outputs/train/<desired_policy_repo_id> \
58
+ --job_name=lerobot_training \
59
+ --policy.device=cuda \
60
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
61
+ --wandb.enable=true
62
+ ```
63
+
64
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
65
+
66
+ ### Evaluate the policy/run inference
67
+
68
+ ```bash
69
+ python -m lerobot.record \
70
+ --robot.type=so100_follower \
71
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
72
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
73
+ --episodes=10
74
+ ```
75
+
76
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
77
+
78
+ ---
79
+
80
+ ## Model Details
81
+
82
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 12
14
+ ]
15
+ },
16
+ "observation.images.wrist_right": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ },
24
+ "observation.images.wrist_left": {
25
+ "type": "VISUAL",
26
+ "shape": [
27
+ 3,
28
+ 480,
29
+ 640
30
+ ]
31
+ },
32
+ "observation.images.realsense_top": {
33
+ "type": "VISUAL",
34
+ "shape": [
35
+ 3,
36
+ 480,
37
+ 640
38
+ ]
39
+ }
40
+ },
41
+ "output_features": {
42
+ "action": {
43
+ "type": "ACTION",
44
+ "shape": [
45
+ 12
46
+ ]
47
+ }
48
+ },
49
+ "device": "cuda",
50
+ "use_amp": false,
51
+ "push_to_hub": true,
52
+ "repo_id": "Mimic-Robotics/act_odin_bimanual_handover_450_eps",
53
+ "private": null,
54
+ "tags": null,
55
+ "license": null,
56
+ "chunk_size": 100,
57
+ "n_action_steps": 100,
58
+ "vision_backbone": "resnet18",
59
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
60
+ "replace_final_stride_with_dilation": false,
61
+ "pre_norm": false,
62
+ "dim_model": 512,
63
+ "n_heads": 8,
64
+ "dim_feedforward": 3200,
65
+ "feedforward_activation": "relu",
66
+ "n_encoder_layers": 4,
67
+ "n_decoder_layers": 1,
68
+ "use_vae": true,
69
+ "latent_dim": 32,
70
+ "n_vae_encoder_layers": 4,
71
+ "temporal_ensemble_coeff": null,
72
+ "dropout": 0.1,
73
+ "kl_weight": 10.0,
74
+ "optimizer_lr": 1e-05,
75
+ "optimizer_weight_decay": 0.0001,
76
+ "optimizer_lr_backbone": 1e-05
77
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94e269cf53abe86e4015b7b2b57bdc820ed138f71d8ea58d731f754a7b3a7263
3
+ size 206750712
train_config.json ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": [
4
+ "Mimic-Robotics/bimanual_blue_block_handover_1",
5
+ "Mimic-Robotics/bimanual_blue_block_handover_2",
6
+ "Mimic-Robotics/bimanual_blue_block_handover_3",
7
+ "Mimic-Robotics/bimanual_blue_block_handover_4",
8
+ "Mimic-Robotics/bimanual_blue_block_handover_5",
9
+ "Mimic-Robotics/bimanual_blue_block_handover_6",
10
+ "Mimic-Robotics/bimanual_blue_block_handover_7",
11
+ "Mimic-Robotics/bimanual_blue_block_handover_14",
12
+ "Mimic-Robotics/bimanual_blue_block_handover_15",
13
+ "Mimic-Robotics/bimanual_blue_block_handover_16",
14
+ "Mimic-Robotics/bimanual_blue_block_handover_17",
15
+ "Mimic-Robotics/bimanual_blue_block_handover_18",
16
+ "Mimic-Robotics/bimanual_blue_block_handover_19",
17
+ "Mimic-Robotics/bimanual_blue_block_handover_20",
18
+ "Mimic-Robotics/bimanual_blue_block_handover_21",
19
+ "Mimic-Robotics/bimanual_blue_block_handover_22",
20
+ "Mimic-Robotics/bimanual_blue_block_handover_23",
21
+ "Mimic-Robotics/bimanual_blue_block_handover_24",
22
+ "Mimic-Robotics/bimanual_blue_block_handover_25",
23
+ "Mimic-Robotics/bimanual_blue_block_handover_26"
24
+ ],
25
+ "root": null,
26
+ "episodes": null,
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
+ }
83
+ },
84
+ "revision": null,
85
+ "use_imagenet_stats": true,
86
+ "video_backend": "torchcodec"
87
+ },
88
+ "env": null,
89
+ "policy": {
90
+ "type": "act",
91
+ "n_obs_steps": 1,
92
+ "normalization_mapping": {
93
+ "VISUAL": "MEAN_STD",
94
+ "STATE": "MEAN_STD",
95
+ "ACTION": "MEAN_STD"
96
+ },
97
+ "input_features": {
98
+ "observation.state": {
99
+ "type": "STATE",
100
+ "shape": [
101
+ 12
102
+ ]
103
+ },
104
+ "observation.images.wrist_right": {
105
+ "type": "VISUAL",
106
+ "shape": [
107
+ 3,
108
+ 480,
109
+ 640
110
+ ]
111
+ },
112
+ "observation.images.wrist_left": {
113
+ "type": "VISUAL",
114
+ "shape": [
115
+ 3,
116
+ 480,
117
+ 640
118
+ ]
119
+ },
120
+ "observation.images.realsense_top": {
121
+ "type": "VISUAL",
122
+ "shape": [
123
+ 3,
124
+ 480,
125
+ 640
126
+ ]
127
+ }
128
+ },
129
+ "output_features": {
130
+ "action": {
131
+ "type": "ACTION",
132
+ "shape": [
133
+ 12
134
+ ]
135
+ }
136
+ },
137
+ "device": "cuda",
138
+ "use_amp": false,
139
+ "push_to_hub": true,
140
+ "repo_id": "Mimic-Robotics/act_odin_bimanual_handover_450_eps",
141
+ "private": null,
142
+ "tags": null,
143
+ "license": null,
144
+ "chunk_size": 100,
145
+ "n_action_steps": 100,
146
+ "vision_backbone": "resnet18",
147
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
148
+ "replace_final_stride_with_dilation": false,
149
+ "pre_norm": false,
150
+ "dim_model": 512,
151
+ "n_heads": 8,
152
+ "dim_feedforward": 3200,
153
+ "feedforward_activation": "relu",
154
+ "n_encoder_layers": 4,
155
+ "n_decoder_layers": 1,
156
+ "use_vae": true,
157
+ "latent_dim": 32,
158
+ "n_vae_encoder_layers": 4,
159
+ "temporal_ensemble_coeff": null,
160
+ "dropout": 0.1,
161
+ "kl_weight": 10.0,
162
+ "optimizer_lr": 1e-05,
163
+ "optimizer_weight_decay": 0.0001,
164
+ "optimizer_lr_backbone": 1e-05
165
+ },
166
+ "output_dir": "outputs/train/act_odin_Bimanual_Handover_FromScratch_450_eps",
167
+ "job_name": "act_odin_Bimanual_Handover_FromScratch",
168
+ "resume": false,
169
+ "seed": 1000,
170
+ "num_workers": 16,
171
+ "batch_size": 8,
172
+ "steps": 40000,
173
+ "eval_freq": 20000,
174
+ "log_freq": 200,
175
+ "save_checkpoint": true,
176
+ "save_freq": 20000,
177
+ "use_policy_training_preset": true,
178
+ "optimizer": {
179
+ "type": "adamw",
180
+ "lr": 1e-05,
181
+ "weight_decay": 0.0001,
182
+ "grad_clip_norm": 10.0,
183
+ "betas": [
184
+ 0.9,
185
+ 0.999
186
+ ],
187
+ "eps": 1e-08
188
+ },
189
+ "scheduler": null,
190
+ "eval": {
191
+ "n_episodes": 50,
192
+ "batch_size": 50,
193
+ "use_async_envs": false
194
+ },
195
+ "wandb": {
196
+ "enable": true,
197
+ "disable_artifact": false,
198
+ "project": "lerobot",
199
+ "entity": null,
200
+ "notes": "Multi-dataset training on 20 bimanual handover datasets - act on odin - From Scratch",
201
+ "run_id": "q6gi1iee",
202
+ "mode": null
203
+ }
204
+ }