danielsanjosepro commited on
Commit
c3dcda4
·
verified ·
1 Parent(s): be3a972

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +102 -0
  3. model.safetensors +3 -0
  4. train_config.json +212 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: LSY-lab/stack_proprio_only_v4
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
+ 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,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "ditflow",
3
+ "n_obs_steps": 2,
4
+ "normalization_mapping": {
5
+ "VISUAL": "MEAN_STD",
6
+ "STATE": "MIN_MAX",
7
+ "ACTION": "MIN_MAX"
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": {
39
+ "type": "STATE",
40
+ "shape": [
41
+ 7
42
+ ]
43
+ }
44
+ },
45
+ "output_features": {
46
+ "action": {
47
+ "type": "ACTION",
48
+ "shape": [
49
+ 7
50
+ ]
51
+ }
52
+ },
53
+ "device": "cuda",
54
+ "use_amp": false,
55
+ "push_to_hub": true,
56
+ "repo_id": "danielsanjosepro/ditflow_stack_proprio_only_v4",
57
+ "private": null,
58
+ "tags": null,
59
+ "license": null,
60
+ "horizon": 16,
61
+ "n_action_steps": 8,
62
+ "use_proprioceptive": true,
63
+ "drop_n_last_frames": 7,
64
+ "vision_backbone": "resnet18",
65
+ "crop_shape": [
66
+ 224,
67
+ 224
68
+ ],
69
+ "crop_is_random": true,
70
+ "pretrained_backbone_weights": null,
71
+ "use_group_norm": true,
72
+ "spatial_softmax_num_keypoints": 32,
73
+ "use_separate_rgb_encoder_per_camera": true,
74
+ "use_mlp_for_state_encoding": false,
75
+ "mlp_state_encoding_dims": [
76
+ 256,
77
+ 128
78
+ ],
79
+ "frequency_embedding_dim": 256,
80
+ "hidden_dim": 512,
81
+ "num_blocks": 6,
82
+ "num_heads": 16,
83
+ "dropout": 0.1,
84
+ "dim_feedforward": 4096,
85
+ "activation": "gelu",
86
+ "training_noise_sampling": "uniform",
87
+ "clip_sample": true,
88
+ "clip_sample_range": 1.0,
89
+ "num_inference_steps": 100,
90
+ "do_mask_loss_for_padding": false,
91
+ "optimizer_lr": 0.0001,
92
+ "optimizer_betas": [
93
+ 0.95,
94
+ 0.999
95
+ ],
96
+ "optimizer_eps": 1e-08,
97
+ "optimizer_weight_decay": 1e-06,
98
+ "scheduler_name": "cosine",
99
+ "scheduler_warmup_steps": 500,
100
+ "features_to_exclude": [],
101
+ "features_to_include": null
102
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cc4a6373b299d1fe40597d356852d2ec5e7a31ac89d7499df062c603960afa0
3
+ size 257775468
train_config.json ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "LSY-lab/stack_proprio_only_v4",
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": "ditflow",
70
+ "n_obs_steps": 2,
71
+ "normalization_mapping": {
72
+ "VISUAL": "MEAN_STD",
73
+ "STATE": "MIN_MAX",
74
+ "ACTION": "MIN_MAX"
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": {
106
+ "type": "STATE",
107
+ "shape": [
108
+ 7
109
+ ]
110
+ }
111
+ },
112
+ "output_features": {
113
+ "action": {
114
+ "type": "ACTION",
115
+ "shape": [
116
+ 7
117
+ ]
118
+ }
119
+ },
120
+ "device": "cuda",
121
+ "use_amp": false,
122
+ "push_to_hub": true,
123
+ "repo_id": "danielsanjosepro/ditflow_stack_proprio_only_v4",
124
+ "private": null,
125
+ "tags": null,
126
+ "license": null,
127
+ "horizon": 16,
128
+ "n_action_steps": 8,
129
+ "use_proprioceptive": true,
130
+ "drop_n_last_frames": 7,
131
+ "vision_backbone": "resnet18",
132
+ "crop_shape": [
133
+ 224,
134
+ 224
135
+ ],
136
+ "crop_is_random": true,
137
+ "pretrained_backbone_weights": null,
138
+ "use_group_norm": true,
139
+ "spatial_softmax_num_keypoints": 32,
140
+ "use_separate_rgb_encoder_per_camera": true,
141
+ "use_mlp_for_state_encoding": false,
142
+ "mlp_state_encoding_dims": [
143
+ 256,
144
+ 128
145
+ ],
146
+ "frequency_embedding_dim": 256,
147
+ "hidden_dim": 512,
148
+ "num_blocks": 6,
149
+ "num_heads": 16,
150
+ "dropout": 0.1,
151
+ "dim_feedforward": 4096,
152
+ "activation": "gelu",
153
+ "training_noise_sampling": "uniform",
154
+ "clip_sample": true,
155
+ "clip_sample_range": 1.0,
156
+ "num_inference_steps": 100,
157
+ "do_mask_loss_for_padding": false,
158
+ "optimizer_lr": 0.0001,
159
+ "optimizer_betas": [
160
+ 0.95,
161
+ 0.999
162
+ ],
163
+ "optimizer_eps": 1e-08,
164
+ "optimizer_weight_decay": 1e-06,
165
+ "scheduler_name": "cosine",
166
+ "scheduler_warmup_steps": 500,
167
+ "features_to_exclude": [],
168
+ "features_to_include": null
169
+ },
170
+ "output_dir": "outputs/train/2025-12-18/10-03-01_config/train_ditflow_stack_v4_proprio_only.json",
171
+ "job_name": "config/train_ditflow_stack_v4_proprio_only.json",
172
+ "resume": false,
173
+ "seed": 1000,
174
+ "num_workers": 4,
175
+ "batch_size": 128,
176
+ "steps": 20000,
177
+ "eval_freq": 1000,
178
+ "log_freq": 100,
179
+ "save_checkpoint": true,
180
+ "save_freq": 5000,
181
+ "use_policy_training_preset": true,
182
+ "optimizer": {
183
+ "type": "adam",
184
+ "lr": 0.0001,
185
+ "weight_decay": 1e-06,
186
+ "grad_clip_norm": 10.0,
187
+ "betas": [
188
+ 0.95,
189
+ 0.999
190
+ ],
191
+ "eps": 1e-08
192
+ },
193
+ "scheduler": {
194
+ "type": "diffuser",
195
+ "num_warmup_steps": 500,
196
+ "name": "cosine"
197
+ },
198
+ "eval": {
199
+ "n_episodes": 50,
200
+ "batch_size": 50,
201
+ "use_async_envs": false
202
+ },
203
+ "wandb": {
204
+ "enable": true,
205
+ "disable_artifact": false,
206
+ "project": "policies",
207
+ "entity": null,
208
+ "notes": null,
209
+ "run_id": "tgonlhbd",
210
+ "mode": null
211
+ }
212
+ }