yxma commited on
Commit
93065ec
·
verified ·
1 Parent(s): d78749e

Add mode2_v1 schema — 73 pre-sliced clean segments from 27 source episodes (104.7 min, bad intervals excluded by construction). New ReactSegmentDataset + demo. No bad_frames.json filtering needed at the dataloader; data is constructively clean. mode1_v1 stays for backward compatibility. See segments.json + new README section.

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +13 -0
  2. examples/demo_react_segment.py +222 -0
  3. examples/react_segment_dataset.py +373 -0
  4. processed/mode2_v1/motherboard/2026-05-10/episode_000.segment_00.pt +3 -0
  5. processed/mode2_v1/motherboard/2026-05-10/episode_001.segment_00.pt +3 -0
  6. processed/mode2_v1/motherboard/2026-05-10/episode_001.segment_01.pt +3 -0
  7. processed/mode2_v1/motherboard/2026-05-10/episode_001.segment_02.pt +3 -0
  8. processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_00.pt +3 -0
  9. processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_01.pt +3 -0
  10. processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_02.pt +3 -0
  11. processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_03.pt +3 -0
  12. processed/mode2_v1/motherboard/2026-05-10/episode_003.segment_00.pt +3 -0
  13. processed/mode2_v1/motherboard/2026-05-10/episode_004.segment_00.pt +3 -0
  14. processed/mode2_v1/motherboard/2026-05-10/episode_005.segment_00.pt +3 -0
  15. processed/mode2_v1/motherboard/2026-05-10/episode_006.segment_00.pt +3 -0
  16. processed/mode2_v1/motherboard/2026-05-10/episode_007.segment_00.pt +3 -0
  17. processed/mode2_v1/motherboard/2026-05-10/episode_008.segment_00.pt +3 -0
  18. processed/mode2_v1/motherboard/2026-05-10/episode_009.segment_00.pt +3 -0
  19. processed/mode2_v1/motherboard/2026-05-10/episode_010.segment_00.pt +3 -0
  20. processed/mode2_v1/motherboard/2026-05-10/episode_011.segment_00.pt +3 -0
  21. processed/mode2_v1/motherboard/2026-05-11/episode_003.segment_00.pt +3 -0
  22. processed/mode2_v1/motherboard/2026-05-11/episode_003.segment_01.pt +3 -0
  23. processed/mode2_v1/motherboard/2026-05-11/episode_003.segment_02.pt +3 -0
  24. processed/mode2_v1/motherboard/2026-05-11/episode_004.segment_00.pt +3 -0
  25. processed/mode2_v1/motherboard/2026-05-11/episode_005.segment_00.pt +3 -0
  26. processed/mode2_v1/motherboard/2026-05-11/episode_005.segment_01.pt +3 -0
  27. processed/mode2_v1/motherboard/2026-05-11/episode_005.segment_02.pt +3 -0
  28. processed/mode2_v1/motherboard/2026-05-11/episode_006.segment_00.pt +3 -0
  29. processed/mode2_v1/motherboard/2026-05-11/episode_007.segment_00.pt +3 -0
  30. processed/mode2_v1/motherboard/2026-05-11/episode_007.segment_01.pt +3 -0
  31. processed/mode2_v1/motherboard/2026-05-11/episode_008.segment_00.pt +3 -0
  32. processed/mode2_v1/motherboard/2026-05-11/episode_008.segment_01.pt +3 -0
  33. processed/mode2_v1/motherboard/2026-05-11/episode_008.segment_02.pt +3 -0
  34. processed/mode2_v1/motherboard/2026-05-11/episode_009.segment_00.pt +3 -0
  35. processed/mode2_v1/motherboard/2026-05-11/episode_010.segment_00.pt +3 -0
  36. processed/mode2_v1/motherboard/2026-05-11/episode_011.segment_00.pt +3 -0
  37. processed/mode2_v1/motherboard/2026-05-11/episode_011.segment_01.pt +3 -0
  38. processed/mode2_v1/motherboard/2026-05-11/episode_012.segment_00.pt +3 -0
  39. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_00.pt +3 -0
  40. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_01.pt +3 -0
  41. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_02.pt +3 -0
  42. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_03.pt +3 -0
  43. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_04.pt +3 -0
  44. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_05.pt +3 -0
  45. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_06.pt +3 -0
  46. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_07.pt +3 -0
  47. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_08.pt +3 -0
  48. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_09.pt +3 -0
  49. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_10.pt +3 -0
  50. processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_11.pt +3 -0
README.md CHANGED
@@ -25,6 +25,10 @@ configs:
25
  data_files:
26
  - split: train
27
  path: processed/mode1_v1/motherboard/**/episode_*.pt
 
 
 
 
28
  - config_name: all
29
  data_files:
30
  - split: train
