Dexify / README.md
sanbens's picture
README: HOI4D example replaced (bottle)
19c59f3 verified
|
Raw History Blame Contribute Delete
9.19 kB
---
pretty_name: Dexify
license:
- cc-by-4.0
- cc-by-sa-4.0
- odbl
- cc-by-nc-4.0
- cc-by-nc-sa-4.0
task_categories:
- robotics
tags:
- dexterous-manipulation
- retargeting
- hand-object-interaction
- xhand
- sharpa-wave
- mujoco
size_categories:
- 10K<n<100K
---
# Dexify: human hand–object recordings converted to robot-hand trajectories
One folder per robot hand:
| Folder | Robot hand | Finger torque limits | Clips | Hours |
|---|---|---|---|---|
| `xhand/` | XHAND1 (12 DoF per hand) | 4× rated | 11,575 | 13.26 |
| `sharpa_wave/` | Sharpa Wave (22 DoF per hand) | 1× rated | coming soon | |
Each clip is a simulated rollout of the Dexify policy tracking one demonstration, from six public datasets or from EgoHOR (our
hand–object reconstructions from egocentric video). The policy is trained through a differentiable world model and runs
closed-loop; every frame is a simulated state, so the object moves only through contact with the robot hand.
- Paper: [*Dexify: Dexterous Hand–Object Retargeting Made Easy with a Differentiable World Model*](https://arxiv.org/abs/2611.41056)
- Project page: https://sanbens.github.io/dexify/
## Examples
Eight selected XHAND clips from this release (simulation; small window: the human reference at the same instant). More
videos, including the Sharpa Wave, are on the project page.
<video src="https://huggingface.co/datasets/sanbens/Dexify/resolve/main/assets/examples.mp4" controls autoplay loop muted playsinline width="100%"></video>
<details>
<summary>Clip ids (left to right, top to bottom)</summary>
`hot3d1_P0003_3e0fe5b2_seg011`, `taco_empty__cup__kettle_20231031_038__robj`, `rk_9cfa42df`, `dc_dc_banana_traj_00071238`,
`hot3d1_P0003_9fdd4e36_seg005`, `ZY20210800002_H2_C5_N31_S268_s03_T6`,
`scene_01__A003++seq__916da2456e9042c18107__2023-04-16-10-53-20__st01`, `hrh_hrdex_fruit_cutter_base_5`
</details>
## Contents of `xhand/`
| Source dataset | Clips | Hours | Hands (right / left / both) | Objects |
|---|---|---|---|---|
| DexCanvas | 6,080 | 6.14 | 6,080 / 0 / 0 | 20 |
| HRDexDB | 631 | 1.99 | 631 / 0 / 0 | 56 |
| TACO | 2,570 | 1.76 | 1,228 / 1,265 / 77 | 129 |
| HOT3D | 663 | 1.03 | 296 / 7 / 360 | 27 |
| EgoHOR (Gen-HumanEgo videos) | 860 | 0.97 | 188 / 99 / 573 | 860 |
| OakInk2 | 574 | 0.75 | 297 / 195 / 82 | 54 |
| HOI4D | 197 | 0.62 | 197 / 0 / 0 | 134 |
| **Total** | **11,575** | **13.26** | 8,917 / 1,566 / 1,092 | 1,280 |
EgoHOR clips are reconstructed (hands, object meshes and object poses) from egocentric videos of the Gen-HumanEgo dataset.
In HRDexDB, 310 clips come from Inspire-hand and 129 from Allegro-hand teleoperation rather than from human hands (column
`demonstration`).
## Files
```
objects/<Dataset>.tar.gz object models shared by all hands: <object_id>/object.xml + meshes/ (visual mesh, convex collision parts)
objects/objects.csv object_id, dataset, simulated mass, number of convex parts, number of XHAND clips
xhand/metadata.csv one row per clip (see below)
xhand/data/<Dataset>.h5 trajectories, one HDF5 group per clip
xhand/robot/xhand/ XHAND MJCF used in the simulation (xhand_{right,left}_env.xml), meshes, NOTICE.md
sharpa_wave/ (coming soon) the same layout for the Sharpa Wave hand
tools/dexify_data.py list / inspect / replay a clip in MuJoCo
```
## Data format
Each clip `/<clip_id>` in `<hand>/data/<Dataset>.h5` holds T frames at 60 Hz: the simulated state after each control step.
| Array | Shape&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Type | Meaning |
|---|---|---|---|
| `object_pos` | (T,&nbsp;3) | float32 | object position in the world (m) |
| `object_quat` | (T,&nbsp;4) | float32 | object orientation, quaternion w x y z |
| `support_disks` | (n,&nbsp;5) | float32 | static support cylinders: x, y, top z, radius, height (m) |
| `<side>/qpos` | (T,&nbsp;18) | float32 | joint positions of the hand model (rad / m), see below |
| `<side>/wrist_pos` | (T,&nbsp;3) | float32 | world position of the hand base body |
| `<side>/wrist_quat` | (T,&nbsp;4) | float32 | world orientation of the hand base body, w x y z |
| `<side>/contact` | (T,) | uint8 | 1 if the hand touches the object |
`qpos` follows the joint order of `xhand/robot/xhand/xhand_<side>_env.xml`: 3 wrist translations, 3 wrist rotations (z, x, y),
then the 12 finger joints. The hand base body is `R_forearm_rot_y_link` / `L_forearm_rot_y_link`.
`<side>` is `right` and/or `left`: a clip includes the hands that touch the object (in contact for at least 0.2 s), so a
two-hand source clip in which only one hand handles the object is a one-hand clip here. TACO and OakInk2 clips often have each
hand on its own object; each clip simulates one of them. The group attributes repeat the clip's `metadata.csv` row.
The object frame is the frame of its mesh files. World z points up, and the units are meters, radians and seconds.
`<hand>/metadata.csv` columns:
- `clip_id`, `robot_hand`, `finger_torque_scale` (the finger torque limits relative to the real hand's), `dataset`, `license`.
- `demonstration`: `human`, or the teleoperated robot hand for HRDexDB.
- `object_id`, `object_archive`.
- `hands`: `right`, `left` or `both`.
- `source_two_hands`: whether the source clip had two hands.
- `num_frames`, `fps`, `duration_s`.
- `srmt_object_pos_err_cm`, `srmt_object_rot_err_deg`, `srmt_fingertip_err_cm`, `srmt_keypoint_err_cm`: mean tracking errors
against the source over the clip (keypoints: the proximal and distal finger segments).
- `end_object_err_cm`: object position error, maximum over the last 0.5 s.
- `max_penetration_mm`: deepest hand–object penetration of the collision geometry.
```python
import h5py
with h5py.File("xhand/data/TACO.h5") as h:
clip = h["<clip_id>"]
q = clip["right/qpos"][()] # (T, 18)
obj = clip["object_pos"][()], clip["object_quat"][()]
```
`python tools/dexify_data.py replay xhand/data/TACO.h5 <clip_id>` plays a clip in the MuJoCo viewer (`--video out.mp4` renders
offscreen); extract the object archive into `objects/<Dataset>/` first.
## How the XHAND clips were selected
One policy checkpoint is rolled out once on every clip. A clip is included if:
1. it tracks the source (SR_MT): mean object error ≤ 3 cm and ≤ 30°, and for every active hand mean fingertip error ≤ 6 cm and
mean keypoint error ≤ 8 cm;
2. the object ends where the source puts it: error over the last 0.5 s ≤ 5 cm, and ≤ 3 cm when both objects are at rest at the end;
3. hand–object penetration stays below 10 mm, or exceeds 5 mm for less than 0.25 s in total;
4. no finger link stays inside an object part for 0.5 s or more;
5. the object never drops by 1.5 cm or more within 0.15 s while the source hand still holds it;
6. at least one hand touches the object.
This is stricter than the success rate reported in the paper, which counts criterion 1 only. Of the 26,748 training clips,
19,085 (24.5 h) pass criterion 1 in this rollout. 15,038 (17.6 h) also pass criteria 2–6. Of these, the 11,575 clips (13.3 h)
from the seven datasets whose licenses allow redistribution are released. The paper's training data also includes GRAB and EgoHOR
clips reconstructed from EgoStandard videos; they are not included here because of their license terms.
## XHAND simulation
MuJoCo-Warp in Isaac Lab, 240 Hz physics and 60 Hz control, with the setup of the paper's supplementary material:
- finger torque limits at four times the XHAND1's specified limits (1.1 or 0.4 N·m, depending on the joint);
- a floating 6-DoF wrist standing in for a robot arm: gravity-compensated, critically damped 5 Hz PD, force and torque limited to
100 N and 12 N·m, and speed / acceleration-limited targets;
- MuJoCo's elliptic friction cone with an impedance ratio of 10;
- support surfaces (`support_disks`) as the only scene.
Collision geometry, masses, friction and actuator gains are in the MJCF files (`objects/`, `xhand/robot/`). `qpos` is the
simulated joint state; the policy's PD targets are not included.
## Licenses
Each subset keeps the license of its source dataset; it covers the subset's files in `<hand>/data/` and `objects/` and its rows
of the CSV files (column `license`; details in `LICENSE.md`).
| Subset | License |
|---|---|
| TACO | CC BY 4.0 |
| OakInk2 | CC BY-SA 4.0 |
| EgoHOR (Gen-HumanEgo videos) | CC BY-SA 4.0 |
| DexCanvas | ODbL 1.0 |
| HRDexDB | CC BY-NC 4.0 |
| HOI4D | CC BY-NC 4.0 |
| HOT3D | trajectories CC BY-NC-SA 4.0; object models CC BY-SA 4.0 with HOT3D's no-sale term |
The XHAND1 model (`xhand/robot/xhand/`) is Robotera's, under the BSD license. The human source data (hand poses, videos) is not
included.
## Contact
Tenghui Wang, wangtenghui@sjtu.edu.cn
## Citation
```bibtex
@article{wang2026dexify,
title = {Dexify: Dexterous Hand--Object Retargeting Made Easy with a Differentiable World Model},
author = {Wang, Tenghui and Song, Kaiwen and Ren, Kerui and Yang, Xijie and Wang, Xinzhe and
Miao, Xingyu and Xiangli, Yuanbo and Lu, Tao and Yu, Mulin and Gao, Feng},
journal = {arXiv preprint arXiv:2611.41056},
year = {2026}
}
```
Please also cite the source datasets of the subsets you use.