Robotics
LeRobot
Safetensors
diffusion
RemkoPr commited on
Commit
3feabce
·
verified ·
1 Parent(s): 877ce96

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +91 -0
  3. model.safetensors +3 -0
  4. train_config.json +211 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: RemkoPr/b-PREPR-INSTR0
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - diffusion
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,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.images.wrist_wilson_image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 480,
10
+ 426
11
+ ]
12
+ },
13
+ "observation.images.scene_image": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 480,
18
+ 426
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 7
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 7
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": false,
39
+ "push_to_hub": true,
40
+ "repo_id": "b-INSTR0",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "horizon": 16,
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
+ "crop_shape": [
55
+ 480,
56
+ 400
57
+ ],
58
+ "crop_is_random": true,
59
+ "pretrained_backbone_weights": null,
60
+ "use_group_norm": true,
61
+ "spatial_softmax_num_keypoints": 32,
62
+ "use_separate_rgb_encoder_per_camera": true,
63
+ "down_dims": [
64
+ 256,
65
+ 512,
66
+ 1024
67
+ ],
68
+ "kernel_size": 3,
69
+ "n_groups": 8,
70
+ "diffusion_step_embed_dim": 128,
71
+ "use_film_scale_modulation": true,
72
+ "noise_scheduler_type": "DDIM",
73
+ "num_train_timesteps": 100,
74
+ "beta_schedule": "squaredcos_cap_v2",
75
+ "beta_start": 0.0001,
76
+ "beta_end": 0.02,
77
+ "prediction_type": "epsilon",
78
+ "clip_sample": true,
79
+ "clip_sample_range": 1.0,
80
+ "num_inference_steps": 16,
81
+ "do_mask_loss_for_padding": false,
82
+ "optimizer_lr": 0.0001,
83
+ "optimizer_betas": [
84
+ 0.95,
85
+ 0.999
86
+ ],
87
+ "optimizer_eps": 1e-08,
88
+ "optimizer_weight_decay": 1e-06,
89
+ "scheduler_name": "cosine",
90
+ "scheduler_warmup_steps": 500
91
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:307a09aa16d2d379f689ffcad7524c15039bee5b13ee74f9ce90e7f7069b7a25
3
+ size 368931004
train_config.json ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "RemkoPr/b-PREPR-INSTR0",
4
+ "root": null,
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
+ }
62
+ },
63
+ "revision": null,
64
+ "use_imagenet_stats": true,
65
+ "video_backend": "torchcodec",
66
+ "streaming": false
67
+ },
68
+ "env": null,
69
+ "policy": {
70
+ "type": "diffusion",
71
+ "n_obs_steps": 2,
72
+ "input_features": {
73
+ "observation.images.wrist_wilson_image": {
74
+ "type": "VISUAL",
75
+ "shape": [
76
+ 3,
77
+ 480,
78
+ 426
79
+ ]
80
+ },
81
+ "observation.images.scene_image": {
82
+ "type": "VISUAL",
83
+ "shape": [
84
+ 3,
85
+ 480,
86
+ 426
87
+ ]
88
+ },
89
+ "observation.state": {
90
+ "type": "STATE",
91
+ "shape": [
92
+ 7
93
+ ]
94
+ }
95
+ },
96
+ "output_features": {
97
+ "action": {
98
+ "type": "ACTION",
99
+ "shape": [
100
+ 7
101
+ ]
102
+ }
103
+ },
104
+ "device": "cuda",
105
+ "use_amp": false,
106
+ "use_peft": false,
107
+ "push_to_hub": true,
108
+ "repo_id": "b-INSTR0",
109
+ "private": null,
110
+ "tags": null,
111
+ "license": null,
112
+ "pretrained_path": null,
113
+ "horizon": 16,
114
+ "n_action_steps": 8,
115
+ "normalization_mapping": {
116
+ "VISUAL": "MEAN_STD",
117
+ "STATE": "MIN_MAX",
118
+ "ACTION": "MIN_MAX"
119
+ },
120
+ "drop_n_last_frames": 7,
121
+ "vision_backbone": "resnet18",
122
+ "crop_shape": [
123
+ 480,
124
+ 400
125
+ ],
126
+ "crop_is_random": true,
127
+ "pretrained_backbone_weights": null,
128
+ "use_group_norm": true,
129
+ "spatial_softmax_num_keypoints": 32,
130
+ "use_separate_rgb_encoder_per_camera": true,
131
+ "down_dims": [
132
+ 256,
133
+ 512,
134
+ 1024
135
+ ],
136
+ "kernel_size": 3,
137
+ "n_groups": 8,
138
+ "diffusion_step_embed_dim": 128,
139
+ "use_film_scale_modulation": true,
140
+ "noise_scheduler_type": "DDIM",
141
+ "num_train_timesteps": 100,
142
+ "beta_schedule": "squaredcos_cap_v2",
143
+ "beta_start": 0.0001,
144
+ "beta_end": 0.02,
145
+ "prediction_type": "epsilon",
146
+ "clip_sample": true,
147
+ "clip_sample_range": 1.0,
148
+ "num_inference_steps": 16,
149
+ "do_mask_loss_for_padding": false,
150
+ "optimizer_lr": 0.0001,
151
+ "optimizer_betas": [
152
+ 0.95,
153
+ 0.999
154
+ ],
155
+ "optimizer_eps": 1e-08,
156
+ "optimizer_weight_decay": 1e-06,
157
+ "scheduler_name": "cosine",
158
+ "scheduler_warmup_steps": 500
159
+ },
160
+ "output_dir": "outputs/train/2026-02-20/20-38-27_b-PREPR-INSTR0",
161
+ "job_name": "b-PREPR-INSTR0",
162
+ "resume": false,
163
+ "seed": 2025,
164
+ "num_workers": 4,
165
+ "batch_size": 32,
166
+ "steps": 100000,
167
+ "eval_freq": 0,
168
+ "log_freq": 200,
169
+ "tolerance_s": 0.0001,
170
+ "save_checkpoint": true,
171
+ "save_freq": 20000,
172
+ "use_policy_training_preset": true,
173
+ "optimizer": {
174
+ "type": "adam",
175
+ "lr": 0.0001,
176
+ "weight_decay": 1e-06,
177
+ "grad_clip_norm": 10.0,
178
+ "betas": [
179
+ 0.95,
180
+ 0.999
181
+ ],
182
+ "eps": 1e-08
183
+ },
184
+ "scheduler": {
185
+ "type": "diffuser",
186
+ "num_warmup_steps": 500,
187
+ "name": "cosine"
188
+ },
189
+ "eval": {
190
+ "n_episodes": 50,
191
+ "batch_size": 50,
192
+ "use_async_envs": false
193
+ },
194
+ "wandb": {
195
+ "enable": true,
196
+ "disable_artifact": true,
197
+ "project": "lerobot",
198
+ "entity": "remko-pr-ghent-university",
199
+ "notes": null,
200
+ "run_id": "chplnabx",
201
+ "mode": null
202
+ },
203
+ "peft": null,
204
+ "use_rabc": false,
205
+ "rabc_progress_path": null,
206
+ "rabc_kappa": 0.01,
207
+ "rabc_epsilon": 1e-06,
208
+ "rabc_head_mode": "sparse",
209
+ "rename_map": {},
210
+ "checkpoint_path": null
211
+ }