kelvinzhaozg commited on
Commit
5106bb2
·
verified ·
1 Parent(s): b32e942

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 +255 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: kelvinzhaozg/t1_stack_cube_isaaclab_dataset_563
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: vqflow
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - vqflow
11
+ ---
12
+
13
+ # Model Card for vqflow
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,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "vqflow",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.head_rgb": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 240,
10
+ 424
11
+ ]
12
+ },
13
+ "observation.images.left_wrist": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 240,
18
+ 424
19
+ ]
20
+ },
21
+ "observation.images.right_wrist": {
22
+ "type": "VISUAL",
23
+ "shape": [
24
+ 3,
25
+ 240,
26
+ 424
27
+ ]
28
+ },
29
+ "observation.state": {
30
+ "type": "STATE",
31
+ "shape": [
32
+ 21
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 18
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "push_to_hub": true,
47
+ "repo_id": "kelvinzhaozg/vqflow_t1_stack_cube_1124",
48
+ "private": null,
49
+ "tags": null,
50
+ "license": null,
51
+ "pretrained_path": "outputs/train/2025-11-24/11-11-56_vqflow/checkpoints/040000/pretrained_model",
52
+ "horizon": 64,
53
+ "n_action_steps": 32,
54
+ "normalization_mapping": {
55
+ "VISUAL": "MEAN_STD",
56
+ "STATE": "MIN_MAX",
57
+ "ACTION": "MIN_MAX"
58
+ },
59
+ "drop_n_last_frames": 32,
60
+ "vqvae_n_embed": 512,
61
+ "vqvae_embedding_dim": 512,
62
+ "vqvae_encoder_channels": [
63
+ 128,
64
+ 128,
65
+ 256,
66
+ 256
67
+ ],
68
+ "vqvae_downsample_stages": [
69
+ 1,
70
+ 3
71
+ ],
72
+ "vqvae_num_res_blocks": 2,
73
+ "vqvae_num_attention_heads": 4,
74
+ "vqvae_dropout": 0.0,
75
+ "vqvae_num_groups": 8,
76
+ "n_vqvae_training_steps": 50000,
77
+ "vqvae_commitment_beta": 0.25,
78
+ "vqvae_use_cosine_sim": true,
79
+ "vqvae_threshold_ema_dead_code": 2,
80
+ "vqvae_kmeans_init": true,
81
+ "hidden_size": 768,
82
+ "num_layers": 12,
83
+ "num_attention_heads": 12,
84
+ "cross_attention_dim": 512,
85
+ "attention_dropout": 0.1,
86
+ "use_adaln_zero": true,
87
+ "source_distribution": "mask",
88
+ "scheduler_power": 2.0,
89
+ "num_integration_steps": 50,
90
+ "flow_epsilon": 0.001,
91
+ "loss_function": "cross_entropy",
92
+ "vision_backbone": "resnet18",
93
+ "crop_shape": null,
94
+ "crop_is_random": true,
95
+ "pretrained_backbone_weights": null,
96
+ "use_group_norm": true,
97
+ "spatial_softmax_num_keypoints": 32,
98
+ "use_separate_rgb_encoder_per_camera": true,
99
+ "fm_time_embed_dim": 256,
100
+ "fm_min_period": 0.001,
101
+ "fm_max_period": 5.0,
102
+ "do_mask_loss_for_padding": false,
103
+ "use_delta_actions": false,
104
+ "delta_action_dims": [
105
+ -2,
106
+ 7,
107
+ 7,
108
+ -2
109
+ ],
110
+ "delta_state_dims": [
111
+ -2,
112
+ 7,
113
+ 7,
114
+ -5
115
+ ],
116
+ "delta_state_key": "observation.state",
117
+ "optimizer_type": "adamw",
118
+ "phase1_lr": 0.0004,
119
+ "phase1_weight_decay": 1e-06,
120
+ "phase2_lr": 0.0004,
121
+ "phase2_weight_decay": 1e-06,
122
+ "scheduler_name": "cosine",
123
+ "scheduler_warmup_steps": 500
124
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:606fc65904e994ee6face114ab3c47e56f43d35cb3cbc27a8ba9168a208da794
3
+ size 661405362
train_config.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "kelvinzhaozg/t1_stack_cube_isaaclab_dataset_563",
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
+ "val_ratio": 0.0
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "vqflow",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.images.head_rgb": {
89
+ "type": "VISUAL",
90
+ "shape": [
91
+ 3,
92
+ 240,
93
+ 424
94
+ ]
95
+ },
96
+ "observation.images.left_wrist": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 240,
101
+ 424
102
+ ]
103
+ },
104
+ "observation.images.right_wrist": {
105
+ "type": "VISUAL",
106
+ "shape": [
107
+ 3,
108
+ 240,
109
+ 424
110
+ ]
111
+ },
112
+ "observation.state": {
113
+ "type": "STATE",
114
+ "shape": [
115
+ 21
116
+ ]
117
+ }
118
+ },
119
+ "output_features": {
120
+ "action": {
121
+ "type": "ACTION",
122
+ "shape": [
123
+ 18
124
+ ]
125
+ }
126
+ },
127
+ "device": "cuda",
128
+ "use_amp": false,
129
+ "push_to_hub": true,
130
+ "repo_id": "kelvinzhaozg/vqflow_t1_stack_cube_1124",
131
+ "private": null,
132
+ "tags": null,
133
+ "license": null,
134
+ "pretrained_path": "outputs/train/2025-11-24/11-11-56_vqflow/checkpoints/040000/pretrained_model",
135
+ "horizon": 64,
136
+ "n_action_steps": 32,
137
+ "normalization_mapping": {
138
+ "VISUAL": "MEAN_STD",
139
+ "STATE": "MIN_MAX",
140
+ "ACTION": "MIN_MAX"
141
+ },
142
+ "drop_n_last_frames": 32,
143
+ "vqvae_n_embed": 512,
144
+ "vqvae_embedding_dim": 512,
145
+ "vqvae_encoder_channels": [
146
+ 128,
147
+ 128,
148
+ 256,
149
+ 256
150
+ ],
151
+ "vqvae_downsample_stages": [
152
+ 1,
153
+ 3
154
+ ],
155
+ "vqvae_num_res_blocks": 2,
156
+ "vqvae_num_attention_heads": 4,
157
+ "vqvae_dropout": 0.0,
158
+ "vqvae_num_groups": 8,
159
+ "n_vqvae_training_steps": 50000,
160
+ "vqvae_commitment_beta": 0.25,
161
+ "vqvae_use_cosine_sim": true,
162
+ "vqvae_threshold_ema_dead_code": 2,
163
+ "vqvae_kmeans_init": true,
164
+ "hidden_size": 768,
165
+ "num_layers": 12,
166
+ "num_attention_heads": 12,
167
+ "cross_attention_dim": 512,
168
+ "attention_dropout": 0.1,
169
+ "use_adaln_zero": true,
170
+ "source_distribution": "mask",
171
+ "scheduler_power": 2.0,
172
+ "num_integration_steps": 50,
173
+ "flow_epsilon": 0.001,
174
+ "loss_function": "cross_entropy",
175
+ "vision_backbone": "resnet18",
176
+ "crop_shape": null,
177
+ "crop_is_random": true,
178
+ "pretrained_backbone_weights": null,
179
+ "use_group_norm": true,
180
+ "spatial_softmax_num_keypoints": 32,
181
+ "use_separate_rgb_encoder_per_camera": true,
182
+ "fm_time_embed_dim": 256,
183
+ "fm_min_period": 0.001,
184
+ "fm_max_period": 5.0,
185
+ "do_mask_loss_for_padding": false,
186
+ "use_delta_actions": false,
187
+ "delta_action_dims": [
188
+ -2,
189
+ 7,
190
+ 7,
191
+ -2
192
+ ],
193
+ "delta_state_dims": [
194
+ -2,
195
+ 7,
196
+ 7,
197
+ -5
198
+ ],
199
+ "delta_state_key": "observation.state",
200
+ "optimizer_type": "adamw",
201
+ "phase1_lr": 0.0004,
202
+ "phase1_weight_decay": 1e-06,
203
+ "phase2_lr": 0.0004,
204
+ "phase2_weight_decay": 1e-06,
205
+ "scheduler_name": "cosine",
206
+ "scheduler_warmup_steps": 500
207
+ },
208
+ "output_dir": "outputs/train/2025-11-24/11-11-56_vqflow",
209
+ "job_name": "vqflow",
210
+ "resume": true,
211
+ "seed": 1000,
212
+ "num_workers": 12,
213
+ "batch_size": 256,
214
+ "steps": 300000,
215
+ "eval_freq": 20000,
216
+ "log_freq": 200,
217
+ "save_checkpoint": true,
218
+ "save_freq": 20000,
219
+ "use_policy_training_preset": true,
220
+ "optimizer": {
221
+ "type": "adamw",
222
+ "lr": 0.0004,
223
+ "weight_decay": 1e-06,
224
+ "grad_clip_norm": 10.0,
225
+ "betas": [
226
+ 0.9,
227
+ 0.999
228
+ ],
229
+ "eps": 1e-08
230
+ },
231
+ "scheduler": {
232
+ "type": "vqflow",
233
+ "num_warmup_steps": 500,
234
+ "num_vqvae_training_steps": 50000,
235
+ "num_cycles": 0.5
236
+ },
237
+ "eval": {
238
+ "n_episodes": 50,
239
+ "batch_size": 50,
240
+ "use_async_envs": false
241
+ },
242
+ "wandb": {
243
+ "enable": true,
244
+ "disable_artifact": true,
245
+ "project": "t1_stack_cube_wrist_cam",
246
+ "entity": null,
247
+ "notes": null,
248
+ "run_id": "rg54l7bs",
249
+ "mode": null
250
+ },
251
+ "checkpoint_path": "outputs/train/2025-11-24/11-11-56_vqflow/checkpoints/040000",
252
+ "rename_map": {},
253
+ "phase1_batch_size": 256,
254
+ "phase2_batch_size": 64
255
+ }