BertoTrujillo commited on
Commit
4e9f5a9
·
verified ·
1 Parent(s): 9a05f50

Upload ACT cable insertion model - 50000 steps

Browse files
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: lerobot
3
+ tags:
4
+ - robotics
5
+ - lerobot
6
+ - act
7
+ - so101
8
+ - imitation-learning
9
+ - robot-manipulation
10
+ ---
11
+
12
+ # SuperInsertCable ACT
13
+
14
+ Modelo de robótica basado en ACT (Action Chunking with Transformers),
15
+ entrenado con LeRobot para una tarea de inserción de cables.
16
+
17
+ ## Características
18
+
19
+ - Arquitectura: ACT
20
+ - Framework: LeRobot
21
+ - Robot objetivo: SO-101
22
+ - Entrenamiento: 50.000 pasos
23
+ - Tarea: inserción de cables
24
+ - Aprendizaje: imitación a partir de demostraciones
25
+
26
+ ## Uso y limitaciones
27
+
28
+ Modelo experimental para manipulación robótica. Su rendimiento depende
29
+ de la calibración, las cámaras, el robot y la correspondencia entre
30
+ los datos de entrenamiento y el entorno de ejecución.
31
+
32
+ Realizar las pruebas iniciales en un entorno controlado.
config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.robot": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 240,
16
+ 320
17
+ ]
18
+ },
19
+ "observation.images.top": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 240,
24
+ 320
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": false,
40
+ "repo_id": null,
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "pretrained_revision": null,
46
+ "chunk_size": 100,
47
+ "n_action_steps": 100,
48
+ "normalization_mapping": {
49
+ "VISUAL": "MEAN_STD",
50
+ "STATE": "MEAN_STD",
51
+ "ACTION": "MEAN_STD"
52
+ },
53
+ "vision_backbone": "resnet18",
54
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
55
+ "replace_final_stride_with_dilation": false,
56
+ "pre_norm": false,
57
+ "dim_model": 512,
58
+ "n_heads": 8,
59
+ "dim_feedforward": 3200,
60
+ "feedforward_activation": "relu",
61
+ "n_encoder_layers": 4,
62
+ "n_decoder_layers": 1,
63
+ "use_vae": true,
64
+ "latent_dim": 32,
65
+ "n_vae_encoder_layers": 4,
66
+ "temporal_ensemble_coeff": null,
67
+ "dropout": 0.1,
68
+ "kl_weight": 10.0,
69
+ "optimizer_lr": 1e-05,
70
+ "optimizer_weight_decay": 0.0001,
71
+ "optimizer_lr_backbone": 1e-05
72
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b38c670d248b30d935fd2e025c7473581182bf5a1fc0db23d3dd844308a564ee
3
+ size 206699736
policy_postprocessor.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "unnormalizer_processor",
6
+ "config": {
7
+ "eps": 1e-08,
8
+ "features": {
9
+ "action": {
10
+ "type": "ACTION",
11
+ "shape": [
12
+ 6
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "MEAN_STD",
18
+ "STATE": "MEAN_STD",
19
+ "ACTION": "MEAN_STD"
20
+ }
21
+ },
22
+ "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
23
+ },
24
+ {
25
+ "registry_name": "device_processor",
26
+ "config": {
27
+ "device": "cpu",
28
+ "float_dtype": null
29
+ }
30
+ }
31
+ ]
32
+ }
policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5aa28badad3d2f0977106a619cb5bc7a4c396182529cc548ad5eafd52c1d8f80
3
+ size 7536
policy_preprocessor.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {}
8
+ }
9
+ },
10
+ {
11
+ "registry_name": "to_batch_processor",
12
+ "config": {}
13
+ },
14
+ {
15
+ "registry_name": "device_processor",
16
+ "config": {
17
+ "device": "cuda",
18
+ "float_dtype": null
19
+ }
20
+ },
21
+ {
22
+ "registry_name": "normalizer_processor",
23
+ "config": {
24
+ "eps": 1e-08,
25
+ "features": {
26
+ "observation.state": {
27
+ "type": "STATE",
28
+ "shape": [
29
+ 6
30
+ ]
31
+ },
32
+ "observation.images.robot": {
33
+ "type": "VISUAL",
34
+ "shape": [
35
+ 3,
36
+ 240,
37
+ 320
38
+ ]
39
+ },
40
+ "observation.images.top": {
41
+ "type": "VISUAL",
42
+ "shape": [
43
+ 3,
44
+ 240,
45
+ 320
46
+ ]
47
+ },
48
+ "action": {
49
+ "type": "ACTION",
50
+ "shape": [
51
+ 6
52
+ ]
53
+ }
54
+ },
55
+ "norm_map": {
56
+ "VISUAL": "MEAN_STD",
57
+ "STATE": "MEAN_STD",
58
+ "ACTION": "MEAN_STD"
59
+ }
60
+ },
61
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
62
+ }
63
+ ]
64
+ }
policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da4c2af7957790ff87747679b6c60ff6b2bcb2eb524303542b48763f8e5a5355
3
+ size 7544
train_config.json ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "BertoTrujillo/superinsertcable",
4
+ "repo_type": "dataset",
5
+ "root": null,
6
+ "episodes": null,
7
+ "image_transforms": {
8
+ "enable": false,
9
+ "max_num_transforms": 3,
10
+ "random_order": false,
11
+ "tfs": {
12
+ "brightness": {
13
+ "weight": 1.0,
14
+ "type": "ColorJitter",
15
+ "kwargs": {
16
+ "brightness": [
17
+ 0.8,
18
+ 1.2
19
+ ]
20
+ }
21
+ },
22
+ "contrast": {
23
+ "weight": 1.0,
24
+ "type": "ColorJitter",
25
+ "kwargs": {
26
+ "contrast": [
27
+ 0.8,
28
+ 1.2
29
+ ]
30
+ }
31
+ },
32
+ "saturation": {
33
+ "weight": 1.0,
34
+ "type": "ColorJitter",
35
+ "kwargs": {
36
+ "saturation": [
37
+ 0.5,
38
+ 1.5
39
+ ]
40
+ }
41
+ },
42
+ "hue": {
43
+ "weight": 1.0,
44
+ "type": "ColorJitter",
45
+ "kwargs": {
46
+ "hue": [
47
+ -0.05,
48
+ 0.05
49
+ ]
50
+ }
51
+ },
52
+ "sharpness": {
53
+ "weight": 1.0,
54
+ "type": "SharpnessJitter",
55
+ "kwargs": {
56
+ "sharpness": [
57
+ 0.5,
58
+ 1.5
59
+ ]
60
+ }
61
+ },
62
+ "affine": {
63
+ "weight": 1.0,
64
+ "type": "RandomAffine",
65
+ "kwargs": {
66
+ "degrees": [
67
+ -5.0,
68
+ 5.0
69
+ ],
70
+ "translate": [
71
+ 0.05,
72
+ 0.05
73
+ ]
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "revision": null,
79
+ "use_imagenet_stats": true,
80
+ "video_backend": "pyav",
81
+ "return_uint8": false,
82
+ "depth_output_unit": "mm",
83
+ "streaming": false,
84
+ "eval_split": 0.0
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
+ 6
95
+ ]
96
+ },
97
+ "observation.images.robot": {
98
+ "type": "VISUAL",
99
+ "shape": [
100
+ 3,
101
+ 240,
102
+ 320
103
+ ]
104
+ },
105
+ "observation.images.top": {
106
+ "type": "VISUAL",
107
+ "shape": [
108
+ 3,
109
+ 240,
110
+ 320
111
+ ]
112
+ }
113
+ },
114
+ "output_features": {
115
+ "action": {
116
+ "type": "ACTION",
117
+ "shape": [
118
+ 6
119
+ ]
120
+ }
121
+ },
122
+ "device": "cuda",
123
+ "use_amp": false,
124
+ "use_peft": false,
125
+ "push_to_hub": false,
126
+ "repo_id": null,
127
+ "private": null,
128
+ "tags": null,
129
+ "license": null,
130
+ "pretrained_path": null,
131
+ "pretrained_revision": null,
132
+ "chunk_size": 100,
133
+ "n_action_steps": 100,
134
+ "normalization_mapping": {
135
+ "VISUAL": "MEAN_STD",
136
+ "STATE": "MEAN_STD",
137
+ "ACTION": "MEAN_STD"
138
+ },
139
+ "vision_backbone": "resnet18",
140
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
141
+ "replace_final_stride_with_dilation": false,
142
+ "pre_norm": false,
143
+ "dim_model": 512,
144
+ "n_heads": 8,
145
+ "dim_feedforward": 3200,
146
+ "feedforward_activation": "relu",
147
+ "n_encoder_layers": 4,
148
+ "n_decoder_layers": 1,
149
+ "use_vae": true,
150
+ "latent_dim": 32,
151
+ "n_vae_encoder_layers": 4,
152
+ "temporal_ensemble_coeff": null,
153
+ "dropout": 0.1,
154
+ "kl_weight": 10.0,
155
+ "optimizer_lr": 1e-05,
156
+ "optimizer_weight_decay": 0.0001,
157
+ "optimizer_lr_backbone": 1e-05
158
+ },
159
+ "reward_model": null,
160
+ "output_dir": "outputs/train/act_superinsertcable",
161
+ "job_name": "act_superinsertcable",
162
+ "resume": false,
163
+ "seed": 1000,
164
+ "cudnn_deterministic": false,
165
+ "num_workers": 0,
166
+ "batch_size": 8,
167
+ "prefetch_factor": 4,
168
+ "persistent_workers": true,
169
+ "dataloader_multiprocessing_context": "spawn",
170
+ "steps": 50000,
171
+ "env_eval_freq": 20000,
172
+ "log_freq": 200,
173
+ "eval_steps": 0,
174
+ "max_eval_samples": 0,
175
+ "tolerance_s": 0.0001,
176
+ "save_checkpoint": true,
177
+ "save_freq": 1000,
178
+ "use_policy_training_preset": true,
179
+ "optimizer": {
180
+ "type": "adamw",
181
+ "lr": 1e-05,
182
+ "weight_decay": 0.0001,
183
+ "grad_clip_norm": 10.0,
184
+ "betas": [
185
+ 0.9,
186
+ 0.999
187
+ ],
188
+ "eps": 1e-08
189
+ },
190
+ "scheduler": null,
191
+ "eval": {
192
+ "n_episodes": 50,
193
+ "batch_size": 21,
194
+ "use_async_envs": true,
195
+ "recording": false,
196
+ "recording_repo_id": null,
197
+ "recording_private": false
198
+ },
199
+ "wandb": {
200
+ "enable": false,
201
+ "disable_artifact": false,
202
+ "project": "lerobot",
203
+ "entity": null,
204
+ "notes": null,
205
+ "run_id": null,
206
+ "mode": null,
207
+ "add_tags": true
208
+ },
209
+ "peft": null,
210
+ "job": {
211
+ "target": null,
212
+ "image": "huggingface/lerobot-gpu:latest",
213
+ "timeout": "2d",
214
+ "detach": false,
215
+ "tags": []
216
+ },
217
+ "save_checkpoint_to_hub": false,
218
+ "sample_weighting": null,
219
+ "rename_map": {},
220
+ "checkpoint_path": null
221
+ }