Robotics
LeRobot
Safetensors
diffusion
bearlover365 commited on
Commit
730b022
·
verified ·
1 Parent(s): 6f6d0f2

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +81 -0
  3. model.safetensors +3 -0
  4. train_config.json +198 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: bearlover365/pick_place_up_to_four_white_socks_varying_daylight_intensity_train
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - diffusion
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
+ python -m lerobot.scripts.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
+ python -m 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,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 2,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD",
6
+ "STATE": "MIN_MAX",
7
+ "ACTION": "MIN_MAX"
8
+ },
9
+ "input_features": {
10
+ "observation.state": {
11
+ "type": "STATE",
12
+ "shape": [
13
+ 6
14
+ ]
15
+ },
16
+ "observation.images.wrist": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ }
24
+ },
25
+ "output_features": {
26
+ "action": {
27
+ "type": "ACTION",
28
+ "shape": [
29
+ 6
30
+ ]
31
+ }
32
+ },
33
+ "device": "cuda",
34
+ "use_amp": true,
35
+ "push_to_hub": true,
36
+ "repo_id": "bearlover365/d4_dataset_only_2_validation_episodes_diffusion",
37
+ "private": null,
38
+ "tags": null,
39
+ "license": null,
40
+ "horizon": 16,
41
+ "n_action_steps": 8,
42
+ "drop_n_last_frames": 7,
43
+ "vision_backbone": "resnet18",
44
+ "crop_shape": [
45
+ 84,
46
+ 84
47
+ ],
48
+ "crop_is_random": true,
49
+ "pretrained_backbone_weights": null,
50
+ "use_group_norm": true,
51
+ "spatial_softmax_num_keypoints": 32,
52
+ "use_separate_rgb_encoder_per_camera": false,
53
+ "down_dims": [
54
+ 512,
55
+ 1024,
56
+ 2048
57
+ ],
58
+ "kernel_size": 5,
59
+ "n_groups": 8,
60
+ "diffusion_step_embed_dim": 128,
61
+ "use_film_scale_modulation": true,
62
+ "noise_scheduler_type": "DDPM",
63
+ "num_train_timesteps": 100,
64
+ "beta_schedule": "squaredcos_cap_v2",
65
+ "beta_start": 0.0001,
66
+ "beta_end": 0.02,
67
+ "prediction_type": "epsilon",
68
+ "clip_sample": true,
69
+ "clip_sample_range": 1.0,
70
+ "num_inference_steps": 10,
71
+ "do_mask_loss_for_padding": false,
72
+ "optimizer_lr": 0.0001,
73
+ "optimizer_betas": [
74
+ 0.95,
75
+ 0.999
76
+ ],
77
+ "optimizer_eps": 1e-08,
78
+ "optimizer_weight_decay": 1e-06,
79
+ "scheduler_name": "cosine",
80
+ "scheduler_warmup_steps": 500
81
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16fa25a34f90121794404b43d385f9a49932e9f232da5e25e6892855252119a4
3
+ size 1051837384
train_config.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "bearlover365/pick_place_up_to_four_white_socks_varying_daylight_intensity_train",
4
+ "root": null,
5
+ "episodes": null,
6
+ "val_episodes": [
7
+ 0,
8
+ 1
9
+ ],
10
+ "val_repo_id": "bearlover365/pick_place_up_to_four_white_socks_varying_daylight_intensity_validation_episode_0_and_72",
11
+ "image_transforms": {
12
+ "enable": false,
13
+ "max_num_transforms": 3,
14
+ "random_order": false,
15
+ "tfs": {
16
+ "brightness": {
17
+ "weight": 1.0,
18
+ "type": "ColorJitter",
19
+ "kwargs": {
20
+ "brightness": [
21
+ 0.8,
22
+ 1.2
23
+ ]
24
+ }
25
+ },
26
+ "contrast": {
27
+ "weight": 1.0,
28
+ "type": "ColorJitter",
29
+ "kwargs": {
30
+ "contrast": [
31
+ 0.8,
32
+ 1.2
33
+ ]
34
+ }
35
+ },
36
+ "saturation": {
37
+ "weight": 1.0,
38
+ "type": "ColorJitter",
39
+ "kwargs": {
40
+ "saturation": [
41
+ 0.5,
42
+ 1.5
43
+ ]
44
+ }
45
+ },
46
+ "hue": {
47
+ "weight": 1.0,
48
+ "type": "ColorJitter",
49
+ "kwargs": {
50
+ "hue": [
51
+ -0.05,
52
+ 0.05
53
+ ]
54
+ }
55
+ },
56
+ "sharpness": {
57
+ "weight": 1.0,
58
+ "type": "SharpnessJitter",
59
+ "kwargs": {
60
+ "sharpness": [
61
+ 0.5,
62
+ 1.5
63
+ ]
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "revision": null,
69
+ "use_imagenet_stats": true,
70
+ "video_backend": "pyav"
71
+ },
72
+ "env": null,
73
+ "policy": {
74
+ "type": "diffusion",
75
+ "n_obs_steps": 2,
76
+ "normalization_mapping": {
77
+ "VISUAL": "MEAN_STD",
78
+ "STATE": "MIN_MAX",
79
+ "ACTION": "MIN_MAX"
80
+ },
81
+ "input_features": {
82
+ "observation.state": {
83
+ "type": "STATE",
84
+ "shape": [
85
+ 6
86
+ ]
87
+ },
88
+ "observation.images.wrist": {
89
+ "type": "VISUAL",
90
+ "shape": [
91
+ 3,
92
+ 480,
93
+ 640
94
+ ]
95
+ }
96
+ },
97
+ "output_features": {
98
+ "action": {
99
+ "type": "ACTION",
100
+ "shape": [
101
+ 6
102
+ ]
103
+ }
104
+ },
105
+ "device": "cuda",
106
+ "use_amp": true,
107
+ "push_to_hub": true,
108
+ "repo_id": "bearlover365/d4_dataset_only_2_validation_episodes_diffusion",
109
+ "private": null,
110
+ "tags": null,
111
+ "license": null,
112
+ "horizon": 16,
113
+ "n_action_steps": 8,
114
+ "drop_n_last_frames": 7,
115
+ "vision_backbone": "resnet18",
116
+ "crop_shape": [
117
+ 84,
118
+ 84
119
+ ],
120
+ "crop_is_random": true,
121
+ "pretrained_backbone_weights": null,
122
+ "use_group_norm": true,
123
+ "spatial_softmax_num_keypoints": 32,
124
+ "use_separate_rgb_encoder_per_camera": false,
125
+ "down_dims": [
126
+ 512,
127
+ 1024,
128
+ 2048
129
+ ],
130
+ "kernel_size": 5,
131
+ "n_groups": 8,
132
+ "diffusion_step_embed_dim": 128,
133
+ "use_film_scale_modulation": true,
134
+ "noise_scheduler_type": "DDPM",
135
+ "num_train_timesteps": 100,
136
+ "beta_schedule": "squaredcos_cap_v2",
137
+ "beta_start": 0.0001,
138
+ "beta_end": 0.02,
139
+ "prediction_type": "epsilon",
140
+ "clip_sample": true,
141
+ "clip_sample_range": 1.0,
142
+ "num_inference_steps": 10,
143
+ "do_mask_loss_for_padding": false,
144
+ "optimizer_lr": 0.0001,
145
+ "optimizer_betas": [
146
+ 0.95,
147
+ 0.999
148
+ ],
149
+ "optimizer_eps": 1e-08,
150
+ "optimizer_weight_decay": 1e-06,
151
+ "scheduler_name": "cosine",
152
+ "scheduler_warmup_steps": 500
153
+ },
154
+ "output_dir": "/teamspace/studios/this_studio/lerobot/outputs/train/d4_dataset_only_2_validation_episodes_diffusion_smoke_then_train_smoke_20250831_135725",
155
+ "job_name": "d4_dataset_only_2_validation_episodes_diffusion_smoke_then_train_smoke_20250831_135725_bs4_lr1.0e-04_bblrNone_smp240",
156
+ "resume": false,
157
+ "seed": 1000,
158
+ "num_workers": 4,
159
+ "batch_size": 4,
160
+ "steps": 60,
161
+ "target_samples": null,
162
+ "eval_freq": 60,
163
+ "log_freq": 50,
164
+ "save_checkpoint": false,
165
+ "save_freq": 5000,
166
+ "use_policy_training_preset": true,
167
+ "optimizer": {
168
+ "type": "adam",
169
+ "lr": 0.0001,
170
+ "weight_decay": 1e-06,
171
+ "grad_clip_norm": 10.0,
172
+ "betas": [
173
+ 0.95,
174
+ 0.999
175
+ ],
176
+ "eps": 1e-08
177
+ },
178
+ "scheduler": {
179
+ "type": "diffuser",
180
+ "num_warmup_steps": 500,
181
+ "name": "cosine"
182
+ },
183
+ "eval": {
184
+ "n_episodes": 50,
185
+ "batch_size": 50,
186
+ "use_async_envs": false
187
+ },
188
+ "initial_step": 0,
189
+ "wandb": {
190
+ "enable": true,
191
+ "disable_artifact": false,
192
+ "project": "lerobot",
193
+ "entity": "benfduffy-bearcover-gmbh",
194
+ "notes": null,
195
+ "run_id": "diff_smoke_1756648645",
196
+ "mode": null
197
+ }
198
+ }