Robotics
LeRobot
Safetensors
diffusion
kelvinzhaozg commited on
Commit
41cced2
·
verified ·
1 Parent(s): 59823ea

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +86 -0
  3. model.safetensors +3 -0
  4. train_config.json +196 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: kelvinzhaozg/digit3a_hardware_box_pickup_dataset_depth
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,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion",
3
+ "n_obs_steps": 1,
4
+ "normalization_mapping": {
5
+ "VISUAL": "IDENTITY",
6
+ "STATE": "MIN_MAX",
7
+ "ACTION": "MIN_MAX"
8
+ },
9
+ "input_features": {
10
+ "observation.images.depth": {
11
+ "type": "VISUAL",
12
+ "shape": [
13
+ 1,
14
+ 240,
15
+ 424
16
+ ]
17
+ },
18
+ "observation.state": {
19
+ "type": "STATE",
20
+ "shape": [
21
+ 24
22
+ ]
23
+ }
24
+ },
25
+ "output_features": {
26
+ "action": {
27
+ "type": "ACTION",
28
+ "shape": [
29
+ 21
30
+ ]
31
+ }
32
+ },
33
+ "device": "cuda",
34
+ "use_amp": false,
35
+ "push_to_hub": true,
36
+ "repo_id": "kelvinzhaozg/diffusion_digit3a_hardware_box_pickup_depth_small",
37
+ "private": null,
38
+ "tags": null,
39
+ "license": null,
40
+ "horizon": 64,
41
+ "n_action_steps": 32,
42
+ "per_feature_normalization_overrides": {
43
+ "observation.images.depth": "MEAN_STD"
44
+ },
45
+ "drop_n_last_frames": 7,
46
+ "vision_backbone": "resnet18",
47
+ "crop_shape": null,
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
+ "use_depth_as_channel": true,
54
+ "use_depth_only": true,
55
+ "rgbd_pretrained_backbone_weights": null,
56
+ "norm_rgb": false,
57
+ "norm_depth": false,
58
+ "down_dims": [
59
+ 128,
60
+ 256,
61
+ 512
62
+ ],
63
+ "kernel_size": 5,
64
+ "n_groups": 8,
65
+ "diffusion_step_embed_dim": 128,
66
+ "use_film_scale_modulation": true,
67
+ "noise_scheduler_type": "DDIM",
68
+ "num_train_timesteps": 100,
69
+ "beta_schedule": "squaredcos_cap_v2",
70
+ "beta_start": 0.0001,
71
+ "beta_end": 0.02,
72
+ "prediction_type": "sample",
73
+ "clip_sample": true,
74
+ "clip_sample_range": 1.0,
75
+ "num_inference_steps": null,
76
+ "do_mask_loss_for_padding": false,
77
+ "optimizer_lr": 0.0001,
78
+ "optimizer_betas": [
79
+ 0.95,
80
+ 0.999
81
+ ],
82
+ "optimizer_eps": 1e-08,
83
+ "optimizer_weight_decay": 1e-06,
84
+ "scheduler_name": "cosine",
85
+ "scheduler_warmup_steps": 500
86
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ff681ae54f10ad46c65ced465b49e873a5f34dc9e0be26dddcb1233918d3193
3
+ size 112659356
train_config.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "kelvinzhaozg/digit3a_hardware_box_pickup_dataset_depth",
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": false,
65
+ "video_backend": "torchcodec"
66
+ },
67
+ "env": null,
68
+ "policy": {
69
+ "type": "diffusion",
70
+ "n_obs_steps": 1,
71
+ "normalization_mapping": {
72
+ "VISUAL": "IDENTITY",
73
+ "STATE": "MIN_MAX",
74
+ "ACTION": "MIN_MAX"
75
+ },
76
+ "input_features": {
77
+ "observation.images.depth": {
78
+ "type": "VISUAL",
79
+ "shape": [
80
+ 1,
81
+ 240,
82
+ 424
83
+ ]
84
+ },
85
+ "observation.state": {
86
+ "type": "STATE",
87
+ "shape": [
88
+ 24
89
+ ]
90
+ }
91
+ },
92
+ "output_features": {
93
+ "action": {
94
+ "type": "ACTION",
95
+ "shape": [
96
+ 21
97
+ ]
98
+ }
99
+ },
100
+ "device": "cuda",
101
+ "use_amp": false,
102
+ "push_to_hub": true,
103
+ "repo_id": "kelvinzhaozg/diffusion_digit3a_hardware_box_pickup_depth_small",
104
+ "private": null,
105
+ "tags": null,
106
+ "license": null,
107
+ "horizon": 64,
108
+ "n_action_steps": 32,
109
+ "per_feature_normalization_overrides": {
110
+ "observation.images.depth": "MEAN_STD"
111
+ },
112
+ "drop_n_last_frames": 7,
113
+ "vision_backbone": "resnet18",
114
+ "crop_shape": null,
115
+ "crop_is_random": true,
116
+ "pretrained_backbone_weights": null,
117
+ "use_group_norm": true,
118
+ "spatial_softmax_num_keypoints": 32,
119
+ "use_separate_rgb_encoder_per_camera": false,
120
+ "use_depth_as_channel": true,
121
+ "use_depth_only": true,
122
+ "rgbd_pretrained_backbone_weights": null,
123
+ "norm_rgb": false,
124
+ "norm_depth": false,
125
+ "down_dims": [
126
+ 128,
127
+ 256,
128
+ 512
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": "DDIM",
135
+ "num_train_timesteps": 100,
136
+ "beta_schedule": "squaredcos_cap_v2",
137
+ "beta_start": 0.0001,
138
+ "beta_end": 0.02,
139
+ "prediction_type": "sample",
140
+ "clip_sample": true,
141
+ "clip_sample_range": 1.0,
142
+ "num_inference_steps": null,
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": "outputs/train/2025-10-16/21-20-30_diffusion",
155
+ "job_name": "diffusion",
156
+ "resume": false,
157
+ "seed": 1000,
158
+ "num_workers": 4,
159
+ "batch_size": 8,
160
+ "steps": 200000,
161
+ "eval_freq": 20000,
162
+ "log_freq": 200,
163
+ "save_checkpoint": true,
164
+ "save_freq": 20000,
165
+ "use_policy_training_preset": true,
166
+ "optimizer": {
167
+ "type": "adam",
168
+ "lr": 0.0001,
169
+ "weight_decay": 1e-06,
170
+ "grad_clip_norm": 10.0,
171
+ "betas": [
172
+ 0.95,
173
+ 0.999
174
+ ],
175
+ "eps": 1e-08
176
+ },
177
+ "scheduler": {
178
+ "type": "diffuser",
179
+ "num_warmup_steps": 500,
180
+ "name": "cosine"
181
+ },
182
+ "eval": {
183
+ "n_episodes": 50,
184
+ "batch_size": 50,
185
+ "use_async_envs": false
186
+ },
187
+ "wandb": {
188
+ "enable": true,
189
+ "disable_artifact": true,
190
+ "project": "digit3a_depth",
191
+ "entity": null,
192
+ "notes": null,
193
+ "run_id": "tizb087q",
194
+ "mode": null
195
+ }
196
+ }