sixpigs1 commited on
Commit
d85a8cb
Β·
verified Β·
1 Parent(s): 93ccde9

Document pi0.5 checkpoint access and inference

Browse files
Files changed (1) hide show
  1. README.md +147 -50
README.md CHANGED
@@ -1,14 +1,14 @@
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
  ---
@@ -20,27 +20,27 @@ tags:
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/
@@ -53,27 +53,36 @@ Evo-DexBench_model_access_example/
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
 
@@ -87,12 +96,16 @@ observation contracts.
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
  | --- | --- | ---: | ---: | ---: |
@@ -105,11 +118,17 @@ 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
 
@@ -138,16 +157,28 @@ 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
 
@@ -231,8 +262,67 @@ dexbench evaluate --policy kinedex --task-id b11_v1 \
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.
@@ -242,22 +332,29 @@ 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
 
 
1
  ---
 
2
  language:
3
  - en
 
4
  datasets:
5
  - MINT-SJTU/Evo-DexBench-dataset
6
  tags:
7
  - robotics
8
  - dexterous-manipulation
9
  - diffusion-policy
10
+ - vision-language-action
11
+ - jax
12
  - tactile
13
  - simulation
14
  ---
 
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
 
24
+ Eight inference checkpoint examples for **Evo-DexBench**, developed by
25
  **MINT-SJTU**. Use them to connect a policy server to the benchmark's simulator
26
  and reproduce the model integration workflow.
27
 
28
  ## ✨ Overview
29
 
30
+ - **Four policies** across eight inference checkpoints.
31
+ - **Single-arm** checkpoints cover Single2 Core for all four policies.
32
+ - **Bimanual** checkpoints cover Double3 Core for DP-T, DP-C, and KineDex,
33
+ and Double2 Core for Ο€0.5.
34
+ - **Separate model and simulator environments** communicate over WebSocket.
35
+ The Ο€0.5 adapter uses OpenPI's WebSocket protocol.
36
 
37
+ Each checkpoint covers four tasks in one benchmark task family. The links above
38
+ point to the separate benchmark code, datasets, and simulation assets.
 
39
 
40
  ## πŸ“¦ Contents
41
 
42
+ The eight checkpoints total approximately **30.68 GB**. DP-T, DP-C, and
43
+ KineDex account for **5.80 GB**. The two Ο€0.5 checkpoints account for **24.88 GB**.
44
 
45
  ```text
46
  Evo-DexBench_model_access_example/
 
53
  β”œβ”€β”€ KineDex/
54
  β”‚ β”œβ”€β”€ single2-core.ckpt
55
  β”‚ └── double3-core.ckpt
56
+ β”œβ”€β”€ pi05/
57
+ β”‚ β”œβ”€β”€ single2-core/
58
+ β”‚ β”‚ β”œβ”€β”€ params/
59
+ β”‚ β”‚ └── assets/single2-core/norm_stats.json
60
+ β”‚ β”œβ”€β”€ double2-core/
61
+ β”‚ β”‚ β”œβ”€β”€ params/
62
+ β”‚ β”‚ └── assets/double2-core/norm_stats.json
63
+ β”‚ β”œβ”€β”€ LICENSE_GEMMA.txt
64
+ β”‚ └── NOTICE
65
  β”œβ”€β”€ manifest.json
66
  └── README.md
67
  ```
68
 
69
+ | Policy | Inputs | Single-arm checkpoint | Bimanual checkpoint |
70
  | --- | --- | --- | --- |
71
+ | DP-T | RGB + robot state | Single2 Β· 0.171 GB | Double3 Β· 0.171 GB |
72
+ | DP-C | RGB + robot state | Single2 Β· 1.177 GB | Double3 Β· 1.185 GB |
73
+ | KineDex | RGB + robot state + tactile | Single2 Β· 1.544 GB | Double3 Β· 1.552 GB |
74
+ | Ο€0.5 (OpenPI JAX) | RGB + robot state + task instruction | Single2 Β· 12.441 GB | Double2 Β· 12.442 GB |
75
+
76
+ DP-T (Transformer), DP-C (convolutional U-Net), and KineDex use native policy
77
+ workspace `.ckpt` files. These exports preserve the original EMA weights,
78
+ normalizers, model configuration, and policy metadata. The Ο€0.5 exports use
79
+ native OpenPI JAX/Orbax directories with float32 EMA weights in `params/` and
80
+ the training normalization statistics in `assets/`. Keep both subdirectories
81
+ together. All eight exports are for inference and omit the optimizer and
82
+ training state required to resume the original runs.
83
+
84
+ The [manifest](manifest.json) records checkpoint sizes, SHA-256 checksums,
85
+ and observation contracts.
86
 
