Robotics
LeRobot
Safetensors
diffusion
Ameyapores commited on
Commit
83e02a5
·
verified ·
1 Parent(s): 8121142

Upload policy weights, train config and readme

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