Robotics
LeRobot
Safetensors
diffusion
tfaith commited on
Commit
9c9ef76
·
verified ·
1 Parent(s): 5ec5ab4

Upload policy weights, train config and readme

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