Robotics
LeRobot
Safetensors
diffusion
ramen-noodels commited on
Commit
3d64eef
·
verified ·
1 Parent(s): b3d77fd

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +99 -0
  3. model.safetensors +3 -0
  4. train_config.json +213 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: ramen-noodels/prepared_blue_round_button_small_audio
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
10
+ - diffusion
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,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.images.wrist_image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 240,
10
+ 320
11
+ ]
12
+ },
13
+ "observation.audio.spectogram_values": {
14
+ "type": "AUDIO",
15
+ "shape": [
16
+ 3,
17
+ 298,
18
+ 128
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 1
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 9
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "push_to_hub": true,
39
+ "repo_id": "ramen-noodels/blue_round_button_small_audio_button",
40
+ "private": null,
41
+ "tags": null,
42
+ "license": null,
43
+ "pretrained_path": null,
44
+ "horizon": 16,
45
+ "n_action_steps": 1,
46
+ "normalization_mapping": {
47
+ "VISUAL": "MEAN_STD",
48
+ "STATE": "MIN_MAX",
49
+ "ACTION": "MIN_MAX",
50
+ "AUDIO": "IDENTITY"
51
+ },
52
+ "drop_n_last_frames": 7,
53
+ "vision_backbone": "resnet18",
54
+ "crop_shape": [
55
+ 216,
56
+ 288
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
+ "audio_backbone": "ramen-noodels/blue_round_button_small_click_detector",
64
+ "audio_norm_mean": 0.6490834819975885,
65
+ "audio_norm_std": 0.061071827558345816,
66
+ "audio_feature_type": "embedding",
67
+ "time_dimension": 298,
68
+ "freeze_audio_encoder": false,
69
+ "add_intermediate_audio_layer": true,
70
+ "pretrained_audio_weights": true,
71
+ "down_dims": [
72
+ 512,
73
+ 1024,
74
+ 2048
75
+ ],
76
+ "kernel_size": 5,
77
+ "n_groups": 8,
78
+ "diffusion_step_embed_dim": 128,
79
+ "use_film_scale_modulation": true,
80
+ "noise_scheduler_type": "DDIM",
81
+ "num_train_timesteps": 100,
82
+ "beta_schedule": "squaredcos_cap_v2",
83
+ "beta_start": 0.0001,
84
+ "beta_end": 0.02,
85
+ "prediction_type": "epsilon",
86
+ "clip_sample": true,
87
+ "clip_sample_range": 1.0,
88
+ "num_inference_steps": null,
89
+ "do_mask_loss_for_padding": false,
90
+ "optimizer_lr": 0.0001,
91
+ "optimizer_betas": [
92
+ 0.95,
93
+ 0.999
94
+ ],
95
+ "optimizer_eps": 1e-08,
96
+ "optimizer_weight_decay": 1e-06,
97
+ "scheduler_name": "cosine",
98
+ "scheduler_warmup_steps": 500
99
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9eb5c1f5617ed6537f165fe080e2ca5724b62b17018661d66f219c1b7c91b5cc
3
+ size 1407734276
train_config.json ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "ramen-noodels/prepared_blue_round_button_small_audio",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": true,
8
+ "max_num_transforms": 3,
9
+ "random_order": true,
10
+ "tfs": {
11
+ "brightness": {
12
+ "weight": 1.0,
13
+ "type": "ColorJitter",
14
+ "kwargs": {
15
+ "brightness": [
16
+ 0.5,
17
+ 1.5
18
+ ]
19
+ }
20
+ },
21
+ "contrast": {
22
+ "weight": 1.0,
23
+ "type": "ColorJitter",
24
+ "kwargs": {
25
+ "contrast": [
26
+ 0.5,
27
+ 1.5
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.1,
47
+ 0.1
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": false,
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_image": {
74
+ "type": "VISUAL",
75
+ "shape": [
76
+ 3,
77
+ 240,
78
+ 320
79
+ ]
80
+ },
81
+ "observation.audio.spectogram_values": {
82
+ "type": "AUDIO",
83
+ "shape": [
84
+ 3,
85
+ 298,
86
+ 128
87
+ ]
88
+ },
89
+ "observation.state": {
90
+ "type": "STATE",
91
+ "shape": [
92
+ 1
93
+ ]
94
+ }
95
+ },
96
+ "output_features": {
97
+ "action": {
98
+ "type": "ACTION",
99
+ "shape": [
100
+ 9
101
+ ]
102
+ }
103
+ },
104
+ "device": "cuda",
105
+ "use_amp": false,
106
+ "push_to_hub": true,
107
+ "repo_id": "ramen-noodels/blue_round_button_small_audio_button",
108
+ "private": null,
109
+ "tags": null,
110
+ "license": null,
111
+ "pretrained_path": null,
112
+ "horizon": 16,
113
+ "n_action_steps": 1,
114
+ "normalization_mapping": {
115
+ "VISUAL": "MEAN_STD",
116
+ "STATE": "MIN_MAX",
117
+ "ACTION": "MIN_MAX",
118
+ "AUDIO": "IDENTITY"
119
+ },
120
+ "drop_n_last_frames": 7,
121
+ "vision_backbone": "resnet18",
122
+ "crop_shape": [
123
+ 216,
124
+ 288
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
+ "audio_backbone": "ramen-noodels/blue_round_button_small_click_detector",
132
+ "audio_norm_mean": 0.6490834819975885,
133
+ "audio_norm_std": 0.061071827558345816,
134
+ "audio_feature_type": "embedding",
135
+ "time_dimension": 298,
136
+ "freeze_audio_encoder": false,
137
+ "add_intermediate_audio_layer": true,
138
+ "pretrained_audio_weights": true,
139
+ "down_dims": [
140
+ 512,
141
+ 1024,
142
+ 2048
143
+ ],
144
+ "kernel_size": 5,
145
+ "n_groups": 8,
146
+ "diffusion_step_embed_dim": 128,
147
+ "use_film_scale_modulation": true,
148
+ "noise_scheduler_type": "DDIM",
149
+ "num_train_timesteps": 100,
150
+ "beta_schedule": "squaredcos_cap_v2",
151
+ "beta_start": 0.0001,
152
+ "beta_end": 0.02,
153
+ "prediction_type": "epsilon",
154
+ "clip_sample": true,
155
+ "clip_sample_range": 1.0,
156
+ "num_inference_steps": null,
157
+ "do_mask_loss_for_padding": false,
158
+ "optimizer_lr": 0.0001,
159
+ "optimizer_betas": [
160
+ 0.95,
161
+ 0.999
162
+ ],
163
+ "optimizer_eps": 1e-08,
164
+ "optimizer_weight_decay": 1e-06,
165
+ "scheduler_name": "cosine",
166
+ "scheduler_warmup_steps": 500
167
+ },
168
+ "output_dir": "outputs/train/2026-05-16/20-06-29_blue_round_button_small_audio_button",
169
+ "job_name": "blue_round_button_small_audio_button",
170
+ "resume": false,
171
+ "seed": 2025,
172
+ "num_workers": 8,
173
+ "batch_size": 32,
174
+ "steps": 100000,
175
+ "eval_freq": 0,
176
+ "log_freq": 200,
177
+ "tolerance_s": 0.0001,
178
+ "save_checkpoint": true,
179
+ "save_freq": 50000,
180
+ "use_policy_training_preset": true,
181
+ "optimizer": {
182
+ "type": "adam",
183
+ "lr": 0.0001,
184
+ "weight_decay": 1e-06,
185
+ "grad_clip_norm": 10.0,
186
+ "betas": [
187
+ 0.95,
188
+ 0.999
189
+ ],
190
+ "eps": 1e-08
191
+ },
192
+ "scheduler": {
193
+ "type": "diffuser",
194
+ "num_warmup_steps": 500,
195
+ "name": "cosine"
196
+ },
197
+ "eval": {
198
+ "n_episodes": 50,
199
+ "batch_size": 50,
200
+ "use_async_envs": false
201
+ },
202
+ "wandb": {
203
+ "enable": true,
204
+ "disable_artifact": true,
205
+ "project": "imitation_button",
206
+ "entity": "rtalwar",
207
+ "notes": null,
208
+ "run_id": "7k57fy2k",
209
+ "mode": null
210
+ },
211
+ "checkpoint_path": null,
212
+ "rename_map": {}
213
+ }