ozgraslan commited on
Commit
800cf89
·
verified ·
1 Parent(s): 5912e4e

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +92 -0
  3. model.safetensors +3 -0
  4. train_config.json +263 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: ozgraslan/pointmaze_umaze_v1_goal_224_new_pos
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: diffusion_dino
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - diffusion_dino
10
+ - robotics
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,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.goal": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 224,
18
+ 224
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 2
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 2
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "push_to_hub": true,
39
+ "repo_id": "ozgraslan/diffusion_dino_pointmaze_v1_pos2",
40
+ "private": null,
41
+ "tags": null,
42
+ "license": null,
43
+ "pretrained_path": null,
44
+ "horizon": 32,
45
+ "n_action_steps": 25,
46
+ "use_goal_conditioning": true,
47
+ "normalization_mapping": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MEAN_STD",
50
+ "ACTION": "MEAN_STD"
51
+ },
52
+ "drop_n_last_frames": 5,
53
+ "vision_backbone": "facebookresearch/dinov2",
54
+ "crop_shape": [
55
+ 224,
56
+ 224
57
+ ],
58
+ "crop_is_random": true,
59
+ "pretrained_backbone_weights": "dinov2_vits14",
60
+ "output_key": "x_norm_patchtokens",
61
+ "use_group_norm": false,
62
+ "spatial_softmax_num_keypoints": 32,
63
+ "use_separate_rgb_encoder_per_camera": false,
64
+ "down_dims": [
65
+ 512,
66
+ 1024,
67
+ 2048
68
+ ],
69
+ "kernel_size": 5,
70
+ "n_groups": 8,
71
+ "diffusion_step_embed_dim": 128,
72
+ "use_film_scale_modulation": true,
73
+ "noise_scheduler_type": "DDPM",
74
+ "num_train_timesteps": 100,
75
+ "beta_schedule": "squaredcos_cap_v2",
76
+ "beta_start": 0.0001,
77
+ "beta_end": 0.02,
78
+ "prediction_type": "epsilon",
79
+ "clip_sample": true,
80
+ "clip_sample_range": 1.0,
81
+ "num_inference_steps": null,
82
+ "do_mask_loss_for_padding": false,
83
+ "optimizer_lr": 0.0001,
84
+ "optimizer_betas": [
85
+ 0.95,
86
+ 0.999
87
+ ],
88
+ "optimizer_eps": 1e-08,
89
+ "optimizer_weight_decay": 1e-06,
90
+ "scheduler_name": "cosine",
91
+ "scheduler_warmup_steps": 500
92
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dda62f75fc30bea9c78ef4cf652eba0802783268be41ecc6e30266d5914b0687
3
+ size 1123971272
train_config.json ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "ozgraslan/pointmaze_umaze_v1_goal_224_new_pos",
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": "pointmaze_umaze",
84
+ "task": "PointMaze_UMaze_Visual-v3",
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
+ "goal_pixels": {
108
+ "type": "VISUAL",
109
+ "shape": [
110
+ 224,
111
+ 224,
112
+ 3
113
+ ]
114
+ }
115
+ },
116
+ "features_map": {
117
+ "action": "action",
118
+ "proprio": "observation.state",
119
+ "pixels": "observation.image",
120
+ "goal_pixels": "observation.goal"
121
+ },
122
+ "max_parallel_tasks": 1,
123
+ "disable_env_checker": true,
124
+ "episode_length": 300,
125
+ "distance_threshold": 0.25
126
+ },
127
+ "policy": {
128
+ "type": "diffusion_dino",
129
+ "n_obs_steps": 3,
130
+ "input_features": {
131
+ "observation.image": {
132
+ "type": "VISUAL",
133
+ "shape": [
134
+ 3,
135
+ 224,
136
+ 224
137
+ ]
138
+ },
139
+ "observation.goal": {
140
+ "type": "VISUAL",
141
+ "shape": [
142
+ 3,
143
+ 224,
144
+ 224
145
+ ]
146
+ },
147
+ "observation.state": {
148
+ "type": "STATE",
149
+ "shape": [
150
+ 2
151
+ ]
152
+ }
153
+ },
154
+ "output_features": {
155
+ "action": {
156
+ "type": "ACTION",
157
+ "shape": [
158
+ 2
159
+ ]
160
+ }
161
+ },
162
+ "device": "cuda",
163
+ "use_amp": false,
164
+ "push_to_hub": true,
165
+ "repo_id": "ozgraslan/diffusion_dino_pointmaze_v1_pos2",
166
+ "private": null,
167
+ "tags": null,
168
+ "license": null,
169
+ "pretrained_path": null,
170
+ "horizon": 32,
171
+ "n_action_steps": 25,
172
+ "use_goal_conditioning": true,
173
+ "normalization_mapping": {
174
+ "VISUAL": "MEAN_STD",
175
+ "STATE": "MEAN_STD",
176
+ "ACTION": "MEAN_STD"
177
+ },
178
+ "drop_n_last_frames": 5,
179
+ "vision_backbone": "facebookresearch/dinov2",
180
+ "crop_shape": [
181
+ 224,
182
+ 224
183
+ ],
184
+ "crop_is_random": true,
185
+ "pretrained_backbone_weights": "dinov2_vits14",
186
+ "output_key": "x_norm_patchtokens",
187
+ "use_group_norm": false,
188
+ "spatial_softmax_num_keypoints": 32,
189
+ "use_separate_rgb_encoder_per_camera": false,
190
+ "down_dims": [
191
+ 512,
192
+ 1024,
193
+ 2048
194
+ ],
195
+ "kernel_size": 5,
196
+ "n_groups": 8,
197
+ "diffusion_step_embed_dim": 128,
198
+ "use_film_scale_modulation": true,
199
+ "noise_scheduler_type": "DDPM",
200
+ "num_train_timesteps": 100,
201
+ "beta_schedule": "squaredcos_cap_v2",
202
+ "beta_start": 0.0001,
203
+ "beta_end": 0.02,
204
+ "prediction_type": "epsilon",
205
+ "clip_sample": true,
206
+ "clip_sample_range": 1.0,
207
+ "num_inference_steps": null,
208
+ "do_mask_loss_for_padding": false,
209
+ "optimizer_lr": 0.0001,
210
+ "optimizer_betas": [
211
+ 0.95,
212
+ 0.999
213
+ ],
214
+ "optimizer_eps": 1e-08,
215
+ "optimizer_weight_decay": 1e-06,
216
+ "scheduler_name": "cosine",
217
+ "scheduler_warmup_steps": 500
218
+ },
219
+ "output_dir": "/network/scratch/o/ozgur.aslan/outputs/train/diffusion_dino_pointmaze_v1_pos2",
220
+ "job_name": "pointmaze_umaze_diffusion_dino",
221
+ "resume": false,
222
+ "seed": 100000,
223
+ "num_workers": 8,
224
+ "batch_size": 64,
225
+ "steps": 50000,
226
+ "eval_freq": -1,
227
+ "log_freq": 200,
228
+ "save_checkpoint": true,
229
+ "save_freq": 5000,
230
+ "use_policy_training_preset": true,
231
+ "optimizer": {
232
+ "type": "adam",
233
+ "lr": 0.0001,
234
+ "weight_decay": 1e-06,
235
+ "grad_clip_norm": 10.0,
236
+ "betas": [
237
+ 0.95,
238
+ 0.999
239
+ ],
240
+ "eps": 1e-08
241
+ },
242
+ "scheduler": {
243
+ "type": "diffuser",
244
+ "num_warmup_steps": 500,
245
+ "name": "cosine"
246
+ },
247
+ "eval": {
248
+ "n_episodes": 50,
249
+ "batch_size": 50,
250
+ "use_async_envs": false
251
+ },
252
+ "wandb": {
253
+ "enable": true,
254
+ "disable_artifact": true,
255
+ "project": "lerobot-diffusion-pointmaze",
256
+ "entity": "jakd9",
257
+ "notes": null,
258
+ "run_id": "9klgorqf",
259
+ "mode": null
260
+ },
261
+ "checkpoint_path": null,
262
+ "rename_map": {}
263
+ }