Multi-task video release: README + ReactVideoDataset loader
Browse files
README.md
CHANGED
|
@@ -37,13 +37,10 @@ configs:
|
|
| 37 |
Dense, contact-rich, synchronized multimodal interaction data collected from **human hands holding handheld GelSight tactile sensors** (no robot arm). Intended for **tactile-visual dynamics / world-model learning**.
|
| 38 |
|
| 39 |
> **133 min · 240 k frames @ 30 Hz · 3× RGB + 2× GelSight + OptiTrack · 2 tasks**
|
| 40 |
-
>
|
| 41 |
-
> Rows are written at 30 Hz, but the **tactile stream updates more slowly** — see
|
| 42 |
-
> [Tactile sampling rate](#tactile-sampling-rate-read-this-before-training-on-touch).
|
| 43 |
|
| 44 |
## Format — LeRobot-style video release
|
| 45 |
|
| 46 |
-
Each episode ships as **5 MP4 video streams** (640×480, H.264) + a **per-frame parquet** of poses and contact metrics. This matches how LeRobot / DROID / Open X-Embodiment ship manipulation data: tiny on disk (whole dataset ≈ 4.
|
| 47 |
|
| 48 |
```
|
| 49 |
data/<task>/
|
|
@@ -71,133 +68,10 @@ data/<task>/
|
|
| 71 |
| `sensor_left_pose`, `sensor_right_pose` | list[7] | OptiTrack world pose of each GelSight (xyz + quat wxyz) |
|
| 72 |
| `object_pose` | list[7] | OptiTrack world pose of the manipulated object (NaN where the object body was not tracked — e.g. all pushT) |
|
| 73 |
| `tactile_{L,R}_{intensity,area,mixed}` | float32 | contact metrics (computed at full 640×480) |
|
| 74 |
-
| `tactile_{left,right}_is_new` | bool | **True when that row is a fresh tactile reading** (not a repeat of the previous row) |
|
| 75 |
| `source_h5_frame` | int | index into the original recording |
|
| 76 |
|
| 77 |
**Decoded frames are RGB** (standard decoder convention) for all five RGB streams.
|
| 78 |
|
| 79 |
-
### estimated contact force (`motherboard` + `pushT`, 36 episodes)
|
| 80 |
-
|
| 81 |
-
There is **no force/torque sensor on this rig** — the demonstrator's hand holds
|
| 82 |
-
the sensor, so demonstrated pose equals achieved pose and the usual
|
| 83 |
-
"position error × stiffness" force channel does not exist. These columns are
|
| 84 |
-
**estimated from the GelSight images alone** by photometric reconstruction
|
| 85 |
-
(difference image → per-sensor RGB lookup table → Poisson integration → depth),
|
| 86 |
-
then mapped to newtons by a calibration fitted on sphere presses of known load.
|
| 87 |
-
|
| 88 |
-
| Column | Type | Meaning |
|
| 89 |
-
|---|---|---|
|
| 90 |
-
| `force_{left,right}_normal_n` | float32 | estimated normal force [N], ≥ 0, exactly `0.0` on no-contact rows |
|
| 91 |
-
| `force_{left,right}_penetration_mm` | float32 | `F / k` — how far a stiffness-`k` environment would be pushed in |
|
| 92 |
-
| `force_{left,right}_target_pose` | list[7] | that sensor's pose displaced `F/k` along the contact normal (quaternion carried through unchanged) |
|
| 93 |
-
|
| 94 |
-
```python
|
| 95 |
-
import numpy as np, pyarrow.parquet as pq
|
| 96 |
-
t = pq.read_table("data/motherboard/meta/2026-05-10/episode_000.parquet")
|
| 97 |
-
f = t["force_left_normal_n"].to_numpy() # (T,) newtons
|
| 98 |
-
obs = np.array(t["sensor_left_pose"].to_pylist()) # (T, 7) xyz + quat
|
| 99 |
-
tgt = np.array(t["force_left_target_pose"].to_pylist()) # (T, 7) the action
|
| 100 |
-
```
|
| 101 |
-
|
| 102 |
-
#### What "force-informed action" means, and how to train on it
|
| 103 |
-
|
| 104 |
-
A policy trained to output `sensor_*_pose` learns **where to go**. It cannot
|
| 105 |
-
learn **how hard to press**, because in this data the two are the same signal:
|
| 106 |
-
a human hand reached a pose, and whatever force resulted was never recorded as
|
| 107 |
-
a separate command. Regressing that pose and replaying it on a compliant robot
|
| 108 |
-
reproduces the trajectory and not the interaction — the same motion against a
|
| 109 |
-
stiffer or differently-placed object produces a different force, and nothing
|
| 110 |
-
in the demonstration says which force was intended.
|
| 111 |
-
|
| 112 |
-
`force_*_target_pose` is that missing command, written in the units a robot
|
| 113 |
-
already accepts:
|
| 114 |
-
|
| 115 |
-
```
|
| 116 |
-
target = observed + (F / k) · n̂ n̂ = press direction of that sensor,
|
| 117 |
-
R(q_row) @ gel_axis_in_rigid
|
| 118 |
-
```
|
| 119 |
-
|
| 120 |
-
It is the pose a **stiffness-`k` impedance controller** would have to be
|
| 121 |
-
commanded in order to generate the estimated force `F` against a surface at the
|
| 122 |
-
observed pose. Train the policy to output `target_pose`, deploy it as the
|
| 123 |
-
setpoint of an impedance/admittance controller with the same `k`, and the
|
| 124 |
-
controller produces both the reach and the press. This is the standard trick
|
| 125 |
-
behind position-based force control; the only new part is that `F` came from
|
| 126 |
-
the tactile images rather than from a load cell.
|
| 127 |
-
|
| 128 |
-
```python
|
| 129 |
-
action = tgt # what the policy predicts
|
| 130 |
-
observation = obs # where the sensor actually was
|
| 131 |
-
# free space: byte-identical, so this is a strict addition to the old target
|
| 132 |
-
assert np.array_equal(action[f == 0], observation[f == 0])
|
| 133 |
-
```
|
| 134 |
-
|
| 135 |
-
That identity is not a claim — it is checked element-wise over all **294,653**
|
| 136 |
-
free-space rows of the release, maximum deviation `0.0`, quaternions included.
|
| 137 |
-
Nothing changes where nothing is touched, so a model trained on `target_pose`
|
| 138 |
-
degenerates to the pose-only model in free space and differs only in contact.
|
| 139 |
-
|
| 140 |
-
#### Choosing `k` — it is your controller's number, not ours
|
| 141 |
-
|
| 142 |
-
`k = 2.0 N/mm` is a **declared assumption**, recorded in the parquet field
|
| 143 |
-
metadata (`twm.stiffness_n_per_mm`) and in each `<episode>.force.json`, so a
|
| 144 |
-
target pose is never uninterpretable. It is not a measured property of your
|
| 145 |
-
environment — but it is chosen so the shipped column is at least *physically
|
| 146 |
-
possible*:
|
| 147 |
-
|
| 148 |
-
| | penetration at the shipped `k = 2.0` | inside the 4.25 mm gel? |
|
| 149 |
-
|---|---|---|
|
| 150 |
-
| p95 over all rows | 3.65 mm | yes |
|
| 151 |
-
| p95 over **contact** rows | 3.93 mm | yes |
|
| 152 |
-
| maximum | 7.870 N → 3.935 mm | yes |
|
| 153 |
-
|
| 154 |
-
**0.00%** of rows exceed the gel thickness. This matters because a target
|
| 155 |
-
displaced further past the surface than the gel can be compressed asks for a
|
| 156 |
-
pose that cannot be reached by pressing. Earlier releases shipped `k = 1 N/mm`,
|
| 157 |
-
where 14.98% of rows were in that state.
|
| 158 |
-
|
| 159 |
-
The binding constraint is `k ≥ 1.86 N/mm` — the hardest press (7.870 N) inside
|
| 160 |
-
a 4.25 mm gel. Anything softer puts some rows outside it.
|
| 161 |
-
|
| 162 |
-
If your controller is stiffer, recompute rather than rescale, since the
|
| 163 |
-
direction matters:
|
| 164 |
-
|
| 165 |
-
```python
|
| 166 |
-
K = 4.0 # your controller's stiffness
|
| 167 |
-
n_hat = (tgt[:, :3] - obs[:, :3]) # F/k · n̂ at the shipped k
|
| 168 |
-
n_hat /= np.linalg.norm(n_hat, axis=1, keepdims=True) + 1e-12
|
| 169 |
-
my_target = obs.copy()
|
| 170 |
-
my_target[:, :3] = obs[:, :3] + (f / K)[:, None] * n_hat
|
| 171 |
-
```
|
| 172 |
-
|
| 173 |
-
#### Read this before using the numbers
|
| 174 |
-
|
| 175 |
-
- **Accuracy is rank-order within a group, not a certified absolute scale.**
|
| 176 |
-
Held out by press position the estimator scores ρ = 0.781 / MAE 1.07 N on its
|
| 177 |
-
own calibration objects — but that holdout is only 158 presses and a paired
|
| 178 |
-
bootstrap cannot separate it from the previous reconstruction (95% CI on the
|
| 179 |
-
difference [-0.081, +0.120]). The evidence that it is the better estimator is
|
| 180 |
-
external: on five public force-labelled datasets the same pipeline reaches
|
| 181 |
-
ρ 0.648–0.996 over 604–2,000 scored presses each. It is reliable for *how hard, relative to
|
| 182 |
-
other frames*; it is not a load cell. Do not report absolute newtons from
|
| 183 |
-
this dataset as ground truth.
|
| 184 |
-
- **Forces saturate at 7.870 N.** The calibration's isotonic stage clips at the
|
| 185 |
-
hardest press it was fitted on, so 2.22% of samples sit exactly at that value.
|
| 186 |
-
Treat the maximum as a floor, not a measurement, and consider masking rows at
|
| 187 |
-
the ceiling out of a regression loss.
|
| 188 |
-
- **Duplicate tactile rows repeat the previous estimate.** The GelSight stream
|
| 189 |
-
is slower than 30 Hz; rows with `tactile_{side}_is_new == False` carry the
|
| 190 |
-
previous frame's force unchanged (forward fill, asserted exact). Filter on
|
| 191 |
-
`is_new` if you need independent samples — and note that a force *derivative*
|
| 192 |
-
computed without that filter is zero on ~72% of rows by construction.
|
| 193 |
-
- **Row alignment is verified, not assumed.** Every one of the **72/72**
|
| 194 |
-
sensor-sides was checked row-for-row against the release parquet it was
|
| 195 |
-
exported from.
|
| 196 |
-
- **The direction `n̂` comes from calibration, not from the image.** It is the
|
| 197 |
-
sensor's gel axis rotated by the row's own quaternion. Two sensor-sides of 72
|
| 198 |
-
lack a usable gel-to-rigid transform and carry force with no displacement;
|
| 199 |
-
they are identified in `data/force_export_manifest.json`.
|
| 200 |
-
|
| 201 |
### depth (optional, `data/<task>/depth/`)
|
| 202 |
Per-camera depth is shipped as **lossless FFV1 16-bit video** (`gray16le`):
|
| 203 |
```
|
|
@@ -226,16 +100,16 @@ Camera extrinsics are used only for the projection overlay; **stored poses are O
|
|
| 226 |
|
| 227 |
## Downloading — depth is optional
|
| 228 |
|
| 229 |
-
The dataset splits into a **lightweight core** (RGB + tactile + poses, ~4.
|
| 230 |
|
| 231 |
```python
|
| 232 |
from huggingface_hub import snapshot_download
|
| 233 |
|
| 234 |
-
# Core only — RGB + tactile + parquet, NO depth (~4.
|
| 235 |
snapshot_download("yxma/React", repo_type="dataset",
|
| 236 |
ignore_patterns=["*/depth/*"])
|
| 237 |
|
| 238 |
-
# Everything including depth (~
|
| 239 |
snapshot_download("yxma/React", repo_type="dataset")
|
| 240 |
|
| 241 |
# One task only
|
|
@@ -260,9 +134,9 @@ sample = ds[0]
|
|
| 260 |
```
|
| 261 |
`mode="segment"` iterates clean spans (no bad frames by construction); `mode="window"` slides over whole episodes and skips `bad_frames.json` intervals. Backend: PyAV (install `decord` for faster random access).
|
| 262 |
|
| 263 |
-
##
|
| 264 |
|
| 265 |
-
Recordings **up to and including 2026-06-18**
|
| 266 |
lag of **≈15 frames (~0.5 s)**: the tactile stream at index `i` was physically
|
| 267 |
captured ~15 frames *before* the camera/pose at the same index. Cause: a
|
| 268 |
recording-side `cv2.VideoCapture` V4L2 buffer that was never flushed
|
|
@@ -270,7 +144,7 @@ recording-side `cv2.VideoCapture` V4L2 buffer that was never flushed
|
|
| 270 |
on 2026-06-27; **future recordings will not have this lag**.
|
| 271 |
|
| 272 |
The streams are stored frame-aligned by tick index, so this lag is baked in but
|
| 273 |
-
**
|
| 274 |
|
| 275 |
```python
|
| 276 |
ds = ReactVideoDataset("data/motherboard", tactile_latency=15) # pairs view[i] with tactile[i+15]
|
|
@@ -281,181 +155,13 @@ columns; poses/views/depth are unchanged. Set `tactile_latency=0` for the raw
|
|
| 281 |
(uncompensated) data. The exact per-session value should be re-measured with
|
| 282 |
`camera_stream/measure_gelsight_latency.py`.
|
| 283 |
|
| 284 |
-
## Tactile sampling rate (read this before training on touch)
|
| 285 |
-
|
| 286 |
-
Parquet rows and all five videos are written at 30 Hz, but the GelSight stream
|
| 287 |
-
does **not** carry 30 Hz of information. Measured across the whole release:
|
| 288 |
-
|
| 289 |
-
| | value |
|
| 290 |
-
|---|---|
|
| 291 |
-
| tactile rows | 480 080 (2 sensors × 240 k frames) |
|
| 292 |
-
| genuinely distinct tactile frames | **135 297** |
|
| 293 |
-
| duplicated rows | **71.8 %** |
|
| 294 |
-
| effective tactile rate | **~8.5 fps** |
|
| 295 |
-
| longest frozen stretch | 30 frames (1.0 s) |
|
| 296 |
-
|
| 297 |
-
Two causes, one fixed:
|
| 298 |
-
|
| 299 |
-
1. **Sensor ceiling** — the GelSight Mini streams 3280×2464 MJPG at 18.75 fps.
|
| 300 |
-
Some duplication against a 30 Hz row clock is unavoidable (~40 %).
|
| 301 |
-
2. **Recording-side decode backlog** *(all currently published data)* — the rig
|
| 302 |
-
decoded each full 8 MP frame on the capture thread (~71 ms), so tactile
|
| 303 |
-
effectively ran at ~8 fps and every frame was reused ~3.6×. Fixed on the rig
|
| 304 |
-
on 2026-06-27 (reduced-scale decode + per-sensor capture timestamps);
|
| 305 |
-
recordings from that date on reach the 18.75 fps ceiling.
|
| 306 |
-
|
| 307 |
-
**Use the flags.** Every row carries `tactile_left_is_new` /
|
| 308 |
-
`tactile_right_is_new`:
|
| 309 |
-
|
| 310 |
-
```python
|
| 311 |
-
df = pq.read_table("episode_000.parquet").to_pandas()
|
| 312 |
-
fresh = df[df.tactile_left_is_new] # 8.5 fps of real readings
|
| 313 |
-
```
|
| 314 |
-
|
| 315 |
-
Training tactile dynamics on all rows teaches the model that touch mostly does
|
| 316 |
-
not change; it does, we just sampled it slowly. Visual and pose streams are
|
| 317 |
-
unaffected — those are genuinely 30 Hz.
|
| 318 |
-
|
| 319 |
-
The flags were recovered from the shipped contact metrics (a repeated frame
|
| 320 |
-
gives a bit-identical metric triple) and checked frame-by-frame against the
|
| 321 |
-
source recordings: **0 mismatches over 899 frames on each of 7 audited
|
| 322 |
-
episodes**, spanning both tasks. The same check independently recovers the
|
| 323 |
-
+15-frame latency correction baked into the release.
|
| 324 |
-
|
| 325 |
-
## How to use this dataset
|
| 326 |
-
|
| 327 |
-
Three recipes, in the order most people need them. Every one is executed
|
| 328 |
-
against the published files by `scripts/test_readme_recipes.py`, so the code
|
| 329 |
-
below is code that runs, not code that reads well.
|
| 330 |
-
|
| 331 |
-
### 1. Sample training clips — start from `segments.json`, not from episodes
|
| 332 |
-
|
| 333 |
-
An episode is a raw recording and contains flagged frames. A **segment** is a
|
| 334 |
-
contiguous span that is already clean. Sampling clips from episodes means
|
| 335 |
-
re-deriving the quality filter yourself and getting it slightly different.
|
| 336 |
-
|
| 337 |
-
```python
|
| 338 |
-
import json, numpy as np, pyarrow.parquet as pq
|
| 339 |
-
|
| 340 |
-
segs = json.load(open("data/pushT/segments.json"))["segments"]
|
| 341 |
-
s = segs[0] # {'source_episode', 'frame_range', ...}
|
| 342 |
-
date, ep = s["source_episode"].split("/")
|
| 343 |
-
a, b = s["frame_range"] # inclusive, in VIDEO frame coords
|
| 344 |
-
|
| 345 |
-
t = pq.read_table(f"data/pushT/meta/{date}/{ep}.parquet").slice(a, b - a + 1)
|
| 346 |
-
```
|
| 347 |
-
|
| 348 |
-
`frame_range` indexes the published MP4s and the parquet with the same origin,
|
| 349 |
-
so frame `i` of `view_middle.mp4` is row `i` of the parquet. No offset, no
|
| 350 |
-
lookup table.
|
| 351 |
-
|
| 352 |
-
### 2. Train on touch — respect the tactile rate
|
| 353 |
-
|
| 354 |
-
Rows are written at 30 Hz; the GelSight stream is slower. A row with
|
| 355 |
-
`tactile_{side}_is_new == False` repeats the previous tactile frame, its
|
| 356 |
-
contact scalars, and its force estimate, unchanged.
|
| 357 |
-
|
| 358 |
-
```python
|
| 359 |
-
new = t["tactile_left_is_new"].to_numpy()
|
| 360 |
-
# independent tactile samples only
|
| 361 |
-
idx = np.flatnonzero(new)
|
| 362 |
-
# a finite difference over ALL rows is 0 wherever is_new is False, by construction
|
| 363 |
-
```
|
| 364 |
-
|
| 365 |
-
Roughly 72% of rows are repeats. Ignoring this does not corrupt a model that
|
| 366 |
-
consumes frames independently, but it silently zeroes any temporal derivative
|
| 367 |
-
of a tactile channel and inflates any "how often does touch change" statistic.
|
| 368 |
-
|
| 369 |
-
### 3. Train an action that includes *how hard*
|
| 370 |
-
|
| 371 |
-
This is the part that distinguishes React from a pose-only demonstration set,
|
| 372 |
-
so it gets its own section: **[estimated contact
|
| 373 |
-
force](#estimated-contact-force-motherboard--pusht-36-episodes)**. In short:
|
| 374 |
-
|
| 375 |
-
```python
|
| 376 |
-
observation = np.array(t["sensor_left_pose"].to_pylist()) # where it was
|
| 377 |
-
action = np.array(t["force_left_target_pose"].to_pylist()) # where to push to
|
| 378 |
-
```
|
| 379 |
-
|
| 380 |
-
`action` equals `observation` exactly in free space and leads it by `F/k` along
|
| 381 |
-
the press direction during contact. Train on `action`, deploy through an
|
| 382 |
-
impedance controller of stiffness `k`, and the policy commands both the reach
|
| 383 |
-
and the press. Read that section before choosing `k` — the shipped `k = 1 N/mm`
|
| 384 |
-
is a declared assumption and a soft one.
|
| 385 |
-
|
| 386 |
-
### What this dataset is not
|
| 387 |
-
|
| 388 |
-
- **No robot.** A human hand holds each sensor. There are no joint angles, no
|
| 389 |
-
gripper state, and no action in the robot-command sense other than the
|
| 390 |
-
force-informed target pose described above.
|
| 391 |
-
- **No force sensor.** Every newton in these files is estimated from tactile
|
| 392 |
-
images. It is calibrated and validated, and it is still an estimate — see the
|
| 393 |
-
limits in the force section before reporting absolute values.
|
| 394 |
-
- **Not a benchmark.** There is no train/val/test split and no success label.
|
| 395 |
-
It is interaction data for dynamics and representation learning.
|
| 396 |
-
|
| 397 |
## Data quality
|
| 398 |
-
|
| 399 |
-
Per-task `bad_frames.json` marks intervals that should not be trained on, and
|
| 400 |
-
`segments.json` is their complement — contiguous clean spans, already excluding
|
| 401 |
-
every flag below. **Use `segments.json` and you never have to think about
|
| 402 |
-
this table.**
|
| 403 |
-
|
| 404 |
-
| flag | motherboard | pushT |
|
| 405 |
-
|---|---|---|
|
| 406 |
-
| `cam_corruption` | 0 | 0 |
|
| 407 |
-
| `intensity_spikes` | 56 | 10 |
|
| 408 |
-
| `ot_loss_L` | 1,443 | 106 |
|
| 409 |
-
| `ot_loss_R` | 236 | 191 |
|
| 410 |
-
| `pose_teleports_L` | 24 | 0 |
|
| 411 |
-
| `pose_teleports_R` | 16 | 0 |
|
| 412 |
-
| `tactile_corruption` | 102 | 10 |
|
| 413 |
-
| **flagged (union)** | **1,797 / 194,445 (0.92%)** | **307 / 45,595 (0.67%)** |
|
| 414 |
-
| **clean segments** | 81 spans, 192,626 frames (107.0 min) | 17 spans, 45,288 frames (25.2 min) |
|
| 415 |
-
| **dropped, clean but < 16 frames** | 22 | 0 |
|
| 416 |
-
|
| 417 |
-
The three rows above reconcile exactly: flagged + clean + dropped = total, for
|
| 418 |
-
both tasks. Per-flag counts do **not** sum to the flagged total, because one
|
| 419 |
-
frame can trip two detectors; the union is what `summary` reports and what the
|
| 420 |
-
segments complement.
|
| 421 |
-
|
| 422 |
-
`ot_loss_*` is OptiTrack track loss (a run of bit-identical poses, i.e. frozen
|
| 423 |
-
action), `pose_teleports_*` an implausible jump in translation *and* rotation
|
| 424 |
-
in one frame, `intensity_spikes` a GelSight reading above anything contact
|
| 425 |
-
produces. `tactile_corruption` and `cam_corruption` are **video** defects —
|
| 426 |
-
torn frames the sidecar scalars cannot see. They are found by looking for
|
| 427 |
-
off-illumination magenta laid out in scanlines: a GelSight is lit by three
|
| 428 |
-
coloured LEDs, magenta is outside that gamut, and a corrupt row is written
|
| 429 |
-
edge to edge while an object pressed into the gel is not. Every flagged
|
| 430 |
-
interval in this release was also inspected by eye.
|
| 431 |
-
|
| 432 |
-
**Runt episodes.** Two motherboard recordings are far too short to be complete
|
| 433 |
-
demonstrations and are best filtered out: `2026-05-19/episode_003` (4.0 s) and
|
| 434 |
-
`2026-05-19/episode_004` (7.0 s). Median episode length is 213 s; these two are
|
| 435 |
-
together 0.8 % of the release. They are shipped rather than deleted so episode
|
| 436 |
-
numbering stays stable.
|
| 437 |
-
|
| 438 |
-
**A missing pushT episode.** `pushT/2026-06-18/episode_004` was recorded but is
|
| 439 |
-
not published. Its recorder died without closing the file, which loses HDF5's
|
| 440 |
-
metadata cache: 79 GB of intact pixels behind a root object header that was
|
| 441 |
-
never written. All eight image streams were recovered (15,447 frames,
|
| 442 |
-
byte-verified), but only 2 of 16 timestamp chunks survived and no usable
|
| 443 |
-
OptiTrack poses. Without timestamps there is no cross-modal alignment, and
|
| 444 |
-
reconstructing them by interpolation misplaces frames by 15–1431 — so it is
|
| 445 |
-
video, not an episode, and is deliberately absent rather than published
|
| 446 |
-
half-aligned. Episode numbering is unaffected: pushT publishes 000–003.
|
| 447 |
|
| 448 |
## Notes
|
| 449 |
-
- **Depth is
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
it — everything else is 4.8 GB.
|
| 453 |
-
- The previous single-task `.pt` release (`episodes/`, `segments/`) is
|
| 454 |
-
superseded by this video format.
|
| 455 |
-
- Preview clips under `data/<task>/previews/` are 30 s renders at 2x with the
|
| 456 |
-
three camera views, the OptiTrack skeleton, both GelSight streams and the
|
| 457 |
-
projected sensor position. They are for looking, not for training, and frames
|
| 458 |
-
excluded by `bad_frames.json` are outlined and named in red.
|
| 459 |
|
| 460 |
## License
|
| 461 |
[CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/).
|
|
|
|
| 37 |
Dense, contact-rich, synchronized multimodal interaction data collected from **human hands holding handheld GelSight tactile sensors** (no robot arm). Intended for **tactile-visual dynamics / world-model learning**.
|
| 38 |
|
| 39 |
> **133 min · 240 k frames @ 30 Hz · 3× RGB + 2× GelSight + OptiTrack · 2 tasks**
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## Format — LeRobot-style video release
|
| 42 |
|
| 43 |
+
Each episode ships as **5 MP4 video streams** (640×480, H.264) + a **per-frame parquet** of poses and contact metrics. This matches how LeRobot / DROID / Open X-Embodiment ship manipulation data: tiny on disk (whole dataset ≈ 4.3 GB vs ~1 TB raw), random-access decodable, training-ready.
|
| 44 |
|
| 45 |
```
|
| 46 |
data/<task>/
|
|
|
|
| 68 |
| `sensor_left_pose`, `sensor_right_pose` | list[7] | OptiTrack world pose of each GelSight (xyz + quat wxyz) |
|
| 69 |
| `object_pose` | list[7] | OptiTrack world pose of the manipulated object (NaN where the object body was not tracked — e.g. all pushT) |
|
| 70 |
| `tactile_{L,R}_{intensity,area,mixed}` | float32 | contact metrics (computed at full 640×480) |
|
|
|
|
| 71 |
| `source_h5_frame` | int | index into the original recording |
|
| 72 |
|
| 73 |
**Decoded frames are RGB** (standard decoder convention) for all five RGB streams.
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
### depth (optional, `data/<task>/depth/`)
|
| 76 |
Per-camera depth is shipped as **lossless FFV1 16-bit video** (`gray16le`):
|
| 77 |
```
|
|
|
|
| 100 |
|
| 101 |
## Downloading — depth is optional
|
| 102 |
|
| 103 |
+
The dataset splits into a **lightweight core** (RGB + tactile + poses, ~4.4 GB) and an **optional depth tree** (`data/<task>/depth/`, ~33 GB lossless). Depth lives in its own subtree so you can skip it entirely.
|
| 104 |
|
| 105 |
```python
|
| 106 |
from huggingface_hub import snapshot_download
|
| 107 |
|
| 108 |
+
# Core only — RGB + tactile + parquet, NO depth (~4.4 GB)
|
| 109 |
snapshot_download("yxma/React", repo_type="dataset",
|
| 110 |
ignore_patterns=["*/depth/*"])
|
| 111 |
|
| 112 |
+
# Everything including depth (~37 GB)
|
| 113 |
snapshot_download("yxma/React", repo_type="dataset")
|
| 114 |
|
| 115 |
# One task only
|
|
|
|
| 134 |
```
|
| 135 |
`mode="segment"` iterates clean spans (no bad frames by construction); `mode="window"` slides over whole episodes and skips `bad_frames.json` intervals. Backend: PyAV (install `decord` for faster random access).
|
| 136 |
|
| 137 |
+
## ⚠️ Known issue: tactile acquisition latency (~15 frames)
|
| 138 |
|
| 139 |
+
Recordings **up to and including 2026-06-18** have a GelSight-vs-camera capture
|
| 140 |
lag of **≈15 frames (~0.5 s)**: the tactile stream at index `i` was physically
|
| 141 |
captured ~15 frames *before* the camera/pose at the same index. Cause: a
|
| 142 |
recording-side `cv2.VideoCapture` V4L2 buffer that was never flushed
|
|
|
|
| 144 |
on 2026-06-27; **future recordings will not have this lag**.
|
| 145 |
|
| 146 |
The streams are stored frame-aligned by tick index, so this lag is baked in but
|
| 147 |
+
**correctable**. The reference loader compensates at load time:
|
| 148 |
|
| 149 |
```python
|
| 150 |
ds = ReactVideoDataset("data/motherboard", tactile_latency=15) # pairs view[i] with tactile[i+15]
|
|
|
|
| 155 |
(uncompensated) data. The exact per-session value should be re-measured with
|
| 156 |
`camera_stream/measure_gelsight_latency.py`.
|
| 157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
## Data quality
|
| 159 |
+
Per-task `bad_frames.json` flags `intensity_spikes`, `pose_teleports_{L,R}`, `ot_loss_{L,R}` (OptiTrack track loss). Overall flagged: motherboard 0.90 %, pushT 0.67 %. `segments.json` already excludes them.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
|
| 161 |
## Notes
|
| 162 |
+
- **Depth** is available in the source recordings and will be added under `data/<task>/depth/` in a later upload.
|
| 163 |
+
- One pushT source recording (`episode_004`) was corrupt and excluded.
|
| 164 |
+
- The previous single-task `.pt` release (`episodes/`, `segments/`) is superseded by this video format.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
## License
|
| 167 |
[CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/).
|