Daniel San José Pro commited on
Commit
4e6cd4c
·
1 Parent(s): e85a7d0
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +117 -0
  3. model.safetensors +3 -0
  4. train_config.json +227 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: LSY-lab/stack_without_tact_v2
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: ditflow
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
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,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.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/ditflow_stack_v3",
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": [
84
+ 224,
85
+ 224
86
+ ],
87
+ "crop_is_random": true,
88
+ "pretrained_backbone_weights": null,
89
+ "use_group_norm": true,
90
+ "spatial_softmax_num_keypoints": 32,
91
+ "use_separate_rgb_encoder_per_camera": true,
92
+ "frequency_embedding_dim": 256,
93
+ "hidden_dim": 512,
94
+ "num_blocks": 6,
95
+ "num_heads": 16,
96
+ "dropout": 0.1,
97
+ "dim_feedforward": 4096,
98
+ "activation": "gelu",
99
+ "training_noise_sampling": "uniform",
100
+ "clip_sample": true,
101
+ "clip_sample_range": 1.0,
102
+ "num_inference_steps": 1,
103
+ "do_mask_loss_for_padding": false,
104
+ "optimizer_lr": 0.0001,
105
+ "optimizer_betas": [
106
+ 0.95,
107
+ 0.999
108
+ ],
109
+ "optimizer_eps": 1e-08,
110
+ "optimizer_weight_decay": 1e-06,
111
+ "scheduler_name": "cosine",
112
+ "scheduler_warmup_steps": 500,
113
+ "features_to_exclude": [
114
+ "observation.images.tactile"
115
+ ],
116
+ "features_to_include": null
117
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c82b11dcdf5d1120e3d8d8ccd5165ea23a04863e2279cf4867f6319bbd1d8226
3
+ size 257854340
train_config.json ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "LSY-lab/stack_without_tact_v2",
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.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/ditflow_stack_v3",
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": [
151
+ 224,
152
+ 224
153
+ ],
154
+ "crop_is_random": true,
155
+ "pretrained_backbone_weights": null,
156
+ "use_group_norm": true,
157
+ "spatial_softmax_num_keypoints": 32,
158
+ "use_separate_rgb_encoder_per_camera": true,
159
+ "frequency_embedding_dim": 256,
160
+ "hidden_dim": 512,
161
+ "num_blocks": 6,
162
+ "num_heads": 16,
163
+ "dropout": 0.1,
164
+ "dim_feedforward": 4096,
165
+ "activation": "gelu",
166
+ "training_noise_sampling": "uniform",
167
+ "clip_sample": true,
168
+ "clip_sample_range": 1.0,
169
+ "num_inference_steps": 1,
170
+ "do_mask_loss_for_padding": false,
171
+ "optimizer_lr": 0.0001,
172
+ "optimizer_betas": [
173
+ 0.95,
174
+ 0.999
175
+ ],
176
+ "optimizer_eps": 1e-08,
177
+ "optimizer_weight_decay": 1e-06,
178
+ "scheduler_name": "cosine",
179
+ "scheduler_warmup_steps": 500,
180
+ "features_to_exclude": [
181
+ "observation.images.tactile"
182
+ ],
183
+ "features_to_include": null
184
+ },
185
+ "output_dir": "outputs/train/2025-12-13/18-31-04_config/train_ditflow_stack_without_tactile.json",
186
+ "job_name": "config/train_ditflow_stack_without_tactile.json",
187
+ "resume": false,
188
+ "seed": 1000,
189
+ "num_workers": 4,
190
+ "batch_size": 128,
191
+ "steps": 20000,
192
+ "eval_freq": 1000,
193
+ "log_freq": 100,
194
+ "save_checkpoint": true,
195
+ "save_freq": 5000,
196
+ "use_policy_training_preset": true,
197
+ "optimizer": {
198
+ "type": "adam",
199
+ "lr": 0.0001,
200
+ "weight_decay": 1e-06,
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": 500,
211
+ "name": "cosine"
212
+ },
213
+ "eval": {
214
+ "n_episodes": 50,
215
+ "batch_size": 50,
216
+ "use_async_envs": false
217
+ },
218
+ "wandb": {
219
+ "enable": true,
220
+ "disable_artifact": false,
221
+ "project": "policies",
222
+ "entity": null,
223
+ "notes": null,
224
+ "run_id": "4kao0kcu",
225
+ "mode": null
226
+ }
227
+ }