yxma commited on
Commit
027d2da
·
verified ·
1 Parent(s): 8da704e

Publish 2026-05-19 session + introduce multi-cam schema (view_left/middle/right). 5 episodes + segments; bad_frames + tasks + README + schema doc updated. Multi-cam rollout for 2026-05-10/11 still in progress (legacy mode1_v1/mode2_v1 paths remain valid until that wave finishes).

Browse files
README.md CHANGED
@@ -75,10 +75,15 @@ Dense, contact-rich, synchronized multimodal interaction data collected from **h
75
  | 2026-05-10 | session | left + right | First full bimanual session. |
76
  | 2026-05-11 | session | left + right | Largest session. A handful of GelSight LED-flicker frames + one mocap teleport; see [`bad_frames.json`](bad_frames.json). |
77
 
 
 
78
  See [`tasks.json`](tasks.json) for the machine-readable registry (per-date `active_sensors`, etc.).
79
 
80
  **OT-uninitialized prefixes trimmed.** Three episodes had OptiTrack offline at the start of recording (1–11 min each); those prefixes have been cut from the published `.pt` files (`_contact_meta.trim_offset` per file). Future recordings use an OT watchdog that refuses to start an episode unless mocap is streaming. Full story: [`docs/caveats.md`](docs/caveats.md).
81
 
 
 
 
82
  ## Data quality
83
 
84
  | Mode | Frames | % | Files | Cause |
 
75
  | 2026-05-10 | session | left + right | First full bimanual session. |
76
  | 2026-05-11 | session | left + right | Largest session. A handful of GelSight LED-flicker frames + one mocap teleport; see [`bad_frames.json`](bad_frames.json). |
77
 
78
+ | 2026-05-19 | session | left + right | New session, multi-cam (`view_left/middle/right`) end-to-end. Curation via reproducible `detect_bad_intervals.py` ruleset (see [`docs/curation_pipeline.md`](docs/curation_pipeline.md)). |
79
+
80
  See [`tasks.json`](tasks.json) for the machine-readable registry (per-date `active_sensors`, etc.).
81
 
82
  **OT-uninitialized prefixes trimmed.** Three episodes had OptiTrack offline at the start of recording (1–11 min each); those prefixes have been cut from the published `.pt` files (`_contact_meta.trim_offset` per file). Future recordings use an OT watchdog that refuses to start an episode unless mocap is streaming. Full story: [`docs/caveats.md`](docs/caveats.md).
83
 
84
+
85
+ > **Multi-cam migration in progress.** As of 2026-05-19 the per-episode .pt files under `episodes/motherboard/2026-05-19/` ship all three RealSense views (`view_left`, `view_middle`, `view_right`). The 2026-05-10 and 2026-05-11 sessions are being re-published with the same multi-cam layout; until then, those still appear under the legacy `processed/mode1_v1/` (single-cam `view`) and `processed/mode2_v1/` paths.
86
+
87
  ## Data quality
88
 
89
  | Mode | Frames | % | Files | Cause |
bad_frames.json CHANGED
@@ -8,14 +8,15 @@
8
  "trim_offsets": {
9
  "2026-05-11/episode_005": 2429,
10
  "2026-05-11/episode_012": 9719,
11
- "2026-05-11/episode_017": 19228
 
12
  },
13
  "trim_note": "Each .pt has been trimmed at the start to drop the OT-uninitialized prefix (sensor pose not yet streaming). The amount trimmed is recorded in `_contact_meta.trim_offset` inside each .pt; all frame indices in this file are in TRIMMED coordinates (0 = first frame with valid OT).",
14
  "summary": {
15
- "n_episodes": 27,
16
- "total_frames": 190231,
17
  "total_bad_frames": 1768,
18
- "bad_fraction_overall": 0.009293963654714531,
19
  "n_episodes_with_bad_frames": 11
20
  },
