Robotics
LeRobot
Safetensors
diffusion
emreadabag commited on
Commit
6769dbb
·
verified ·
1 Parent(s): 842da65

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +114 -0
  3. model.safetensors +3 -0
  4. train_config.json +241 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: lerobot/test-data
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - diffusion
9
+ - lerobot
10
+ - robotics
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,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.images.wall": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 256,
10
+ 256
11
+ ]
12
+ },
13
+ "observation.images.wrist": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 256,
18
+ 256
19
+ ]
20
+ },
21
+ "observation.state.cartesian": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 6
25
+ ]
26
+ },
27
+ "observation.state.gripper": {
28
+ "type": "STATE",
29
+ "shape": [
30
+ 1
31
+ ]
32
+ },
33
+ "observation.state.joint": {
34
+ "type": "STATE",
35
+ "shape": [
36
+ 7
37
+ ]
38
+ },
39
+ "observation.state.target": {
40
+ "type": "STATE",
41
+ "shape": [
42
+ 6
43
+ ]
44
+ },
45
+ "observation.state": {
46
+ "type": "STATE",
47
+ "shape": [
48
+ 20
49
+ ]
50
+ }
51
+ },
52
+ "output_features": {
53
+ "action": {
54
+ "type": "ACTION",
55
+ "shape": [
56
+ 7
57
+ ]
58
+ }
59
+ },
60
+ "device": "cuda",
61
+ "use_amp": false,
62
+ "push_to_hub": true,
63
+ "repo_id": "tmp",
64
+ "private": null,
65
+ "tags": null,
66
+ "license": null,
67
+ "pretrained_path": null,
68
+ "horizon": 16,
69
+ "n_action_steps": 8,
70
+ "normalization_mapping": {
71
+ "VISUAL": "MEAN_STD",
72
+ "STATE": "MIN_MAX",
73
+ "ACTION": "MIN_MAX"
74
+ },
75
+ "drop_n_last_frames": 7,
76
+ "vision_backbone": "resnet18",
77
+ "crop_shape": [
78
+ 84,
79
+ 84
80
+ ],
81
+ "crop_is_random": true,
82
+ "pretrained_backbone_weights": null,
83
+ "use_group_norm": true,
84
+ "spatial_softmax_num_keypoints": 32,
85
+ "use_separate_rgb_encoder_per_camera": false,
86
+ "down_dims": [
87
+ 512,
88
+ 1024,
89
+ 2048
90
+ ],
91
+ "kernel_size": 5,
92
+ "n_groups": 8,
93
+ "diffusion_step_embed_dim": 128,
94
+ "use_film_scale_modulation": true,
95
+ "noise_scheduler_type": "DDPM",
96
+ "num_train_timesteps": 100,
97
+ "beta_schedule": "squaredcos_cap_v2",
98
+ "beta_start": 0.0001,
99
+ "beta_end": 0.02,
100
+ "prediction_type": "epsilon",
101
+ "clip_sample": true,
102
+ "clip_sample_range": 1.0,
103
+ "num_inference_steps": null,
104
+ "do_mask_loss_for_padding": false,
105
+ "optimizer_lr": 0.0001,
106
+ "optimizer_betas": [
107
+ 0.95,
108
+ 0.999
109
+ ],
110
+ "optimizer_eps": 1e-08,
111
+ "optimizer_weight_decay": 1e-06,
112
+ "scheduler_name": "cosine",
113
+ "scheduler_warmup_steps": 500
114
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52414bf069da34f750c86e2c90a3695106c8819d462daaddd4baf395ced332cd
3
+ size 1069741988
train_config.json ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lerobot/test-data",
4
+ "root": "/home/emrea/morecode/lerobot/test-data",
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": false,
8
+ "max_num_transforms": 3,
9
+ "random_order": false,
10
+ "tfs": {
11
+ "brightness": {
12
+ "weight": 1.0,
13
+ "type": "ColorJitter",
14
+ "kwargs": {
15
+ "brightness": [
16
+ 0.8,
17
+ 1.2
18
+ ]
19
+ }
20
+ },
21
+ "contrast": {
22
+ "weight": 1.0,
23
+ "type": "ColorJitter",
24
+ "kwargs": {
25
+ "contrast": [
26
+ 0.8,
27
+ 1.2
28
+ ]
29
+ }
30
+ },
31
+ "saturation": {
32
+ "weight": 1.0,
33
+ "type": "ColorJitter",
34
+ "kwargs": {
35
+ "saturation": [
36
+ 0.5,
37
+ 1.5
38
+ ]
39
+ }
40
+ },
41
+ "hue": {
42
+ "weight": 1.0,
43
+ "type": "ColorJitter",
44
+ "kwargs": {
45
+ "hue": [
46
+ -0.05,
47
+ 0.05
48
+ ]
49
+ }
50
+ },
51
+ "sharpness": {
52
+ "weight": 1.0,
53
+ "type": "SharpnessJitter",
54
+ "kwargs": {
55
+ "sharpness": [
56
+ 0.5,
57
+ 1.5
58
+ ]
59
+ }
60
+ },
61
+ "affine": {
62
+ "weight": 1.0,
63
+ "type": "RandomAffine",
64
+ "kwargs": {
65
+ "degrees": [
66
+ -5.0,
67
+ 5.0
68
+ ],
69
+ "translate": [
70
+ 0.05,
71
+ 0.05
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "revision": null,
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "diffusion",
85
+ "n_obs_steps": 2,
86
+ "input_features": {
87
+ "observation.images.wall": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 256,
92
+ 256
93
+ ]
94
+ },
95
+ "observation.images.wrist": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 3,
99
+ 256,
100
+ 256
101
+ ]
102
+ },
103
+ "observation.state.cartesian": {
104
+ "type": "STATE",
105
+ "shape": [
106
+ 6
107
+ ]
108
+ },
109
+ "observation.state.gripper": {
110
+ "type": "STATE",
111
+ "shape": [
112
+ 1
113
+ ]
114
+ },
115
+ "observation.state.joint": {
116
+ "type": "STATE",
117
+ "shape": [
118
+ 7
119
+ ]
120
+ },
121
+ "observation.state.target": {
122
+ "type": "STATE",
123
+ "shape": [
124
+ 6
125
+ ]
126
+ },
127
+ "observation.state": {
128
+ "type": "STATE",
129
+ "shape": [
130
+ 20
131
+ ]
132
+ }
133
+ },
134
+ "output_features": {
135
+ "action": {
136
+ "type": "ACTION",
137
+ "shape": [
138
+ 7
139
+ ]
140
+ }
141
+ },
142
+ "device": "cuda",
143
+ "use_amp": false,
144
+ "push_to_hub": true,
145
+ "repo_id": "tmp",
146
+ "private": null,
147
+ "tags": null,
148
+ "license": null,
149
+ "pretrained_path": null,
150
+ "horizon": 16,
151
+ "n_action_steps": 8,
152
+ "normalization_mapping": {
153
+ "VISUAL": "MEAN_STD",
154
+ "STATE": "MIN_MAX",
155
+ "ACTION": "MIN_MAX"
156
+ },
157
+ "drop_n_last_frames": 7,
158
+ "vision_backbone": "resnet18",
159
+ "crop_shape": [
160
+ 84,
161
+ 84
162
+ ],
163
+ "crop_is_random": true,
164
+ "pretrained_backbone_weights": null,
165
+ "use_group_norm": true,
166
+ "spatial_softmax_num_keypoints": 32,
167
+ "use_separate_rgb_encoder_per_camera": false,
168
+ "down_dims": [
169
+ 512,
170
+ 1024,
171
+ 2048
172
+ ],
173
+ "kernel_size": 5,
174
+ "n_groups": 8,
175
+ "diffusion_step_embed_dim": 128,
176
+ "use_film_scale_modulation": true,
177
+ "noise_scheduler_type": "DDPM",
178
+ "num_train_timesteps": 100,
179
+ "beta_schedule": "squaredcos_cap_v2",
180
+ "beta_start": 0.0001,
181
+ "beta_end": 0.02,
182
+ "prediction_type": "epsilon",
183
+ "clip_sample": true,
184
+ "clip_sample_range": 1.0,
185
+ "num_inference_steps": null,
186
+ "do_mask_loss_for_padding": false,
187
+ "optimizer_lr": 0.0001,
188
+ "optimizer_betas": [
189
+ 0.95,
190
+ 0.999
191
+ ],
192
+ "optimizer_eps": 1e-08,
193
+ "optimizer_weight_decay": 1e-06,
194
+ "scheduler_name": "cosine",
195
+ "scheduler_warmup_steps": 500
196
+ },
197
+ "output_dir": "outputs/train/2025-10-26/15-16-08_franka-noodl",
198
+ "job_name": "franka-noodl",
199
+ "resume": false,
200
+ "seed": 1000,
201
+ "num_workers": 4,
202
+ "batch_size": 8,
203
+ "steps": 100000,
204
+ "eval_freq": 20000,
205
+ "log_freq": 200,
206
+ "save_checkpoint": true,
207
+ "save_freq": 20000,
208
+ "use_policy_training_preset": true,
209
+ "optimizer": {
210
+ "type": "adam",
211
+ "lr": 0.0001,
212
+ "weight_decay": 1e-06,
213
+ "grad_clip_norm": 10.0,
214
+ "betas": [
215
+ 0.95,
216
+ 0.999
217
+ ],
218
+ "eps": 1e-08
219
+ },
220
+ "scheduler": {
221
+ "type": "diffuser",
222
+ "num_warmup_steps": 500,
223
+ "name": "cosine"
224
+ },
225
+ "eval": {
226
+ "n_episodes": 50,
227
+ "batch_size": 50,
228
+ "use_async_envs": false
229
+ },
230
+ "wandb": {
231
+ "enable": false,
232
+ "disable_artifact": false,
233
+ "project": "lerobot",
234
+ "entity": null,
235
+ "notes": null,
236
+ "run_id": null,
237
+ "mode": null
238
+ },
239
+ "checkpoint_path": null,
240
+ "rename_map": {}
241
+ }