sixpigs1 commited on
Commit
15d1dad
Β·
verified Β·
1 Parent(s): 1cb92e5

Document model checkpoint examples and usage

Browse files
Files changed (1) hide show
  1. README.md +273 -0
README.md CHANGED
@@ -1,3 +1,276 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ library_name: pytorch
6
+ datasets:
7
+ - MINT-SJTU/Evo-DexBench-dataset
8
+ tags:
9
+ - robotics
10
+ - dexterous-manipulation
11
+ - diffusion-policy
12
+ - tactile
13
+ - simulation
14
  ---
15
+
16
+ # Evo-DexBench Model Access Examples
17
+
18
+ [![Paper](https://img.shields.io/badge/arXiv-Paper-red)](https://arxiv.org/abs/2610.21180)
19
+ [![Code](https://img.shields.io/badge/πŸ’»_Code-GitHub-blue)](https://github.com/MINT-SJTU/Evo-DexBench)
20
+ [![Project Page](https://img.shields.io/badge/🌐_Project_Page-Website-blue)](https://mint-sjtu.github.io/Evo-DexBench.io)
21
+ [![Dataset](https://img.shields.io/badge/πŸ€—_Dataset-Hugging_Face-yellow)](https://huggingface.co/datasets/MINT-SJTU/Evo-DexBench-dataset)
22
+ [![Assets](https://img.shields.io/badge/πŸ“¦_Assets-Hugging_Face-yellow)](https://huggingface.co/datasets/MINT-SJTU/Evo-DexBench_Assets)
23
+ ![License](https://img.shields.io/badge/License-Apache_2.0-green)
24
+
25
+ Six inference checkpoint examples for **Evo-DexBench**, developed by
26
+ **MINT-SJTU**. Use them to connect a policy server to the benchmark's simulator
27
+ and reproduce the model integration workflow.
28
+
29
+ ## ✨ Overview
30
+
31
+ - **Three policies:** DP-T, DP-C, and KineDex.
32
+ - **Two checkpoints per policy:** Single2 Core and Double3 Core.
33
+ - **Four tasks per checkpoint:** separate single-arm and bimanual policies.
34
+ - **Independent model and simulation environments**, connected through the
35
+ benchmark's WebSocket + MessagePack Policy API.
36
+
37
+ These are task-family specialists, not universal policies for all 30 benchmark
38
+ tasks. This repository contains model checkpoints, not simulation assets,
39
+ demonstrations, or training code.
40
+
41
+ ## πŸ“¦ Contents
42
+
43
+ The six checkpoints total approximately **5.80 GB** (**5.40 GiB**).
44
+
45
+ ```text
46
+ Evo-DexBench_model_access_example/
47
+ β”œβ”€β”€ DP-T/
48
+ β”‚ β”œβ”€β”€ single2-core.ckpt
49
+ β”‚ └── double3-core.ckpt
50
+ β”œβ”€β”€ DP-C/
51
+ β”‚ β”œβ”€β”€ single2-core.ckpt
52
+ β”‚ └── double3-core.ckpt
53
+ β”œβ”€β”€ KineDex/
54
+ β”‚ β”œβ”€β”€ single2-core.ckpt
55
+ β”‚ └── double3-core.ckpt
56
+ β”œβ”€β”€ manifest.json
57
+ └── README.md
58
+ ```
59
+
60
+ | Policy | Architecture | Inputs | Single2 / Double3 size |
61
+ | --- | --- | --- | --- |
62
+ | DP-T | Official Diffusion Policy Transformer | RGB + robot state | 0.171 / 0.171 GB |
63
+ | DP-C | Official Diffusion Policy convolutional U-Net | RGB + robot state | 1.177 / 1.185 GB |
64
+ | KineDex | Official KineDex visual/tactile diffusion policy with the Evo-DexBench adapter | RGB + robot state + tactile | 1.544 / 1.552 GB |
65
+
66
+ Each checkpoint was trained jointly on its four Core tasks. The exported
67
+ payload retains the original inference EMA weights, normalizers, model
68
+ configuration, and policy metadata **without changing tensor precision or
69
+ values**. EMA weights are stored under the inference model entry; duplicate
70
+ weights, optimizer state, and training-progress state have been removed.
71
+ These files are **inference-only**, not full training-resume checkpoints.
72
+ They use the native policy-workspace `.ckpt` format, not a Transformers or
73
+ Diffusers `from_pretrained` model layout.
74
+
75
+ The [manifest](manifest.json) records file sizes, SHA256 checksums, and
76
+ observation contracts.
77
+
78
+ ### Supported tasks
79
+
80
+ | Checkpoint group | Task ID | Task name |
81
+ | --- | --- | --- |
82
+ | `single2-core` | `m06_v1` | FaucetHandle |
83
+ | | `m07_v1` | MouseWheel |
84
+ | | `m08_v1` | CoffeeKnob |
85
+ | | `m09_v1` | KettleLidTab |
86
+ | `double3-core` | `b11_v1` | LaptopClosing |
87
+ | | `b12_v1` | StaplerPaperMark |
88
+ | | `b13_v1` | ScissorsOpening |
89
+ | | `b14_v1` | BoxLidOpening |
90
+
91
+ ### Observation and action contract
92
+
93
+ All checkpoints use **30 Hz control** and **two observation frames**. Benchmark
94
+ simulation runs at **120 Hz**. Default receding-horizon execution applies eight
95
+ actions before requesting the next chunk.
96
+
97
+ | Group | RGB views, in order | State | DP motion action | KineDex action |
98
+ | --- | --- | ---: | ---: | ---: |
99
+ | Single2 | context, interaction, wrist_right | 31 | 30 | 30 motion + 5 force |
100
+ | Double3 | **interaction**, wrist_left, wrist_right | 62 | 60 | 60 motion + 10 force |
101
+
102
+ RGB views are supplied as `224Γ—224` model inputs. KineDex uses full tactile
103
+ observations with five finger arrays per hand, padded to `29Γ—1` each. Its
104
+ client converts predicted finger forces into bounded joint-control residuals.
105
+ DP-T and DP-C do not request tactile observations. These examples do not use
106
+ depth inputs.
107
+
108
+ **Double3 uses the interaction camera, not the default dual-arm context view.**
109
+ Select the camera options shown below when evaluating its checkpoints. DP
110
+ retains the original 100-step DDPM inference; KineDex retains its checkpoint's
111
+ DDIM settings. Do not change action timing or sensor contracts to compensate
112
+ for a slower GPU.
113
+
114
+ ## πŸš€ Quick Start
115
+
116
+ Run setup and evaluation from an
117
+ [Evo-DexBench code checkout](https://github.com/MINT-SJTU/Evo-DexBench).
118
+ DP checkpoints require a code revision containing
119
+ `examples/policies/diffusion_policy/` and the `policy-dp` setup profile. If these
120
+ are absent, obtain a DP-enabled release before following the DP commands.
121
+
122
+ ### 1. Prepare the simulator and assets
123
+
124
+ ```bash
125
+ tools/setup_environment.sh --profile sim --name evodex-sim \
126
+ --with-dp-client --with-kinedex-client
127
+ conda activate evodex-sim
128
+ hf auth login
129
+ dexbench assets download --asset-dir "$PWD/assets"
130
+ source assets/activate_evodex_assets.sh
131
+ ```
132
+
133
+ Accept the terms and obtain access to the official
134
+ [PartNet-Mobility repository](https://huggingface.co/datasets/sapien-sim/PartNetMobility)
135
+ before configuring assets. See the
136
+ [asset repository](https://huggingface.co/datasets/MINT-SJTU/Evo-DexBench_Assets)
137
+ for asset distribution and licensing details.
138
+
139
+ ### 2. Download checkpoints
140
+
141
+ In the simulator environment:
142
+
143
+ ```bash
144
+ hf download MINT-SJTU/Evo-DexBench_model_access_example \
145
+ --repo-type model --local-dir checkpoints/model-access-example
146
+ ```
147
+
148
+ To download only one policy, add, for example, `--include 'DP-C/*.ckpt'`.
149
+ Only load checkpoints from trusted sources: these `.ckpt` files use Python
150
+ pickle and must be loaded through the provided model server.
151
+
152
+ ### 3. Run DP-C or DP-T
153
+
154
+ Create the independent model environment:
155
+
156
+ ```bash
157
+ tools/setup_environment.sh --profile policy-dp --name evodex-dp
158
+ ```
159
+
160
+ Terminal 1 β€” start a DP-C server:
161
+
162
+ ```bash
163
+ conda activate evodex-dp
164
+ python -m dp_policy.server \
165
+ --checkpoint checkpoints/model-access-example/DP-C/single2-core.ckpt \
166
+ --upstream-root "$PWD/.third_party/DiffusionPolicy-official" \
167
+ --host 127.0.0.1 --port 8100 --device cuda:0
168
+ ```
169
+
170
+ Terminal 2 β€” run ten diagnostic episodes:
171
+
172
+ ```bash
173
+ conda activate evodex-sim
174
+ source assets/activate_evodex_assets.sh
175
+ dexbench evaluate --policy dp_c --task-id m09_v1 \
176
+ --episodes 10 --num-envs 1 --obs-mode rgb \
177
+ --policy-kwargs '{"host":"127.0.0.1","port":8100,"embodiment":"single","execute_steps":8}' \
178
+ --log results/dp_c_m09.jsonl
179
+ ```
180
+
181
+ For **DP-T**, serve `DP-T/single2-core.ckpt` and select `--policy dp_t` in the
182
+ client. Either single-arm checkpoint supports all four Single2 Core tasks.
183
+
184
+ For **Double3**, restart the server with the matching
185
+ `double3-core.ckpt`, then use a supported bimanual task and the interaction view:
186
+
187
+ ```bash
188
+ dexbench evaluate --policy dp_c --task-id b11_v1 \
189
+ --episodes 10 --num-envs 1 --obs-mode rgb \
190
+ --policy-kwargs '{"host":"127.0.0.1","port":8100,"embodiment":"dual","execute_steps":8,"camera_roles":["interaction","wrist_left","wrist_right"]}' \
191
+ --log results/dp_c_b11.jsonl
192
+ ```
193
+
194
+ For a DP-T Double3 checkpoint, use the same camera contract and `--policy dp_t`.
195
+
196
+ ### 4. Run KineDex
197
+
198
+ Create its independent model environment:
199
+
200
+ ```bash
201
+ tools/setup_environment.sh --profile policy-kinedex --name evodex-kinedex
202
+ ```
203
+
204
+ Terminal 1 β€” start the model server:
205
+
206
+ ```bash
207
+ conda activate evodex-kinedex
208
+ python -m kinedex_policy.server \
209
+ --checkpoint checkpoints/model-access-example/KineDex/single2-core.ckpt \
210
+ --upstream-root "$PWD/.third_party/KineDex-official" \
211
+ --host 127.0.0.1 --port 8400 --device cuda:0
212
+ ```
213
+
214
+ Terminal 2 β€” evaluate with full tactile inputs:
215
+
216
+ ```bash
217
+ conda activate evodex-sim
218
+ source assets/activate_evodex_assets.sh
219
+ dexbench evaluate --policy kinedex --task-id m07_v1 \
220
+ --episodes 10 --num-envs 1 --obs-mode rgb \
221
+ --policy-kwargs '{"host":"127.0.0.1","port":8400,"embodiment":"single","execute_steps":8,"tactile_mode":"full"}' \
222
+ --log results/kinedex_m07.jsonl
223
+ ```
224
+
225
+ For **Double3**, restart the server with `KineDex/double3-core.ckpt`, then run:
226
+
227
+ ```bash
228
+ dexbench evaluate --policy kinedex --task-id b11_v1 \
229
+ --episodes 10 --num-envs 1 --obs-mode rgb \
230
+ --policy-kwargs '{"host":"127.0.0.1","port":8400,"embodiment":"dual","execute_steps":8,"tactile_mode":"full","camera_profile":"interaction"}' \
231
+ --log results/kinedex_b11.jsonl
232
+ ```
233
+
234
+ The ten-episode commands are integration checks, not standard benchmark
235
+ results. To run the standard 100-episode, four-worker protocol, omit
236
+ `--episodes` and `--num-envs`. Use a new log filename for every invocation.
237
+ GPU memory use includes both model inference and simulation rendering; a
238
+ single-worker check is the starting point for memory-constrained machines.
239
+
240
+ Training and additional policy options are documented in the code repository's
241
+ DP and KineDex examples. This model repository does not duplicate their code.
242
+
243
+ ## βš–οΈ License
244
+
245
+ The released checkpoints are provided under **Apache License 2.0** by
246
+ **MINT-SJTU**. Upstream policy implementations, simulation software, datasets,
247
+ and assets retain their respective licenses. This repository does not
248
+ redistribute PartNet-Mobility geometry.
249
+
250
+ ## πŸ™ Acknowledgement
251
+
252
+ We thank the authors of
253
+ [Diffusion Policy](https://github.com/real-stanford/diffusion_policy),
254
+ [KineDex](https://github.com/DinoMini00/KineDex_code),
255
+ [LeRobot](https://github.com/huggingface/lerobot),
256
+ [ManiSkill](https://github.com/haosulab/ManiSkill), and
257
+ [SAPIEN](https://github.com/haosulab/SAPIEN) for their open-source tools.
258
+ The adapters pin Diffusion Policy to
259
+ `5ba07ac6661db573af695b419a7947ecb704690f` and KineDex to
260
+ `9246f77d7b969b181b0f1b600601b9a9c8083011`.
261
+
262
+ ## πŸ“„ Citation
263
+
264
+ If you find Evo-DexBench useful in your research, please cite:
265
+
266
+ ```bibtex
267
+ @misc{cheng2026evodexbenchbenchmarkinggeneralizationrelated,
268
+ title={Evo-DexBench: Benchmarking Generalization across Related Tasks for Dexterous Manipulation},
269
+ author={Bing Cheng and Yiran Mao and Zewei Ye and Yifan Jin and Xinyi Chen and Ruifeng Tu and Shuhuai Wang and Tao Lin and Zhimu Zhou and Yuxin Du and Fangwei Zhong and Junchi Yan and Bo Zhao},
270
+ year={2026},
271
+ eprint={2610.21180},
272
+ archivePrefix={arXiv},
273
+ primaryClass={cs.RO},
274
+ url={https://arxiv.org/abs/2610.21180},
275
+ }
276
+ ```