21
  "episodes": {
@@ -553,6 +554,61 @@
553
  "bad_fraction": 0.0,
554
  "ot_loss_L": [],
555
  "ot_loss_R": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
556
  }
557
  }
558
  }
 
8
  "trim_offsets": {
9
  "2026-05-11/episode_005": 2429,
10
  "2026-05-11/episode_012": 9719,
11
+ "2026-05-11/episode_017": 19228,
12
+ "2026-05-19/episode_000": 1
13
  },
14
  "trim_note": "Each .pt has been trimmed at the start to drop the OT-uninitialized prefix (sensor pose not yet streaming). The amount trimmed is recorded in `_contact_meta.trim_offset` inside each .pt; all frame indices in this file are in TRIMMED coordinates (0 = first frame with valid OT).",
15
  "summary": {
16
+ "n_episodes": 32,
17
+ "total_frames": 194445,
18
  "total_bad_frames": 1768,
19
+ "bad_fraction_overall": 0.0091,
20
  "n_episodes_with_bad_frames": 11
21
  },
22
  "episodes": {
 
554
  "bad_fraction": 0.0,
555
  "ot_loss_L": [],
556
  "ot_loss_R": []
557
+ },
558
+ "2026-05-19/episode_000": {
559
+ "n_frames": 1434,
560
+ "duration_s": 47.8,
561
+ "intensity_spikes": [],
562
+ "pose_teleports_L": [],
563
+ "pose_teleports_R": [],
564
+ "ot_loss_L": [],
565
+ "ot_loss_R": [],
566
+ "total_bad_frames": 0,
567
+ "bad_fraction": 0.0
568
+ },
569
+ "2026-05-19/episode_001": {
570
+ "n_frames": 740,
571
+ "duration_s": 24.667,
572
+ "intensity_spikes": [],
573
+ "pose_teleports_L": [],
574
+ "pose_teleports_R": [],
575
+ "ot_loss_L": [],
576
+ "ot_loss_R": [],
577
+ "total_bad_frames": 0,
578
+ "bad_fraction": 0.0
579
+ },
580
+ "2026-05-19/episode_002": {
581
+ "n_frames": 1710,
582
+ "duration_s": 57.0,
583
+ "intensity_spikes": [],
584
+ "pose_teleports_L": [],
585
+ "pose_teleports_R": [],
586
+ "ot_loss_L": [],
587
+ "ot_loss_R": [],
588
+ "total_bad_frames": 0,
589
+ "bad_fraction": 0.0
590
+ },
591
+ "2026-05-19/episode_003": {
592
+ "n_frames": 121,
593
+ "duration_s": 4.033,
594
+ "intensity_spikes": [],
595
+ "pose_teleports_L": [],
596
+ "pose_teleports_R": [],
597
+ "ot_loss_L": [],
598
+ "ot_loss_R": [],
599
+ "total_bad_frames": 0,
600
+ "bad_fraction": 0.0
601
+ },
602
+ "2026-05-19/episode_004": {
603
+ "n_frames": 209,
604
+ "duration_s": 6.967,
605
+ "intensity_spikes": [],
606
+ "pose_teleports_L": [],
607
+ "pose_teleports_R": [],
608
+ "ot_loss_L": [],
609
+ "ot_loss_R": [],
610
+ "total_bad_frames": 0,
611
+ "bad_fraction": 0.0
612
  }
613
  }
614
  }
docs/schema.md CHANGED
@@ -40,3 +40,14 @@ For each tactile sensor independently:
40
  - Position is in **meters** in OptiTrack room coordinates.
41
  - Quaternion follows `(qx, qy, qz, qw)` ordering (scalar last).
42
  - To project sensor positions into a camera image, compose `sensor_pose → T_mocap_to_cam → camera intrinsics`. The recording-side calibration files (`T_mocap_to_cam_*.json` and `T_gel_to_rigid_*.json`) are referenced in [`recording.md`](recording.md).
 
 
 
 
 
 
 
 
 
 
 
 