87
  ### Supported tasks
88
 
 
96
  | | `b12_v1` | StaplerPaperMark |
97
  | | `b13_v1` | ScissorsOpening |
98
  | | `b14_v1` | BoxLidOpening |
99
+ | `double2-core` (Ο€0.5) | `b06_v1` | PenCapping |
100
+ | | `b07_v1` | CupSleeveFit |
101
+ | | `b08_v1` | BottleFunnelInsertion |
102
+ | | `b09_v1` | PlugInsertion |
103
 
104
  ### Observation and action contract
105
 
106
+ All checkpoints use **30 Hz control** with **120 Hz simulation**. DP-T, DP-C,
107
+ and KineDex use two observation frames and execute eight actions per request
108
+ by default.
109
 
110
  | Group | RGB views, in order | State | DP motion action | KineDex action |
111
  | --- | --- | ---: | ---: | ---: |
 
118
  DP-T and DP-C do not request tactile observations. These examples do not use
119
  depth inputs.
120
 
121
+ For Double3, select the interaction camera with the client options shown
122
+ below. DP uses the original 100-step DDPM inference, and KineDex uses its
123
+ checkpoint's DDIM settings.
124
+
125
+ Ο€0.5 uses one observation frame and the task instruction. It predicts a
126
+ 50-action chunk and executes ten actions per request by default.
127
+
128
+ | Ο€0.5 group | RGB views, in order | State (model) | Action (model) | Prompt token limit |
129
+ | --- | --- | ---: | ---: | ---: |
130
+ | Single2 | context, interaction, wrist_right | 31 (32) | 30 (32) | 200 |
131
+ | Double2 | context, wrist_left, wrist_right | 62 (64) | 60 (64) | 384 |
132
 
133
  ## πŸš€ Quick Start
134
 
 
157
 
158
  ### 2. Download checkpoints
159
 
160
+ Select the policy and task group you want to run. For example, download a
161
+ single DP-C checkpoint:
162
 
163
  ```bash
164
+ hf download MINT-SJTU/Evo-DexBench_model_access_example DP-C/single2-core.ckpt \
165
  --repo-type model --local-dir checkpoints/model-access-example
166
  ```
167
 
168
+ For Ο€0.5, download the complete Orbax directory along with the license,
169
+ notice, and manifest:
170
+
171
+ ```bash
172
+ hf download MINT-SJTU/Evo-DexBench_model_access_example \
173
+ --repo-type model --local-dir checkpoints/model-access-example \
174
+ --include 'pi05/single2-core/*' --include 'pi05/LICENSE_GEMMA.txt' \
175
+ --include 'pi05/NOTICE' --include 'manifest.json'
176
+ ```
177
+
178
+ Use `pi05/double2-core/*` for the bimanual checkpoint. Each Ο€0.5 directory
179
+ requires about 12.44 GB of disk space. Running `hf download` without a file
180
+ or include filter downloads all eight checkpoints. Load PyTorch `.ckpt` files
181
+ from trusted sources because their format uses Python pickle.
182
 
183
  ### 3. Run DP-C or DP-T
184
 
 
262
  --log results/kinedex_b11.jsonl
