Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- robotics
|
| 5 |
+
- image-to-3d
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- vitra
|
| 10 |
+
- mano
|
| 11 |
+
- hand-object-interaction
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# egotouch-annotations-v1
|
| 15 |
+
|
| 16 |
+
**Annotations only — no images, no video.**
|
| 17 |
+
|
| 18 |
+
VITRA-style hand episodes for **EgoTouch**, with per-hand instructions and paraphrases.
|
| 19 |
+
|
| 20 |
+
| | |
|
| 21 |
+
|---|---|
|
| 22 |
+
| episodes | **111,159** |
|
| 23 |
+
| training samples (`index_frame_pair` rows) | **3,687,389** |
|
| 24 |
+
| annotation | MANO pose + world/camera joints + per-frame extrinsics |
|
| 25 |
+
| text | one instruction per episode + 1.93 paraphrases on average |
|
| 26 |
+
| **images / video** | **not included** — see *Getting the frames* below |
|
| 27 |
+
|
| 28 |
+
### What we did
|
| 29 |
+
|
| 30 |
+
**Episodes are ours.** The source release ships either raw video or differently-segmented
|
| 31 |
+
clips, so we re-cut it with VITRA's method — speed minima of the 3D wrist in world space:
|
| 32 |
+
|
| 33 |
+
gaussian smooth (sigma=1.0) -> local speed minima in a fixed window (win=15, i.e. 0.5 s
|
| 34 |
+
at 30 Hz) -> merge runs shorter than min_seg=16 -> pad 2 frames on each end
|
| 35 |
+
|
| 36 |
+
sigma and win are quantities in *time*, converted per source frame rate. Left and right hands
|
| 37 |
+
are cut independently, with the other hand's motion ignored.
|
| 38 |
+
|
| 39 |
+
**Instructions are ours.** Two rounds, both with `Qwen3.5-122B-A10B-FP8`:
|
| 40 |
+
round 1 captions 8 frames per episode with the palm's future trajectory drawn on them;
|
| 41 |
+
round 2 checks the sentence belongs to that hand, strips same-hand references
|
| 42 |
+
("Rinse the right hand." -> "Rinse the hand.", because training already prepends
|
| 43 |
+
`Left hand: ... Right hand: ...`), and writes 1-3 paraphrases.
|
| 44 |
+
|
| 45 |
+
**Episodes with no instruction are not included.** Round 1 returns `N/A` when an episode
|
| 46 |
+
shows no object interaction. Those episodes are excluded from both the archive and the
|
| 47 |
+
index, so every episode here has a usable instruction.
|
| 48 |
+
|
| 49 |
+
### Tactile
|
| 50 |
+
|
| 51 |
+
**This is the only domain here that carries tactile data.** Each episode has an extra
|
| 52 |
+
top-level `tactile` dict (not part of VITRA's original format):
|
| 53 |
+
|
| 54 |
+
```
|
| 55 |
+
d["tactile"]["left"] ndarray (T, 21, 21) float32 # NaN outside the sensor area
|
| 56 |
+
d["tactile"]["right"] ndarray (T, 21, 21) float32
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
Row `t` of `tactile[hand]` is the pressure map for the **same frame** as row `t` of
|
| 60 |
+
`joints_worldspace` and of `video_decode_frame` — i.e. tactile and pose are aligned
|
| 61 |
+
frame-for-frame, no resampling.
|
| 62 |
+
|
| 63 |
+
We verified that mapping end to end rather than assuming it:
|
| 64 |
+
|
| 65 |
+
- the source release ships one pressure row per video frame (`frame_index` runs
|
| 66 |
+
`0..n-1`, strictly increasing, at exactly 30.00 fps) — checked on sampled scenes;
|
| 67 |
+
- pressure length equals video frame count for **all 1,566 scenes x 2 hands**, with zero
|
| 68 |
+
exceptions, so nothing was silently truncated;
|
| 69 |
+
- our stored values reproduce the official `pressure_grids.npz` at every frame; the
|
| 70 |
+
per-frame pressure totals cross-correlate at **lag 0 with r = 1.0000**, and a spatial
|
| 71 |
+
transpose does *not* match, ruling out both a time shift and an axis swap;
|
| 72 |
+
- within an episode, the tactile slice is the same `[a:b]` window as the pose slice
|
| 73 |
+
(byte-identical on every sampled episode).
|
| 74 |
+
|
| 75 |
+
Values are the official ones passed through **float16** at one intermediate stage, so they
|
| 76 |
+
differ from the source by at most one float16 half-ULP (max observed 2.41e-4 on a
|
| 77 |
+
0-1 normalised map). Positions of `NaN` are preserved exactly.
|
| 78 |
+
|
| 79 |
+
### Files
|
| 80 |
+
|
| 81 |
+
```
|
| 82 |
+
egotouch.tar -> Annotation/egotouch/episodic_annotations/*.npy
|
| 83 |
+
episode_frame_index.npz index_frame_pair (N,2) uint32 + index_to_episode_id (E,)
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
`index_frame_pair` **row number is the sample id**: row r = (episode ordinal, frame within
|
| 87 |
+
that episode). `len(index_frame_pair)` is the size of the training set.
|
| 88 |
+
|
| 89 |
+
```python
|
| 90 |
+
import numpy as np
|
| 91 |
+
# tar -xf egotouch.tar
|
| 92 |
+
z = np.load("episode_frame_index.npz", allow_pickle=True)
|
| 93 |
+
ep_slot, frame_id = z["index_frame_pair"][sample_id]
|
| 94 |
+
eid = str(z["index_to_episode_id"][ep_slot])
|
| 95 |
+
d = np.load(f"Annotation/egotouch/episodic_annotations/{eid}.npy", allow_pickle=True).item()
|
| 96 |
+
rgb_frame_id = int(d["video_decode_frame"][frame_id])
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
Each `.npy` is a dict with `video_name`, `video_decode_frame`, `intrinsics`,
|
| 100 |
+
per-frame `extrinsics` (world->camera), `anno_type` (which hand this episode is for),
|
| 101 |
+
`text`, `text_rephrase`, and a `left`/`right` dict holding `beta`, `hand_pose`,
|
| 102 |
+
`global_orient_worldspace`, `transl_worldspace`, `joints_worldspace`, `kept_frames`.
|
| 103 |
+
`text[hand] = [(sentence, (0, T))]` and `text_rephrase[hand] = [([paraphrases...], (0, T))]`.
|
| 104 |
+
|
| 105 |
+
### Getting the frames
|
| 106 |
+
|
| 107 |
+
`video_decode_frame` indexes the **source** video, which we do not redistribute.
|
| 108 |
+
Get it from EgoTouch — https://huggingface.co/datasets/zhouzhoujy/EgoTouch, then decode by index (we use `decord`; a self-maintained
|
| 109 |
+
sequential counter drifts silently if the decoder ever skips a frame).
|
| 110 |
+
|
| 111 |
+
### Known limitations
|
| 112 |
+
|
| 113 |
+
- Paraphrase count averages 1.93, not a fixed number. Past 3 the model starts inventing;
|
| 114 |
+
a sentence with no prepositional phrase honestly supports only one or two.
|
| 115 |
+
- Verified: the index lists exactly the episodes that have an instruction, every episode's
|
| 116 |
+
stored frame count matches its index rows, and no index entry points at a missing episode.
|