40
  - Position is in **meters** in OptiTrack room coordinates.
41
  - Quaternion follows `(qx, qy, qz, qw)` ordering (scalar last).
42
  - To project sensor positions into a camera image, compose `sensor_pose → T_mocap_to_cam → camera intrinsics`. The recording-side calibration files (`T_mocap_to_cam_*.json` and `T_gel_to_rigid_*.json`) are referenced in [`recording.md`](recording.md).
43
+ ## Multi-cam fields (sessions from 2026-05-19 onward)
44
+
45
+ Newer sessions ship all three RealSense views per episode/segment in BGR channel order (matching what `cv2.imshow` expects). Each is built from the raw 480×640 H5 stream by center-cropping columns to 480×480 and `cv2.resize`-ing to 128×128 with `INTER_AREA` — verified bit-for-bit against the legacy single-cam `view` recipe.
46
+
47
+ | Key | Shape | dtype | Source H5 dataset | Physical camera |
48
+ |---|---|---|---|---|
49
+ | `view_left` | `(T, 3, 128, 128)` | uint8 (BGR) | `realsense/cam1/color` | Left RealSense (serial 104122062574) |
50
+ | `view_middle` | `(T, 3, 128, 128)` | uint8 (BGR) | `realsense/cam2/color` | Middle RealSense (serial 217222066989) |
51
+ | `view_right` | `(T, 3, 128, 128)` | uint8 (BGR) | `realsense/cam0/color` | Right RealSense (serial 143322063538) — historical `view` |
52
+
53
+ The legacy single-cam `view` field is equivalent to `view_right`. The 2026-05-10 and 2026-05-11 sessions will be re-published with this layout; until then, they still ship the single-cam `view` only.
episodes/motherboard/2026-05-19/episode_000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2a3baaf641344ecc8c00a26f8282112535478ed49f43d8fee105a6307b0e1dc
3
+ size 352748730
episodes/motherboard/2026-05-19/episode_001.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30f6e301a3656fd24b0e0f1a437262a4a1ad5706500ffb2d931b8a223b5e6a8a
3
+ size 182130298
episodes/motherboard/2026-05-19/episode_002.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:923a6ef1f33da856888e8ac8da9725272df748fa73a619f7297dbca62c548702
3
+ size 420602682
episodes/motherboard/2026-05-19/episode_003.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:400f244d5f77880cfe14f5102409e9751fbe1aa3c93311635ad62d5556022df8
3
+ size 29950330
episodes/motherboard/2026-05-19/episode_004.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:516ef027f7ed33682e1cacfdf9fad9135f348714da0da4b383b13b0570df9724
3
+ size 51585082
segments.json CHANGED
@@ -1,10 +1,10 @@
1
  {
2
- "schema": "mode2_v1",
3
- "description": "Each .pt is a contiguous clean segment of a source recording. Bad intervals from bad_frames.json (intensity_spikes, pose_teleports_*, ot_loss_*) are excluded by construction, so a dataloader can iterate windows here without any per-window quality filter. Use `source_h5_frame_range` to map back to the original H5 recording.",
4
- "n_source_episodes": 27,
5
- "n_segments": 73,
6
- "total_frames": 188442,
7
- "total_duration_min": 104.69,
8
  "median_segment_frames": 1175,
9
  "median_segment_s": 39.167,
10
  "min_segment_frames_kept": 16,
@@ -1761,6 +1761,126 @@
1761
  "left",
1762
  "right"
1763
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1764
  }
1765
  ]
1766
  }
 