@@ -86,6 +90,15 @@ See [`tasks.json`](tasks.json) for the machine-readable registry (per-date `acti
86
 
87
  Every flagged interval is in [`bad_frames.json`](bad_frames.json) keyed by `episode/episode_*` with TRIMMED-pt frame indices. A richer per-event view (with cross-modal motion + OT-gap + angular-velocity stats) lives in [`freeze_intervals.json`](freeze_intervals.json). Skip-list usage is shown below and in [`docs/quality.md`](docs/quality.md). Long start-of-episode OT-uninitialized prefixes (the dominant problem in the raw recordings) have already been trimmed from the published `.pt` files — see [`docs/caveats.md`](docs/caveats.md).
88
 
 
 
 
 
 
 
 
 
 
89
  ## Quick start
90
 
91
  ```python
 
25
  data_files:
26
  - split: train
27
  path: processed/mode1_v1/motherboard/**/episode_*.pt
28
+ - config_name: motherboard_segments
29
+ data_files:
30
+ - split: train
31
+ path: processed/mode2_v1/motherboard/**/episode_*.segment_*.pt
32
  - config_name: all
33
  data_files:
34
  - split: train
 
90
 
91
  Every flagged interval is in [`bad_frames.json`](bad_frames.json) keyed by `episode/episode_*` with TRIMMED-pt frame indices. A richer per-event view (with cross-modal motion + OT-gap + angular-velocity stats) lives in [`freeze_intervals.json`](freeze_intervals.json). Skip-list usage is shown below and in [`docs/quality.md`](docs/quality.md). Long start-of-episode OT-uninitialized prefixes (the dominant problem in the raw recordings) have already been trimmed from the published `.pt` files — see [`docs/caveats.md`](docs/caveats.md).
92
 
93
+ ## Two schemas: mode1_v1 vs mode2_v1
94
+
95
+ The same recordings are shipped two ways depending on what your code wants to do:
96
+
97
+ - **`processed/mode1_v1/<task>/<date>/episode_*.pt`** — one file per recording. Includes bad intervals (LED flicker, pose teleport, OT track loss) inside; downstream code is expected to filter them out using `bad_frames.json`. This is what the example `ReactWindowDataset` consumes.
98
+ - **`processed/mode2_v1/<task>/<date>/episode_*.segment_*.pt`** — same recordings, but **pre-sliced into contiguous clean segments at every bad-frames boundary**. No `bad_frames.json` lookup needed; the data is clean by construction. Index lookup via [`segments.json`](segments.json). Each segment's `_contact_meta.source_h5_frame_range` maps it back to the original recording. The example `ReactSegmentDataset` ([`examples/react_segment_dataset.py`](examples/react_segment_dataset.py)) consumes these.
99
+
100
+ Both schemas have identical content (same source recordings, same frame data); only the file boundaries differ. `mode2_v1` produces 73 segments from 27 source episodes; **104.7 min total** (vs. mode1_v1's 105.7 min — the 1-min delta is the bad frames cut at segment boundaries).
101
+
102
  ## Quick start
103
 
104
  ```python
examples/demo_react_segment.py ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """End-to-end usage example for `ReactSegmentDataset` (the mode2_v1 schema).
2
+
3
+ Run against a local checkout of the React HF dataset:
4
+
5
+ python examples/demo_react_segment.py \\
6
+ --segments_root processed/mode2_v1/motherboard \\
7
+ --tasks_json tasks.json \\
8
+ --n_samples 4 \\
9
+ --out_dir /tmp/react_segment_demo_out
10
+
11
+ What this does
12
+ --------------
13
+ 1. Builds `ReactSegmentDataset` — same window-enumeration / filtering API
14
+ as `ReactWindowDataset` but operates over pre-sliced clean segments
15
+ (no `bad_frames.json` lookup; data is clean by construction).
16
+ 2. Prints how many contact-rich windows were sampled + how many were
17
+ rejected by the contact / motion filters.
18
+ 3. Renders a static PNG grid of `--n_samples` random windows.
19
+ 4. For each picked window also writes an H.264 MP4 clip
20
+ (`sample_window_NN.mp4`) so you can visually inspect motion.
21
+
22
+ Self-contained: numpy + torch + Pillow + cv2 (ffmpeg if available, falls
23
+ back to cv2.VideoWriter otherwise).
24
+ """
25
+ import argparse
26
+ import shutil
27
+ import subprocess
28
+ import sys
29
+ from pathlib import Path
30
+
31
+ import cv2
32
+ import numpy as np
33
+ import torch
34
+ from PIL import Image
35
+
36
+ sys.path.insert(0, str(Path(__file__).parent))
37
+ from react_segment_dataset import ReactSegmentDataset
38
+
39
+
40
+ def _to_hwc(t):
41
+ return t.permute(1, 2, 0).numpy() if t.ndim == 3 else t.numpy()
42
+
43
+
44
+ def _view_to_rgb(view_chw_uint8):
45
+ return view_chw_uint8.permute(1, 2, 0).numpy()[..., ::-1].copy()
46
+
47
+
48
+ def make_static_grid(ds, sample_indices, out_path: Path, *,
49
+ n_cols: int = 6, cell_scale: int = 3) -> None:
50
+ rows = []
51
+ for idx in sample_indices:
52
+ s = ds[idx]
53
+ T = s["view"].shape[0]
54
+ pick = np.linspace(0, T - 1, n_cols).astype(int)
55
+ cells = []
56
+ for t in pick:
57
+ view = _view_to_rgb(s["view"][t]).astype(np.uint8)
58
+ tac_L = _to_hwc(s["tactile_left"][t]).astype(np.uint8)
59
+ tac_R = _to_hwc(s["tactile_right"][t]).astype(np.uint8)
60
+ triplet = np.concatenate([view, tac_L, tac_R], axis=1)
61
+ triplet = cv2.resize(
62
+ triplet,
63
+ (triplet.shape[1] * cell_scale, triplet.shape[0] * cell_scale),
64
+ interpolation=cv2.INTER_NEAREST,
65
+ )
66
+ cells.append(triplet)
67
+ rows.append(np.concatenate(cells, axis=1))
68
+
69
+ H_row = rows[0].shape[0]
70
+ W_row = rows[0].shape[1]
71
+ label_h = 88
72
+ pad_y = 16
73
+ canvas_h = 60 + len(rows) * (H_row + label_h + pad_y)
74
+ canvas = np.full((canvas_h, W_row + 20, 3), 245, np.uint8)
75
+ cv2.putText(canvas, f"ReactSegmentDataset — {n_cols} evenly-spaced frames per sample (time runs left → right)",
76
+ (10, 30), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (50, 50, 50), 2, cv2.LINE_AA)
77
+
78
+ cell_w = W_row // n_cols
79
+ for r, idx in enumerate(sample_indices):
80
+ s = ds[idx]
81
+ y0 = 60 + r * (H_row + label_h + pad_y)
82
+ dur_s = float(s["timestamps"][-1] - s["timestamps"][0])
83
+ mL = float(s["tactile_left_mixed"].max())
84
+ mR = float(s["tactile_right_mixed"].max())
85
+ h5a = s.get("h5_frame_start", "—")
86
+ cv2.putText(
87
+ canvas,
88
+ (f"sample #{idx} · {s['source_episode']}/seg{int(s['source_segment_idx']):02d} · "
89
+ f"H5 frame {h5a} · ({dur_s:.2f}s) · active: {','.join(s['active_sensors'])} · "
90
+ f"peak mixed L={mL:.2f} R={mR:.2f}"),
91
+ (10, y0 + 24), cv2.FONT_HERSHEY_SIMPLEX, 0.55, (40, 40, 40), 1, cv2.LINE_AA,
92
+ )
93
+ T = s["view"].shape[0]
94
+ pick = np.linspace(0, T - 1, n_cols).astype(int)
95
+ for c, t in enumerate(pick):
96
+ cv2.putText(canvas, f"t = {int(t)}",
97
+ (10 + c * cell_w + 8, y0 + 56),
98
+ cv2.FONT_HERSHEY_SIMPLEX, 0.45, (90, 90, 90), 1, cv2.LINE_AA)
99
+ cv2.putText(canvas, "view | tactile_left | tactile_right",
100
+ (10, y0 + 76), cv2.FONT_HERSHEY_SIMPLEX, 0.42, (130, 130, 130), 1, cv2.LINE_AA)
101
+ canvas[y0 + label_h:y0 + label_h + H_row, 10:10 + W_row] = rows[r]
102
+
103
+ out_path.parent.mkdir(parents=True, exist_ok=True)
104
+ Image.fromarray(canvas).save(out_path)
105
+ print(f" grid -> {out_path} ({out_path.stat().st_size / 1024:.1f} KB)")
106
+
107
+
108
+ def _write_mp4_h264(frames_rgb, out_path: Path, fps: float = 15.0) -> None:
109
+ H, W = frames_rgb[0].shape[:2]
110
+ out_path.parent.mkdir(parents=True, exist_ok=True)
111
+ if shutil.which("ffmpeg") is not None:
112
+ cmd = ["ffmpeg", "-y", "-hide_banner", "-loglevel", "error",
113
+ "-f", "rawvideo", "-pix_fmt", "rgb24",
114
+ "-s", f"{W}x{H}", "-r", f"{fps:.3f}",
115
+ "-i", "-",
116
+ "-c:v", "libx264", "-pix_fmt", "yuv420p",
117
+ "-preset", "medium", "-crf", "20",
118
+ "-movflags", "+faststart",
119
+ "-an", str(out_path)]
120
+ proc = subprocess.Popen(cmd, stdin=subprocess.PIPE)
121
+ for f in frames_rgb:
122
+ assert f.shape == (H, W, 3) and f.dtype == np.uint8
123
+ proc.stdin.write(f.tobytes())
124
+ proc.stdin.close()
125
+ if proc.wait() != 0:
126
+ raise RuntimeError("ffmpeg failed")
127
+ return
128
+ vw = cv2.VideoWriter(str(out_path),
129
+ cv2.VideoWriter_fourcc(*"mp4v"), fps, (W, H))
130
+ for f in frames_rgb:
131
+ vw.write(cv2.cvtColor(f, cv2.COLOR_RGB2BGR))
132
+ vw.release()
133
+
134
+
135
+ def make_window_mp4(ds, sample_idx: int, out_path: Path,
136
+ *, scale: int = 3, fps: float = 15.0) -> None:
137
+ s = ds[sample_idx]
138
+ T = s["view"].shape[0]
139
+ h5a = s.get("h5_frame_start", "—")
140
+ frames = []
141
+ for t in range(T):
142
+ view = _view_to_rgb(s["view"][t]).astype(np.uint8)
143
+ tac_L = _to_hwc(s["tactile_left"][t]).astype(np.uint8)
144
+ tac_R = _to_hwc(s["tactile_right"][t]).astype(np.uint8)
145
+ triplet = np.concatenate([view, tac_L, tac_R], axis=1)
146
+ triplet = cv2.resize(triplet,
147
+ (triplet.shape[1] * scale, triplet.shape[0] * scale),
148
+ interpolation=cv2.INTER_NEAREST)
149
+ H, W, _ = triplet.shape
150
+ header = np.full((28, W, 3), 235, np.uint8)
151
+ cv2.putText(
152
+ header,
153
+ f"#{sample_idx} {s['source_episode']}/seg{int(s['source_segment_idx']):02d} "
154
+ f"H5 frame {h5a}+{t} ({t+1}/{T}) view | tactile_L | tactile_R",
155
+ (8, 19), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (40, 40, 40), 1, cv2.LINE_AA,
156
+ )
157
+ frames.append(np.concatenate([header, triplet], axis=0))
158
+ _write_mp4_h264(frames, out_path, fps=fps)
159
+ print(f" mp4 -> {out_path.name} ({out_path.stat().st_size / 1024:.1f} KB)")
160
+
161
+
162
+ def main():
163
+ ap = argparse.ArgumentParser()
164
+ ap.add_argument("--segments_root", required=True,
165
+ help="processed/mode2_v1/motherboard")
166
+ ap.add_argument("--tasks_json", default="tasks.json")
167
+ ap.add_argument("--n_samples", type=int, default=4)
168
+ ap.add_argument("--out_dir", default="/tmp/react_segment_demo_out")
169
+ ap.add_argument("--window_length", type=int, default=16)
170
+ ap.add_argument("--seed", type=int, default=42)
171
+ ap.add_argument("--mp4_fps", type=float, default=15.0)
172
+ ap.add_argument("--no_mp4", action="store_true")
173
+ ap.add_argument("--no_motion_filter", action="store_true")
174
+ args = ap.parse_args()
175
+
176
+ print("=== Building dataset (segments are clean by construction) ===")
177
+ ds = ReactSegmentDataset(
178
+ segments_root = args.segments_root,
179
+ tasks_json_path= args.tasks_json,
180
+ window_length = args.window_length,
181
+ stride = 1,
182
+ window_step = max(1, args.window_length // 2),
183
+ contact_metric = "mixed",
184
+ tactile_threshold = 0.4,
185
+ min_contact_fraction = 0.5,
186
+ which_sensors = "both",
187
+ respect_active_sensors= True,
188
+ require_motion = not args.no_motion_filter,
189
+ min_motion_mps = 0.01,
190
+ min_motion_fraction = 0.25,
191
+ which_sensors_must_move = "all_active",
192
+ )
193
+
194
+ if len(ds) == 0:
195
+ print("No windows passed the filters. Lower thresholds or disable a filter.")
196
+ return
197
+
198
+ rng = np.random.default_rng(args.seed)
199
+ pick = rng.choice(len(ds), min(args.n_samples, len(ds)), replace=False)
200
+
201
+ print(f"\n=== One sample's structure (#{int(pick[0])}) ===")
202
+ s0 = ds[int(pick[0])]
203
+ for k, v in s0.items():
204
+ if isinstance(v, torch.Tensor):
205
+ print(f" {k:30s} {tuple(v.shape)} {v.dtype}")
206
+ else:
207
+ print(f" {k:30s} {v!r}")
208
+
209
+ out_dir = Path(args.out_dir)
210
+ print(f"\n=== Static grid of {len(pick)} random windows ===")
211
+ make_static_grid(ds, pick, out_dir / "sample_grid.png")
212
+
213
+ if not args.no_mp4:
214
+ print(f"\n=== Per-window MP4 clips ({len(pick)} files, H.264) ===")
215
+ for i, idx in enumerate(pick):
216
+ make_window_mp4(ds, int(idx),
217
+ out_dir / f"sample_window_{i:02d}.mp4",
218
+ fps=args.mp4_fps)
219
+
220
+
221
+ if __name__ == "__main__":
222
+ main()
examples/react_segment_dataset.py ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """React: short-horizon contact-rich window dataset over pre-sliced segments.
2
+
3
+ This is the `mode2_v1/` companion to `react_window_dataset.py`. The
4
+ difference is purely architectural:
5
+
6
+ - `ReactWindowDataset` operates on `processed/mode1_v1/<task>/<date>/episode_*.pt`,
7
+ which include bad intervals (LED flicker, pose teleports, OT track loss),
8
+ and uses `bad_frames.json` to skip windows that overlap a flagged span.
9
+
10
+ - `ReactSegmentDataset` (this file) operates on
11
+ `processed/mode2_v1/<task>/<date>/episode_*.segment_*.pt`, where every
12
+ `.pt` is already a contiguous clean span. No `bad_frames.json` lookup is
13
+ needed; the data is *constructively* clean.
14
+
15
+ Filters that remain (these are about what kind of window you want, not
16
+ whether the data is good):
17
+
18
+ 1. `respect_active_sensors` — ignore inactive sensors per `tasks.json`
19
+ 2. `min_contact_fraction` — drop windows below the contact threshold
20
+ 3. `require_motion` — drop "operator paused" windows
21
+
22
+ The per-segment `_contact_meta.source_h5_frame_range` lets you map any
23
+ window back to its position in the original H5 recording, e.g. for
24
+ inspection in `twm.visualize` or for cross-referencing with the original
25
+ H5 archive.
26
+
27
+ Usage
28
+ -----
29
+ ```python
30
+ from react_segment_dataset import ReactSegmentDataset
31
+ from torch.utils.data import DataLoader
32
+
33
+ ds = ReactSegmentDataset(
34
+ segments_root = "processed/mode2_v1/motherboard",
35
+ tasks_json_path= "tasks.json",
36
+ window_length = 16,
37
+ stride = 1,
38
+ window_step = 8,
39
+ # contact filter
40
+ contact_metric = "mixed",
41
+ tactile_threshold = 0.4,
42
+ min_contact_fraction = 0.5,
43
+ which_sensors = "both",
44
+ # motion filter (recommended for dynamics learning)
45
+ require_motion = True,
46
+ min_motion_mps = 0.01,
47
+ min_motion_fraction = 0.25,
48
+ which_sensors_must_move = "all_active",
49
+ )
50
+ loader = DataLoader(ds, batch_size=8, shuffle=True, num_workers=2)
51
+ ```
52
+
53
+ Each sample is the same dict as `ReactWindowDataset`, plus the segment
54
+ provenance (`source_episode`, `source_segment_idx`, `source_h5_frame_range`).
55
+ """
56
+ from __future__ import annotations
57
+
58
+ import json
59
+ from pathlib import Path
60
+ from typing import Iterable
61
+
62
+ import numpy as np
63
+ import torch
64
+ from torch.utils.data import Dataset
65
+
66
+ CONTACT_METRICS = ("intensity", "area", "mixed")
67
+
68
+
69
+ def _per_frame_speed_mps(pose7: np.ndarray, fps: float = 30.0) -> np.ndarray:
70
+ if pose7.shape[0] < 2:
71
+ return np.zeros(pose7.shape[0], dtype=np.float64)
72
+ d = np.linalg.norm(np.diff(pose7[:, :3], axis=0), axis=1) * fps
73
+ out = np.empty(pose7.shape[0], dtype=np.float64)
74
+ out[0] = d[0]
75
+ out[1:] = d
76
+ return out
77
+
78
+
79
+ class ReactSegmentDataset(Dataset):
80
+ """Per-window dataset over the pre-sliced React segments.
81
+
82
+ Parameters
83
+ ----------
84
+ segments_root : path
85
+ Directory containing `<task>/<date>/episode_*.segment_*.pt`
86
+ (searched recursively). e.g. `processed/mode2_v1/motherboard`.
87
+ tasks_json_path : optional path
88
+ Path to `tasks.json`. Used for the `respect_active_sensors` mode.
89
+
90
+ window_length, stride, window_step : window enumeration
91
+ contact_metric, tactile_threshold, min_contact_fraction, which_sensors :
92
+ contact filter parameters
93
+ respect_active_sensors : bool, default True
94
+ require_motion, min_motion_mps, min_motion_fraction,
95
+ which_sensors_must_move : motion filter parameters
96
+
97
+ tasks, dates : optional iterables of str
98
+ Restrict to specific task / date strings.
99
+
100
+ fps : float, default 30
101
+ """
102
+
103
+ def __init__(
104
+ self,
105
+ segments_root: str | Path,
106
+ tasks_json_path: str | Path | None = None,
107
+ *,
108
+ window_length: int = 16,
109
+ stride: int = 1,
110
+ window_step: int | None = None,
111
+ contact_metric: str = "mixed",
112
+ tactile_threshold: float = 0.4,
113
+ min_contact_fraction: float = 0.5,
114
+ which_sensors: str = "both",
115
+ tasks: Iterable[str] | None = None,
116
+ dates: Iterable[str] | None = None,
117
+ respect_active_sensors: bool = True,
118
+ require_motion: bool = False,
119
+ min_motion_mps: float = 0.01,
120
+ min_motion_fraction: float = 0.25,
121
+ which_sensors_must_move: str = "all_active",
122
+ fps: float = 30.0,
123
+ ):
124
+ if contact_metric not in CONTACT_METRICS:
125
+ raise ValueError(f"contact_metric must be one of {CONTACT_METRICS}")
126
+ if which_sensors not in ("any", "both", "left", "right"):
127
+ raise ValueError("which_sensors must be 'any' | 'both' | 'left' | 'right'")
128
+ if which_sensors_must_move not in ("any", "all_active"):
129
+ raise ValueError("which_sensors_must_move must be 'any' | 'all_active'")
130
+ if window_length < 1 or stride < 1:
131
+ raise ValueError("window_length and stride must be ≥ 1")
132
+
133
+ self.segments_root = Path(segments_root)
134
+ self.window_length = int(window_length)
135
+ self.stride = int(stride)
136
+ self.window_step = int(window_step) if window_step is not None else max(1, window_length // 2)
137
+ self.contact_metric = contact_metric
138
+ self.tactile_threshold = float(tactile_threshold)
139
+ self.min_contact_fraction = float(min_contact_fraction)
140
+ self.which_sensors = which_sensors
141
+ self.respect_active_sensors = bool(respect_active_sensors)
142
+ self.require_motion = bool(require_motion)
143
+ self.min_motion_mps = float(min_motion_mps)
144
+ self.min_motion_fraction = float(min_motion_fraction)
145
+ self.which_sensors_must_move = which_sensors_must_move
146
+ self.fps = float(fps)
147
+
148
+ # Per-date active-sensor info
149
+ self.per_date = {}
150
+ if tasks_json_path is not None and Path(tasks_json_path).is_file():
151
+ tj = json.loads(Path(tasks_json_path).read_text())
152
+ for tk, td in tj.get("tasks", {}).items():
153
+ for d, info in td.get("per_date_notes", {}).items():
154
+ self.per_date[d] = info
155
+
156
+ # Discover segments
157
+ pt_files = sorted(self.segments_root.rglob("episode_*.segment_*.pt"))
158
+ if not pt_files:
159
+ raise RuntimeError(f"No segment .pt files under {self.segments_root}")
160
+ tasks_set = set(tasks) if tasks is not None else None
161
+ dates_set = set(dates) if dates is not None else None
162
+
163
+ self.segments: list[dict] = [] # cached .pt dicts
164
+ self.segment_paths: list[Path] = []
165
+ self.segment_meta: list[dict] = [] # source_episode, segment_idx, etc.
166
+ self.segment_active: list[list[str]] = []
167
+ self.windows: list[tuple[int, int]] = [] # (seg_idx, t_start)
168
+
169
+ span = (self.window_length - 1) * self.stride + 1
170
+
171
+ n_total_candidates = 0
172
+ n_drop_contact = 0
173
+ n_drop_motion = 0
174
+
175
+ for pt in pt_files:
176
+ rel = pt.relative_to(self.segments_root)
177
+ # rel.parts == (<task>, <date>, "episode_NNN.segment_MM.pt") OR (<date>, ...)
178
+ if len(rel.parts) == 3:
179
+ task, date, _ = rel.parts
180
+ elif len(rel.parts) == 2:
181
+ task, date = None, rel.parts[0]
182
+ else:
183
+ task, date = None, None
184
+ if tasks_set is not None and task not in tasks_set:
185
+ continue
186
+ if dates_set is not None and date not in dates_set:
187
+ continue
188
+
189
+ d = torch.load(pt, weights_only=False, map_location="cpu")
190
+ meta = d.get("_contact_meta", {})
191
+ src_ep = meta.get("source_episode") or rel.stem.split(".")[0]
192
+ seg_idx = int(meta.get("source_segment_idx", 0))
193
+ active = ["left", "right"]
194
+ if self.respect_active_sensors and date in self.per_date:
195
+ active = list(self.per_date[date].get("active_sensors", active))
196
+
197
+ mL = d[f"tactile_left_{self.contact_metric}"].numpy()
198
+ mR = d[f"tactile_right_{self.contact_metric}"].numpy()
199
+ T = mL.shape[0]
200
+ if T < span:
201
+ continue # segment too short to host any window
202
+
203
+ # Contact predicate
204
+ cL = mL > self.tactile_threshold
205
+ cR = mR > self.tactile_threshold
206
+ if "left" not in active: cL[:] = False
207
+ if "right" not in active: cR[:] = False
208
+ req = self.which_sensors
209
+ if req == "any": contact_frame = cL | cR
210
+ elif req == "both": contact_frame = cL & cR
211
+ elif req == "left": contact_frame = cL
212
+ else: contact_frame = cR
213
+
214
+ # Per-frame motion mask
215
+ if self.require_motion:
216
+ speed_L = _per_frame_speed_mps(d["sensor_left_pose"].numpy(), self.fps)
217
+ speed_R = _per_frame_speed_mps(d["sensor_right_pose"].numpy(), self.fps)
218
+ moving_L = speed_L >= self.min_motion_mps
219
+ moving_R = speed_R >= self.min_motion_mps
220
+ else:
221
+ moving_L = moving_R = None
222
+
223
+ seg_id = len(self.segments)
224
+ self.segments.append(d)
225
+ self.segment_paths.append(pt)
226
+ self.segment_meta.append({
227
+ "source_episode": src_ep,
228
+ "source_segment_idx": seg_idx,
229
+ "source_h5_frame_range": meta.get("source_h5_frame_range"),
230
+ "source_pt_frame_range": meta.get("source_pt_frame_range"),
231
+ })
232
+ self.segment_active.append(active)
233
+
234
+ kept = 0
235
+ for t_start in range(0, T - span + 1, self.window_step):
236
+ n_total_candidates += 1
237
+ t_end = t_start + span - 1
238
+ frame_idx = np.arange(t_start, t_start + span, self.stride)
239
+ if contact_frame[frame_idx].mean() < self.min_contact_fraction:
240
+ n_drop_contact += 1
241
+ continue
242
+ if self.require_motion:
243
+ passed = []
244
+ for side, mov in [("left", moving_L), ("right", moving_R)]:
245
+ if side not in active:
246
+ continue
247
+ passed.append(mov[frame_idx].mean() >= self.min_motion_fraction)
248
+ if self.which_sensors_must_move == "all_active":
249
+ ok = bool(passed) and all(passed)
250
+ else:
251
+ ok = any(passed)
252
+ if not ok:
253
+ n_drop_motion += 1
254
+ continue
255
+ self.windows.append((seg_id, t_start))
256
+ kept += 1
257
+ # Compact per-segment print so noisy episodes don't drown the summary
258
+ if kept > 0 or T >= span:
259
+ print(f"[ReactSegmentDataset] {src_ep}/seg{seg_idx:02d} "
260
+ f"T={T:>5d} kept={kept:>3d} windows")
261
+
262
+ self.stats = {
263
+ "n_source_episodes": len({m["source_episode"] for m in self.segment_meta}),
264
+ "n_segments_loaded": len(self.segments),
265
+ "n_candidates": n_total_candidates,
266
+ "n_dropped_contact": n_drop_contact,
267
+ "n_dropped_motion": n_drop_motion,
268
+ "n_contact_rich_windows": len(self.windows),
269
+ "window_length": self.window_length,
270
+ "stride": self.stride,
271
+ "window_step": self.window_step,
272
+ "min_contact_fraction": self.min_contact_fraction,
273
+ "tactile_threshold": self.tactile_threshold,
274
+ "contact_metric": self.contact_metric,
275
+ "which_sensors": self.which_sensors,
276
+ "require_motion": self.require_motion,
277
+ "min_motion_mps": self.min_motion_mps,
278
+ "min_motion_fraction": self.min_motion_fraction,
279
+ "which_sensors_must_move":self.which_sensors_must_move,
280
+ }
281
+ pct = 100.0 * len(self.windows) / max(1, n_total_candidates)
282
+ print()
283
+ print(f"[ReactSegmentDataset] =================================")
284
+ print(f"[ReactSegmentDataset] Contact-rich windows sampled: {len(self.windows):,}")
285
+ print(f"[ReactSegmentDataset] ({pct:.1f}% of {n_total_candidates:,} sliding-window candidates)")
286
+ print(f"[ReactSegmentDataset] =================================")
287
+ print(f"[ReactSegmentDataset] From {self.stats['n_segments_loaded']} segments across "
288
+ f"{self.stats['n_source_episodes']} source episodes.")
289
+ print(f"[ReactSegmentDataset] Window spec: length={self.window_length}, "
290
+ f"stride={self.stride}, step={self.window_step} "
291
+ f"(≈{self.window_length / self.fps:.2f}s @ {self.fps:.0f} fps)")
292
+ print(f"[ReactSegmentDataset] Rejected by filter:")
293
+ print(f"[ReactSegmentDataset] contact (< {self.min_contact_fraction:.0%} of frames in tactile contact): {n_drop_contact:,}")
294
+ print(f"[ReactSegmentDataset] motion ({'enabled' if self.require_motion else 'disabled'}): {n_drop_motion:,}")
295
+ print(f"[ReactSegmentDataset] (No bad_frames filter — segments are already clean by construction.)")
296
+
297
+ def __len__(self) -> int:
298
+ return len(self.windows)
299
+
300
+ def __getitem__(self, idx: int) -> dict:
301
+ seg_id, t_start = self.windows[idx]
302
+ seg = self.segments[seg_id]
303
+ meta = self.segment_meta[seg_id]
304
+ frame_idx = torch.arange(t_start, t_start + self.window_length * self.stride, self.stride)
305
+ sample = {
306
+ "view": seg["view"][frame_idx],
307
+ "tactile_left": seg["tactile_left"][frame_idx],
308
+ "tactile_right": seg["tactile_right"][frame_idx],
309
+ "sensor_left_pose": seg["sensor_left_pose"][frame_idx],
310
+ "sensor_right_pose": seg["sensor_right_pose"][frame_idx],
311
+ "timestamps": seg["timestamps"][frame_idx],
312
+ "tactile_left_intensity": seg["tactile_left_intensity"][frame_idx],
313
+ "tactile_right_intensity": seg["tactile_right_intensity"][frame_idx],
314
+ "tactile_left_mixed": seg["tactile_left_mixed"][frame_idx],
315
+ "tactile_right_mixed": seg["tactile_right_mixed"][frame_idx],
316
+ }
317
+ sample["segment_path"] = str(self.segment_paths[seg_id])
318
+ sample["source_episode"] = meta["source_episode"]
319
+ sample["source_segment_idx"] = int(meta["source_segment_idx"])
320
+ sample["source_h5_frame_range"]= meta["source_h5_frame_range"]
321
+ sample["frame_start"] = int(t_start)
322
+ sample["frame_end"] = int(frame_idx[-1].item())
323
+ sample["active_sensors"] = list(self.segment_active[seg_id])
324
+ # H5 frame index of the first frame in this window (useful for cross-ref)
325
+ h5_range = meta["source_h5_frame_range"]
326
+ if h5_range is not None:
327
+ sample["h5_frame_start"] = int(h5_range[0]) + int(t_start)
328
+ sample["h5_frame_end"] = int(h5_range[0]) + int(frame_idx[-1].item())
329
+ return sample
330
+
331
+
332
+ if __name__ == "__main__":
333
+ import argparse
334
+ ap = argparse.ArgumentParser()
335
+ ap.add_argument("--segments_root", required=True,
336
+ help="processed/mode2_v1/motherboard (relative to dataset root)")
337
+ ap.add_argument("--tasks_json", default="tasks.json")
338
+ ap.add_argument("--window_length", type=int, default=16)
339
+ ap.add_argument("--stride", type=int, default=1)
340
+ ap.add_argument("--window_step", type=int, default=None)
341
+ ap.add_argument("--tactile_threshold", type=float, default=0.4)
342
+ ap.add_argument("--min_contact_fraction", type=float, default=0.5)
343
+ ap.add_argument("--contact_metric", default="mixed", choices=CONTACT_METRICS)
344
+ ap.add_argument("--which_sensors", default="both", choices=["any", "both", "left", "right"])
345
+ ap.add_argument("--require_motion", action="store_true")
346
+ ap.add_argument("--min_motion_mps", type=float, default=0.01)
347
+ ap.add_argument("--min_motion_fraction", type=float, default=0.25)
348
+ ap.add_argument("--which_sensors_must_move", default="all_active",
349
+ choices=["any", "all_active"])
350
+ args = ap.parse_args()
351
+ ds = ReactSegmentDataset(
352
+ segments_root=args.segments_root,
353
+ tasks_json_path=args.tasks_json,
354
+ window_length=args.window_length,
355
+ stride=args.stride,
356
+ window_step=args.window_step,
357
+ contact_metric=args.contact_metric,
358
+ tactile_threshold=args.tactile_threshold,
359
+ min_contact_fraction=args.min_contact_fraction,
360
+ which_sensors=args.which_sensors,
361
+ require_motion=args.require_motion,
362
+ min_motion_mps=args.min_motion_mps,
363
+ min_motion_fraction=args.min_motion_fraction,
364
+ which_sensors_must_move=args.which_sensors_must_move,
365
+ )
366
+ print(f"\nlen(ds) = {len(ds)}")
367
+ if len(ds):
368
+ sample = ds[0]
369
+ for k, v in sample.items():
370
+ if isinstance(v, torch.Tensor):
371
+ print(f" {k:30s} {tuple(v.shape)} {v.dtype}")
372
+ else:
373
+ print(f" {k:30s} {v!r}")
processed/mode2_v1/motherboard/2026-05-10/episode_000.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14dbcb0538c9dd38ff34be703ab89f968fe84ce186c44deea6989bda9523ee5b
3
+ size 1016781053
processed/mode2_v1/motherboard/2026-05-10/episode_001.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e87c9e839b76baeeb0901482728c9a89bce9b610ee619893de52fd89be4ee922
3
+ size 812137725
processed/mode2_v1/motherboard/2026-05-10/episode_001.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23bf6d6bcc797c705b3869af71b3c850848745b58e76d1f432c58473edab41f9
3
+ size 228600893
processed/mode2_v1/motherboard/2026-05-10/episode_001.segment_02.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a667b410e1651f2f73f5f4f92d8bdeabaeda769f889eed6a4d65f879e00aabc
3
+ size 69106045
processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:984fe336e8a834b1b52a85f170603f006370b079ecc47d31d248296bb5ff4ae0
3
+ size 1409395901
processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abd2e08d178c244559cc94002a6ce392dea4feca55dff4918756fc5d03eb63a7
3
+ size 16728125
processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_02.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8345acf2488695f989bb13fdb1dfe9a773d2ece83141538945462b72c074bac
3
+ size 93450749
processed/mode2_v1/motherboard/2026-05-10/episode_002.segment_03.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5da6ad10cde4f96a3536e47e2210f0b665e6bb9d493efa753c923bba770ddaa0
3
+ size 23219709
processed/mode2_v1/motherboard/2026-05-10/episode_003.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca2e9e3fc030e4b5347346194dd857c4b43aad31ed8eea631f0204ce7243d0b1
3
+ size 1366755645
processed/mode2_v1/motherboard/2026-05-10/episode_004.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd216cb4ce8788b7c9d4580f37e8d19e146e03aaf0f4a8e41dcc679845b5119b
3
+ size 355193789
processed/mode2_v1/motherboard/2026-05-10/episode_005.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92bb6a8bf6330bc3b42e9205d7f4de0d03f87b72af12338e83fbd328032b9108
3
+ size 112779005
processed/mode2_v1/motherboard/2026-05-10/episode_006.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ecdf92b0be6be6b7c1c24d4427e467dcc4db56d6faf79d80075da7c57841365
3
+ size 579313213
processed/mode2_v1/motherboard/2026-05-10/episode_007.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cf48ff081b45744ded13b5868ef73e96f6353b6b6771361d11e1bba5c29895e
3
+ size 284520317
processed/mode2_v1/motherboard/2026-05-10/episode_008.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf65af751bab982780ba85652b535355e231ac6f3b872fd1954d23144ca03b1
3
+ size 192747837
processed/mode2_v1/motherboard/2026-05-10/episode_009.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ead38d1e22f3a82b5be23a66cd6de5c5d06a115f25cf73279879c0017b431292
3
+ size 269175869
processed/mode2_v1/motherboard/2026-05-10/episode_010.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff67066044ade94cea048c5b3c32a96681250cc2b9fab951672f414259bf907b
3
+ size 152910909
processed/mode2_v1/motherboard/2026-05-10/episode_011.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4051c0bee29c38b660c10e30b97a107a45bd2b03671c684d17c32884362a2294
3
+ size 324947325
processed/mode2_v1/motherboard/2026-05-11/episode_003.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:382adf884ff5a48b17a7588192a3096f57a56d4049f754b755d0923a6dc91403
3
+ size 38859389
processed/mode2_v1/motherboard/2026-05-11/episode_003.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b580aedc2068641d84fb385c104301828b43b4996ad057bc7f3a1af6332049b
3
+ size 1228801853
processed/mode2_v1/motherboard/2026-05-11/episode_003.segment_02.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:939da2f48ff22aba139524effc427b47bd87b6a6e3756835c3431d955ee17524
3
+ size 210305789
processed/mode2_v1/motherboard/2026-05-11/episode_004.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:093c532c962fbd4e4776ddaa7a98b0849b65f0f934f839a95cd1f07a864d8e21
3
+ size 389424253
processed/mode2_v1/motherboard/2026-05-11/episode_005.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7c294f34148ff952a32d0a959cbe3c35100cb6e37a49c8d8b88f5d520628e0b
3
+ size 382932285
processed/mode2_v1/motherboard/2026-05-11/episode_005.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2dc0e657a169bae07b4a312404fca93d370fbcdfbc608c719ee86ab73714de9
3
+ size 1505004285
processed/mode2_v1/motherboard/2026-05-11/episode_005.segment_02.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb01c348654ab42bc3b3e673a2c68e7f16a1474a0fafc738d2306ed7eb83cf8e
3
+ size 245568829
processed/mode2_v1/motherboard/2026-05-11/episode_006.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:573641bd2a33181e444a1d7e492808a886351a3b701cc38732bbdee37ea01c8a
3
+ size 1769255421
processed/mode2_v1/motherboard/2026-05-11/episode_007.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df9969cd9a3b4020cb82213394301260f52ca3f7e86c76bf28b044b92aba1c6d
3
+ size 824678845
processed/mode2_v1/motherboard/2026-05-11/episode_007.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ed930c16dce24d15fa2ae716f117f5a17b357d5ac0516184473d73f1f844988
3
+ size 193633341
processed/mode2_v1/motherboard/2026-05-11/episode_008.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be4b91faaf624e7b08d43d4548bcd21775894c0347d058dcb5abbe2ad8d67038
3
+ size 321996413
processed/mode2_v1/motherboard/2026-05-11/episode_008.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d45d25d005e67c2f132f8c1437fde65a73499f53cb0e6e4b43fce66d058d6c69
3
+ size 1399362621
processed/mode2_v1/motherboard/2026-05-11/episode_008.segment_02.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb1bd2c3845409386f3fce18756598a8f092ce0d174ee1528ad7832b4defe6c0
3
+ size 298536829
processed/mode2_v1/motherboard/2026-05-11/episode_009.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c2a7a63bb49df1fef3c3ea31d3d22a70986a9c2e168eabc527cec2ad865d211
3
+ size 644380221
processed/mode2_v1/motherboard/2026-05-11/episode_010.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0db9b9d6c54f7060d3114417b8943a895a0b76d3c3a9f407eda57e0edb321a3e
3
+ size 1007633277
processed/mode2_v1/motherboard/2026-05-11/episode_011.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66808dfa6f0acef0f6437f6a77d246e087d18e0ba84def449930a0c0bfff5f86
3
+ size 629330557
processed/mode2_v1/motherboard/2026-05-11/episode_011.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a07f93d27cf3c3fe307f9825dc843ef63d5badccb1932f68f7d1708ca6b3006
3
+ size 446671293
processed/mode2_v1/motherboard/2026-05-11/episode_012.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a0896417348e0a66bd5db7f8fe85e9de9de5b21acf66dead6b4bc50a9192fd6
3
+ size 2187985277
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_00.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ab514bfdaec8a5e3893a46d74d4f6a5ff5c7a08cebd97fbfc2a90d1d5a109f4
3
+ size 850794109
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_01.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9846e12af37206521ee20c6b23e1bb04e1d711e06f397636f22acfa4ca78b437
3
+ size 11121085
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_02.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d47edca6ff9db5f90200a4653c341f59a5d94cb54a373e46163d6e5237ed806e
3
+ size 3153789
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_03.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00359eb4bd548de6583b5221a0e8522953e7aa5612ac01c66d73703a96709194
3
+ size 23662589
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_04.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b89cb794685ccb934cc0ffcf87b9e2cb1c8f9ffb82bb9aaa391e09c489c187b0
3
+ size 15547453
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_05.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0aeae827a42dd2af6c8287ab11bb578b3626f36fd874fecb346d68e57d5c4661
3
+ size 205584381
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_06.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5a88f88c01f9ca1f7800eeeb22e2cee76cf664357ff7bcd109b9bcae8bfbae2
3
+ size 7285245
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_07.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce89dfc49804f0dd9c5940011b4d6eb94f517a3c426f2e1abc0002daa0842a31
3
+ size 53761341
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_08.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1351acc9d830d572a463110da9f95feec92ed5a4bc67e744f94044836f84624
3
+ size 213551485
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_09.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:469f92a4aeafd7834fffe15c9c62924972e77e7a730184553ceb762871c50bd7
3
+ size 2858877
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_10.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0834aa838355a867ca53fa240e2c1d8d63869f0cfa95f66beeb75d9797ff3f8
3
+ size 47564669
processed/mode2_v1/motherboard/2026-05-11/episode_013.segment_11.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b8eecc56eab4e1cadc342af5abbba9d2f4dcc30d99934e76683262c0cea539f
3
+ size 172681981