ozgraslan commited on
Commit
82bfccb
·
verified ·
1 Parent(s): ab4fa0b

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +83 -0
  3. model.safetensors +3 -0
  4. train_config.json +250 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: ozgraslan/pusht_224_new
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion_dino
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - diffusion_dino
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for diffusion_dino
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ _Model type not recognized — please update this template._
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,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "diffusion_dino",
3
+ "n_obs_steps": 3,
4
+ "input_features": {
5
+ "observation.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 224,
10
+ 224
11
+ ]
12
+ },
13
+ "observation.state": {
14
+ "type": "STATE",
15
+ "shape": [
16
+ 4
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 2
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "push_to_hub": true,
31
+ "repo_id": "ozgraslan/diffusion_dino_pusht_3",
32
+ "private": null,
33
+ "tags": null,
34
+ "license": null,
35
+ "pretrained_path": null,
36
+ "horizon": 32,
37
+ "n_action_steps": 25,
38
+ "normalization_mapping": {
39
+ "VISUAL": "MEAN_STD",
40
+ "STATE": "MIN_MAX",
41
+ "ACTION": "MIN_MAX"
42
+ },
43
+ "drop_n_last_frames": 5,
44
+ "vision_backbone": "facebookresearch/dinov2",
45
+ "crop_shape": [
46
+ 224,
47
+ 224
48
+ ],
49
+ "crop_is_random": true,
50
+ "pretrained_backbone_weights": "dinov2_vits14",
51
+ "output_key": "x_norm_patchtokens",
52
+ "use_group_norm": false,
53
+ "spatial_softmax_num_keypoints": 32,
54
+ "use_separate_rgb_encoder_per_camera": false,
55
+ "down_dims": [
56
+ 512,
57
+ 1024,
58
+ 2048
59
+ ],
60
+ "kernel_size": 5,
61
+ "n_groups": 8,
62
+ "diffusion_step_embed_dim": 128,
63
+ "use_film_scale_modulation": true,
64
+ "noise_scheduler_type": "DDPM",
65
+ "num_train_timesteps": 100,
66
+ "beta_schedule": "squaredcos_cap_v2",
67
+ "beta_start": 0.0001,
68
+ "beta_end": 0.02,
69
+ "prediction_type": "epsilon",
70
+ "clip_sample": true,
71
+ "clip_sample_range": 1.0,
72
+ "num_inference_steps": null,
73
+ "do_mask_loss_for_padding": false,
74
+ "optimizer_lr": 0.0001,
75
+ "optimizer_betas": [
76
+ 0.95,
77
+ 0.999
78
+ ],
79
+ "optimizer_eps": 1e-08,
80
+ "optimizer_weight_decay": 1e-06,
81
+ "scheduler_name": "cosine",
82
+ "scheduler_warmup_steps": 500
83
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf5f82a8d8b2f03df8301387815971b6ab401c1f51d7dd24f10d22ead7758039
3
+ size 1102639296
train_config.json ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "ozgraslan/pusht_224_new",
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
+ "affine": {
62
+ "weight": 1.0,
63
+ "type": "RandomAffine",
64
+ "kwargs": {
65
+ "degrees": [
66
+ -5.0,
67
+ 5.0
68
+ ],
69
+ "translate": [
70
+ 0.05,
71
+ 0.05
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "revision": null,
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": {
83
+ "type": "pusht_224",
84
+ "task": "PushT-v0",
85
+ "fps": 10,
86
+ "features": {
87
+ "action": {
88
+ "type": "ACTION",
89
+ "shape": [
90
+ 2
91
+ ]
92
+ },
93
+ "proprio": {
94
+ "type": "STATE",
95
+ "shape": [
96
+ 4
97
+ ]
98
+ },
99
+ "pixels": {
100
+ "type": "VISUAL",
101
+ "shape": [
102
+ 224,
103
+ 224,
104
+ 3
105
+ ]
106
+ }
107
+ },
108
+ "features_map": {
109
+ "action": "action",
110
+ "proprio": "observation.state",
111
+ "pixels": "observation.image"
112
+ },
113
+ "max_parallel_tasks": 1,
114
+ "disable_env_checker": true,
115
+ "episode_length": 300,
116
+ "obs_type": "pixels_agent_pos_vel",
117
+ "render_mode": "rgb_array",
118
+ "visualization_width": 768,
119
+ "visualization_height": 768,
120
+ "observation_height": 224,
121
+ "observation_width": 224
122
+ },
123
+ "policy": {
124
+ "type": "diffusion_dino",
125
+ "n_obs_steps": 3,
126
+ "input_features": {
127
+ "observation.image": {
128
+ "type": "VISUAL",
129
+ "shape": [
130
+ 3,
131
+ 224,
132
+ 224
133
+ ]
134
+ },
135
+ "observation.state": {
136
+ "type": "STATE",
137
+ "shape": [
138
+ 4
139
+ ]
140
+ }
141
+ },
142
+ "output_features": {
143
+ "action": {
144
+ "type": "ACTION",
145
+ "shape": [
146
+ 2
147
+ ]
148
+ }
149
+ },
150
+ "device": "cuda",
151
+ "use_amp": false,
152
+ "push_to_hub": true,
153
+ "repo_id": "ozgraslan/diffusion_dino_pusht_3",
154
+ "private": null,
155
+ "tags": null,
156
+ "license": null,
157
+ "pretrained_path": null,
158
+ "horizon": 32,
159
+ "n_action_steps": 25,
160
+ "normalization_mapping": {
161
+ "VISUAL": "MEAN_STD",
162
+ "STATE": "MIN_MAX",
163
+ "ACTION": "MIN_MAX"
164
+ },
165
+ "drop_n_last_frames": 5,
166
+ "vision_backbone": "facebookresearch/dinov2",
167
+ "crop_shape": [
168
+ 224,
169
+ 224
170
+ ],
171
+ "crop_is_random": true,
172
+ "pretrained_backbone_weights": "dinov2_vits14",
173
+ "output_key": "x_norm_patchtokens",
174
+ "use_group_norm": false,
175
+ "spatial_softmax_num_keypoints": 32,
176
+ "use_separate_rgb_encoder_per_camera": false,
177
+ "down_dims": [
178
+ 512,
179
+ 1024,
180
+ 2048
181
+ ],
182
+ "kernel_size": 5,
183
+ "n_groups": 8,
184
+ "diffusion_step_embed_dim": 128,
185
+ "use_film_scale_modulation": true,
186
+ "noise_scheduler_type": "DDPM",
187
+ "num_train_timesteps": 100,
188
+ "beta_schedule": "squaredcos_cap_v2",
189
+ "beta_start": 0.0001,
190
+ "beta_end": 0.02,
191
+ "prediction_type": "epsilon",
192
+ "clip_sample": true,
193
+ "clip_sample_range": 1.0,
194
+ "num_inference_steps": null,
195
+ "do_mask_loss_for_padding": false,
196
+ "optimizer_lr": 0.0001,
197
+ "optimizer_betas": [
198
+ 0.95,
199
+ 0.999
200
+ ],
201
+ "optimizer_eps": 1e-08,
202
+ "optimizer_weight_decay": 1e-06,
203
+ "scheduler_name": "cosine",
204
+ "scheduler_warmup_steps": 500
205
+ },
206
+ "output_dir": "/network/scratch/o/ozgur.aslan/outputs/train/diffusion_dino_pusht_3",
207
+ "job_name": "pusht_224_diffusion_dino",
208
+ "resume": false,
209
+ "seed": 100000,
210
+ "num_workers": 4,
211
+ "batch_size": 64,
212
+ "steps": 200000,
213
+ "eval_freq": 5000,
214
+ "log_freq": 200,
215
+ "save_checkpoint": true,
216
+ "save_freq": 5000,
217
+ "use_policy_training_preset": true,
218
+ "optimizer": {
219
+ "type": "adam",
220
+ "lr": 0.0001,
221
+ "weight_decay": 1e-06,
222
+ "grad_clip_norm": 10.0,
223
+ "betas": [
224
+ 0.95,
225
+ 0.999
226
+ ],
227
+ "eps": 1e-08
228
+ },
229
+ "scheduler": {
230
+ "type": "diffuser",
231
+ "num_warmup_steps": 500,
232
+ "name": "cosine"
233
+ },
234
+ "eval": {
235
+ "n_episodes": 50,
236
+ "batch_size": 50,
237
+ "use_async_envs": false
238
+ },
239
+ "wandb": {
240
+ "enable": true,
241
+ "disable_artifact": false,
242
+ "project": "lerobot-diffusion-pusht",
243
+ "entity": "jakd9",
244
+ "notes": null,
245
+ "run_id": "818ao2ya",
246
+ "mode": null
247
+ },
248
+ "checkpoint_path": null,
249
+ "rename_map": {}
250
+ }