wsagi commited on
Commit
ed2e170
·
verified ·
1 Parent(s): 84e1ea3

FlowDP sim-warm-start best (step 7000) for real SO-101 pick-orange

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ FlowDP-Real-PickOrange.mp4 filter=lfs diff=lfs merge=lfs -text
37
+ Top-Cam-DP.jpeg filter=lfs diff=lfs merge=lfs -text
FlowDP-Real-PickOrange.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a272aaa090e801af9fcdf0c05184ce03dd833e2f8d91636048f2d580c5477a24
3
+ size 4707919
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: robotics
4
+ library_name: lerobot
5
+ tags:
6
+ - diffusion-policy
7
+ - flow-matching
8
+ - rectified-flow
9
+ - so101
10
+ - real-robot
11
+ - manipulation
12
+ - pick-and-place
13
+ - lerobot
14
+ datasets:
15
+ - wsagi/leisaac-real-pick-orange
16
+ base_model:
17
+ - wsagi/FlowHeads-DiffusionPolicy-PickOrange
18
+ ---
19
+
20
+ # FlowHeads-DiffusionPolicy-Real-PickOrange — SO-101 真机抓橙子(sim-warm-start,FlowDP 真机 best)
21
+
22
+ 真机 SO-101 pick-orange 的 **FlowDP(conv-UNet × rectified-flow head)best checkpoint**:从仿真 best [wsagi/FlowHeads-DiffusionPolicy-PickOrange](https://huggingface.co/wsagi/FlowHeads-DiffusionPolicy-PickOrange)(仿真榜 45.0%)warm-start,用 [wsagi/leisaac-real-pick-orange](https://huggingface.co/datasets/wsagi/leisaac-real-pick-orange)(30 集真机遥操演示)**续训 7000 步(≈4.5 epoch)**。
23
+
24
+ FlowDP (conv-UNet backbone × rectified-flow head) for real-world SO-101 pick-and-place: warm-started from our sim-best FlowDP checkpoint, fine-tuned for 7000 steps on 30 real teleoperation episodes. **Real-arm score even beats its own sim score** (56.7% vs 45.0% oranges/ep).
25
+
26
+ <video src="https://huggingface.co/wsagi/FlowHeads-DiffusionPolicy-Real-PickOrange/resolve/main/FlowDP-Real-PickOrange.mp4" controls muted loop></video>
27
+
28
+ ## 真机结果 / Real-arm results(2026-07-13)
29
+
30
+ 每轮场景放 3 只橙子,记每轮**放入盘中的橙子数**。Each round has 3 oranges on the table; we count oranges placed on the plate per round.
31
+
32
+ | 策略 / Policy | 轮次成绩 / Per-round | 均值 / Mean |
33
+ |---|---|---|
34
+ | **本模型(FlowDP simwarm 7000)/ this model** | 2, 2, 3, 1, 1, 2, 0, 3, 2, 1(10 轮) | **1.7 只/轮(56.7%)** |
35
+ | ACT simwarm 5000([wsagi/ACT-Real-PickOrange](https://huggingface.co/wsagi/ACT-Real-PickOrange)) | 2, 1, 1, 3, 2, 1, 0, 1, 2, 2(10 轮) | 1.5 只/轮 |
36
+ | FlowDP 从零 9000 / from-scratch | 能抓取,放置不稳 / grasps, unstable placement | |
37
+
38
+ - 放入 ≥1 只的轮 9/10,两轮 3 只满放。**真机 56.7% 甚至超过同模型的仿真榜成绩 45.0%**。
39
+ - **sim-warm-start 再次变现**(与 ACT 线结论一致),且 FlowDP simwarm 反超 ACT simwarm(1.7 vs 1.5 只/轮)成为**真机全场 best**。
40
+
41
+ ## 场景 / Scene
42
+
43
+ 顶部相机视角(真机布置)/ top-camera view of the real setup:
44
+
45
+ ![Top-Cam-DP](Top-Cam-DP.jpeg)
46
+
47
+ ## 配方 / Recipe
48
+
49
+ | 项 | 值 |
50
+ |---|---|
51
+ | 架构 / Arch | FlowDP = lerobot DiffusionPolicy conv-UNet 骨干 × rectified-flow head(DDPM→flow 替换;horizon 16 / n_action_steps 8 / n_obs_steps 2) |
52
+ | init | [wsagi/FlowHeads-DiffusionPolicy-PickOrange](https://huggingface.co/wsagi/FlowHeads-DiffusionPolicy-PickOrange)(仿真 strict 20-round 45.0% best,step-9800) |
53
+ | 数据 / Data | [wsagi/leisaac-real-pick-orange](https://huggingface.co/datasets/wsagi/leisaac-real-pick-orange) 30 集 / 25,091 帧 @30fps |
54
+ | 续训 / Fine-tune | 7000 步(≈4.5 ep),lr 1e-4,batch 16,原生 480×640 |
55
+ | 观测 / Obs | `front` + `wrist` 相机 640×480 + 6 维关节位置 |
56
+
57
+ ## 用法 / Usage
58
+
59
+ 代码在 [vitorcen/LeIsaac-Training](https://github.com/vitorcen/LeIsaac-Training) 的 `FlowHeads/` 子包(`flowdp` 是自定义 policy type,需先注册再 `from_pretrained`):
60
+
61
+ ```python
62
+ import sys; sys.path.insert(0, "<repo>/dependencies/FlowHeads")
63
+ import flowdp.configuration_flowdp # registers type="flowdp"
64
+ from flowdp.modeling_flowdp import FlowDPPolicy
65
+
66
+ policy = FlowDPPolicy.from_pretrained("wsagi/FlowHeads-DiffusionPolicy-Real-PickOrange")
67
+ ```
68
+
69
+ ## 相关项目 / Related projects
70
+
71
+ - <https://github.com/vitorcen/isaaclab-experience> — 伞仓:多 VLA 基线训练/评测全记录
72
+ - <https://github.com/vitorcen/LeIsaac-Training> — LeIsaac:SO-101 PickOrange 训练 / benchmark / 真机脚手架
Top-Cam-DP.jpeg ADDED

Git LFS Details

  • SHA256: e37ae972254a3433f9984988d11e3cfea10f5b5508acc87394777f49eddacba2
  • Pointer size: 131 Bytes
  • Size of remote file: 176 kB
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "flowdp",
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
+ "observation.images.wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 6
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": false,
39
+ "push_to_hub": false,
40
+ "repo_id": null,
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": "/home/david/work/isaaclab-experience/LeIsaac/outputs/flowdp-real-pickorange-simwarm/checkpoints/006000/pretrained_model",
45
+ "horizon": 16,
46
+ "n_action_steps": 8,
47
+ "normalization_mapping": {
48
+ "VISUAL": "MEAN_STD",
49
+ "STATE": "MIN_MAX",
50
+ "ACTION": "MIN_MAX"
51
+ },
52
+ "drop_n_last_frames": 7,
53
+ "vision_backbone": "resnet18",
54
+ "resize_shape": [
55
+ 480,
56
+ 640
57
+ ],
58
+ "crop_ratio": 1.0,
59
+ "crop_shape": null,
60
+ "crop_is_random": true,
61
+ "pretrained_backbone_weights": null,
62
+ "use_group_norm": true,
63
+ "spatial_softmax_num_keypoints": 32,
64
+ "use_separate_rgb_encoder_per_camera": false,
65
+ "down_dims": [
66
+ 512,
67
+ 1024,
68
+ 2048
69
+ ],
70
+ "kernel_size": 5,
71
+ "n_groups": 8,
72
+ "diffusion_step_embed_dim": 128,
73
+ "use_film_scale_modulation": true,
74
+ "noise_scheduler_type": "DDPM",
75
+ "num_train_timesteps": 100,
76
+ "beta_schedule": "squaredcos_cap_v2",
77
+ "beta_start": 0.0001,
78
+ "beta_end": 0.02,
79
+ "prediction_type": "epsilon",
80
+ "clip_sample": true,
81
+ "clip_sample_range": 1.0,
82
+ "num_inference_steps": 10,
83
+ "compile_model": false,
84
+ "compile_mode": "reduce-overhead",
85
+ "do_mask_loss_for_padding": false,
86
+ "optimizer_lr": 0.0001,
87
+ "optimizer_betas": [
88
+ 0.95,
89
+ 0.999
90
+ ],
91
+ "optimizer_eps": 1e-08,
92
+ "optimizer_weight_decay": 1e-06,
93
+ "scheduler_name": "cosine",
94
+ "scheduler_warmup_steps": 500
95
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f1d0289e52e422c13c17c61901e7f05d29f2bf1bce8943e497f43205c5327ef
3
+ size 1066518712
policy_postprocessor.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "unnormalizer_processor",
6
+ "config": {
7
+ "eps": 1e-08,
8
+ "features": {
9
+ "action": {
10
+ "type": "ACTION",
11
+ "shape": [
12
+ 6
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "MEAN_STD",
18
+ "STATE": "MIN_MAX",
19
+ "ACTION": "MIN_MAX"
20
+ }
21
+ },
22
+ "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
23
+ },
24
+ {
25
+ "registry_name": "device_processor",
26
+ "config": {
27
+ "device": "cpu",
28
+ "float_dtype": null
29
+ }
30
+ }
31
+ ]
32
+ }
policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfe83860cbc719e7206286401e70bca6b2a1283211ff71e8876037f7ffd0cbd3
3
+ size 7552
policy_preprocessor.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {}
8
+ }
9
+ },
10
+ {
11
+ "registry_name": "to_batch_processor",
12
+ "config": {}
13
+ },
14
+ {
15
+ "registry_name": "device_processor",
16
+ "config": {
17
+ "device": "cuda",
18
+ "float_dtype": null
19
+ }
20
+ },
21
+ {
22
+ "registry_name": "normalizer_processor",
23
+ "config": {
24
+ "eps": 1e-08,
25
+ "features": {
26
+ "observation.state": {
27
+ "type": "STATE",
28
+ "shape": [
29
+ 6
30
+ ]
31
+ },
32
+ "observation.images.front": {
33
+ "type": "VISUAL",
34
+ "shape": [
35
+ 3,
36
+ 480,
37
+ 640
38
+ ]
39
+ },
40
+ "observation.images.wrist": {
41
+ "type": "VISUAL",
42
+ "shape": [
43
+ 3,
44
+ 480,
45
+ 640
46
+ ]
47
+ },
48
+ "action": {
49
+ "type": "ACTION",
50
+ "shape": [
51
+ 6
52
+ ]
53
+ }
54
+ },
55
+ "norm_map": {
56
+ "VISUAL": "MEAN_STD",
57
+ "STATE": "MIN_MAX",
58
+ "ACTION": "MIN_MAX"
59
+ }
60
+ },
61
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
62
+ }
63
+ ]
64
+ }
policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfe83860cbc719e7206286401e70bca6b2a1283211ff71e8876037f7ffd0cbd3
3
+ size 7552
train_config.json ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "local/so101-real-pickorange",
4
+ "root": "/home/david/work/isaaclab-experience/LeIsaac/datasets/raw/so101-real-pickorange",
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": "pyav",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "flowdp",
85
+ "n_obs_steps": 2,
86
+ "input_features": {
87
+ "observation.state": {
88
+ "type": "STATE",
89
+ "shape": [
90
+ 6
91
+ ]
92
+ },
93
+ "observation.images.front": {
94
+ "type": "VISUAL",
95
+ "shape": [
96
+ 3,
97
+ 480,
98
+ 640
99
+ ]
100
+ },
101
+ "observation.images.wrist": {
102
+ "type": "VISUAL",
103
+ "shape": [
104
+ 3,
105
+ 480,
106
+ 640
107
+ ]
108
+ }
109
+ },
110
+ "output_features": {
111
+ "action": {
112
+ "type": "ACTION",
113
+ "shape": [
114
+ 6
115
+ ]
116
+ }
117
+ },
118
+ "device": "cuda",
119
+ "use_amp": false,
120
+ "use_peft": false,
121
+ "push_to_hub": false,
122
+ "repo_id": null,
123
+ "private": null,
124
+ "tags": null,
125
+ "license": null,
126
+ "pretrained_path": "/home/david/work/isaaclab-experience/LeIsaac/outputs/flowdp-real-pickorange-simwarm/checkpoints/006000/pretrained_model",
127
+ "horizon": 16,
128
+ "n_action_steps": 8,
129
+ "normalization_mapping": {
130
+ "VISUAL": "MEAN_STD",
131
+ "STATE": "MIN_MAX",
132
+ "ACTION": "MIN_MAX"
133
+ },
134
+ "drop_n_last_frames": 7,
135
+ "vision_backbone": "resnet18",
136
+ "resize_shape": [
137
+ 480,
138
+ 640
139
+ ],
140
+ "crop_ratio": 1.0,
141
+ "crop_shape": null,
142
+ "crop_is_random": true,
143
+ "pretrained_backbone_weights": null,
144
+ "use_group_norm": true,
145
+ "spatial_softmax_num_keypoints": 32,
146
+ "use_separate_rgb_encoder_per_camera": false,
147
+ "down_dims": [
148
+ 512,
149
+ 1024,
150
+ 2048
151
+ ],
152
+ "kernel_size": 5,
153
+ "n_groups": 8,
154
+ "diffusion_step_embed_dim": 128,
155
+ "use_film_scale_modulation": true,
156
+ "noise_scheduler_type": "DDPM",
157
+ "num_train_timesteps": 100,
158
+ "beta_schedule": "squaredcos_cap_v2",
159
+ "beta_start": 0.0001,
160
+ "beta_end": 0.02,
161
+ "prediction_type": "epsilon",
162
+ "clip_sample": true,
163
+ "clip_sample_range": 1.0,
164
+ "num_inference_steps": 10,
165
+ "compile_model": false,
166
+ "compile_mode": "reduce-overhead",
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
+ },
178
+ "output_dir": "/home/david/work/isaaclab-experience/LeIsaac/outputs/flowdp-real-pickorange-simwarm",
179
+ "job_name": "flowdp",
180
+ "resume": true,
181
+ "seed": 1000,
182
+ "num_workers": 4,
183
+ "batch_size": 16,
184
+ "steps": 12000,
185
+ "eval_freq": 20000,
186
+ "log_freq": 200,
187
+ "tolerance_s": 0.0001,
188
+ "save_checkpoint": true,
189
+ "save_freq": 1000,
190
+ "use_policy_training_preset": true,
191
+ "optimizer": {
192
+ "type": "adam",
193
+ "lr": 0.0001,
194
+ "weight_decay": 1e-06,
195
+ "grad_clip_norm": 10.0,
196
+ "betas": [
197
+ 0.95,
198
+ 0.999
199
+ ],
200
+ "eps": 1e-08
201
+ },
202
+ "scheduler": {
203
+ "type": "diffuser",
204
+ "num_warmup_steps": 500,
205
+ "name": "cosine"
206
+ },
207
+ "eval": {
208
+ "n_episodes": 50,
209
+ "batch_size": 50,
210
+ "use_async_envs": false
211
+ },
212
+ "wandb": {
213
+ "enable": false,
214
+ "disable_artifact": false,
215
+ "project": "lerobot",
216
+ "entity": null,
217
+ "notes": null,
218
+ "run_id": null,
219
+ "mode": null
220
+ },
221
+ "peft": null,
222
+ "use_rabc": false,
223
+ "rabc_progress_path": null,
224
+ "rabc_kappa": 0.01,
225
+ "rabc_epsilon": 1e-06,
226
+ "rabc_head_mode": "sparse",
227
+ "rename_map": {},
228
+ "checkpoint_path": "/home/david/work/isaaclab-experience/LeIsaac/outputs/flowdp-real-pickorange-simwarm/checkpoints/006000"
229
+ }