263
  ```
264
 
265
+ ### 5. Run Ο€0.5 with the Evo-DexBench adapter
266
+
267
+ For Ο€0.5 simulator inference, use a release of the
268
+ [official Evo-DexBench repository](https://github.com/MINT-SJTU/Evo-DexBench)
269
+ that includes `examples/policies/pi05/` and the `policy-pi05` setup profile.
270
+ The adapter supplies the camera, state, and action mappings for
271
+ [OpenPI JAX](https://github.com/Physical-Intelligence/openpi).
272
+
273
+ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) before
274
+ setting up the model server. Run the setup from the benchmark checkout.
275
+ It creates a separate Python 3.11 environment in `.third_party/openpi/.venv`:
276
+
277
+ ```bash
278
+ tools/setup_environment.sh --profile policy-pi05
279
+ ```
280
+
281
+ If you already created the simulator environment in step 1, add the Ο€0.5
282
+ client to it:
283
+
284
+ ```bash
285
+ conda activate evodex-sim
286
+ python -m pip install -e examples/policies/pi05
287
+ ```
288
+
289
+ For a new Ο€0.5 simulator environment, use
290
+ `tools/setup_environment.sh --profile sim --name evodex-sim --with-pi05-client`
291
+ and complete the asset setup in step 1. The client package installs the
292
+ lightweight OpenPI client and requires `websockets>=15`.
293
+
294
+ Terminal 1 runs the model server from the benchmark checkout:
295
+
296
+ ```bash
297
+ export OPENPI_ROOT="$PWD/.third_party/openpi"
298
+ "$OPENPI_ROOT/.venv/bin/python" examples/policies/pi05/serve.py \
299
+ --openpi-root "$OPENPI_ROOT" --embodiment single \
300
+ --checkpoint checkpoints/model-access-example/pi05/single2-core --port 8000
301
+ ```
302
+
303
+ Wait for the server to listen on port 8000 before starting the simulator.
304
+
305
+ Terminal 2 runs ten simulator episodes:
306
+
307
+ ```bash
308
+ conda activate evodex-sim
309
+ source assets/activate_evodex_assets.sh
310
+ dexbench evaluate --policy pi05 --task-id m09_v1 \
311
+ --episodes 10 --num-envs 1 --obs-mode rgb \
312
+ --control-mode arm_pd_ee_delta_pose_hand_pd_joint_pos \
313
+ --policy-kwargs '{"host":"127.0.0.1","port":8000,"embodiment":"single","execute_steps":10}' \
314
+ --log results/pi05_m09.jsonl
315
+ ```
316
+
317
+ For Double2, set the server's checkpoint path to
318
+ `checkpoints/model-access-example/pi05/double2-core` and pass `--embodiment dual`.
319
+ Set `"embodiment":"dual"` in the client options and select one of
320
+ `b06_v1`–`b09_v1`. The adapter uses the context camera for Double2.
321
+
322
+ ### Evaluation protocol
323
+
324
+ The ten-episode commands run diagnostic integration checks. To run the
325
+ standard 100-episode, four-worker protocol, omit
326
  `--episodes` and `--num-envs`. Use a new log filename for every invocation.
327
  GPU memory use includes both model inference and simulation rendering; a
328
  single-worker check is the starting point for memory-constrained machines.
 
332
 
333
  ## βš–οΈ License
334
 
335
+ MINT-SJTU provides the DP-T, DP-C, and KineDex checkpoints under **Apache
336
+ License 2.0**. Upstream implementations, simulation software, datasets, and
337
+ assets retain their respective licenses.
338
+
339
+ MINT-SJTU fine-tuned the PaliGemma-based Ο€0.5 model on Evo-DexBench
340
+ demonstrations. The Ο€0.5 checkpoints are subject to the Gemma Terms of Use,
341
+ including the use restrictions in the Gemma Prohibited Use Policy. See the
342
+ [Gemma Terms of Use](pi05/LICENSE_GEMMA.txt), [redistribution notice](pi05/NOTICE),
343
+ and [Gemma Prohibited Use Policy](https://ai.google.dev/gemma/prohibited_use_policy).
344
 
345
  ## πŸ™ Acknowledgement
346
 
347
  We thank the authors of
348
  [Diffusion Policy](https://github.com/real-stanford/diffusion_policy),
349
  [KineDex](https://github.com/DinoMini00/KineDex_code),
350
+ [OpenPI](https://github.com/Physical-Intelligence/openpi),
351
  [LeRobot](https://github.com/huggingface/lerobot),
352
  [ManiSkill](https://github.com/haosulab/ManiSkill), and
353
  [SAPIEN](https://github.com/haosulab/SAPIEN) for their open-source tools.
354
  The adapters pin Diffusion Policy to
355
+ `5ba07ac6661db573af695b419a7947ecb704690f`, KineDex to
356
+ `9246f77d7b969b181b0f1b600601b9a9c8083011`, and OpenPI to
357
+ `15a9616a00943ada6c20a0f158e3adb39df2ccac`.
358
 
359
  ## πŸ“„ Citation
360