JohannesSaut commited on
Commit
484a7e0
·
verified ·
1 Parent(s): d43c5f3

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +76 -0
  3. model.safetensors +3 -0
  4. train_config.json +459 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: lerobot/pusht_random_it0
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: ditflow
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - ditflow
11
+ ---
12
+
13
+ # Model Card for ditflow
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,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "ditflow",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 96,
10
+ 96
11
+ ]
12
+ },
13
+ "observation.state": {
14
+ "type": "STATE",
15
+ "shape": [
16
+ 2
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": "random_it0",
32
+ "private": null,
33
+ "tags": null,
34
+ "license": null,
35
+ "pretrained_path": null,
36
+ "horizon": 16,
37
+ "n_action_steps": 8,
38
+ "use_proprioceptive": true,
39
+ "normalization_mapping": {
40
+ "VISUAL": "MEAN_STD",
41
+ "STATE": "MIN_MAX",
42
+ "ACTION": "MIN_MAX"
43
+ },
44
+ "drop_n_last_frames": 7,
45
+ "vision_backbone": "resnet18",
46
+ "crop_shape": [
47
+ 84,
48
+ 84
49
+ ],
50
+ "crop_is_random": true,
51
+ "pretrained_backbone_weights": null,
52
+ "use_group_norm": true,
53
+ "spatial_softmax_num_keypoints": 32,
54
+ "use_separate_rgb_encoder_per_camera": false,
55
+ "frequency_embedding_dim": 256,
56
+ "hidden_dim": 512,
57
+ "num_blocks": 6,
58
+ "num_heads": 16,
59
+ "dropout": 0.1,
60
+ "dim_feedforward": 4096,
61
+ "activation": "gelu",
62
+ "training_noise_sampling": "uniform",
63
+ "clip_sample": true,
64
+ "clip_sample_range": 1.0,
65
+ "num_inference_steps": 100,
66
+ "do_mask_loss_for_padding": false,
67
+ "optimizer_lr": 0.0001,
68
+ "optimizer_betas": [
69
+ 0.95,
70
+ 0.999
71
+ ],
72
+ "optimizer_eps": 1e-08,
73
+ "optimizer_weight_decay": 1e-06,
74
+ "scheduler_name": "cosine",
75
+ "scheduler_warmup_steps": 500
76
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d07999380b347e0ac7e5a04d41b9ad3cd2d6e9ea8908e810c5b89f38889859eb
3
+ size 212673408
train_config.json ADDED
@@ -0,0 +1,459 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lerobot/pusht_random_it0",
4
+ "root": "/home/johannes/repos/influence_exploration/experiment_outputs/train_sets/pusht_random_it0",
5
+ "episodes": [
6
+ 0,
7
+ 1,
8
+ 2,
9
+ 3,
10
+ 4,
11
+ 5,
12
+ 6,
13
+ 7,
14
+ 8,
15
+ 9,
16
+ 10,
17
+ 11,
18
+ 12,
19
+ 13,
20
+ 14,
21
+ 15,
22
+ 16,
23
+ 17,
24
+ 18,
25
+ 19,
26
+ 20,
27
+ 21,
28
+ 22,
29
+ 23,
30
+ 24,
31
+ 25,
32
+ 26,
33
+ 27,
34
+ 28,
35
+ 29,
36
+ 30,
37
+ 31,
38
+ 32,
39
+ 33,
40
+ 34,
41
+ 35,
42
+ 36,
43
+ 37,
44
+ 38,
45
+ 39,
46
+ 40,
47
+ 41,
48
+ 42,
49
+ 43,
50
+ 44,
51
+ 45,
52
+ 46,
53
+ 47,
54
+ 48,
55
+ 49,
56
+ 50,
57
+ 51,
58
+ 52,
59
+ 53,
60
+ 54,
61
+ 55,
62
+ 56,
63
+ 57,
64
+ 58,
65
+ 59,
66
+ 60,
67
+ 61,
68
+ 62,
69
+ 63,
70
+ 64,
71
+ 65,
72
+ 66,
73
+ 67,
74
+ 68,
75
+ 69,
76
+ 70,
77
+ 71,
78
+ 72,
79
+ 73,
80
+ 74,
81
+ 75,
82
+ 76,
83
+ 77,
84
+ 78,
85
+ 79,
86
+ 80,
87
+ 81,
88
+ 82,
89
+ 83,
90
+ 84,
91
+ 85,
92
+ 86,
93
+ 87,
94
+ 88,
95
+ 89,
96
+ 90,
97
+ 91,
98
+ 92,
99
+ 93,
100
+ 94,
101
+ 95,
102
+ 96,
103
+ 97,
104
+ 98,
105
+ 99,
106
+ 100,
107
+ 101,
108
+ 102,
109
+ 103,
110
+ 104,
111
+ 105,
112
+ 106,
113
+ 107,
114
+ 108,
115
+ 109,
116
+ 110,
117
+ 111,
118
+ 112,
119
+ 113,
120
+ 114,
121
+ 115,
122
+ 116,
123
+ 117,
124
+ 118,
125
+ 119,
126
+ 120,
127
+ 121,
128
+ 122,
129
+ 123,
130
+ 124,
131
+ 125,
132
+ 126,
133
+ 127,
134
+ 128,
135
+ 129,
136
+ 130,
137
+ 131,
138
+ 132,
139
+ 133,
140
+ 134,
141
+ 135,
142
+ 136,
143
+ 137,
144
+ 138,
145
+ 139,
146
+ 140,
147
+ 141,
148
+ 142,
149
+ 143,
150
+ 144,
151
+ 145,
152
+ 146,
153
+ 147,
154
+ 148,
155
+ 149,
156
+ 150,
157
+ 151,
158
+ 152,
159
+ 153,
160
+ 154,
161
+ 155,
162
+ 156,
163
+ 157,
164
+ 158,
165
+ 159,
166
+ 160,
167
+ 161,
168
+ 162,
169
+ 163,
170
+ 164,
171
+ 165,
172
+ 166,
173
+ 167,
174
+ 168,
175
+ 169,
176
+ 170,
177
+ 171,
178
+ 172,
179
+ 173,
180
+ 174,
181
+ 175,
182
+ 176,
183
+ 177,
184
+ 178,
185
+ 179,
186
+ 180,
187
+ 181,
188
+ 182,
189
+ 183,
190
+ 184,
191
+ 185,
192
+ 186,
193
+ 187,
194
+ 188,
195
+ 189,
196
+ 190,
197
+ 191,
198
+ 192,
199
+ 193,
200
+ 194,
201
+ 195,
202
+ 196,
203
+ 197,
204
+ 198,
205
+ 199,
206
+ 200,
207
+ 201,
208
+ 202,
209
+ 203,
210
+ 204,
211
+ 205,
212
+ 206,
213
+ 207
214
+ ],
215
+ "image_transforms": {
216
+ "enable": false,
217
+ "max_num_transforms": 3,
218
+ "random_order": false,
219
+ "tfs": {
220
+ "brightness": {
221
+ "weight": 1.0,
222
+ "type": "ColorJitter",
223
+ "kwargs": {
224
+ "brightness": [
225
+ 0.8,
226
+ 1.2
227
+ ]
228
+ }
229
+ },
230
+ "contrast": {
231
+ "weight": 1.0,
232
+ "type": "ColorJitter",
233
+ "kwargs": {
234
+ "contrast": [
235
+ 0.8,
236
+ 1.2
237
+ ]
238
+ }
239
+ },
240
+ "saturation": {
241
+ "weight": 1.0,
242
+ "type": "ColorJitter",
243
+ "kwargs": {
244
+ "saturation": [
245
+ 0.5,
246
+ 1.5
247
+ ]
248
+ }
249
+ },
250
+ "hue": {
251
+ "weight": 1.0,
252
+ "type": "ColorJitter",
253
+ "kwargs": {
254
+ "hue": [
255
+ -0.05,
256
+ 0.05
257
+ ]
258
+ }
259
+ },
260
+ "sharpness": {
261
+ "weight": 1.0,
262
+ "type": "SharpnessJitter",
263
+ "kwargs": {
264
+ "sharpness": [
265
+ 0.5,
266
+ 1.5
267
+ ]
268
+ }
269
+ },
270
+ "affine": {
271
+ "weight": 1.0,
272
+ "type": "RandomAffine",
273
+ "kwargs": {
274
+ "degrees": [
275
+ -5.0,
276
+ 5.0
277
+ ],
278
+ "translate": [
279
+ 0.05,
280
+ 0.05
281
+ ]
282
+ }
283
+ }
284
+ }
285
+ },
286
+ "revision": null,
287
+ "use_imagenet_stats": true,
288
+ "video_backend": "torchcodec",
289
+ "streaming": false
290
+ },
291
+ "env": {
292
+ "type": "pusht",
293
+ "task": "PushT-v0",
294
+ "fps": 10,
295
+ "features": {
296
+ "action": {
297
+ "type": "ACTION",
298
+ "shape": [
299
+ 2
300
+ ]
301
+ },
302
+ "agent_pos": {
303
+ "type": "STATE",
304
+ "shape": [
305
+ 2
306
+ ]
307
+ },
308
+ "pixels": {
309
+ "type": "VISUAL",
310
+ "shape": [
311
+ 384,
312
+ 384,
313
+ 3
314
+ ]
315
+ }
316
+ },
317
+ "features_map": {
318
+ "action": "action",
319
+ "agent_pos": "observation.state",
320
+ "environment_state": "observation.environment_state",
321
+ "pixels": "observation.image"
322
+ },
323
+ "max_parallel_tasks": 1,
324
+ "disable_env_checker": true,
325
+ "episode_length": 300,
326
+ "obs_type": "pixels_agent_pos",
327
+ "render_mode": "rgb_array",
328
+ "visualization_width": 384,
329
+ "visualization_height": 384,
330
+ "observation_height": 384,
331
+ "observation_width": 384
332
+ },
333
+ "policy": {
334
+ "type": "ditflow",
335
+ "n_obs_steps": 2,
336
+ "input_features": {
337
+ "observation.image": {
338
+ "type": "VISUAL",
339
+ "shape": [
340
+ 3,
341
+ 96,
342
+ 96
343
+ ]
344
+ },
345
+ "observation.state": {
346
+ "type": "STATE",
347
+ "shape": [
348
+ 2
349
+ ]
350
+ }
351
+ },
352
+ "output_features": {
353
+ "action": {
354
+ "type": "ACTION",
355
+ "shape": [
356
+ 2
357
+ ]
358
+ }
359
+ },
360
+ "device": "cuda",
361
+ "use_amp": false,
362
+ "push_to_hub": true,
363
+ "repo_id": "random_it0",
364
+ "private": null,
365
+ "tags": null,
366
+ "license": null,
367
+ "pretrained_path": null,
368
+ "horizon": 16,
369
+ "n_action_steps": 8,
370
+ "use_proprioceptive": true,
371
+ "normalization_mapping": {
372
+ "VISUAL": "MEAN_STD",
373
+ "STATE": "MIN_MAX",
374
+ "ACTION": "MIN_MAX"
375
+ },
376
+ "drop_n_last_frames": 7,
377
+ "vision_backbone": "resnet18",
378
+ "crop_shape": [
379
+ 84,
380
+ 84
381
+ ],
382
+ "crop_is_random": true,
383
+ "pretrained_backbone_weights": null,
384
+ "use_group_norm": true,
385
+ "spatial_softmax_num_keypoints": 32,
386
+ "use_separate_rgb_encoder_per_camera": false,
387
+ "frequency_embedding_dim": 256,
388
+ "hidden_dim": 512,
389
+ "num_blocks": 6,
390
+ "num_heads": 16,
391
+ "dropout": 0.1,
392
+ "dim_feedforward": 4096,
393
+ "activation": "gelu",
394
+ "training_noise_sampling": "uniform",
395
+ "clip_sample": true,
396
+ "clip_sample_range": 1.0,
397
+ "num_inference_steps": 100,
398
+ "do_mask_loss_for_padding": false,
399
+ "optimizer_lr": 0.0001,
400
+ "optimizer_betas": [
401
+ 0.95,
402
+ 0.999
403
+ ],
404
+ "optimizer_eps": 1e-08,
405
+ "optimizer_weight_decay": 1e-06,
406
+ "scheduler_name": "cosine",
407
+ "scheduler_warmup_steps": 500
408
+ },
409
+ "output_dir": "/home/johannes/repos/influence_exploration/experiment_outputs/models/random_it0",
410
+ "job_name": "random_it0",
411
+ "resume": false,
412
+ "seed": 42,
413
+ "num_workers": 4,
414
+ "batch_size": 4,
415
+ "steps": 5,
416
+ "eval_freq": 7,
417
+ "log_freq": 5,
418
+ "tolerance_s": 0.0001,
419
+ "save_checkpoint": true,
420
+ "save_freq": 5,
421
+ "use_policy_training_preset": true,
422
+ "optimizer": {
423
+ "type": "adam",
424
+ "lr": 0.0001,
425
+ "weight_decay": 1e-06,
426
+ "grad_clip_norm": 10.0,
427
+ "betas": [
428
+ 0.95,
429
+ 0.999
430
+ ],
431
+ "eps": 1e-08
432
+ },
433
+ "scheduler": {
434
+ "type": "diffuser",
435
+ "num_warmup_steps": 500,
436
+ "name": "cosine"
437
+ },
438
+ "eval": {
439
+ "n_episodes": 50,
440
+ "batch_size": 50,
441
+ "use_async_envs": false
442
+ },
443
+ "wandb": {
444
+ "enable": true,
445
+ "disable_artifact": true,
446
+ "project": "lerobot",
447
+ "entity": null,
448
+ "notes": "run_label=random_it0, seed=42",
449
+ "run_id": "gnmtz2m2",
450
+ "mode": "online"
451
+ },
452
+ "use_rabc": false,
453
+ "rabc_progress_path": null,
454
+ "rabc_kappa": 0.01,
455
+ "rabc_epsilon": 1e-06,
456
+ "rabc_head_mode": "sparse",
457
+ "rename_map": {},
458
+ "checkpoint_path": null
459
+ }