1
  {
2
+ "schema": "segments_v1",
3
+ "description": "Each .pt is a contiguous clean segment of a source recording. Bad intervals from bad_frames.json (intensity_spikes, pose_teleports_*, ot_loss_*) are excluded by construction, so a dataloader can iterate windows here without any per-window quality filter. Use `source_h5_frame_range` to map back to the original H5 recording. Each segment includes three RealSense views (`view_left`, `view_middle`, `view_right`) and two GelSight tactile streams (`tactile_left`, `tactile_right`).",
4
+ "n_source_episodes": 32,
5
+ "n_segments": 78,
6
+ "total_frames": 192656,
7
+ "total_duration_min": 107.03,
8
  "median_segment_frames": 1175,
9
  "median_segment_s": 39.167,
10
  "min_segment_frames_kept": 16,
 
1761
  "left",
1762
  "right"
1763
  ]
1764
+ },
1765
+ {
1766
+ "path": "segments/motherboard/2026-05-19/episode_000.segment_00.pt",
1767
+ "source_episode": "2026-05-19/episode_000",
1768
+ "source_segment_idx": 0,
1769
+ "n_frames": 1434,
1770
+ "duration_s": 47.8,
1771
+ "source_pt_frame_range": [
1772
+ 0,
1773
+ 1433
1774
+ ],
1775
+ "source_h5_frame_range": [
1776
+ 1,
1777
+ 1434
1778
+ ],
1779
+ "contact_pct_left": 78.66,
1780
+ "contact_pct_right": 75.03,
1781
+ "mean_speed_left_mps": 0.2365,
1782
+ "mean_speed_right_mps": 0.2052,
1783
+ "file_size_mb": 336.41,
1784
+ "active_sensors": [
1785
+ "left",
1786
+ "right"
1787
+ ]
1788
+ },
1789
+ {
1790
+ "path": "segments/motherboard/2026-05-19/episode_001.segment_00.pt",
1791
+ "source_episode": "2026-05-19/episode_001",
1792
+ "source_segment_idx": 0,
1793
+ "n_frames": 740,
1794
+ "duration_s": 24.667,
1795
+ "source_pt_frame_range": [
1796
+ 0,
1797
+ 739
1798
+ ],
1799
+ "source_h5_frame_range": [
1800
+ 0,
1801
+ 739
1802
+ ],
1803
+ "contact_pct_left": 78.92,
1804
+ "contact_pct_right": 59.46,
1805
+ "mean_speed_left_mps": 0.2651,
1806
+ "mean_speed_right_mps": 0.2382,
1807
+ "file_size_mb": 173.69,
1808
+ "active_sensors": [
1809
+ "left",
1810
+ "right"
1811
+ ]
1812
+ },
1813
+ {
1814
+ "path": "segments/motherboard/2026-05-19/episode_002.segment_00.pt",
1815
+ "source_episode": "2026-05-19/episode_002",
1816
+ "source_segment_idx": 0,
1817
+ "n_frames": 1710,
1818
+ "duration_s": 57.0,
1819
+ "source_pt_frame_range": [
1820
+ 0,
1821
+ 1709
1822
+ ],
1823
+ "source_h5_frame_range": [
1824
+ 0,
1825
+ 1709
1826
+ ],
1827
+ "contact_pct_left": 65.15,
1828
+ "contact_pct_right": 64.68,
1829
+ "mean_speed_left_mps": 0.3095,
1830
+ "mean_speed_right_mps": 0.2932,
1831
+ "file_size_mb": 401.12,
1832
+ "active_sensors": [
1833
+ "left",
1834
+ "right"
1835
+ ]
1836
+ },
1837
+ {
1838
+ "path": "segments/motherboard/2026-05-19/episode_003.segment_00.pt",
1839
+ "source_episode": "2026-05-19/episode_003",
1840
+ "source_segment_idx": 0,
1841
+ "n_frames": 121,
1842
+ "duration_s": 4.033,
1843
+ "source_pt_frame_range": [
1844
+ 0,
1845
+ 120
1846
+ ],
1847
+ "source_h5_frame_range": [
1848
+ 0,
1849
+ 120
1850
+ ],
1851
+ "contact_pct_left": 96.69,
1852
+ "contact_pct_right": 42.98,
1853
+ "mean_speed_left_mps": 0.254,
1854
+ "mean_speed_right_mps": 0.1799,
1855
+ "file_size_mb": 28.56,
1856
+ "active_sensors": [
1857
+ "left",
1858
+ "right"
1859
+ ]
1860
+ },
1861
+ {
1862
+ "path": "segments/motherboard/2026-05-19/episode_004.segment_00.pt",
1863
+ "source_episode": "2026-05-19/episode_004",
1864
+ "source_segment_idx": 0,
1865
+ "n_frames": 209,
1866
+ "duration_s": 6.967,
1867
+ "source_pt_frame_range": [
1868
+ 0,
1869
+ 208
1870
+ ],
1871
+ "source_h5_frame_range": [
1872
+ 0,
1873
+ 208
1874
+ ],
1875
+ "contact_pct_left": 75.12,
1876
+ "contact_pct_right": 56.94,
1877
+ "mean_speed_left_mps": 0.128,
1878
+ "mean_speed_right_mps": 0.1422,
1879
+ "file_size_mb": 49.2,
1880
+ "active_sensors": [
1881
+ "left",
1882
+ "right"
1883
+ ]
1884
  }
