gaspardthrl commited on
Commit
51c290b
·
verified ·
1 Parent(s): 0de9285

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 +236 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: gaspardthrl/walleed
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: multi_task_dit
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - multi_task_dit
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for multi_task_dit
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,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "multi_task_dit",
3
+ "n_obs_steps": 2,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 6
9
+ ]
10
+ },
11
+ "observation.images.front": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 6
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "use_peft": false,
31
+ "push_to_hub": true,
32
+ "repo_id": "gaspardthrl/diffusing-tiny-ddim",
33
+ "private": null,
34
+ "tags": null,
35
+ "license": null,
36
+ "pretrained_path": null,
37
+ "horizon": 16,
38
+ "n_action_steps": 12,
39
+ "objective": "diffusion",
40
+ "noise_scheduler_type": "DDIM",
41
+ "num_train_timesteps": 100,
42
+ "beta_schedule": "squaredcos_cap_v2",
43
+ "beta_start": 0.0001,
44
+ "beta_end": 0.02,
45
+ "prediction_type": "epsilon",
46
+ "clip_sample": true,
47
+ "clip_sample_range": 1.0,
48
+ "num_inference_steps": 10,
49
+ "sigma_min": 0.0,
50
+ "num_integration_steps": 100,
51
+ "integration_method": "euler",
52
+ "timestep_sampling_strategy": "beta",
53
+ "timestep_sampling_s": 0.999,
54
+ "timestep_sampling_alpha": 1.5,
55
+ "timestep_sampling_beta": 1.0,
56
+ "hidden_dim": 512,
57
+ "num_layers": 4,
58
+ "num_heads": 8,
59
+ "dropout": 0.1,
60
+ "use_positional_encoding": false,
61
+ "timestep_embed_dim": 256,
62
+ "use_rope": true,
63
+ "rope_base": 10000.0,
64
+ "vision_encoder_name": "openai/clip-vit-base-patch16",
65
+ "use_separate_rgb_encoder_per_camera": false,
66
+ "vision_encoder_lr_multiplier": 0.1,
67
+ "image_resize_shape": [
68
+ 320,
69
+ 240
70
+ ],
71
+ "image_crop_shape": [
72
+ 224,
73
+ 224
74
+ ],
75
+ "image_crop_is_random": true,
76
+ "text_encoder_name": "openai/clip-vit-base-patch16",
77
+ "tokenizer_max_length": 77,
78
+ "tokenizer_padding": "max_length",
79
+ "tokenizer_padding_side": "right",
80
+ "tokenizer_truncation": true,
81
+ "normalization_mapping": {
82
+ "VISUAL": "MEAN_STD",
83
+ "STATE": "MIN_MAX",
84
+ "ACTION": "MIN_MAX"
85
+ },
86
+ "optimizer_lr": 2e-05,
87
+ "optimizer_betas": [
88
+ 0.95,
89
+ 0.999
90
+ ],
91
+ "optimizer_eps": 1e-08,
92
+ "optimizer_weight_decay": 0.0,
93
+ "scheduler_name": "cosine",
94
+ "scheduler_warmup_steps": 0,
95
+ "do_mask_loss_for_padding": false,
96
+ "drop_n_last_frames": 3
97
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3499343b5c90a171d8cbb0720c41e4aa4bef75450b00bd4534a8bc2367207a8d
3
+ size 787517160
train_config.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "gaspardthrl/walleed",
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
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "multi_task_dit",
86
+ "n_obs_steps": 2,
87
+ "input_features": {
88
+ "observation.state": {
89
+ "type": "STATE",
90
+ "shape": [
91
+ 6
92
+ ]
93
+ },
94
+ "observation.images.front": {
95
+ "type": "VISUAL",
96
+ "shape": [
97
+ 3,
98
+ 480,
99
+ 640
100
+ ]
101
+ }
102
+ },
103
+ "output_features": {
104
+ "action": {
105
+ "type": "ACTION",
106
+ "shape": [
107
+ 6
108
+ ]
109
+ }
110
+ },
111
+ "device": "cuda",
112
+ "use_amp": false,
113
+ "use_peft": false,
114
+ "push_to_hub": true,
115
+ "repo_id": "gaspardthrl/diffusing-tiny-ddim",
116
+ "private": null,
117
+ "tags": null,
118
+ "license": null,
119
+ "pretrained_path": null,
120
+ "horizon": 16,
121
+ "n_action_steps": 12,
122
+ "objective": "diffusion",
123
+ "noise_scheduler_type": "DDIM",
124
+ "num_train_timesteps": 100,
125
+ "beta_schedule": "squaredcos_cap_v2",
126
+ "beta_start": 0.0001,
127
+ "beta_end": 0.02,
128
+ "prediction_type": "epsilon",
129
+ "clip_sample": true,
130
+ "clip_sample_range": 1.0,
131
+ "num_inference_steps": 10,
132
+ "sigma_min": 0.0,
133
+ "num_integration_steps": 100,
134
+ "integration_method": "euler",
135
+ "timestep_sampling_strategy": "beta",
136
+ "timestep_sampling_s": 0.999,
137
+ "timestep_sampling_alpha": 1.5,
138
+ "timestep_sampling_beta": 1.0,
139
+ "hidden_dim": 512,
140
+ "num_layers": 4,
141
+ "num_heads": 8,
142
+ "dropout": 0.1,
143
+ "use_positional_encoding": false,
144
+ "timestep_embed_dim": 256,
145
+ "use_rope": true,
146
+ "rope_base": 10000.0,
147
+ "vision_encoder_name": "openai/clip-vit-base-patch16",
148
+ "use_separate_rgb_encoder_per_camera": false,
149
+ "vision_encoder_lr_multiplier": 0.1,
150
+ "image_resize_shape": [
151
+ 320,
152
+ 240
153
+ ],
154
+ "image_crop_shape": [
155
+ 224,
156
+ 224
157
+ ],
158
+ "image_crop_is_random": true,
159
+ "text_encoder_name": "openai/clip-vit-base-patch16",
160
+ "tokenizer_max_length": 77,
161
+ "tokenizer_padding": "max_length",
162
+ "tokenizer_padding_side": "right",
163
+ "tokenizer_truncation": true,
164
+ "normalization_mapping": {
165
+ "VISUAL": "MEAN_STD",
166
+ "STATE": "MIN_MAX",
167
+ "ACTION": "MIN_MAX"
168
+ },
169
+ "optimizer_lr": 2e-05,
170
+ "optimizer_betas": [
171
+ 0.95,
172
+ 0.999
173
+ ],
174
+ "optimizer_eps": 1e-08,
175
+ "optimizer_weight_decay": 0.0,
176
+ "scheduler_name": "cosine",
177
+ "scheduler_warmup_steps": 0,
178
+ "do_mask_loss_for_padding": false,
179
+ "drop_n_last_frames": 3
180
+ },
181
+ "output_dir": "outputs/multitask_dit_tiny_ddim",
182
+ "job_name": "multi_task_dit",
183
+ "resume": false,
184
+ "seed": 1000,
185
+ "cudnn_deterministic": false,
186
+ "num_workers": 4,
187
+ "batch_size": 16,
188
+ "prefetch_factor": 4,
189
+ "persistent_workers": true,
190
+ "steps": 3000,
191
+ "eval_freq": 20000,
192
+ "log_freq": 100,
193
+ "tolerance_s": 0.0001,
194
+ "save_checkpoint": true,
195
+ "save_freq": 500,
196
+ "use_policy_training_preset": true,
197
+ "optimizer": {
198
+ "type": "adam",
199
+ "lr": 2e-05,
200
+ "weight_decay": 0.0,
201
+ "grad_clip_norm": 10.0,
202
+ "betas": [
203
+ 0.95,
204
+ 0.999
205
+ ],
206
+ "eps": 1e-08
207
+ },
208
+ "scheduler": {
209
+ "type": "diffuser",
210
+ "num_warmup_steps": 0,
211
+ "name": "cosine"
212
+ },
213
+ "eval": {
214
+ "n_episodes": 50,
215
+ "batch_size": 16,
216
+ "use_async_envs": true
217
+ },
218
+ "wandb": {
219
+ "enable": false,
220
+ "disable_artifact": false,
221
+ "project": "lerobot",
222
+ "entity": null,
223
+ "notes": null,
224
+ "run_id": null,
225
+ "mode": null,
226
+ "add_tags": true
227
+ },
228
+ "peft": null,
229
+ "use_rabc": false,
230
+ "rabc_progress_path": null,
231
+ "rabc_kappa": 0.01,
232
+ "rabc_epsilon": 1e-06,
233
+ "rabc_head_mode": "sparse",
234
+ "rename_map": {},
235
+ "checkpoint_path": null
236
+ }