danielsanjosepro commited on
Commit
35c00fb
·
verified ·
1 Parent(s): 9e3f283

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +124 -0
  3. model.safetensors +3 -0
  4. train_config.json +236 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: danielsanjosepro/stack_multi_v1
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: dit_meanflow
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - dit_meanflow
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for dit_meanflow
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
+ 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,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "dit_meanflow",
3
+ "n_obs_steps": 2,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD",
6
+ "STATE": "MIN_MAX",
7
+ "ACTION": "MEAN_STD"
8
+ },
9
+ "input_features": {
10
+ "observation.images.primary": {
11
+ "type": "VISUAL",
12
+ "shape": [
13
+ 3,
14
+ 256,
15
+ 256
16
+ ]
17
+ },
18
+ "observation.images.wrist": {
19
+ "type": "VISUAL",
20
+ "shape": [
21
+ 3,
22
+ 256,
23
+ 256
24
+ ]
25
+ },
26
+ "observation.state.cartesian": {
27
+ "type": "STATE",
28
+ "shape": [
29
+ 6
30
+ ]
31
+ },
32
+ "observation.state.gripper": {
33
+ "type": "STATE",
34
+ "shape": [
35
+ 1
36
+ ]
37
+ },
38
+ "observation.state.joints": {
39
+ "type": "STATE",
40
+ "shape": [
41
+ 7
42
+ ]
43
+ },
44
+ "observation.state.sensors_ft_sensor": {
45
+ "type": "STATE",
46
+ "shape": [
47
+ 6
48
+ ]
49
+ },
50
+ "observation.state.target": {
51
+ "type": "STATE",
52
+ "shape": [
53
+ 6
54
+ ]
55
+ },
56
+ "observation.state": {
57
+ "type": "STATE",
58
+ "shape": [
59
+ 26
60
+ ]
61
+ }
62
+ },
63
+ "output_features": {
64
+ "action": {
65
+ "type": "ACTION",
66
+ "shape": [
67
+ 7
68
+ ]
69
+ }
70
+ },
71
+ "device": "cuda",
72
+ "use_amp": false,
73
+ "push_to_hub": true,
74
+ "repo_id": "danielsanjosepro/dit_meanflow_stack_multi_v1",
75
+ "private": null,
76
+ "tags": null,
77
+ "license": null,
78
+ "horizon": 16,
79
+ "n_action_steps": 8,
80
+ "use_proprioceptive": true,
81
+ "drop_n_last_frames": 7,
82
+ "vision_backbone": "resnet18",
83
+ "crop_shape": null,
84
+ "crop_is_random": false,
85
+ "pretrained_backbone_weights": null,
86
+ "use_group_norm": true,
87
+ "spatial_softmax_num_keypoints": 32,
88
+ "use_separate_rgb_encoder_per_camera": true,
89
+ "frequency_embedding_dim": 256,
90
+ "hidden_dim": 512,
91
+ "num_blocks": 6,
92
+ "num_heads": 16,
93
+ "dropout": 0.1,
94
+ "dim_feedforward": 4096,
95
+ "activation": "gelu",
96
+ "training_noise_sampling": "uniform",
97
+ "clip_sample": true,
98
+ "clip_sample_range": 1.0,
99
+ "num_inference_steps": 100,
100
+ "do_mask_loss_for_padding": false,
101
+ "optimizer_lr": 0.0001,
102
+ "optimizer_betas": [
103
+ 0.95,
104
+ 0.999
105
+ ],
106
+ "optimizer_eps": 1e-08,
107
+ "optimizer_weight_decay": 1e-06,
108
+ "scheduler_name": "cosine",
109
+ "scheduler_warmup_steps": 500,
110
+ "use_meanflow": true,
111
+ "do_multi_step_sampling": true,
112
+ "inference_timesteps": 100,
113
+ "time_distribution": "uniform",
114
+ "log_norm_mu": -0.4,
115
+ "log_norm_sigma": 1.0,
116
+ "use_autograd_functional_jvp": false,
117
+ "use_adaptative_loss": true,
118
+ "flow_ratio": 0.5,
119
+ "cfg_prob": 0.1,
120
+ "cfg_omega": 2.0,
121
+ "cfg_w": 2.0,
122
+ "cfg_kappa": 0.0,
123
+ "optimizer_grad_clip_norm": 0.5
124
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e14d8edb10aeb8dbbe47f01b3a81d49815ae13ec43d45fffb2aec2f8153f803
3
+ size 259432652
train_config.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "danielsanjosepro/stack_multi_v1",
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": "dit_meanflow",
70
+ "n_obs_steps": 2,
71
+ "normalization_mapping": {
72
+ "VISUAL": "MEAN_STD",
73
+ "STATE": "MIN_MAX",
74
+ "ACTION": "MEAN_STD"
75
+ },
76
+ "input_features": {
77
+ "observation.images.primary": {
78
+ "type": "VISUAL",
79
+ "shape": [
80
+ 3,
81
+ 256,
82
+ 256
83
+ ]
84
+ },
85
+ "observation.images.wrist": {
86
+ "type": "VISUAL",
87
+ "shape": [
88
+ 3,
89
+ 256,
90
+ 256
91
+ ]
92
+ },
93
+ "observation.state.cartesian": {
94
+ "type": "STATE",
95
+ "shape": [
96
+ 6
97
+ ]
98
+ },
99
+ "observation.state.gripper": {
100
+ "type": "STATE",
101
+ "shape": [
102
+ 1
103
+ ]
104
+ },
105
+ "observation.state.joints": {
106
+ "type": "STATE",
107
+ "shape": [
108
+ 7
109
+ ]
110
+ },
111
+ "observation.state.sensors_ft_sensor": {
112
+ "type": "STATE",
113
+ "shape": [
114
+ 6
115
+ ]
116
+ },
117
+ "observation.state.target": {
118
+ "type": "STATE",
119
+ "shape": [
120
+ 6
121
+ ]
122
+ },
123
+ "observation.state": {
124
+ "type": "STATE",
125
+ "shape": [
126
+ 26
127
+ ]
128
+ }
129
+ },
130
+ "output_features": {
131
+ "action": {
132
+ "type": "ACTION",
133
+ "shape": [
134
+ 7
135
+ ]
136
+ }
137
+ },
138
+ "device": "cuda",
139
+ "use_amp": false,
140
+ "push_to_hub": true,
141
+ "repo_id": "danielsanjosepro/dit_meanflow_stack_multi_v1",
142
+ "private": null,
143
+ "tags": null,
144
+ "license": null,
145
+ "horizon": 16,
146
+ "n_action_steps": 8,
147
+ "use_proprioceptive": true,
148
+ "drop_n_last_frames": 7,
149
+ "vision_backbone": "resnet18",
150
+ "crop_shape": null,
151
+ "crop_is_random": false,
152
+ "pretrained_backbone_weights": null,
153
+ "use_group_norm": true,
154
+ "spatial_softmax_num_keypoints": 32,
155
+ "use_separate_rgb_encoder_per_camera": true,
156
+ "frequency_embedding_dim": 256,
157
+ "hidden_dim": 512,
158
+ "num_blocks": 6,
159
+ "num_heads": 16,
160
+ "dropout": 0.1,
161
+ "dim_feedforward": 4096,
162
+ "activation": "gelu",
163
+ "training_noise_sampling": "uniform",
164
+ "clip_sample": true,
165
+ "clip_sample_range": 1.0,
166
+ "num_inference_steps": 100,
167
+ "do_mask_loss_for_padding": false,
168
+ "optimizer_lr": 0.0001,
169
+ "optimizer_betas": [
170
+ 0.95,
171
+ 0.999
172
+ ],
173
+ "optimizer_eps": 1e-08,
174
+ "optimizer_weight_decay": 1e-06,
175
+ "scheduler_name": "cosine",
176
+ "scheduler_warmup_steps": 500,
177
+ "use_meanflow": true,
178
+ "do_multi_step_sampling": true,
179
+ "inference_timesteps": 100,
180
+ "time_distribution": "uniform",
181
+ "log_norm_mu": -0.4,
182
+ "log_norm_sigma": 1.0,
183
+ "use_autograd_functional_jvp": false,
184
+ "use_adaptative_loss": true,
185
+ "flow_ratio": 0.5,
186
+ "cfg_prob": 0.1,
187
+ "cfg_omega": 2.0,
188
+ "cfg_w": 2.0,
189
+ "cfg_kappa": 0.0,
190
+ "optimizer_grad_clip_norm": 0.5
191
+ },
192
+ "output_dir": "outputs/train/2025-10-29/02-28-22_dit_meanflow_stack_multi_v1",
193
+ "job_name": "dit_meanflow_stack_multi_v1",
194
+ "resume": false,
195
+ "seed": 1000,
196
+ "num_workers": 4,
197
+ "batch_size": 64,
198
+ "steps": 50000,
199
+ "eval_freq": 5000,
200
+ "log_freq": 100,
201
+ "save_checkpoint": true,
202
+ "save_freq": 5000,
203
+ "use_policy_training_preset": true,
204
+ "optimizer": {
205
+ "type": "adam",
206
+ "lr": 0.0001,
207
+ "weight_decay": 1e-06,
208
+ "grad_clip_norm": 10.0,
209
+ "betas": [
210
+ 0.95,
211
+ 0.999
212
+ ],
213
+ "eps": 1e-08
214
+ },
215
+ "scheduler": {
216
+ "type": "diffuser",
217
+ "num_warmup_steps": 500,
218
+ "name": "cosine"
219
+ },
220
+ "eval": {
221
+ "n_episodes": 50,
222
+ "batch_size": 50,
223
+ "use_async_envs": false,
224
+ "max_episodes_rendered": 4
225
+ },
226
+ "wandb": {
227
+ "enable": true,
228
+ "disable_artifact": false,
229
+ "project": "lerobot",
230
+ "entity": null,
231
+ "notes": null,
232
+ "run_id": "huar3wdq",
233
+ "mode": null
234
+ },
235
+ "eval_with_dataset": "danielsanjosepro/stack_multi_v1"
236
+ }