1885
  ]
1886
  }
segments/motherboard/2026-05-19/episode_000.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9637fcfd2b5464f147ce1656fbc6efd0f367022e7efd342df1d6ccd86cf0e8e5
3
+ size 352749228
segments/motherboard/2026-05-19/episode_001.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4c3365964d80e6c7d7ac5570ef7e3a4f2d234838ed0d7bedc307c52bf7dfe0a
3
+ size 182130860
segments/motherboard/2026-05-19/episode_002.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70adf0db714594962360d8cd16eca880a9fe35be3a0ca351ec819591cbf68ca7
3
+ size 420603564
segments/motherboard/2026-05-19/episode_003.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:673f1607c9d4d7a66f85ad13ef107183c997f7a61a1b9d45dffb7c8f9f012aea
3
+ size 29950828
segments/motherboard/2026-05-19/episode_004.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ba22c585c90881a79c5c9fe8145fe88d5a40eaaa8f2b52a288fa253007c296b
3
+ size 51585580
tasks.json CHANGED
@@ -25,6 +25,14 @@
25
  "right"
26
  ],
27
  "note": "Largest session. 3 episodes had OptiTrack offline at recording start (ep_005/012/017); those prefixes (~17 min total) have been trimmed from the published .pt files \u2014 see `trim_offsets` and `_contact_meta.trim_offset` per .pt. Mid-episode flagged frames: 9 of 15 files have \u2265 1 flagged frame (intensity spike, pose teleport, or ot_loss) \u2014 see bad_frames.json."
 
 
 
 
 
 
 
 
28
  }
29
  },
30
  "n_episode_files": 27,
 
25
  "right"
26
  ],
27
  "note": "Largest session. 3 episodes had OptiTrack offline at recording start (ep_005/012/017); those prefixes (~17 min total) have been trimmed from the published .pt files \u2014 see `trim_offsets` and `_contact_meta.trim_offset` per .pt. Mid-episode flagged frames: 9 of 15 files have \u2265 1 flagged frame (intensity spike, pose teleport, or ot_loss) \u2014 see bad_frames.json."
28
+ },
29
+ "2026-05-19": {
30
+ "kind": "session",
31
+ "active_sensors": [
32
+ "left",
33
+ "right"
34
+ ],
35
+ "note": "Recorded with all 3 RealSense views and both GelSight sensors. Published with view_left / view_middle / view_right (multi-cam) in the per-episode .pt under `episodes/motherboard/2026-05-19/`. Failure detection was run with the reproducible `detect_bad_intervals.py` ruleset (matches the published bad_frames.json bit-identically on 25 of 27 prior episodes; the two edge cases are minor borderline events that do not affect segment quality). Bad intervals were sliced out to produce `segments/motherboard/2026-05-19/`."
36
  }
37
  },
38
  "n_episode_files": 27,