Robotics
LeRobot
Safetensors
diffusion
allen30 commited on
Commit
2389078
·
verified ·
1 Parent(s): 86f02e6

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +92 -0
  3. model.safetensors +3 -0
  4. train_config.json +279 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: victor158/aicapstone_cupstacking_v1
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - diffusion
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for diffusion
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ [Diffusion Policy](https://huggingface.co/papers/2303.04137) treats visuomotor control as a generative diffusion process, producing smooth, multi-step action trajectories that excel at contact-rich manipulation.
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,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 9
9
+ ]
10
+ },
11
+ "observation.images.wrist": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.front": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 8
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": false,
39
+ "push_to_hub": true,
40
+ "repo_id": "allen30/policy_cupstacking_h64_data75",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "horizon": 64,
46
+ "n_action_steps": 8,
47
+ "normalization_mapping": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MIN_MAX",
50
+ "ACTION": "MIN_MAX"
51
+ },
52
+ "drop_n_last_frames": 7,
53
+ "vision_backbone": "resnet18",
54
+ "resize_shape": null,
55
+ "crop_ratio": 1.0,
56
+ "crop_shape": null,
57
+ "crop_is_random": true,
58
+ "pretrained_backbone_weights": null,
59
+ "use_group_norm": true,
60
+ "spatial_softmax_num_keypoints": 32,
61
+ "use_separate_rgb_encoder_per_camera": false,
62
+ "down_dims": [
63
+ 512,
64
+ 1024,
65
+ 2048
66
+ ],
67
+ "kernel_size": 5,
68
+ "n_groups": 8,
69
+ "diffusion_step_embed_dim": 128,
70
+ "use_film_scale_modulation": true,
71
+ "noise_scheduler_type": "DDPM",
72
+ "num_train_timesteps": 100,
73
+ "beta_schedule": "squaredcos_cap_v2",
74
+ "beta_start": 0.0001,
75
+ "beta_end": 0.02,
76
+ "prediction_type": "epsilon",
77
+ "clip_sample": true,
78
+ "clip_sample_range": 1.0,
79
+ "num_inference_steps": null,
80
+ "compile_model": false,
81
+ "compile_mode": "reduce-overhead",
82
+ "do_mask_loss_for_padding": false,
83
+ "optimizer_lr": 0.0001,
84
+ "optimizer_betas": [
85
+ 0.95,
86
+ 0.999
87
+ ],
88
+ "optimizer_eps": 1e-08,
89
+ "optimizer_weight_decay": 1e-06,
90
+ "scheduler_name": "cosine",
91
+ "scheduler_warmup_steps": 500
92
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b34aa609ecbb310a9632e30b5a64c1837323dc89cb14e973cf82896e6975799
3
+ size 1067235520
train_config.json ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "victor158/aicapstone_cupstacking_v1",
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
+ 41,
48
+ 42,
49
+ 43,
50
+ 44,
51
+ 45,
52
+ 46,
53
+ 47,
54
+ 48,
55
+ 49,
56
+ 50,
57
+ 51
58
+ ],
59
+ "image_transforms": {
60
+ "enable": false,
61
+ "max_num_transforms": 3,
62
+ "random_order": false,
63
+ "tfs": {
64
+ "brightness": {
65
+ "weight": 1.0,
66
+ "type": "ColorJitter",
67
+ "kwargs": {
68
+ "brightness": [
69
+ 0.8,
70
+ 1.2
71
+ ]
72
+ }
73
+ },
74
+ "contrast": {
75
+ "weight": 1.0,
76
+ "type": "ColorJitter",
77
+ "kwargs": {
78
+ "contrast": [
79
+ 0.8,
80
+ 1.2
81
+ ]
82
+ }
83
+ },
84
+ "saturation": {
85
+ "weight": 1.0,
86
+ "type": "ColorJitter",
87
+ "kwargs": {
88
+ "saturation": [
89
+ 0.5,
90
+ 1.5
91
+ ]
92
+ }
93
+ },
94
+ "hue": {
95
+ "weight": 1.0,
96
+ "type": "ColorJitter",
97
+ "kwargs": {
98
+ "hue": [
99
+ -0.05,
100
+ 0.05
101
+ ]
102
+ }
103
+ },
104
+ "sharpness": {
105
+ "weight": 1.0,
106
+ "type": "SharpnessJitter",
107
+ "kwargs": {
108
+ "sharpness": [
109
+ 0.5,
110
+ 1.5
111
+ ]
112
+ }
113
+ },
114
+ "affine": {
115
+ "weight": 1.0,
116
+ "type": "RandomAffine",
117
+ "kwargs": {
118
+ "degrees": [
119
+ -5.0,
120
+ 5.0
121
+ ],
122
+ "translate": [
123
+ 0.05,
124
+ 0.05
125
+ ]
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "revision": null,
131
+ "use_imagenet_stats": true,
132
+ "video_backend": "torchcodec",
133
+ "streaming": false
134
+ },
135
+ "env": null,
136
+ "policy": {
137
+ "type": "diffusion",
138
+ "n_obs_steps": 2,
139
+ "input_features": {
140
+ "observation.state": {
141
+ "type": "STATE",
142
+ "shape": [
143
+ 9
144
+ ]
145
+ },
146
+ "observation.images.wrist": {
147
+ "type": "VISUAL",
148
+ "shape": [
149
+ 3,
150
+ 480,
151
+ 640
152
+ ]
153
+ },
154
+ "observation.images.front": {
155
+ "type": "VISUAL",
156
+ "shape": [
157
+ 3,
158
+ 480,
159
+ 640
160
+ ]
161
+ }
162
+ },
163
+ "output_features": {
164
+ "action": {
165
+ "type": "ACTION",
166
+ "shape": [
167
+ 8
168
+ ]
169
+ }
170
+ },
171
+ "device": "cuda",
172
+ "use_amp": false,
173
+ "use_peft": false,
174
+ "push_to_hub": true,
175
+ "repo_id": "allen30/policy_cupstacking_h64_data75",
176
+ "private": null,
177
+ "tags": null,
178
+ "license": null,
179
+ "pretrained_path": null,
180
+ "horizon": 64,
181
+ "n_action_steps": 8,
182
+ "normalization_mapping": {
183
+ "VISUAL": "MEAN_STD",
184
+ "STATE": "MIN_MAX",
185
+ "ACTION": "MIN_MAX"
186
+ },
187
+ "drop_n_last_frames": 7,
188
+ "vision_backbone": "resnet18",
189
+ "resize_shape": null,
190
+ "crop_ratio": 1.0,
191
+ "crop_shape": null,
192
+ "crop_is_random": true,
193
+ "pretrained_backbone_weights": null,
194
+ "use_group_norm": true,
195
+ "spatial_softmax_num_keypoints": 32,
196
+ "use_separate_rgb_encoder_per_camera": false,
197
+ "down_dims": [
198
+ 512,
199
+ 1024,
200
+ 2048
201
+ ],
202
+ "kernel_size": 5,
203
+ "n_groups": 8,
204
+ "diffusion_step_embed_dim": 128,
205
+ "use_film_scale_modulation": true,
206
+ "noise_scheduler_type": "DDPM",
207
+ "num_train_timesteps": 100,
208
+ "beta_schedule": "squaredcos_cap_v2",
209
+ "beta_start": 0.0001,
210
+ "beta_end": 0.02,
211
+ "prediction_type": "epsilon",
212
+ "clip_sample": true,
213
+ "clip_sample_range": 1.0,
214
+ "num_inference_steps": null,
215
+ "compile_model": false,
216
+ "compile_mode": "reduce-overhead",
217
+ "do_mask_loss_for_padding": false,
218
+ "optimizer_lr": 0.0001,
219
+ "optimizer_betas": [
220
+ 0.95,
221
+ 0.999
222
+ ],
223
+ "optimizer_eps": 1e-08,
224
+ "optimizer_weight_decay": 1e-06,
225
+ "scheduler_name": "cosine",
226
+ "scheduler_warmup_steps": 500
227
+ },
228
+ "output_dir": "outputs/train/h64_data75",
229
+ "job_name": "h64_data75",
230
+ "resume": false,
231
+ "seed": 1000,
232
+ "num_workers": 4,
233
+ "batch_size": 4,
234
+ "steps": 100000,
235
+ "eval_freq": 20000,
236
+ "log_freq": 200,
237
+ "tolerance_s": 0.0001,
238
+ "save_checkpoint": true,
239
+ "save_freq": 10000,
240
+ "use_policy_training_preset": true,
241
+ "optimizer": {
242
+ "type": "adam",
243
+ "lr": 0.0001,
244
+ "weight_decay": 1e-06,
245
+ "grad_clip_norm": 10.0,
246
+ "betas": [
247
+ 0.95,
248
+ 0.999
249
+ ],
250
+ "eps": 1e-08
251
+ },
252
+ "scheduler": {
253
+ "type": "diffuser",
254
+ "num_warmup_steps": 500,
255
+ "name": "cosine"
256
+ },
257
+ "eval": {
258
+ "n_episodes": 50,
259
+ "batch_size": 50,
260
+ "use_async_envs": false
261
+ },
262
+ "wandb": {
263
+ "enable": true,
264
+ "disable_artifact": false,
265
+ "project": "aicapstone-allen",
266
+ "entity": null,
267
+ "notes": null,
268
+ "run_id": "4bw3zvob",
269
+ "mode": null
270
+ },
271
+ "peft": null,
272
+ "use_rabc": false,
273
+ "rabc_progress_path": null,
274
+ "rabc_kappa": 0.01,
275
+ "rabc_epsilon": 1e-06,
276
+ "rabc_head_mode": "sparse",
277
+ "rename_map": {},
278
+ "checkpoint_path": null
279
+ }