Datasets:
Update docs + examples
Browse files- NOTICE.md +2 -10
- README.md +89 -87
- docs/SCHEMA.md +1 -1
- docs/objects.jpg +3 -0
NOTICE.md
CHANGED
|
@@ -22,13 +22,5 @@ https://github.com/Sirui-Xu/InterAct. The retargeting objective is built on them
|
|
| 22 |
|
| 23 |
Robot models: Unitree Robotics, BSD-3-Clause — full text in `docs/LICENSE-unitree.txt`.
|
| 24 |
|
| 25 |
-
The retargeting code is released separately
|
| 26 |
-
|
| 27 |
-
Nothing in it derives from a restrictively licensed source, which is why its terms
|
| 28 |
-
differ from this corpus's.
|
| 29 |
-
|
| 30 |
-
## Not included
|
| 31 |
-
|
| 32 |
-
BEHAVE and FORCE (Max Planck terms forbid redistributing modified data without written
|
| 33 |
-
permission), HUMOTO (Adobe Research License v1.1), CHAIRS, and PA-HOI / InterVLA / ReconMot
|
| 34 |
-
(licence could not be verified).
|
|
|
|
| 22 |
|
| 23 |
Robot models: Unitree Robotics, BSD-3-Clause — full text in `docs/LICENSE-unitree.txt`.
|
| 24 |
|
| 25 |
+
The retargeting code is released separately, BSD 3-Clause, Copyright (c) 2026
|
| 26 |
+
ETH Zurich: https://github.com/shinben0327/hoi-retarget
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -43,26 +43,31 @@ configs:
|
|
| 43 |
|
| 44 |
# HOI-Retarget — Humanoid Human–Object Interaction Motion
|
| 45 |
|
| 46 |
-
[Project page](https://shinben0327.github.io/hoi-retarget) · [Code](https://github.com/shinben0327/hoi-retarget) · Paper: *manuscript under review*
|
| 47 |
-
|
| 48 |
-
>
|
| 49 |
-
>
|
| 50 |
-
>
|
| 51 |
-
>
|
| 52 |
-
>
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
| 59 |
|
| 60 |
Retargeting a person carrying a chair onto a humanoid is not a pose-matching problem. The robot is
|
| 61 |
-
shorter, its hands are a rubber block rather than fingers, and a trajectory that merely
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
---
|
| 68 |
|
|
@@ -73,9 +78,9 @@ support and smoothness under the robot's kinematic limits.
|
|
| 73 |
| Source datasets | **5** — OMOMO, ParaHome, NeuralDome, CoRoleHOI, IMHD² |
|
| 74 |
| Distinct motions | **6,952** |
|
| 75 |
| Robot–motion rows | **13,904** (6,952 G1 + 6,952 H2) |
|
| 76 |
-
| Objects | **75 distinct meshes**
|
| 77 |
| Duration | **828.1 min · 13.80 h** per robot pass |
|
| 78 |
-
| Collaborative | 912 rows
|
| 79 |
| Robots | Unitree **G1** (29 DoF, object scale 0.83) · Unitree **H2** (31 DoF, object scale 1.0) |
|
| 80 |
| Passing QC | **6,463 G1 (93.0 %)** · **6,098 H2 (87.7 %)** |
|
| 81 |
|
|
@@ -88,13 +93,12 @@ support and smoothness under the robot's kinematic limits.
|
|
| 88 |
| NeuralDome | 915 | 20 | 127.8 | 812 | 88.7 |
|
| 89 |
| CoRoleHOI | 456 | 23 | 49.1 | 429 | 94.1 |
|
| 90 |
| IMHD² | 180 | 7 | 24.4 | 178 | 98.9 |
|
| 91 |
-
| **total** | **6,952** | **75**
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
-
|
| 94 |
-
datasets** — every one of the 75 was hashed and measured, with zero byte-identical and zero
|
| 95 |
-
geometrically identical pairs. Eight *names* recur (`pan`, `chair`, `suitcase` in three datasets
|
| 96 |
-
each; `book`, `trashcan`, `monitor`, `baseball`, `table` in two), so there are 64 distinct names
|
| 97 |
-
but 75 distinct objects. Merging chair/table/box/case/sofa families gives ~48 semantic categories.
|
| 98 |
|
| 99 |
### Per robot
|
| 100 |
|
|
@@ -103,8 +107,8 @@ but 75 distinct objects. Merging chair/table/box/case/sofa families gives ~48 se
|
|
| 103 |
| `unitree_g1` | 29 | 0.83 | all 5 | 6,952 | 6,463 (93.0 %) |
|
| 104 |
| `unitree_h2` | 31 | 1.0 | all 5 | 6,952 | 6,098 (87.7 %) |
|
| 105 |
|
| 106 |
-
Both robots
|
| 107 |
-
|
| 108 |
|
| 109 |
---
|
| 110 |
|
|
@@ -114,29 +118,31 @@ NeuralDome 86.4 %, CoRoleHOI 79.6 %, IMHD² 94.4 %.
|
|
| 114 |
from datasets import load_dataset
|
| 115 |
import numpy as np
|
| 116 |
|
| 117 |
-
ds = load_dataset("shinben0327/hoi-retarget", split="train")
|
| 118 |
ds = load_dataset("shinben0327/hoi-retarget", "omomo", split="train") # one source dataset
|
| 119 |
|
| 120 |
clean = ds.filter(lambda r: r["qc_pass"]) # the curated subset
|
| 121 |
g1 = ds.filter(lambda r: r["robot"] == "unitree_g1")
|
| 122 |
|
| 123 |
r = clean[0]
|
| 124 |
-
dof = np.array([np.asarray(x) for x in r["dof_pos"]])
|
| 125 |
-
obj = np.array([np.asarray(x) for x in r["object_pos"]])# (T, 3) object position, metres
|
| 126 |
print(r["clip_id"], dof.shape, r["object"], r["qc_flags"])
|
| 127 |
```
|
| 128 |
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
contact
|
|
|
|
|
|
|
| 133 |
|
| 134 |
---
|
| 135 |
|
| 136 |
## Quality control
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
|
| 141 |
```
|
| 142 |
qc_pass = False if dj_max_deg > 60 # peak per-frame joint displacement, deg/frame
|
|
@@ -147,24 +153,25 @@ qc_pass = False if dj_max_deg > 60 # peak per-frame joint displacement
|
|
| 147 |
```
|
| 148 |
|
| 149 |
`palm_contact` is the fraction of that excursion window in which the matching palm is flagged in
|
| 150 |
-
contact. A wrist saturated **with** contact is a hard but legitimate grasp
|
| 151 |
-
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
|
| 158 |
-
Failing rows
|
| 159 |
-
|
| 160 |
-
|
|
|
|
| 161 |
|
| 162 |
## Seeing the motions
|
| 163 |
|
| 164 |
Two ways, neither needing a download.
|
| 165 |
|
| 166 |
-
**Inline previews.** Every row carries a 320
|
| 167 |
-
column
|
| 168 |
|
| 169 |
```python
|
| 170 |
from datasets import load_dataset, Video
|
|
@@ -174,22 +181,21 @@ ds.cast_column("video", Video(decode=False))[0]["video"]["bytes"] # raw mp4
|
|
| 174 |
```
|
| 175 |
|
| 176 |
**The 3D viewer.** [HOI-Retarget Contact Playback](https://huggingface.co/spaces/shinben0327/hoi-retarget-viewer)
|
| 177 |
-
plays any clip in the corpus in the browser
|
| 178 |
-
|
| 179 |
-
|
| 180 |
|
| 181 |
-
It reads its geometry from this repository's `viewer/` directory, which holds the same
|
| 182 |
-
|
| 183 |
-
|
| 184 |
|
| 185 |
```
|
| 186 |
-
viewer/index.json
|
| 187 |
viewer/shards/<ds>__<robot>.json the same records grouped, for lazy loading
|
| 188 |
-
viewer/bin/<ds>__<robot>
|
| 189 |
```
|
| 190 |
|
| 191 |
-
Each `.bin` is
|
| 192 |
-
frame:
|
| 193 |
|
| 194 |
```
|
| 195 |
body_pos (T, NB, 3) then body_quat (T, NB, 4) wxyz then
|
|
@@ -198,42 +204,38 @@ contact (T, NC) 0.0 / 1.0
|
|
| 198 |
```
|
| 199 |
|
| 200 |
so `object_pos` begins at half-offset `T*NB*3 + T*NB*4`. `NB` is 42 for the G1 and 36 for the H2;
|
| 201 |
-
`NC` is 4. Slice by block, not by a per-frame stride
|
| 202 |
length check cannot tell the two readings apart.
|
| 203 |
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
|
| 208 |
-
|
| 209 |
|
| 210 |
-
|
| 211 |
-
same licence. That is the most restrictive term among the sources, and it propagates.
|
| 212 |
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
| OMOMO | MIT | the only permissively licensed source |
|
| 216 |
-
| ParaHome | CC BY-NC-SA 4.0 | |
|
| 217 |
-
| NeuralDome / HODome | CC BY-NC-SA 4.0 | |
|
| 218 |
-
| CoRoleHOI | CC BY 4.0 | |
|
| 219 |
-
| IMHD² | CC BY-NC-SA 4.0 | |
|
| 220 |
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
|
|
|
|
|
|
|
|
|
| 225 |
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
|
|
|
| 229 |
|
| 230 |
-
Robot models are Unitree's, BSD-3-Clause —
|
| 231 |
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
trajectories do
|
| 235 |
-
annotations, so the sources' terms propagate to them. The two licences are independent
|
| 236 |
-
and both are correct.
|
| 237 |
|
| 238 |
---
|
| 239 |
|
|
@@ -250,5 +252,5 @@ and both are correct.
|
|
| 250 |
}
|
| 251 |
```
|
| 252 |
|
| 253 |
-
|
| 254 |
-
|
|
|
|
| 43 |
|
| 44 |
# HOI-Retarget — Humanoid Human–Object Interaction Motion
|
| 45 |
|
| 46 |
+
[Project page](https://shinben0327.github.io/hoi-retarget) · [Code](https://github.com/shinben0327/hoi-retarget) · [3D viewer](https://huggingface.co/spaces/shinben0327/hoi-retarget-viewer) · Paper: *manuscript under review*
|
| 47 |
+
|
| 48 |
+
> Learning from demonstration (LfD) has enabled humanoid robots to acquire diverse whole-body
|
| 49 |
+
> skills, but extending this paradigm to human-object interaction (HOI) is limited by the
|
| 50 |
+
> availability of robot-compatible interaction references. We present HOI-Retarget, a
|
| 51 |
+
> contact-centric retargeting method that transfers HOI onto a humanoid robot for large-scale
|
| 52 |
+
> motion-data generation. Its windowed trajectory optimization uses every labeled contact as a
|
| 53 |
+
> target in the object frame, balancing body tracking, foot support and smoothness under the
|
| 54 |
+
> robot's kinematic limits. The method can augment a single demonstration across object sizes,
|
| 55 |
+
> absorb contacts reconstructed from monocular video, and extend to several robots manipulating
|
| 56 |
+
> one object.
|
| 57 |
+
|
| 58 |
+
This is the corpus that method produces: **13,904 humanoid trajectories** from five human–object
|
| 59 |
+
interaction capture sets, each carrying the per-link contact flags that say which palms and feet
|
| 60 |
+
touch the object at every frame.
|
| 61 |
|
| 62 |
Retargeting a person carrying a chair onto a humanoid is not a pose-matching problem. The robot is
|
| 63 |
+
shorter, its hands are a rubber block rather than fingers, and a trajectory that merely looks right
|
| 64 |
+
drops the object the moment physics is switched on. What makes this data usable is that the contact
|
| 65 |
+
is right: every labelled contact becomes a target in the object frame, recovered by a windowed
|
| 66 |
+
optimization that trades it against body tracking, foot support and smoothness inside the robot's
|
| 67 |
+
joint limits.
|
| 68 |
+
|
| 69 |
+
Each row is one **(motion, robot)** pair — joint angles, a floating base, the object's 6-DoF pose,
|
| 70 |
+
and the contact flags.
|
| 71 |
|
| 72 |
---
|
| 73 |
|
|
|
|
| 78 |
| Source datasets | **5** — OMOMO, ParaHome, NeuralDome, CoRoleHOI, IMHD² |
|
| 79 |
| Distinct motions | **6,952** |
|
| 80 |
| Robot–motion rows | **13,904** (6,952 G1 + 6,952 H2) |
|
| 81 |
+
| Objects | **75 distinct meshes** |
|
| 82 |
| Duration | **828.1 min · 13.80 h** per robot pass |
|
| 83 |
+
| Collaborative | 912 rows; every CoRoleHOI motion is half of a pair (228 pairs per robot) |
|
| 84 |
| Robots | Unitree **G1** (29 DoF, object scale 0.83) · Unitree **H2** (31 DoF, object scale 1.0) |
|
| 85 |
| Passing QC | **6,463 G1 (93.0 %)** · **6,098 H2 (87.7 %)** |
|
| 86 |
|
|
|
|
| 93 |
| NeuralDome | 915 | 20 | 127.8 | 812 | 88.7 |
|
| 94 |
| CoRoleHOI | 456 | 23 | 49.1 | 429 | 94.1 |
|
| 95 |
| IMHD² | 180 | 7 | 24.4 | 178 | 98.9 |
|
| 96 |
+
| **total** | **6,952** | **75** | **828.1** | **6,463** | **93.0** |
|
| 97 |
+
|
| 98 |
+
Object names repeat across datasets but the meshes do not. `chair` in NeuralDome is a different
|
| 99 |
+
scan from `chair` in IMHD², so objects are keyed `<dataset>__<object>` everywhere.
|
| 100 |
|
| 101 |
+

|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
### Per robot
|
| 104 |
|
|
|
|
| 107 |
| `unitree_g1` | 29 | 0.83 | all 5 | 6,952 | 6,463 (93.0 %) |
|
| 108 |
| `unitree_h2` | 31 | 1.0 | all 5 | 6,952 | 6,098 (87.7 %) |
|
| 109 |
|
| 110 |
+
Both robots cover all five datasets. The H2 is taller and keeps less: 86.9 % on OMOMO, 95.1 % on
|
| 111 |
+
ParaHome, 86.4 % on NeuralDome, 79.6 % on CoRoleHOI, 94.4 % on IMHD².
|
| 112 |
|
| 113 |
---
|
| 114 |
|
|
|
|
| 118 |
from datasets import load_dataset
|
| 119 |
import numpy as np
|
| 120 |
|
| 121 |
+
ds = load_dataset("shinben0327/hoi-retarget", split="train") # everything
|
| 122 |
ds = load_dataset("shinben0327/hoi-retarget", "omomo", split="train") # one source dataset
|
| 123 |
|
| 124 |
clean = ds.filter(lambda r: r["qc_pass"]) # the curated subset
|
| 125 |
g1 = ds.filter(lambda r: r["robot"] == "unitree_g1")
|
| 126 |
|
| 127 |
r = clean[0]
|
| 128 |
+
dof = np.array([np.asarray(x) for x in r["dof_pos"]]) # (T, 29) joint angles, radians
|
| 129 |
+
obj = np.array([np.asarray(x) for x in r["object_pos"]]) # (T, 3) object position, metres
|
| 130 |
print(r["clip_id"], dof.shape, r["object"], r["qc_flags"])
|
| 131 |
```
|
| 132 |
|
| 133 |
+
Every column is described in [`docs/SCHEMA.md`](docs/SCHEMA.md).
|
| 134 |
+
|
| 135 |
+
`examples/to_pkl.py` converts a row back into the `contact_window.pkl` layout the pipeline
|
| 136 |
+
consumes — the same file `hoi-retarget --mode contact` writes, so a converted row drops straight
|
| 137 |
+
into [the code repository](https://github.com/shinben0327/hoi-retarget) for re-solving, rendering
|
| 138 |
+
or contact editing.
|
| 139 |
|
| 140 |
---
|
| 141 |
|
| 142 |
## Quality control
|
| 143 |
|
| 144 |
+
`qc_pass` is evaluated per **(motion, robot)**. The two robots have different joint limits and fail
|
| 145 |
+
differently, so it is a property of the pair, not of the motion.
|
| 146 |
|
| 147 |
```
|
| 148 |
qc_pass = False if dj_max_deg > 60 # peak per-frame joint displacement, deg/frame
|
|
|
|
| 153 |
```
|
| 154 |
|
| 155 |
`palm_contact` is the fraction of that excursion window in which the matching palm is flagged in
|
| 156 |
+
contact. A wrist saturated **with** contact is a hard but legitimate grasp: a deep floor reach, an
|
| 157 |
+
overhead carry. Saturated **without** contact is a retargeting artefact.
|
| 158 |
|
| 159 |
+
These flags catch motion that is physically implausible — a joint parked against its stop, a
|
| 160 |
+
discontinuity no body could produce. They say nothing about the interaction. A clip where the robot
|
| 161 |
+
kicks a box, pushes a suitcase or never uses its hands is unusual, not defective, and passes. Filter
|
| 162 |
+
on the descriptive columns for that.
|
| 163 |
|
| 164 |
+
Failing rows ship too, flagged `qc_pass = false`, with `wrist_runfrac`, `dj_max_deg` and
|
| 165 |
+
`palm_contact` kept as columns so you can set your own thresholds instead of ours.
|
| 166 |
+
|
| 167 |
+
---
|
| 168 |
|
| 169 |
## Seeing the motions
|
| 170 |
|
| 171 |
Two ways, neither needing a download.
|
| 172 |
|
| 173 |
+
**Inline previews.** Every row carries a 320 × 320 render of that exact trajectory in the `video`
|
| 174 |
+
column, around 50 kB, so the table preview plays each clip in place.
|
| 175 |
|
| 176 |
```python
|
| 177 |
from datasets import load_dataset, Video
|
|
|
|
| 181 |
```
|
| 182 |
|
| 183 |
**The 3D viewer.** [HOI-Retarget Contact Playback](https://huggingface.co/spaces/shinben0327/hoi-retarget-viewer)
|
| 184 |
+
plays any clip in the corpus in the browser. Scrub it, orbit it, and watch which of the robot's four
|
| 185 |
+
contact links is on the object at each frame. Search and filter by dataset, robot, QC result or
|
| 186 |
+
collaborative pair.
|
| 187 |
|
| 188 |
+
It reads its geometry from this repository's `viewer/` directory, which holds the same trajectories
|
| 189 |
+
in a compact playback format: per-body world poses and per-frame contact flags as little-endian
|
| 190 |
+
float16, one file per (motion, robot).
|
| 191 |
|
| 192 |
```
|
| 193 |
+
viewer/index.json every clip, with its agents and metadata (0.25 MB gzipped)
|
| 194 |
viewer/shards/<ds>__<robot>.json the same records grouped, for lazy loading
|
| 195 |
+
viewer/bin/<ds>__<robot>/<subject>.bin
|
| 196 |
```
|
| 197 |
|
| 198 |
+
Each `.bin` is **block-major** — each array whole, one after another, not interleaved per frame:
|
|
|
|
| 199 |
|
| 200 |
```
|
| 201 |
body_pos (T, NB, 3) then body_quat (T, NB, 4) wxyz then
|
|
|
|
| 204 |
```
|
| 205 |
|
| 206 |
so `object_pos` begins at half-offset `T*NB*3 + T*NB*4`. `NB` is 42 for the G1 and 36 for the H2;
|
| 207 |
+
`NC` is 4. Slice by block, not by a per-frame stride: the file is the same size either way, so a
|
| 208 |
length check cannot tell the two readings apart.
|
| 209 |
|
| 210 |
+
Collaborative clips carry two agents sharing one object. Both agents store their own copy of the
|
| 211 |
+
object track; they agree once each agent's `z_offset_m` is applied, and a viewer should draw the
|
| 212 |
+
object once.
|
| 213 |
|
| 214 |
+
---
|
| 215 |
|
| 216 |
+
## Licensing
|
|
|
|
| 217 |
|
| 218 |
+
**CC BY-NC-SA 4.0**: non-commercial, attribution, and derivatives carry the same licence. That is
|
| 219 |
+
the most restrictive term among the sources, and it propagates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
|
| 221 |
+
| source dataset | its licence |
|
| 222 |
+
|---|---|
|
| 223 |
+
| OMOMO | MIT |
|
| 224 |
+
| ParaHome | CC BY-NC-SA 4.0 |
|
| 225 |
+
| NeuralDome / HODome | CC BY-NC-SA 4.0 |
|
| 226 |
+
| CoRoleHOI | CC BY 4.0 |
|
| 227 |
+
| IMHD² | CC BY-NC-SA 4.0 |
|
| 228 |
|
| 229 |
+
These trajectories are derivative works of the source motion capture, and the contact annotations
|
| 230 |
+
they were optimised against originate with [InterAct](https://github.com/Sirui-Xu/InterAct) under
|
| 231 |
+
CC BY-NC-SA 4.0. Cite the source dataset for any clip you use: the `dataset` column names it, and
|
| 232 |
+
`NOTICE.md` gives the reference.
|
| 233 |
|
| 234 |
+
Robot models are Unitree's, BSD-3-Clause — [`docs/LICENSE-unitree.txt`](docs/LICENSE-unitree.txt).
|
| 235 |
|
| 236 |
+
The [retargeting code](https://github.com/shinben0327/hoi-retarget) is BSD-3-Clause. Its terms
|
| 237 |
+
differ from this corpus's because the code derives from nothing restrictively licensed and these
|
| 238 |
+
trajectories do.
|
|
|
|
|
|
|
| 239 |
|
| 240 |
---
|
| 241 |
|
|
|
|
| 252 |
}
|
| 253 |
```
|
| 254 |
|
| 255 |
+
Cite the source dataset your clips come from as well — the `dataset` column names it, and
|
| 256 |
+
`NOTICE.md` lists every reference.
|
docs/SCHEMA.md
CHANGED
|
@@ -91,7 +91,7 @@ All are lists of per-frame values, length `T`. Reconstruct with
|
|
| 91 |
| `object_ground_contact_sequence` | (T,) int8 | object resting on the ground |
|
| 92 |
| `object_near_floor_flags` | (T,) bool | object within a floor-proximity threshold |
|
| 93 |
|
| 94 |
-
##
|
| 95 |
* `object` is **not** a key. Three different chairs share the name `chair`; join on `object_model_path` or `(dataset, object)`.
|
| 96 |
* Quaternions are **wxyz**, not xyzw.
|
| 97 |
* `dof_names` differs between robots (29 vs 31 entries). Never index `dof_pos` by a hard-coded position — look the joint up by name.
|
|
|
|
| 91 |
| `object_ground_contact_sequence` | (T,) int8 | object resting on the ground |
|
| 92 |
| `object_near_floor_flags` | (T,) bool | object within a floor-proximity threshold |
|
| 93 |
|
| 94 |
+
## Easy to get wrong
|
| 95 |
* `object` is **not** a key. Three different chairs share the name `chair`; join on `object_model_path` or `(dataset, object)`.
|
| 96 |
* Quaternions are **wxyz**, not xyzw.
|
| 97 |
* `dof_names` differs between robots (29 vs 31 entries). Never index `dof_pos` by a hard-coded position — look the joint up by name.
|
docs/objects.jpg
ADDED
|
Git LFS Details
|