Document pi0.5 checkpoint access and inference
Browse files
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 |
[](https://mint-sjtu.github.io/Evo-DexBench.io)
|
| 21 |
[](https://huggingface.co/datasets/MINT-SJTU/Evo-DexBench-dataset)
|
| 22 |
[](https://huggingface.co/datasets/MINT-SJTU/Evo-DexBench_Assets)
|
| 23 |
-

|
| 24 |
|
| 25 |
-
|
| 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 |
-
- **
|
| 32 |
-
- **
|
| 33 |
-
- **
|
| 34 |
-
|
| 35 |
-
|
|
|
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
demonstrations, or training code.
|
| 40 |
|
| 41 |
## π¦ Contents
|
| 42 |
|
| 43 |
-
The
|
|
|
|
| 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 |
|
| 61 |
| --- | --- | --- | --- |
|
| 62 |
-
| DP-T |
|
| 63 |
-
| DP-C |
|
| 64 |
-
| KineDex |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
The [manifest](manifest.json) records
|
| 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**
|
| 94 |
-
|
| 95 |
-
|
| 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 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
## π Quick Start
|
| 115 |
|
|
@@ -138,16 +157,28 @@ for asset distribution and licensing details.
|
|
| 138 |
|
| 139 |
### 2. Download checkpoints
|
| 140 |
|
| 141 |
-
|
|
|
|
| 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 |
-
|
| 149 |
-
|
| 150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 246 |
-
**
|
| 247 |
-
|
| 248 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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`
|
| 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 |
[](https://mint-sjtu.github.io/Evo-DexBench.io)
|
| 21 |
[](https://huggingface.co/datasets/MINT-SJTU/Evo-DexBench-dataset)
|
| 22 |
[](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 |
|