Repair mocap actions across all tasks, old_data and validation; retain V8 force
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- ACTION_REPAIR_20260918.mdAdded+77
- action_publication_manifest.jsonAdded
- action_repair_tools/README.mdAdded+39
- action_repair_tools/requirements.txtAdded+4
- action_repair_tools/twm/__init__.pyAdded+1
- action_repair_tools/twm/react_preprocess/__init__.pyAdded+1
- action_repair_tools/twm/react_preprocess/mocap_branch.pyAdded+181
- action_repair_tools/twm/react_preprocess/mocap_branch_review.pyAdded+90
- action_repair_tools/twm/react_preprocess/mocap_candidate.pyAdded+740
- action_repair_tools/twm/react_preprocess/mocap_repair.pyAdded+624
- action_repair_tools/twm/react_preprocess/repaired_actions.pyAdded+125
- action_repair_tools/twm/react_toolbox/__init__.pyAdded+1
- action_repair_tools/twm/react_toolbox/frames.pyAdded+150
- action_repair_tools/twm/scripts/__init__.pyAdded+1
- action_repair_tools/twm/scripts/benchmark_mocap_branch.pyAdded+119
- action_repair_tools/twm/scripts/benchmark_mocap_repair.pyAdded+315
- action_repair_tools/twm/scripts/build_mocap_repair_candidates.pyAdded+350
- action_repair_tools/twm/scripts/export_old_motherboard_actions.pyAdded+240
- action_repair_tools/twm/scripts/propagate_mocap_repairs.pyAdded+522
- action_repair_tools/twm/scripts/publish_action_repairs.pyAdded+133
- action_repair_tools/twm/scripts/review_mocap_branches.pyAdded+82
- action_review.htmlAdded
- action_sample25.htmlAdded
- action_sample25.jsonAdded
- data/motherboard/action_repair_events/2026-09-11/episode_000.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_001_seg00.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_001_seg01.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_002_seg00.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_003_seg00.jsonAdded+879
- data/motherboard/action_repair_events/2026-09-11/episode_004_seg00.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_004_seg01.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_005_seg00.jsonAdded+1171
- data/motherboard/action_repair_events/2026-09-11/episode_005_seg01.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_005_seg02.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_005_seg03.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_005_seg04.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_005_seg05.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_006_seg00.jsonAdded+581
- data/motherboard/action_repair_events/2026-09-11/episode_006_seg01.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_007_seg00.jsonAdded+869
- data/motherboard/action_repair_events/2026-09-11/episode_007_seg01.jsonAdded+1727
- data/motherboard/action_repair_events/2026-09-11/episode_007_seg02.jsonAdded+1812
- data/motherboard/action_repair_events/2026-09-11/episode_007_seg03.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-11/episode_007_seg04.jsonAdded
- data/motherboard/action_repair_events/2026-09-11/episode_008_seg00.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-12/episode_000_seg00.jsonAdded+2998
- data/motherboard/action_repair_events/2026-09-12/episode_000_seg01.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-12/episode_002.jsonAdded+6
- data/motherboard/action_repair_events/2026-09-12/episode_003.jsonAdded+6
- data/motherboard/actions_fps15/2026-09-11/episode_000_left.npzAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677# Mocap action repair and review — 2026-09-18
Scope: all 218 published parquet segments/episodes: main motherboard25,pushT68, rope70, toy10; old motherboard32 and pushT4; validation9.Raw sensor poses, timestamps, source frame IDs and videos are preserved.
## Review first
Download `action_sample25.html` and open it in a browser. It contains25stratified examples, original camera videos and raw/repaired pose traces.Video playback requires an internet connection. `action_sample25.json`records the selected examples and their evidence. `action_review.html`covers every unresolved event occurrence in published segments.
**A tracking jump and genuine rapid out-and-back motion can have identicalpose sequences. Smooth reconstruction does not prove tracking loss.**Synthetic reconstruction benchmarks measure interpolation accuracy conditionalon an error being present; they do not establish real-world detection precision.The negative-control report documents this limitation.
The strict review policy admits automatic HIGH repairs only where replacedobservations have independent loss evidence: declared tracking gaps or invalidraw poses. Other proposed repairs remain MEDIUM pending human review; LOWevents are not reconstructed. Persistent branch proposals invalidate the wholeidentified interval, including its smooth interior, not just boundary jumps.`action_lost_track_*` means **suspected/review-required tracking corruption**,not a confirmed ground-truth diagnosis. Genuine fast movement may remainunchanged but masked under the existing physical-action limits.
## Columns and action sidecars
- `sensor_{left,right}_pose`: unchanged original pose.- `sensor_{left,right}_pose_repaired`: proposed reconstructed pose; consult masks.- `pose_{left,right}_valid`, `_repaired`, `_repair_confidence`, `_repair_event_id`, `_repair_method`: pose provenance.- `action`:14 floats, next-frame absolute left XYZ+quaternion(xyzw), then right XYZ+quaternion(xyzw), in the same world coordinates as the parquet. The final row repeats the final pose and is invalid, with no next transition.- `action_valid_{left,right}`: the authoritative per-hand training mask.- `action_repaired_*`, `action_repair_confidence_*`, `action_lost_track_*`, `action_long_lost_track_*`: transition provenance. Long means over60 native frames, retaining the original event duration across segment boundaries.
Confidence codes:0 unchanged/unclassified,1 LOW,2 MEDIUM,3 HIGH.Confidence alone is not a validity mask.
Each parquet has left/right `actions_native/...npz` and`actions_fps15/...npz`. Each sidecar stores9D world-frame translation deltaplus relative-rotation6D (first two matrix columns, column by column).Native actions connect k→k+1.15fps actions connect k→k+2 at local rows0,2,4…;their validity is the AND of both native transitions. No action crosses apublished segment boundary.
Training consumers must enforce both hand masks: `action_full` rejects anywindow containing an invalid transition; `action_causal` excludes invalidtransitions from its action loss. Parquet masks do not enforce this by themselves.These added columns are not a conversion of the entire repository to a newLeRobot storage version.
## Force and reproducibility
The old-data force update is separate:36 episodes rebuilt using V8 fromreleased lossy tactile MP4 because the raw May H5 files are gone. See the forcerecovery documentation and each `.force.json` sidecar. MP4 recovery is notbit-equivalent to raw-H5 processing, and absolute force accuracy on React isnot established. Action publication retains those newly rebuilt force fields.
`action_publication_manifest.json` records the frozen source mapping, sourcehashes, output hashes, coordinate conversions and preceding force revision.`repair_audit/` contains reconstruction benchmarks, negative controls,build configurations and event counts. Counts of source events, publishedevent occurrences and action transitions are different units.
The source implementation is included under `action_repair_tools/`. It usesNumPy, SciPy, PyArrow and huggingface_hub. Candidate builds remain separatefrom raw release inputs. Review decisions must identify their source episodeas well as the event; same local frame IDs can occur in different episodes.123456789101112131415161718192021222324252627282930313233343536373839# Action repair tools
Run from this directory after `python -m pip install -r requirements.txt`.The package uses minimal namespace initializers to avoid pulling in unrelatedrecording/camera dependencies. It contains no model weights or credentials.
The September18 build used the frozen **uncut source parquet tree**, its`pose_gaps.json` files and the input manifests in `../repair_audit/`.The public segmented parquets alone do not reproduce context that was cutaway; do not treat a segment boundary as a new tracker dropout.
Example with your original source tree and a NEW candidate output directory:
```bashpython -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates audit --source /path/to/sourcepython -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates benchmark --max-intervals 700 --seed 17python -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates build --branch-review --require-loss-evidencepython -m twm.scripts.build_mocap_repair_candidates --output /path/to/candidates verifypython -m twm.scripts.propagate_mocap_repairs --help```
For the exact September18 benchmark length set `(1,2,3,4,5,20,60)`, call`run_benchmarks(candidate_root, anomaly_lengths=(1,2,3,4,5,20,60), max_intervals=700, seed=17)`.The CLI default length set is smaller. Build the separate validation sourcewith `--task validation` during audit. Use the propagation inventory to mapevery published segment by source frame ID, not inferred filename offsets.
`propagate_mocap_repairs export` regenerates native/15fps sidecars and thelightweight HTML review, including25 examples. Pass a pinned video-fileinventory to `--remote-videos`. The older full camera-rendering `review`subcommand requires the full MultimodalData repository and is not bundled.
Review decisions use `task/date/source_episode::local_event_id`, mapped fromthe published segment through the inventory. `keep_raw`, `accept_repair`,`invalidate`, and `unsure` are supported; accepting one event never implicitlyapproves another event with the same frame indices in a different episode.Re-export actions after applying decisions. The publisher requires a boundforce-commit receipt and an unchanged HF parent commit; it never uploads unlessexplicitly invoked with `--publish`.1234numpyscipypyarrowhuggingface_hub1"""Minimal standalone namespace for the published action-repair tools."""1"""Repair-only package; full recording/video preprocessing is not bundled."""123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181"""Conservative body-frame branch proposals, separate from training admission.
A pose is a body-to-world transform T. Marker symmetry changes it to T @ B,so correction must be right multiplication by inverse(B), including the bodytranslation lever arm. Subtracting a world offset destroys genuine motion.
Paired boundaries supply two independent estimates of B using only immediateouter context. This never interpolates the interior of a persistent interval.Even matching return pairs are hypotheses: real abrupt out-and-back motion canbe observationally indistinguishable. All results therefore remain MEDIUM;method/task-specific validation and any human decision belong to the caller."""from __future__ import annotations
from dataclasses import dataclass, replacefrom typing import Iterable
import numpy as npfrom scipy.spatial.transform import Rotation
@dataclass(frozen=True)class BranchConfig: rotation_seed_deg: float = 30.0 coupled_rotation_deg: float = 12.0 coupled_translation_mm: float = 20.0 context_frames: int = 5 max_interval_frames: int = 900 transform_rotation_tolerance_deg: float = 3.0 transform_translation_tolerance_mm: float = 5.0 boundary_rotation_tolerance_deg: float = 3.0 boundary_translation_tolerance_mm: float = 5.0 max_step_rotation_deg: float = 30.0 max_step_translation_mm: float = 50.0
@dataclass(frozen=True)class BranchCandidate: start: int end: int pose: np.ndarray branch_rotation_xyzw: np.ndarray branch_translation_m: np.ndarray evidence: dict[str, float | int | bool | str] confidence: str = 'MEDIUM'
def _predict_next(context: np.ndarray) -> tuple[np.ndarray, Rotation]: """One-step prediction; reversed context yields a backward prediction.""" rotations = Rotation.from_quat(context[:, 3:]) angular = np.median((rotations[1:]*rotations[:-1].inv()).as_rotvec(), axis=0) velocity = np.median(np.diff(context[:, :3], axis=0), axis=0) return context[-1, :3] + velocity, Rotation.from_rotvec(angular)*rotations[-1]
def _transform(expected: tuple[np.ndarray, Rotation], observed: np.ndarray): xyz, rotation = expected return rotation.inv().apply(observed[:3]-xyz), rotation.inv()*Rotation.from_quat(observed[3:])
def find_branch_candidates( pose: np.ndarray, known_gaps: Iterable[tuple[int, int]] = (), *, trusted: np.ndarray | None = None, config: BranchConfig | None = None,) -> list[BranchCandidate]: """Propose complete paired-return intervals without changing input poses.
``trusted`` optionally identifies independently trusted outer anchors. Without it, anchors are only screened for finite, contiguous, quiet local observations and evidence records that limitation. Declared gaps and any nonfinite/zero-quaternion rows exclude both anchors and branch interiors. Only adjacent boundaries are paired: nested/chattering ambiguous branches are deliberately left for a richer decoder or human review. """ raw = np.asarray(pose, dtype=float) if raw.ndim != 2 or raw.shape[1] != 7: raise ValueError('pose must have shape (T, 7)') cfg = config or BranchConfig() if cfg.context_frames < 2 or cfg.max_interval_frames < 1: raise ValueError('context_frames must be >=2 and max_interval_frames >=1') finite = np.isfinite(raw).all(axis=1) & (np.linalg.norm(raw[:, 3:], axis=1) > 1e-12) available = finite.copy() for start, count in known_gaps: if count > 0: available[max(0, int(start)):max(0, min(len(raw), int(start)+int(count)))] = False anchor_ok = available.copy() if trusted is not None: trusted = np.asarray(trusted, dtype=bool) if trusted.shape != (len(raw),): raise ValueError('trusted must have shape (T,)') anchor_ok &= trusted if len(raw) < 2*cfg.context_frames + 1: return [] step_rot = np.full(len(raw)-1, np.nan) pairs = np.flatnonzero(finite[:-1] & finite[1:]) if len(pairs): step_rot[pairs] = np.degrees((Rotation.from_quat(raw[pairs+1, 3:])* Rotation.from_quat(raw[pairs, 3:]).inv()).magnitude()) step_trans = np.linalg.norm(np.diff(raw[:, :3], axis=0), axis=1)*1000 edges = np.flatnonzero((step_rot > cfg.rotation_seed_deg) | ((step_rot > cfg.coupled_rotation_deg) & (step_trans > cfg.coupled_translation_mm))) candidates: list[BranchCandidate] = [] used_until = -1 for entry, exit_edge in zip(edges[:-1], edges[1:]): start, end = int(entry+1), int(exit_edge) left, right = start-cfg.context_frames, end+1+cfg.context_frames # A return boundary already used to close a proposal cannot also open # its inverse over the clean interval leading to the next occurrence. if start <= used_until+1 or left < 0 or right > len(raw): continue if end-start+1 > cfg.max_interval_frames or not available[start:end+1].all(): continue if not anchor_ok[left:start].all() or not anchor_ok[end+1:right].all(): continue # Contexts that cross another jump cannot establish either branch. context_edges = np.r_[np.arange(left, start-1), np.arange(end+1, right-1)] if (np.any(step_rot[context_edges] > cfg.coupled_rotation_deg) or np.any(step_trans[context_edges] > cfg.max_step_translation_mm)): continue expected_entry = _predict_next(raw[left:start]) expected_exit = _predict_next(raw[end+1:right][::-1]) entry_t, entry_r = _transform(expected_entry, raw[start]) exit_t, exit_r = _transform(expected_exit, raw[end]) transform_rot = float(np.degrees((entry_r.inv()*exit_r).magnitude())) transform_trans = float(np.linalg.norm(entry_t-exit_t)*1000) if (transform_rot > cfg.transform_rotation_tolerance_deg or transform_trans > cfg.transform_translation_tolerance_mm): continue branch_r = Rotation.from_quat(np.stack([entry_r.as_quat(), exit_r.as_quat()])).mean() branch_t = (entry_t+exit_t)/2 corrected_r = Rotation.from_quat(raw[start:end+1, 3:])*branch_r.inv() corrected_t = raw[start:end+1, :3]-corrected_r.apply(branch_t) corrected = np.column_stack((corrected_t, corrected_r.as_quat())) boundary_trans = max(float(np.linalg.norm(corrected_t[i]-pred[0])*1000) for i, pred in ((0, expected_entry), (-1, expected_exit))) boundary_rot = max(float(np.degrees((pred[1].inv()*corrected_r[i]).magnitude())) for i, pred in ((0, expected_entry), (-1, expected_exit))) joined = np.vstack((raw[start-1], corrected, raw[end+1])) joined_r = Rotation.from_quat(joined[:, 3:]) max_rot = float(np.max(np.degrees((joined_r[1:]*joined_r[:-1].inv()).magnitude()))) max_trans = float(np.max(np.linalg.norm(np.diff(joined[:, :3], axis=0), axis=1)*1000)) if (boundary_trans > cfg.boundary_translation_tolerance_mm or boundary_rot > cfg.boundary_rotation_tolerance_deg or max_rot > cfg.max_step_rotation_deg or max_trans > cfg.max_step_translation_mm): continue candidates.append(BranchCandidate(start, end, corrected, branch_r.as_quat(), branch_t, { 'method': 'paired_body_branch', 'duration_frames': end-start+1, 'bidirectional_transform_agrees': True, 'transform_rotation_disagreement_deg': transform_rot, 'transform_translation_disagreement_mm': transform_trans, 'boundary_prediction_rotation_max_deg': boundary_rot, 'boundary_prediction_translation_max_mm': boundary_trans, 'reconstructed_max_step_rotation_deg': max_rot, 'reconstructed_max_step_translation_mm': max_trans, 'left_anchor': start-1, 'right_anchor': end+1, 'context_frames': cfg.context_frames, 'independent_anchor_mask_supplied': trusted is not None, 'physical': True, 'benchmark_validated': False, })) used_until = end # Support is restricted to this supplied recording/body stream; unrelated # epochs or rigid bodies must never be pooled implicitly. for index, candidate in enumerate(candidates): r = Rotation.from_quat(candidate.branch_rotation_xyzw) support = 0 for other in candidates: rotation_error = np.degrees((r.inv()*Rotation.from_quat(other.branch_rotation_xyzw)).magnitude()) translation_error = np.linalg.norm(candidate.branch_translation_m-other.branch_translation_m)*1000 if (rotation_error <= cfg.transform_rotation_tolerance_deg and translation_error <= cfg.transform_translation_tolerance_mm): support += 1 candidates[index] = replace(candidate, evidence={**candidate.evidence, 'matching_return_pairs': support}) return candidates123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990"""Extend review invalidity across plausible persistent alternate branches."""from __future__ import annotations
from dataclasses import asdict, replaceimport json
import numpy as np
from .mocap_branch import find_branch_candidatesfrom .mocap_repair import AnomalyBout, Confidence, PoseRepairResult, RepairEvent
def apply_loss_evidence_gate(result: PoseRepairResult, raw: np.ndarray, known_gaps=()) -> PoseRepairResult: """Require declared loss or invalid raw observations for automatic HIGH.""" raw = np.asarray(raw, dtype=float) loss = ~np.isfinite(raw).all(axis=1) | (np.linalg.norm(raw[:, 3:], axis=1) <= 1e-12) for start, count in known_gaps: if int(count) > 0: loss[max(0, int(start)):max(0, min(len(raw), int(start)+int(count)))] = True confidence, valid = result.confidence.copy(), result.valid.copy() events = [] for event in result.events: if event.confidence == Confidence.HIGH: rows = np.asarray(event.replaced_frames, dtype=int) supported = bool(len(rows) and loss[rows].all()) evidence = {**event.evidence, 'independent_loss_evidence': supported, 'review_required': not supported} if not supported: confidence[event.bout.start:event.bout.end+1] = Confidence.MEDIUM valid[event.bout.start:event.bout.end+1] = False event = replace(event, confidence=Confidence.MEDIUM, evidence=evidence) else: event = replace(event, evidence=evidence) events.append(event) return replace(result, confidence=confidence, valid=valid, events=tuple(events))
def apply_review_branches(result: PoseRepairResult, raw: np.ndarray, side: str, known_gaps=()) -> PoseRepairResult: """Merge non-HIGH boundary events and invalidate the complete proposal.
Existing HIGH events take precedence. Proposals supply candidate values, never training permission. Any larger overlapping original event remains invalid in full; its original evidence is retained in the merged event. """ pose, repaired = result.pose.copy(), result.repaired.copy() confidence, valid = result.confidence.copy(), result.valid.copy() event_ids, events = result.event_id.copy(), list(result.events) for proposal in find_branch_candidates(raw, known_gaps): overlapping = [e for e in events if e.bout.side == side and e.bout.start <= proposal.end+1 and e.bout.end >= proposal.start-1] if not overlapping or any(e.confidence == Confidence.HIGH for e in overlapping): continue lo = min(proposal.start, *(e.bout.start for e in overlapping)) hi = max(proposal.end, *(e.bout.end for e in overlapping)) # A merged interval cannot overlap an event that retains a different # row owner. Expand to a fixed point before checking HIGH protection. while True: merged = [e for e in events if e.bout.side == side and e.bout.start <= hi and e.bout.end >= lo] new_lo = min(lo, *(e.bout.start for e in merged)) new_hi = max(hi, *(e.bout.end for e in merged)) if (new_lo, new_hi) == (lo, hi): break lo, hi = new_lo, new_hi if any(e.confidence == Confidence.HIGH for e in merged): continue eid = f'{side}:{lo}-{hi}:branch_review' rows = np.arange(proposal.start, proposal.end+1) pose[rows] = proposal.pose repaired[rows] = True confidence[lo:hi+1] = Confidence.MEDIUM valid[lo:hi+1] = False event_ids[lo:hi+1] = eid seeds = tuple(sorted({row for e in merged for row in e.bout.seed_frames})) bout = AnomalyBout(side, lo, hi, 'branch_review', seeds, lo-1 if lo else None, hi+1 if hi+1 < len(raw) else None) evidence = {**proposal.evidence, 'duration_frames': hi-lo+1, 'proposal_start': proposal.start, 'proposal_end': proposal.end, 'requires_independent_branch_identity_evidence': True, 'training_valid': False, 'superseded_events_json': json.dumps([asdict(e) for e in merged], default=lambda value: value.item())} replacement = RepairEvent(eid, bout, Confidence.MEDIUM, 'paired_body_branch_review', tuple(np.flatnonzero(repaired[lo:hi+1])+lo), evidence) removed_ids = {e.event_id for e in merged} events = [e for e in events if e.event_id not in removed_ids] + [replacement] return PoseRepairResult(pose, repaired, confidence, valid, event_ids, tuple(sorted(events, key=lambda e: e.bout.start)))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740"""Immutable-input writer for mocap repair candidate trees.
Production release trees are read-only inputs. Every build is pinned to amanifest of exact parquet digests and writes augmented metadata plus actionsidecars beneath a separate review root."""from __future__ import annotations
from dataclasses import asdict, dataclassfrom datetime import datetime, timezoneimport hashlibimport jsonimport osfrom pathlib import Pathimport tempfilefrom typing import Any, Iterable
import numpy as npimport pyarrow as paimport pyarrow.parquet as pq
from .mocap_repair import Confidence, TaskGate, repair_pose_streamfrom .repaired_actions import ActionSeries, actions_fps15, native_actions
SIDES = ("left", "right")MANIFEST_SCHEMA_VERSION = 1
class SourceChangedError(RuntimeError): """A manifest-pinned input no longer has its recorded content."""
class CandidateVerificationError(RuntimeError): """Candidate provenance or derived actions disagree with their contract."""
@dataclass(frozen=True)class ManifestFile: path: str bytes: int rows: int mtime_ns: int sha256: str
@dataclass(frozen=True)class InputManifest: source_root: str tasks: tuple[str, ...] files: tuple[ManifestFile, ...] created_utc: str digest: str
def to_dict(self) -> dict[str, Any]: return { "schema_version": MANIFEST_SCHEMA_VERSION, "source_root": self.source_root, "tasks": list(self.tasks), "created_utc": self.created_utc, "digest": self.digest, "files": [asdict(item) for item in self.files], }
@classmethod def from_dict(cls, value: dict[str, Any]) -> "InputManifest": if int(value.get("schema_version", -1)) != MANIFEST_SCHEMA_VERSION: raise ValueError("unsupported input manifest schema") return cls( source_root=str(value["source_root"]), tasks=tuple(map(str, value["tasks"])), files=tuple(ManifestFile(**item) for item in value["files"]), created_utc=str(value["created_utc"]), digest=str(value["digest"]), )
@dataclass(frozen=True)class CandidateEpisode: task: str date: str episode: str parquet: Path events: Path repaired_frames: int
@dataclass(frozen=True)class CandidateBuild: root: Path manifest_digest: str episodes: tuple[CandidateEpisode, ...]
@dataclass(frozen=True)class VerificationReport: episodes: int errors: tuple[str, ...]
def _sha256(path: Path) -> str: digest = hashlib.sha256() with path.open("rb") as stream: for block in iter(lambda: stream.read(1024 * 1024), b""): digest.update(block) return digest.hexdigest()
def _canonical_json(value: Any) -> bytes: return json.dumps(value, sort_keys=True, separators=(",", ":"), ensure_ascii=True).encode("utf-8")
def _manifest_identity(source_root: Path, tasks: tuple[str, ...], files: tuple[ManifestFile, ...]) -> dict[str, Any]: return { "schema_version": MANIFEST_SCHEMA_VERSION, "source_root": str(source_root), "tasks": list(tasks), "files": [{ "path": item.path, "bytes": item.bytes, "rows": item.rows, "sha256": item.sha256, } for item in files], }
def _validate_manifest(manifest: InputManifest) -> None: identity = _manifest_identity( Path(manifest.source_root).resolve(), manifest.tasks, manifest.files) expected = hashlib.sha256(_canonical_json(identity)).hexdigest() if manifest.digest != expected: raise ValueError( f"input manifest digest is invalid: {manifest.digest} != {expected}")
def snapshot_inputs(source_root: Path, tasks: Iterable[str]) -> InputManifest: """Snapshot the exact parquet set used by one candidate run.""" source_root = Path(source_root).resolve() task_tuple = tuple(sorted(dict.fromkeys(str(task) for task in tasks))) files: list[ManifestFile] = [] for task in task_tuple: for path in sorted((source_root / task / "meta").glob("*/*.parquet")): stat = path.stat() files.append(ManifestFile( path=path.relative_to(source_root).as_posix(), bytes=stat.st_size, rows=pq.ParquetFile(path).metadata.num_rows, mtime_ns=stat.st_mtime_ns, sha256=_sha256(path), )) files_tuple = tuple(sorted(files, key=lambda item: item.path)) identity = _manifest_identity(source_root, task_tuple, files_tuple) digest = hashlib.sha256(_canonical_json(identity)).hexdigest() return InputManifest( source_root=str(source_root), tasks=task_tuple, files=files_tuple, created_utc=datetime.now(timezone.utc).isoformat(), digest=digest, )
def save_manifest(manifest: InputManifest, path: Path) -> Path: """Persist a manifest, refusing to replace a different snapshot.""" _validate_manifest(manifest) path = Path(path) if path.is_file(): prior = InputManifest.from_dict(json.loads(path.read_text())) _validate_manifest(prior) if prior.digest != manifest.digest: raise ValueError( f"manifest path already contains a different snapshot: {path}") _atomic_json(path, manifest.to_dict()) return path
def load_manifest(path: Path) -> InputManifest: manifest = InputManifest.from_dict(json.loads(Path(path).read_text())) _validate_manifest(manifest) return manifest
def _atomic_json(path: Path, value: Any) -> None: path.parent.mkdir(parents=True, exist_ok=True) with tempfile.NamedTemporaryFile( mode="w", encoding="utf-8", dir=path.parent, prefix=f".{path.name}.", suffix=".tmp", delete=False) as stream: temp = Path(stream.name) json.dump(value, stream, indent=2, sort_keys=True) stream.write("\n") os.replace(temp, path)
def _is_within(path: Path, root: Path) -> bool: return path == root or root in path.parents
def _pose_list_array(value: np.ndarray) -> pa.Array: return pa.array(np.asarray(value, dtype=np.float64).tolist(), type=pa.list_(pa.float64()))
def _set_column(table: pa.Table, name: str, value: pa.Array) -> pa.Table: if name in table.column_names: return table.set_column(table.schema.get_field_index(name), name, value) return table.append_column(name, value)
def _jsonable(value: Any) -> Any: if isinstance(value, np.generic): return value.item() if isinstance(value, dict): return {str(key): _jsonable(item) for key, item in value.items()} if isinstance(value, (list, tuple)): return [_jsonable(item) for item in value] return value
def _event_dict(event: Any) -> dict[str, Any]: return _jsonable({ "event_id": event.event_id, "side": event.bout.side, "start": event.bout.start, "end": event.bout.end, "kind": event.bout.kind, "seed_frames": list(event.bout.seed_frames), "left_context_end": event.bout.left_context_end, "right_context_start": event.bout.right_context_start, "confidence": Confidence(event.confidence).name, "method": event.method, "replaced_frames": list(event.replaced_frames), "evidence": event.evidence, })
def _write_actions(path: Path, actions: ActionSeries) -> None: path.parent.mkdir(parents=True, exist_ok=True) event_text = np.asarray(["|".join(ids) for ids in actions.event_ids], dtype=np.str_) with tempfile.NamedTemporaryFile( mode="wb", dir=path.parent, prefix=f".{path.name}.", suffix=".tmp", delete=False) as stream: temp = Path(stream.name) np.savez_compressed( stream, values=np.asarray(actions.values, np.float32), valid=np.asarray(actions.valid, bool), repaired=np.asarray(actions.repaired, bool), event_ids=event_text, start_rows=np.asarray(actions.start_rows, np.int32), end_rows=np.asarray(actions.end_rows, np.int32), rotation_deg=np.asarray(actions.rotation_deg, np.float32), translation_mm=np.asarray(actions.translation_mm, np.float32), ) os.replace(temp, path)
class CandidateWriter: """Build candidate metadata pinned to one immutable input manifest."""
def __init__(self, source_root: Path, output_root: Path, manifest: InputManifest, *, task_gates: dict[str, TaskGate] | None = None, production_roots: Iterable[Path] = (), branch_review: bool = False, require_loss_evidence: bool = False): self.source_root = Path(source_root).resolve() self.output_root = Path(output_root).resolve() self.manifest = manifest _validate_manifest(manifest) self.task_gates = dict(task_gates or {}) self.branch_review = bool(branch_review) self.require_loss_evidence = bool(require_loss_evidence) inferred = { self.source_root, self.source_root.parent / "release_zup", self.source_root.parent / "release_cut", } inferred.update(Path(path).resolve() for path in production_roots) for root in inferred: if (_is_within(self.output_root, root) or _is_within(root, self.output_root)): raise ValueError( f"candidate output overlaps production root: " f"{self.output_root} vs {root}") if Path(manifest.source_root).resolve() != self.source_root: raise ValueError("manifest source_root does not match writer source")
def _verify_source(self, item: ManifestFile) -> Path: path = self.source_root / item.path if not path.is_file(): raise SourceChangedError(f"source missing after manifest: {item.path}") stat = path.stat() actual = _sha256(path) if actual != item.sha256: raise SourceChangedError( f"source digest changed after manifest: {item.path} " f"(bytes {item.bytes} -> {stat.st_size})") rows = pq.ParquetFile(path).metadata.num_rows if rows != item.rows: raise SourceChangedError( f"source row count changed after manifest: {item.path}") return path
def _known_gaps(self, task: str, date: str, episode: str) -> dict[str, list[tuple[int, int]]]: path = self.source_root / task / "pose_gaps.json" if not path.is_file(): return {} payload = json.loads(path.read_text()) row = payload.get(f"{date}/{episode}", {}) return {side: [tuple(map(int, gap)) for gap in row.get(side, [])] for side in SIDES}
def _write_parquet_atomic(self, table: pa.Table, output: Path) -> None: output.parent.mkdir(parents=True, exist_ok=True) with tempfile.NamedTemporaryFile( dir=output.parent, prefix=f".{output.name}.", suffix=".tmp", delete=False) as stream: temp = Path(stream.name) try: pq.write_table(table, temp, compression="zstd") os.replace(temp, output) finally: if temp.exists(): temp.unlink()
def _write_episode(self, item: ManifestFile) -> CandidateEpisode: source = self._verify_source(item) rel = Path(item.path) task, marker, date, filename = rel.parts if marker != "meta": raise ValueError(f"manifest path is not task/meta/date: {item.path}") episode = Path(filename).stem table = pq.read_table(source) output_table = table gaps = self._known_gaps(task, date, episode) events: list[dict[str, Any]] = [] repaired_total = 0 gate = self.task_gates.get(task, TaskGate()) for side in SIDES: pose_name = f"sensor_{side}_pose" if pose_name not in table.column_names: continue raw_pose = np.asarray(table[pose_name].to_pylist(), dtype=float) result = repair_pose_stream( raw_pose, side, gaps.get(side, ()), task_gate=gate) if self.require_loss_evidence: from .mocap_branch_review import apply_loss_evidence_gate result = apply_loss_evidence_gate(result, raw_pose, gaps.get(side, ())) if self.branch_review: from .mocap_branch_review import apply_review_branches result = apply_review_branches(result, raw_pose, side, gaps.get(side, ())) output_table = _set_column( output_table, pose_name, _pose_list_array(result.pose)) output_table = _set_column( output_table, f"pose_{side}_repaired", pa.array(result.repaired, type=pa.bool_())) output_table = _set_column( output_table, f"pose_{side}_repair_confidence", pa.array(result.confidence, type=pa.uint8())) output_table = _set_column( output_table, f"pose_{side}_valid", pa.array(result.valid, type=pa.bool_())) output_table = _set_column( output_table, f"pose_{side}_repair_event_id", pa.array(result.event_id.astype(str), type=pa.string())) repaired_total += int(result.repaired.sum()) events.extend(_event_dict(event) for event in result.events) native = native_actions( result.pose, result.valid, result.repaired, result.event_id) half = actions_fps15(result.pose, native) _write_actions( self.output_root / task / "actions_native" / date / f"{episode}_{side}.npz", native) _write_actions( self.output_root / task / "actions_fps15" / date / f"{episode}_{side}.npz", half)
output_table = output_table.replace_schema_metadata( dict(table.schema.metadata or {})) output = self.output_root / item.path self._write_parquet_atomic(output_table, output) event_path = (self.output_root / task / "repair_events" / date / f"{episode}.json") _atomic_json(event_path, { "schema_version": 1, "manifest_digest": self.manifest.digest, "source_path": item.path, "source_sha256": item.sha256, "task": task, "date": date, "episode": episode, "events": sorted(events, key=lambda event: event["event_id"]), }) return CandidateEpisode( task, date, episode, output, event_path, repaired_total)
def write_all(self) -> CandidateBuild: """Verify the complete snapshot, then build only its declared files.""" for item in self.manifest.files: self._verify_source(item) manifest_path = self.output_root / "input_manifest.json" if manifest_path.exists(): prior = json.loads(manifest_path.read_text()) if prior.get("digest") != self.manifest.digest: raise ValueError( "candidate root contains a different input manifest digest") _atomic_json(manifest_path, self.manifest.to_dict()) _atomic_json(self.output_root / "build_config.json", { "schema_version": 1, "manifest_digest": self.manifest.digest, "branch_review": self.branch_review, "require_loss_evidence": self.require_loss_evidence, "task_gates": { task: asdict(self.task_gates.get(task, TaskGate())) for task in self.manifest.tasks }, }) episodes = tuple(self._write_episode(item) for item in self.manifest.files) _atomic_json(self.output_root / "build_summary.json", { "schema_version": 1, "manifest_digest": self.manifest.digest, "episodes": [{ "task": episode.task, "date": episode.date, "episode": episode.episode, "parquet": episode.parquet.relative_to(self.output_root).as_posix(), "events": episode.events.relative_to(self.output_root).as_posix(), "repaired_frames": episode.repaired_frames, } for episode in episodes], }) return CandidateBuild(self.output_root, self.manifest.digest, episodes)
def _load_candidate(candidate_root: Path) -> tuple[InputManifest, dict[str, TaskGate]]: candidate_root = Path(candidate_root).resolve() manifest_path = candidate_root / "input_manifest.json" config_path = candidate_root / "build_config.json" if not manifest_path.is_file() or not config_path.is_file(): raise ValueError("candidate root is missing manifest or build config") manifest = InputManifest.from_dict(json.loads(manifest_path.read_text())) config = json.loads(config_path.read_text()) if config.get("manifest_digest") != manifest.digest: raise ValueError("build config manifest digest mismatch") gates = {task: TaskGate(**value) for task, value in config.get("task_gates", {}).items()} return manifest, gates
def _scoped_event_id(path: Path, event_id: str) -> str: return f"{path.parent.parent.parent.name}/{path.parent.name}/{path.stem}::{event_id}"
def _event_index(candidate_root: Path) -> dict[str, tuple[Path, dict[str, Any]]]: """Index review IDs as task/date/source_episode::local_event_id.
Legacy local IDs are accepted only when globally unique. Exported samples keyed remote_path::local_event_id must first be mapped through publication inventory to the unsegmented source episode; segmented filenames are not sufficient to infer this mapping. """ index: dict[str, tuple[Path, dict[str, Any]]] = {} aliases: dict[str, list[tuple[Path, dict[str, Any]]]] = {} for path in sorted(Path(candidate_root).glob("*/repair_events/*/*.json")): payload = json.loads(path.read_text()) for event in payload.get("events", []): event_id = str(event["event_id"]) scoped = _scoped_event_id(path, event_id) if scoped in index: raise ValueError(f"duplicate event within episode: {scoped}") index[scoped] = (path, event) aliases.setdefault(event_id, []).append((path, event)) index.update({alias: values[0] for alias, values in aliases.items() if len(values) == 1}) return index
def _canonical_decisions(payload: dict[str, Any], manifest: InputManifest, events: dict[str, tuple[Path, dict[str, Any]]]) -> list[dict[str, str]]: if int(payload.get("schema_version", -1)) != 1: raise ValueError("unsupported decisions schema") if payload.get("manifest_digest") != manifest.digest: raise ValueError("decisions manifest digest mismatch") allowed = {"keep_raw", "accept_repair", "invalidate", "unsure"} seen: set[str] = set() out = [] for row in payload.get("decisions", []): event_id = str(row.get("event_id", "")) decision = str(row.get("decision", "")) if event_id not in events: raise ValueError(f"unknown event in decisions: {event_id}") path, event = events[event_id] event_id = _scoped_event_id(path, str(event["event_id"])) if event_id in seen: raise ValueError(f"duplicate decision for event: {event_id}") if decision not in allowed: raise ValueError(f"invalid decision {decision!r} for {event_id}") seen.add(event_id) out.append({"event_id": event_id, "decision": decision}) return sorted(out, key=lambda row: row["event_id"])
def _finite_unit_pose(pose: np.ndarray) -> np.ndarray: norm = np.linalg.norm(pose[:, 3:], axis=1) return np.isfinite(pose).all(axis=1) & (norm > 1e-12)
def apply_decisions(candidate_root: Path, payload: dict[str, Any]) -> CandidateBuild: """Replay canonical review decisions from the immutable source snapshot.""" candidate_root = Path(candidate_root).resolve() manifest, gates = _load_candidate(candidate_root) events_before = _event_index(candidate_root) decisions = _canonical_decisions(payload, manifest, events_before)
# Rebuild the undecided baseline first. This makes decision application # independent of whatever decision was applied on the previous run. writer = CandidateWriter( Path(manifest.source_root), candidate_root, manifest, task_gates=gates, branch_review=bool(json.loads((candidate_root / "build_config.json").read_text()).get("branch_review", False)), require_loss_evidence=bool(json.loads((candidate_root / "build_config.json").read_text()).get("require_loss_evidence", False))) build = writer.write_all() events = _event_index(candidate_root) grouped: dict[Path, list[dict[str, str]]] = {} for row in decisions: path, event = events[row["event_id"]] grouped.setdefault(path, []).append({"event_id": str(event["event_id"]), "decision": row["decision"]})
for event_path, rows in grouped.items(): event_payload = json.loads(event_path.read_text()) by_id = {event["event_id"]: event for event in event_payload.get("events", [])} task = str(event_payload["task"]) date = str(event_payload["date"]) episode = str(event_payload["episode"]) candidate_path = candidate_root / task / "meta" / date / f"{episode}.parquet" source_path = Path(manifest.source_root) / event_payload["source_path"] table = pq.read_table(candidate_path) source = pq.read_table(source_path) side_state: dict[str, dict[str, np.ndarray]] = {} for side in SIDES: pose_name = f"sensor_{side}_pose" if pose_name not in table.column_names: continue side_state[side] = { "pose": np.asarray(table[pose_name].to_pylist(), float), "raw": np.asarray(source[pose_name].to_pylist(), float), "repaired": np.asarray( table[f"pose_{side}_repaired"], bool).copy(), "confidence": np.asarray( table[f"pose_{side}_repair_confidence"], np.uint8).copy(), "valid": np.asarray( table[f"pose_{side}_valid"], bool).copy(), "event_id": np.asarray( table[f"pose_{side}_repair_event_id"].to_pylist(), object), } for row in rows: event = by_id[row["event_id"]] side = str(event["side"]) state = side_state[side] selected = np.arange(int(event["start"]), int(event["end"]) + 1) decision = row["decision"] if decision == "accept_repair": state["valid"][selected] = _finite_unit_pose(state["pose"][selected]) else: state["pose"][selected] = state["raw"][selected] state["repaired"][selected] = False if decision == "keep_raw": state["confidence"][selected] = Confidence.NONE state["valid"][selected] = _finite_unit_pose(state["raw"][selected]) elif decision == "invalidate": state["confidence"][selected] = Confidence.LOW state["valid"][selected] = False else: # unsure state["valid"][selected] = False event["decision"] = decision
output_table = table for side, state in side_state.items(): output_table = _set_column( output_table, f"sensor_{side}_pose", _pose_list_array(state["pose"])) output_table = _set_column( output_table, f"pose_{side}_repaired", pa.array(state["repaired"], type=pa.bool_())) output_table = _set_column( output_table, f"pose_{side}_repair_confidence", pa.array(state["confidence"], type=pa.uint8())) output_table = _set_column( output_table, f"pose_{side}_valid", pa.array(state["valid"], type=pa.bool_())) native = native_actions( state["pose"], state["valid"], state["repaired"], state["event_id"]) half = actions_fps15(state["pose"], native) _write_actions( candidate_root / task / "actions_native" / date / f"{episode}_{side}.npz", native) _write_actions( candidate_root / task / "actions_fps15" / date / f"{episode}_{side}.npz", half) writer._write_parquet_atomic(output_table, candidate_path) _atomic_json(event_path, event_payload)
_atomic_json(candidate_root / "decisions.json", { "schema_version": 1, "manifest_digest": manifest.digest, "decisions": decisions, }) return build
def _rows_equal(left: np.ndarray, right: np.ndarray) -> np.ndarray: same = left == right if np.issubdtype(left.dtype, np.floating): same |= np.isnan(left) & np.isnan(right) return np.all(same, axis=1)
def _columns_equal(left: pa.ChunkedArray, right: pa.ChunkedArray) -> bool: """Arrow equality with IEEE NaNs treated as equal at identical positions.""" if left.type != right.type or len(left) != len(right): return False if left.equals(right): return True try: if (pa.types.is_list(left.type) or pa.types.is_large_list(left.type) or pa.types.is_fixed_size_list(left.type)): a = np.asarray(left.to_pylist(), dtype=float) b = np.asarray(right.to_pylist(), dtype=float) elif pa.types.is_floating(left.type): a = np.asarray(left.to_numpy(zero_copy_only=False), dtype=float) b = np.asarray(right.to_numpy(zero_copy_only=False), dtype=float) else: return False except (TypeError, ValueError): return False return bool(np.array_equal(a, b, equal_nan=True))
def _verify_action_file(path: Path, expected: ActionSeries, errors: list[str]) -> None: if not path.is_file(): errors.append(f"missing action sidecar: {path}") return try: with np.load(path, allow_pickle=False) as data: for name, value in ( ("values", expected.values), ("valid", expected.valid), ("repaired", expected.repaired), ("start_rows", expected.start_rows), ("end_rows", expected.end_rows)): if name not in data.files or not np.array_equal(data[name], value): errors.append(f"action mismatch {path}: {name}") event_text = np.asarray(["|".join(ids) for ids in expected.event_ids], dtype=np.str_) if "event_ids" not in data.files or not np.array_equal( data["event_ids"], event_text): errors.append(f"action mismatch {path}: event_ids") except Exception as exc: errors.append(f"unreadable action sidecar {path}: {exc}")
def verify_candidate(candidate_root: Path) -> VerificationReport: """Verify source immutability, declared changes, and action derivations.""" candidate_root = Path(candidate_root).resolve() manifest, gates = _load_candidate(candidate_root) writer = CandidateWriter( Path(manifest.source_root), candidate_root, manifest, task_gates=gates) errors: list[str] = [] for item in manifest.files: try: source_path = writer._verify_source(item) except SourceChangedError as exc: errors.append(str(exc)); continue candidate_path = candidate_root / item.path if not candidate_path.is_file(): errors.append(f"missing candidate parquet: {item.path}"); continue try: source = pq.read_table(source_path) candidate = pq.read_table(candidate_path) except Exception as exc: errors.append(f"unreadable candidate {item.path}: {exc}"); continue if source.num_rows != candidate.num_rows: errors.append(f"row count mismatch: {item.path}"); continue for name in source.column_names: if name.startswith("sensor_") and name.endswith("_pose"): continue if (name not in candidate.column_names or not _columns_equal(source[name], candidate[name])): errors.append(f"source column changed: {item.path}:{name}") rel = Path(item.path) task, _, date, filename = rel.parts episode = Path(filename).stem for side in SIDES: pose_name = f"sensor_{side}_pose" required = [pose_name, f"pose_{side}_repaired", f"pose_{side}_repair_confidence", f"pose_{side}_valid", f"pose_{side}_repair_event_id"] if pose_name not in source.column_names: continue if any(name not in candidate.column_names for name in required): errors.append(f"missing repair columns: {item.path}:{side}"); continue raw = np.asarray(source[pose_name].to_pylist(), float) pose = np.asarray(candidate[pose_name].to_pylist(), float) repaired = np.asarray(candidate[f"pose_{side}_repaired"], bool) valid = np.asarray(candidate[f"pose_{side}_valid"], bool) event_id = np.asarray( candidate[f"pose_{side}_repair_event_id"].to_pylist(), object) changed = ~_rows_equal(raw, pose) if np.any(changed & ~repaired): errors.append(f"undeclared pose change: {item.path}:{side}") if np.any(repaired & (event_id == "")): errors.append(f"repaired pose missing event id: {item.path}:{side}") finite_unit = _finite_unit_pose(pose) if np.any(valid & ~finite_unit): errors.append(f"valid pose is nonfinite/nonunit: {item.path}:{side}") norm = np.linalg.norm(pose[valid, 3:], axis=1) if len(norm) and not np.allclose(norm, 1.0, atol=1e-6): errors.append(f"valid quaternion is not unit: {item.path}:{side}") native = native_actions(pose, valid, repaired, event_id) half = actions_fps15(pose, native) _verify_action_file( candidate_root / task / "actions_native" / date / f"{episode}_{side}.npz", native, errors) _verify_action_file( candidate_root / task / "actions_fps15" / date / f"{episode}_{side}.npz", half, errors) report = VerificationReport(len(manifest.files), tuple(errors)) if errors: raise CandidateVerificationError("; ".join(errors)) return report123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624"""Conservative, provenance-preserving OptiTrack trajectory repair.
This module starts by grouping discontinuity seeds into complete tracking-lossbouts. Detection is deliberately separate from reconstruction: a surprisingedge is evidence to inspect, never by itself permission to replace a pose."""from __future__ import annotations
from dataclasses import dataclassfrom enum import IntEnumfrom typing import Iterable
import numpy as npfrom scipy.spatial.transform import Rotation, Slerp
@dataclass(frozen=True)class RepairConfig: """Physical and temporal gates expressed at the native 30 fps rate."""
rotation_seed_deg: float = 30.0 coupled_rotation_deg: float = 12.0 coupled_translation_mm: float = 20.0 branch_agreement_deg: float = 12.0 branch_context_frames: int = 15 stable_frames: int = 10 context_frames: int = 15 translation_inlier_mm: float = 20.0 rotation_inlier_deg: float = 12.0 max_high_frames: int = 60 max_step_translation_mm: float = 50.0 max_step_rotation_deg: float = 30.0 max_prediction_translation_mm: float = 10.0 max_prediction_rotation_deg: float = 5.0
@dataclass(frozen=True)class AnomalyBout: """One complete interval requiring reconstruction or review."""
side: str start: int end: int kind: str seed_frames: tuple[int, ...] left_context_end: int | None right_context_start: int | None
class Confidence(IntEnum): NONE = 0 LOW = 1 MEDIUM = 2 HIGH = 3
@dataclass(frozen=True)class TaskGate: """Held-out clean-data evidence allowed to enable automatic training."""
high_confidence_enabled: bool = False validated_max_frames: int = 0 endpoint_max_frames: int = 0
@dataclass(frozen=True)class RepairEvent: event_id: str bout: AnomalyBout confidence: Confidence method: str replaced_frames: tuple[int, ...] evidence: dict[str, float | int | bool | str]
@dataclass(frozen=True)class PoseRepairResult: pose: np.ndarray repaired: np.ndarray confidence: np.ndarray valid: np.ndarray event_id: np.ndarray events: tuple[RepairEvent, ...]
def _unit_quaternion(q: np.ndarray) -> np.ndarray: norm = np.linalg.norm(q, axis=-1, keepdims=True) return q / np.where(norm > 1e-12, norm, 1.0)
def _quaternion_angle_deg(a: np.ndarray, b: np.ndarray) -> np.ndarray: a, b = _unit_quaternion(a), _unit_quaternion(b) dot = np.abs(np.sum(a * b, axis=-1)) return np.degrees(2.0 * np.arccos(np.clip(dot, -1.0, 1.0)))
def transition_metrics(pose: np.ndarray) -> tuple[np.ndarray, np.ndarray]: """Return sign-insensitive rotation degrees and translation millimetres.""" pose = np.asarray(pose, dtype=float) if pose.ndim != 2 or pose.shape[1] != 7: raise ValueError(f"pose must have shape (T, 7), got {pose.shape}") if len(pose) < 2: return np.empty(0, dtype=float), np.empty(0, dtype=float) finite = np.isfinite(pose).all(axis=1) rot = _quaternion_angle_deg(pose[:-1, 3:], pose[1:, 3:]) trans = np.linalg.norm(np.diff(pose[:, :3], axis=0), axis=1) * 1000.0 invalid = ~(finite[:-1] & finite[1:]) rot[invalid] = np.nan trans[invalid] = np.nan return rot, trans
def _branch_support(pose: np.ndarray, rows: set[int], config: RepairConfig) -> dict[int, float]: """Fraction of nearby finite observations agreeing with each candidate row.""" q = np.asarray(pose, dtype=float)[:, 3:] finite = np.isfinite(q).all(axis=1) & (np.linalg.norm(q, axis=1) > 1e-12) out: dict[int, float] = {} for row in sorted(rows): if not finite[row]: out[row] = -1.0 continue lo = max(0, row - config.branch_context_frames) hi = min(len(q), row + config.branch_context_frames + 1) neighbours = np.arange(lo, hi) neighbours = neighbours[(neighbours != row) & finite[lo:hi]] if not len(neighbours): out[row] = 1.0 continue angle = _quaternion_angle_deg( np.repeat(q[row][None], len(neighbours), axis=0), q[neighbours]) out[row] = float(np.mean(angle <= config.branch_agreement_deg)) return out
def _discontinuity_seed_frames(pose: np.ndarray, config: RepairConfig) -> set[int]: rot, trans = transition_metrics(pose) edges = np.where( (rot > config.rotation_seed_deg) | ((rot > config.coupled_rotation_deg) & (trans > config.coupled_translation_mm)) )[0] if not len(edges): return set() endpoints = {int(i) for edge in edges for i in (edge, edge + 1)} support = _branch_support(pose, endpoints, config) seeds: set[int] = set() for edge in edges: left, right = int(edge), int(edge + 1) ls, rs = support[left], support[right] # The alternate OptiTrack branch has less local temporal support. A # tie remains a review seed on the post-transition side; reconstruction # later requires two trustworthy anchors before changing anything. seeds.add(left if ls < rs else right) return seeds
def detect_bouts( pose: np.ndarray, side: str, known_gaps: Iterable[tuple[int, int]] = (), *, config: RepairConfig | None = None,) -> list[AnomalyBout]: """Group discontinuities and declared gaps into complete anomaly bouts.
Seeds separated by fewer than ``stable_frames`` clean native frames are one bout. Consequently a returning A/B flicker is represented once rather than as a list of unrelated >30 degree transitions. """ pose = np.asarray(pose, dtype=float) if pose.ndim != 2 or pose.shape[1] != 7: raise ValueError(f"pose must have shape (T, 7), got {pose.shape}") if side not in {"left", "right"}: raise ValueError(f"side must be left or right, got {side!r}") cfg = config or RepairConfig() n_rows = len(pose) known: set[int] = set() for start, count in known_gaps: start, count = int(start), int(count) if count > 0: known.update(range(max(0, start), min(n_rows, start + count))) nonfinite = set(np.where(~np.isfinite(pose).all(axis=1))[0].astype(int)) discontinuity = _discontinuity_seed_frames(pose, cfg) # A declared gap already owns its entry and return boundaries. Counting # the first clean row after it as another seed makes an N-row gap appear # to be N+1 rows and can incorrectly cross a confidence-duration gate. gap_boundaries: set[int] = set() for start, count in known_gaps: gap_boundaries.update(range(max(0, int(start) - 1), min(n_rows, int(start) + int(count) + 1))) discontinuity -= gap_boundaries seeds = sorted(known | nonfinite | discontinuity) if not seeds: return []
groups: list[list[int]] = [[seeds[0]]] for row in seeds[1:]: if row - groups[-1][-1] <= cfg.stable_frames: groups[-1].append(row) else: groups.append([row])
bouts: list[AnomalyBout] = [] for group in groups: start, end = group[0], group[-1] group_set = set(group) if group_set <= known and group_set: kind = "known_gap" elif group_set & known: kind = "gap_with_discontinuity" elif group_set & nonfinite: kind = "nonfinite" else: kind = "branch_discontinuity" left = start - 1 if start > 0 else None right = end + 1 if end + 1 < n_rows else None bouts.append(AnomalyBout( side=side, start=start, end=end, kind=kind, seed_frames=tuple(group), left_context_end=left, right_context_start=right, )) return bouts
def _finite_pose_rows(pose: np.ndarray) -> np.ndarray: q_norm = np.linalg.norm(pose[:, 3:], axis=1) return np.isfinite(pose).all(axis=1) & (q_norm > 1e-12)
def _context_rows(finite: np.ndarray, start: int, end: int, count: int) -> tuple[np.ndarray, np.ndarray]: left = np.flatnonzero(finite[:start])[-count:] right = np.flatnonzero(finite[end + 1:])[:count] + end + 1 return left, right
def _median_linear_velocity(xyz: np.ndarray, rows: np.ndarray) -> np.ndarray: if len(rows) < 2: return np.zeros(3, dtype=float) consecutive = np.diff(rows) == 1 delta = np.diff(xyz[rows], axis=0)[consecutive] return np.median(delta, axis=0) if len(delta) else np.zeros(3, dtype=float)
def _median_angular_velocity(quat: np.ndarray, rows: np.ndarray) -> np.ndarray: if len(rows) < 2: return np.zeros(3, dtype=float) pairs = np.flatnonzero(np.diff(rows) == 1) if not len(pairs): return np.zeros(3, dtype=float) first = Rotation.from_quat(quat[rows[pairs]]) second = Rotation.from_quat(quat[rows[pairs + 1]]) return np.median((second * first.inv()).as_rotvec(), axis=0)
def _hermite(p0: np.ndarray, p1: np.ndarray, v0: np.ndarray, v1: np.ndarray, duration: int, offsets: np.ndarray) -> np.ndarray: s = (offsets / float(duration))[:, None] h00 = 2 * s**3 - 3 * s**2 + 1 h10 = s**3 - 2 * s**2 + s h01 = -2 * s**3 + 3 * s**2 h11 = s**3 - s**2 return h00 * p0 + h10 * duration * v0 + h01 * p1 + h11 * duration * v1
def _rotation_error_deg(a: np.ndarray, b: np.ndarray) -> np.ndarray: return np.degrees( (Rotation.from_quat(a) * Rotation.from_quat(b).inv()).magnitude())
def _predict_bout(pose: np.ndarray, bout: AnomalyBout, left: np.ndarray, right: np.ndarray) -> tuple[np.ndarray, dict[str, float]]: """Boundary-constrained SE(3) prediction and independent check evidence.""" lo, hi = int(left[-1]), int(right[0]) rows = np.arange(bout.start, bout.end + 1) duration = hi - lo offsets = rows - lo xyz = pose[:, :3] quat = _unit_quaternion(pose[:, 3:]) v0 = _median_linear_velocity(xyz, left) v1 = _median_linear_velocity(xyz, right) # Both effectively stationary: the minimum-assumption path is linear. if max(np.linalg.norm(v0), np.linalg.norm(v1)) < 0.0005: v0 = v1 = (xyz[hi] - xyz[lo]) / duration pred_xyz = _hermite(xyz[lo], xyz[hi], v0, v1, duration, offsets)
r0, r1 = Rotation.from_quat(quat[lo]), Rotation.from_quat(quat[hi]) end_rotvec = (r1 * r0.inv()).as_rotvec() w0 = _median_angular_velocity(quat, left) w1 = _median_angular_velocity(quat, right) pred_rotvec = _hermite( np.zeros(3), end_rotvec, w0, w1, duration, offsets) pred_quat = (Rotation.from_rotvec(pred_rotvec) * r0).as_quat()
forward_xyz = xyz[lo] + offsets[:, None] * v0 backward_xyz = xyz[hi] - (hi - rows)[:, None] * v1 pred_trans_disagreement = float(np.max( np.linalg.norm(forward_xyz - backward_xyz, axis=1) * 1000.0)) forward_q = (Rotation.from_rotvec(offsets[:, None] * w0) * r0).as_quat() backward_q = ( Rotation.from_rotvec(-(hi - rows)[:, None] * w1) * r1).as_quat() pred_rot_disagreement = float(np.max( _rotation_error_deg(forward_q, backward_q))) pred = np.concatenate([pred_xyz, pred_quat], axis=1) evidence = { "left_anchor": lo, "right_anchor": hi, "left_context_frames": int(len(left)), "right_context_frames": int(len(right)), "prediction_translation_max_mm": pred_trans_disagreement, "prediction_rotation_max_deg": pred_rot_disagreement, } return pred, evidence
def _endpoint_se3(pose: np.ndarray, bout: AnomalyBout) -> tuple[ np.ndarray, dict[str, float]]: """Interpolate a short bout from its immediate finite SE(3) anchors.""" lo, hi = bout.start - 1, bout.end + 1 rows = np.arange(bout.start, bout.end + 1) duration = hi - lo fraction = (rows - lo) / float(duration) xyz = ((1.0 - fraction[:, None]) * pose[lo, :3] + fraction[:, None] * pose[hi, :3]) rotations = Slerp( [0.0, 1.0], Rotation.from_quat(_unit_quaternion(pose[[lo, hi], 3:]))) quat = rotations(fraction).as_quat() anchor_translation_mm = float( np.linalg.norm(pose[hi, :3] - pose[lo, :3]) * 1000.0) anchor_rotation_deg = float(_quaternion_angle_deg( pose[lo:lo + 1, 3:], pose[hi:hi + 1, 3:])[0]) return np.concatenate([xyz, quat], axis=1), { "left_anchor": int(lo), "right_anchor": int(hi), "anchor_translation_mm": anchor_translation_mm, "anchor_rotation_deg": anchor_rotation_deg, "prediction_translation_max_mm": anchor_translation_mm / duration, "prediction_rotation_max_deg": anchor_rotation_deg / duration, }
def _trajectory_is_physical(pose: np.ndarray, config: RepairConfig) -> tuple[bool, float, float]: rot, trans = transition_metrics(pose) finite = np.isfinite(rot) & np.isfinite(trans) if not finite.all(): return False, float("inf"), float("inf") max_rot = float(np.max(rot, initial=0.0)) max_trans = float(np.max(trans, initial=0.0)) return (max_rot <= config.max_step_rotation_deg and max_trans <= config.max_step_translation_mm), max_rot, max_trans
def _residuals(observed: np.ndarray, predicted: np.ndarray) -> tuple[np.ndarray, np.ndarray, np.ndarray]: finite = _finite_pose_rows(observed) trans = np.full(len(observed), np.inf) rot = np.full(len(observed), np.inf) trans[finite] = np.linalg.norm( observed[finite, :3] - predicted[finite, :3], axis=1) * 1000.0 if finite.any(): rot[finite] = _rotation_error_deg( observed[finite, 3:], predicted[finite, 3:]) return trans, rot, finite
def _refit_from_inliers(predicted: np.ndarray, observed: np.ndarray, inlier: np.ndarray, offsets: np.ndarray, duration: int) -> np.ndarray: """Fit a boundary-zero cubic correction without moving either anchor.""" if int(inlier.sum()) < 2: return predicted s = offsets / float(duration) basis = np.stack([s * (1.0 - s), s * (1.0 - s) * (2.0 * s - 1.0)], axis=1) design = basis[inlier] xyz_residual = observed[inlier, :3] - predicted[inlier, :3] xyz_coef, *_ = np.linalg.lstsq(design, xyz_residual, rcond=None) corrected_xyz = predicted[:, :3] + basis @ xyz_coef
measured_r = Rotation.from_quat(observed[inlier, 3:]) predicted_r = Rotation.from_quat(predicted[inlier, 3:]) rot_residual = (measured_r * predicted_r.inv()).as_rotvec() rot_coef, *_ = np.linalg.lstsq(design, rot_residual, rcond=None) correction = Rotation.from_rotvec(basis @ rot_coef) corrected_q = (correction * Rotation.from_quat(predicted[:, 3:])).as_quat() return np.concatenate([corrected_xyz, corrected_q], axis=1)
def _robust_upper(values: np.ndarray, floor: float, cap: float) -> float: values = np.asarray(values, dtype=float) values = values[np.isfinite(values)] if not len(values): return float(floor) centre = float(np.median(values)) mad = float(np.median(np.abs(values - centre))) return float(min(cap, max(floor, centre + 6.0 * 1.4826 * mad)))
def _local_inlier_thresholds(pose: np.ndarray, left: np.ndarray, right: np.ndarray, config: RepairConfig) -> tuple[float, float]: """Estimate clean local jitter, bounded by global physical residual caps.""" trans_accel: list[np.ndarray] = [] rot_accel: list[np.ndarray] = [] for rows in (left, right): runs = np.split(rows, np.where(np.diff(rows) != 1)[0] + 1) for run in runs: if len(run) < 3: continue xyz = pose[run, :3] trans_accel.append( np.linalg.norm(np.diff(xyz, n=2, axis=0), axis=1) * 1000.0) rotations = Rotation.from_quat(_unit_quaternion(pose[run, 3:])) velocity = (rotations[1:] * rotations[:-1].inv()).as_rotvec() rot_accel.append(np.degrees( np.linalg.norm(np.diff(velocity, axis=0), axis=1))) trans_values = np.concatenate(trans_accel) if trans_accel else np.empty(0) rot_values = np.concatenate(rot_accel) if rot_accel else np.empty(0) return ( _robust_upper(trans_values, 3.0, config.translation_inlier_mm), _robust_upper(rot_values, 2.0, config.rotation_inlier_deg), )
def _robust_branch_fit(observed: np.ndarray, initial: np.ndarray, forced: np.ndarray, offsets: np.ndarray, duration: int, translation_threshold_mm: float, rotation_threshold_deg: float) -> tuple[ np.ndarray, np.ndarray, np.ndarray, np.ndarray, int, bool]: """Alternate branch classification and trajectory correction up to 5 times.""" predicted = initial.copy() previous: np.ndarray | None = None converged = False iterations = 0 for iterations in range(1, 6): trans, rot, finite = _residuals(observed, predicted) inlier = (finite & (trans <= translation_threshold_mm) & (rot <= rotation_threshold_deg) & ~forced) if previous is not None and np.array_equal(inlier, previous): converged = True break previous = inlier.copy() predicted = _refit_from_inliers( predicted, observed, inlier, offsets, duration) trans, rot, finite = _residuals(observed, predicted) inlier = (finite & (trans <= translation_threshold_mm) & (rot <= rotation_threshold_deg) & ~forced) if previous is not None and np.array_equal(inlier, previous): converged = True return predicted, inlier, trans, rot, iterations, converged
def repair_pose_stream( pose: np.ndarray, side: str, known_gaps: Iterable[tuple[int, int]] = (), *, task_gate: TaskGate | None = None, config: RepairConfig | None = None,) -> PoseRepairResult: """Return candidate poses and explicit side-specific repair provenance.
HIGH candidates are valid for training. MEDIUM candidates contain the proposed reconstruction but remain invalid pending a review decision. LOW events preserve the measured poses and remain invalid. """ raw = np.asarray(pose, dtype=float) if raw.ndim != 2 or raw.shape[1] != 7: raise ValueError(f"pose must have shape (T, 7), got {raw.shape}") cfg = config or RepairConfig() gate = task_gate or TaskGate() gap_list = [(int(start), int(count)) for start, count in known_gaps] bouts = detect_bouts(raw, side, gap_list, config=cfg) finite = _finite_pose_rows(raw) candidate = raw.copy() repaired = np.zeros(len(raw), dtype=bool) confidence = np.full(len(raw), Confidence.NONE, dtype=np.uint8) valid = finite.copy() event_id = np.full(len(raw), "", dtype=object) events: list[RepairEvent] = [] known_rows = { row for start, count in gap_list for row in range(max(0, start), min(len(raw), start + count)) }
for bout in bouts: rows = np.arange(bout.start, bout.end + 1) left, right = _context_rows(finite, bout.start, bout.end, cfg.context_frames) eid = f"{side}:{bout.start}-{bout.end}:{bout.kind}" event_id[rows] = eid if not len(left) or not len(right): confidence[rows] = Confidence.LOW valid[rows] = False events.append(RepairEvent( eid, bout, Confidence.LOW, "unrepaired_missing_anchor", (), { "duration_frames": int(len(rows)), "left_context_frames": int(len(left)), "right_context_frames": int(len(right)), })) continue
endpoint_method = ( 1 <= len(rows) <= 5 and int(left[-1]) == bout.start - 1 and int(right[0]) == bout.end + 1 ) if endpoint_method: predicted, evidence = _endpoint_se3(raw, bout) evidence.update({ "left_context_frames": int(len(left)), "right_context_frames": int(len(right)), }) else: predicted, evidence = _predict_bout(raw, bout, left, right) observed = raw[rows] forced = np.array([int(row) in known_rows for row in rows]) lo = int(left[-1]); hi = int(right[0]) trans_threshold, rot_threshold = _local_inlier_thresholds( raw, left, right, cfg) if endpoint_method: # Keep this identical to the benchmarked linear/SLERP model; # fitting a polynomial to possible wrong-branch observations # would quietly turn it into a different estimator. trans_residual, rot_residual, observed_finite = _residuals(observed, predicted) inlier = (observed_finite & ~forced & (trans_residual <= trans_threshold) & (rot_residual <= rot_threshold)) iterations, converged = 0, True else: predicted, inlier, trans_residual, rot_residual, iterations, converged = ( _robust_branch_fit(observed, predicted, forced, rows - lo, hi - lo, trans_threshold, rot_threshold)) replace = ~inlier | forced classified_outlier = replace & ~forced if classified_outlier.any(): outlier_separation = np.maximum( trans_residual[classified_outlier] / trans_threshold, rot_residual[classified_outlier] / rot_threshold) branch_unambiguous = bool(np.min(outlier_separation) >= 1.5) else: branch_unambiguous = True proposed = raw.copy() proposed[rows[replace]] = predicted[replace] physical, max_rot, max_trans = _trajectory_is_physical( proposed[max(0, bout.start - 1):min(len(raw), bout.end + 2)], cfg) evidence.update({ "duration_frames": int(len(rows)), "observed_inlier_frames": int(inlier.sum()), "replaced_frames": int(replace.sum()), "translation_residual_p95_mm": float(np.percentile(trans_residual, 95)), "rotation_residual_p95_deg": float(np.percentile(rot_residual, 95)), "reconstructed_max_step_translation_mm": max_trans, "reconstructed_max_step_rotation_deg": max_rot, "physical": bool(physical), "fit_iterations": int(iterations), "fit_converged": bool(converged), "translation_inlier_threshold_mm": trans_threshold, "rotation_inlier_threshold_deg": rot_threshold, "branch_unambiguous": branch_unambiguous, }) extreme_prediction_disagreement = (not endpoint_method and ( evidence["prediction_translation_max_mm"] > 3.0 * cfg.max_prediction_translation_mm or evidence["prediction_rotation_max_deg"] > 3.0 * cfg.max_prediction_rotation_deg)) if not physical or extreme_prediction_disagreement: confidence[rows] = Confidence.LOW valid[rows] = False evidence["rejection"] = ( "nonphysical_reconstruction" if not physical else "incompatible_two_sided_prediction") events.append(RepairEvent( eid, bout, Confidence.LOW, "unrepaired_ambiguous_branch", (), evidence)) continue two_full_contexts = (len(left) >= cfg.context_frames and len(right) >= cfg.context_frames) # A short boundary seed may actually be one end of a persistent # alternate branch. Physical step limits alone cannot establish # that the two anchors belong to the same trajectory branch. endpoint_return = (not endpoint_method or evidence["anchor_rotation_deg"] <= 20.0) if endpoint_method: evidence["endpoint_return_consistent"] = endpoint_return prediction_agrees = endpoint_method or ( evidence["prediction_translation_max_mm"] <= cfg.max_prediction_translation_mm and evidence["prediction_rotation_max_deg"] <= cfg.max_prediction_rotation_deg) high = ( gate.high_confidence_enabled and len(rows) <= min(cfg.max_high_frames, gate.validated_max_frames) and (not endpoint_method or len(rows) <= gate.endpoint_max_frames) and endpoint_return and two_full_contexts and prediction_agrees and physical and branch_unambiguous and bool(replace.any())) tier = Confidence.HIGH if high else Confidence.MEDIUM candidate[rows[replace]] = predicted[replace] repaired[rows[replace]] = True confidence[rows] = tier valid[rows] = high events.append(RepairEvent( eid, bout, tier, ("endpoint_se3" if endpoint_method else "robust_se3_hermite"), tuple(rows[replace].astype(int)), evidence))
return PoseRepairResult( pose=candidate, repaired=repaired, confidence=confidence, valid=valid, event_id=event_id, events=tuple(events), )123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125"""Repair-aware action construction from candidate OptiTrack poses.
Actions are 9-D ``[dx, dy, dz, relative_rotation_6d]``. Translation is inmetres. Rotation uses the first two columns of the world-frame relativerotation matrix, concatenated column by column."""from __future__ import annotations
from dataclasses import dataclass
import numpy as npfrom scipy.spatial.transform import Rotation
MAX_ROTATION_DEG = 30.0MAX_TRANSLATION_MM = 50.0
@dataclass(frozen=True)class ActionSeries: values: np.ndarray valid: np.ndarray repaired: np.ndarray event_ids: tuple[tuple[str, ...], ...] start_rows: np.ndarray end_rows: np.ndarray rotation_deg: np.ndarray translation_mm: np.ndarray
def _check_pose_arrays(pose: np.ndarray, pose_valid: np.ndarray, pose_repaired: np.ndarray, pose_event_id: np.ndarray) -> tuple[ np.ndarray, np.ndarray, np.ndarray, np.ndarray]: pose = np.asarray(pose, dtype=float) if pose.ndim != 2 or pose.shape[1] != 7: raise ValueError(f"pose must have shape (T, 7), got {pose.shape}") valid = np.asarray(pose_valid, dtype=bool) repaired = np.asarray(pose_repaired, dtype=bool) event_id = np.asarray(pose_event_id, dtype=object) for name, value in (("pose_valid", valid), ("pose_repaired", repaired), ("pose_event_id", event_id)): if value.shape != (len(pose),): raise ValueError(f"{name} must have shape ({len(pose)},), got {value.shape}") return pose, valid, repaired, event_id
def _event_union(*values: object) -> tuple[str, ...]: out: set[str] = set() for value in values: if isinstance(value, str): if value: out.add(value) elif value is not None: out.update(str(item) for item in value if str(item)) return tuple(sorted(out))
def _relative_values(pose: np.ndarray, start: np.ndarray, end: np.ndarray) -> tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]: n = len(start) values = np.zeros((n, 9), dtype=np.float32) values[:, 3:] = np.array([1, 0, 0, 0, 1, 0], dtype=np.float32) rotation_deg = np.full(n, np.inf, dtype=float) translation_mm = np.full(n, np.inf, dtype=float) endpoints_finite = np.isfinite(pose[start]).all(axis=1) & np.isfinite(pose[end]).all(axis=1) q0_norm = np.linalg.norm(pose[start, 3:], axis=1) q1_norm = np.linalg.norm(pose[end, 3:], axis=1) endpoints_finite &= (q0_norm > 1e-12) & (q1_norm > 1e-12) usable = np.flatnonzero(endpoints_finite) if len(usable): s, e = start[usable], end[usable] delta = pose[e, :3] - pose[s, :3] q0 = pose[s, 3:] / np.linalg.norm(pose[s, 3:], axis=1, keepdims=True) q1 = pose[e, 3:] / np.linalg.norm(pose[e, 3:], axis=1, keepdims=True) relative = Rotation.from_quat(q1) * Rotation.from_quat(q0).inv() matrix = relative.as_matrix() rot6d = np.concatenate([matrix[:, :, 0], matrix[:, :, 1]], axis=1) values[usable, :3] = delta.astype(np.float32) values[usable, 3:] = rot6d.astype(np.float32) rotation_deg[usable] = np.degrees(relative.magnitude()) translation_mm[usable] = np.linalg.norm(delta, axis=1) * 1000.0 return values, rotation_deg, translation_mm, endpoints_finite
def native_actions(pose: np.ndarray, pose_valid: np.ndarray, pose_repaired: np.ndarray, pose_event_id: np.ndarray) -> ActionSeries: """Build each native transition ``k -> k+1`` with explicit validity.""" pose, pose_valid, pose_repaired, pose_event_id = _check_pose_arrays( pose, pose_valid, pose_repaired, pose_event_id) start = np.arange(max(0, len(pose) - 1), dtype=np.int32) end = start + 1 values, rotation_deg, translation_mm, finite = _relative_values( pose, start, end) valid = (pose_valid[start] & pose_valid[end] & finite & (rotation_deg <= MAX_ROTATION_DEG) & (translation_mm <= MAX_TRANSLATION_MM)) repaired = pose_repaired[start] | pose_repaired[end] event_ids = tuple(_event_union(pose_event_id[a], pose_event_id[b]) for a, b in zip(start, end)) return ActionSeries(values, valid, repaired, event_ids, start, end, rotation_deg, translation_mm)
def actions_fps15(pose: np.ndarray, native: ActionSeries) -> ActionSeries: """Build ``k -> k+2`` actions; validity is AND and repair is OR.""" pose = np.asarray(pose, dtype=float) expected_native = max(0, len(pose) - 1) if len(native.valid) != expected_native: raise ValueError( f"native has {len(native.valid)} rows for {len(pose)} poses; " f"expected {expected_native}") start = np.arange(0, max(0, len(pose) - 2), 2, dtype=np.int32) end = start + 2 values, rotation_deg, translation_mm, _ = _relative_values(pose, start, end) first = start second = start + 1 valid = native.valid[first] & native.valid[second] repaired = native.repaired[first] | native.repaired[second] event_ids = tuple(_event_union(native.event_ids[a], native.event_ids[b]) for a, b in zip(first, second)) return ActionSeries(values, valid, repaired, event_ids, start, end, rotation_deg, translation_mm)
1"""Coordinate conversion helpers used by action propagation."""123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150"""Which way is up — declared, and converted as one piece or not at all.
WHAT THE DATA IS, AND WHAT IT WAS
The release is now **Z-up, right-handed**: the table normal in worldcoordinates is (0.053, -0.056, 0.997), 4.4 degrees off +z, and both the poserotations and `T_mocap_to_cam` have determinant +1.
OptiTrack RECORDS Y-up. The release used to ship that unchanged and said sonowhere, which is the worse half of the problem: robotics code overwhelminglyassumes Z-up, and a reader taking `pose[2]` as height got a horizontalcoordinate with nothing to complain — plausible numbers, fine-looking plots,and an error that surfaces only as a model that never learns which way gravitypoints.
Poses and extrinsics were converted together, so every projection isunchanged and every rendered preview, overlay and clip stayed valid. Only thenumbers moved. `ZUP_TO_YUP` converts back for anything that still wants theraw OptiTrack convention.
THE CONVERSION, AND THE TRAP IN IT
Y-up to Z-up preserving handedness is a rotation of -90 degrees about x:
(x, y, z) -> (x, -z, y)
There are two right-handed candidates; this is the one that sends UP to **+z**rather than -z. The other, R_x(+90), is equally right-handed and puts the tablenormal at (0.053, 0.056, -0.997) — upside down, det still +1, and no assertionabout handedness would catch it.
THE TRAP: a world-frame rotation must be applied to the POSES **and** to`T_mocap_to_cam` together. Applied to one only, every projection moves andnothing raises. So this module converts a BUNDLE — poses and cameras — and`scripts/test_frames.py` asserts that projections are bit-identical afterwards.Invariance is the test: if a pixel moves, the conversion was half-applied.
The gel centre is in the sensor's own RIGID frame and is therefore untouched."""from __future__ import annotations
import numpy as np
UP_AXIS_RECORDED = "z"UP_AXIS_ROBOTICS = "z"
# (x, y, z)_yup -> (x, -z, y)_zup. det = +1, and it sends +y to +z.YUP_TO_ZUP = np.array([[1.0, 0.0, 0.0], [0.0, 0.0, -1.0], [0.0, 1.0, 0.0]])ZUP_TO_YUP = YUP_TO_ZUP.T
def _R(to_zup: bool) -> np.ndarray: return YUP_TO_ZUP if to_zup else ZUP_TO_YUP
def convert_poses(poses7, to_zup: bool = True) -> np.ndarray: """Rotate a pose array into the other up-convention. (N, 7) or (7,).
Positions rotate; orientations PRE-multiply, because this is a change of the world frame, not a motion of the body. """ from scipy.spatial.transform import Rotation
p = np.atleast_2d(np.asarray(poses7, float)).copy() M = _R(to_zup) ok = np.isfinite(p).all(1) & (np.linalg.norm(p[:, 3:7], axis=1) > 0.5) # A column can be entirely untracked -- pushT never tracked an object # body, so its object_pose is NaN from end to end. scipy raises "Found # zero norm quaternions" on the resulting EMPTY array, and that exception # is why the pushT half of the release stayed unconverted while the # motherboard half went Z-up. Nothing to rotate is not an error. if ok.any(): p[ok, :3] = p[ok, :3] @ M.T p[ok, 3:7] = (Rotation.from_matrix(M) * Rotation.from_quat(p[ok, 3:7])).as_quat() return p[0] if np.ndim(poses7) == 1 else p
def convert_calibration(cal: dict, to_zup: bool = True) -> dict: """The same rotation applied to every camera extrinsic. Returns a copy.
`T_mocap_to_cam` maps mocap -> camera. Rotating the mocap frame by M means the new matrix is `T @ M^-1`, so that `T_new @ (M @ x) == T @ x` and every projection is unchanged. Getting this inverse backwards is the other way to break it silently; the invariance test catches that too. """ M = _R(to_zup) out = {k: v for k, v in cal.items()} out["up_axis"] = "z" if to_zup else "y" out["cams"] = {} for name, c in cal["cams"].items(): T = np.asarray(c["T_mocap_to_cam"], float).copy() T[:3, :3] = T[:3, :3] @ M.T # M^-1 == M.T for a rotation out["cams"][name] = {**c, "T_mocap_to_cam": T} return out
def to_zup(poses7, cal: dict): """Convert a pose array and its calibration together. Returns (poses, cal).
Use this rather than the two halves: the whole point is that they move as one piece. """ return convert_poses(poses7, True), convert_calibration(cal, True)
def require_up_axis(cal: dict, expected: str = UP_AXIS_RECORDED, where: str = ""): """Raise unless `cal` declares the up-axis convention `expected`.
WHY THIS EXISTS. Poses and calibration are two halves of one convention, and they are read from two paths. Rotating only one half leaves every self-consistency check green -- projections still recompute exactly from the same wrong matrix -- while the pictures are wrong. That happened: the probe test set drew its poses from the Z-up release and its calibration from a Y-up tree, and every overlay was a median 153 px off.
So the halves must be paired loudly, not by convention. A file with no declaration is treated as the pre-conversion Y-up it was. """ got = cal.get("up_axis") if got != expected: raise ValueError( f"calibration up-axis mismatch{' in ' + where if where else ''}: " f"declared {got!r}, need {expected!r}. Poses and calibration must " f"come from the same release. A missing declaration means a " f"pre-conversion Y-up file -- convert it with " f"scripts/convert_release_zup.py, or take the calibration from " f"the release the poses came from.") return cal
def as_up_axis(cal: dict, want: str) -> dict: """Return `cal` in the convention `want`, converting only if it must.
`require_up_axis` refuses a mismatch; this one repairs it. Use it when the caller genuinely knows which convention its POSES are in -- a raw-HDF5 reader wants "y", a release reader wants "z" -- and should not have to care which directory the calibration happened to come from.
An undeclared calibration is the pre-conversion Y-up it was, so this converts it rather than trusting it. """ if want not in ("y", "z"): raise ValueError(f"up axis must be 'y' or 'z', got {want!r}") got = cal.get("up_axis") or "y" if got == want: return cal return convert_calibration(cal, to_zup=(want == "z"))1"""Action audit, reconstruction, publication and review commands."""123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119"""Benchmark body-frame branch correction on frozen clean pose fragments."""from __future__ import annotations
import argparsefrom dataclasses import asdictfrom pathlib import Path
import numpy as npfrom scipy.spatial.transform import Rotation
from twm.react_preprocess.mocap_branch import find_branch_candidatesfrom twm.react_preprocess.mocap_candidate import load_manifestfrom twm.scripts.benchmark_mocap_repair import ( _candidate_order, _native_errors, _rotation_angle_deg, _select_disjoint, _summary,)from twm.scripts.build_mocap_repair_candidates import _atomic_json, _clean_fragments
def _inject(pose, start, length): observed = pose.copy() rotations = Rotation.from_quat(pose[start:start+length, 3:]) observed[start:start+length, :3] += rotations.apply([0.029, 0, 0]) observed[start:start+length, 3:] = (rotations*Rotation.from_euler('yx', [100, 8], degrees=True)).as_quat() return observed
def _negative_controls(): pose = np.zeros((180, 7)); pose[:, 6] = 1 fast = pose.copy() fast[:, 3:] = Rotation.from_euler('z', 35*np.arange(len(fast)), degrees=True).as_quat() out_back = pose.copy() angle = np.r_[np.zeros(30), np.linspace(0, 100, 60), np.linspace(100, 0, 60), np.zeros(30)] out_back[:, 3:] = Rotation.from_euler('z', angle, degrees=True).as_quat() abrupt = find_branch_candidates(_inject(pose, 40, 60)) repeated = find_branch_candidates(_inject(_inject(pose, 20, 30), 100, 30)) return { 'continuous_fast_turn_candidates': len(find_branch_candidates(fast)), 'continuous_out_back_candidates': len(find_branch_candidates(out_back)), 'abrupt_out_back_candidates': len(abrupt), 'abrupt_out_back_automatic_admissions': sum(c.confidence == 'HIGH' for c in abrupt), 'repeated_abrupt_out_back_candidates': len(repeated), 'repeated_abrupt_out_back_repeat_supported_candidates': sum(c.evidence['matching_return_pairs'] >= 2 for c in repeated), 'caveat': 'Repeated abrupt genuine motion is observationally indistinguishable from a tracker branch; repetition alone is not independent ground truth.', }
def benchmark_branch_task(clean_episodes, *, task, max_intervals=200, seed=17): episodes = [np.asarray(p, dtype=float) for p in clean_episodes] lengths = (6, 20, 60, 120) selected = _select_disjoint(_candidate_order( episodes, lengths, np.random.default_rng(seed), pool_size=max(1000, max_intervals*50)), max_intervals) names = ('translation_mm', 'orientation_deg', 'native_translation_mm', 'native_rotation_deg') values = {name: [] for name in names} all_values = {name: [] for name in names} by_length = {length: {name: [] for name in names} for length in lengths} counts = {length: 0 for length in lengths} for interval in selected: truth = episodes[interval.episode][interval.start-15:interval.start+interval.length+15] observed = _inject(truth, 15, interval.length) candidates = find_branch_candidates(observed) matches = [c for c in candidates if c.start == 15 and c.end == 15+interval.length-1] result = observed.copy() if matches: result[15:15+interval.length] = matches[0].pose counts[interval.length] += 1 rows = slice(15, 15+interval.length) trans = np.linalg.norm(result[rows, :3]-truth[rows, :3], axis=1)*1000 rot = _rotation_angle_deg(result[rows, 3:], truth[rows, 3:]) action_trans, action_rot = _native_errors(result, truth, np.arange(14, 15+interval.length)) for name, error in zip(names, (trans, rot, action_trans, action_rot)): all_values[name].extend(error.tolist()) if matches: values[name].extend(error.tolist()) by_length[interval.length][name].extend(error.tolist()) metrics = {name: asdict(_summary(v)) for name, v in values.items()} per_length = {str(length): {'qualifying_intervals': counts[length], 'metrics': {name: asdict(_summary(v)) for name, v in by_length[length].items()}} for length in lengths} def passes(measured): caps = {'translation_mm': (2, 10), 'orientation_deg': (1, 5), 'native_translation_mm': (2, 5), 'native_rotation_deg': (1, 3)} return all(measured[name]['count'] > 0 and measured[name]['median'] <= median and measured[name]['p95'] <= p95 for name, (median, p95) in caps.items()) negative = _negative_controls() passed = (sum(counts.values()) >= 100 and passes(metrics) and all(counts[length] >= 10 and passes(per_length[str(length)]['metrics']) for length in lengths) and negative['continuous_fast_turn_candidates'] == 0 and negative['continuous_out_back_candidates'] == 0) return { 'schema_version': 1, 'task': task, 'seed': seed, 'method': 'paired_body_branch', 'intervals': len(selected), 'qualifying_intervals': sum(counts.values()), 'rejected_intervals': len(selected)-sum(counts.values()), 'anomaly_lengths': list(lengths), 'metrics': metrics, 'metrics_all': {name: asdict(_summary(v)) for name, v in all_values.items()}, 'by_length': per_length, 'negative_controls': negative, 'gate': {'high_confidence_enabled': False, 'reconstruction_accuracy_passed': bool(passed), 'validated_max_frames': max(lengths) if passed else 0, 'requires_independent_branch_identity_evidence': True}, 'scope': 'Reconstruction accuracy conditional on exact paired-boundary identification; does not validate anomaly classification or branch identity.', }
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--candidate-root', type=Path, required=True) parser.add_argument('--output-root', type=Path, required=True) parser.add_argument('--max-intervals', type=int, default=200) parser.add_argument('--seed', type=int, default=17) args = parser.parse_args() manifest = load_manifest(args.candidate_root/'input_manifest.json') for task in manifest.tasks: fragments = _clean_fragments(manifest, task) report = benchmark_branch_task(fragments, task=task, max_intervals=args.max_intervals, seed=args.seed) report['manifest_digest'] = manifest.digest path = _atomic_json(args.output_root/f'{task}.json', report) print(task, report['qualifying_intervals'], report['gate'], path, flush=True)
if __name__ == '__main__': main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315#!/usr/bin/env python3"""Calibrate mocap repair confidence with deterministic clean-data masking."""from __future__ import annotations
from dataclasses import asdict, dataclass, fieldfrom typing import Iterable
import numpy as npfrom scipy.spatial.transform import Rotation
from twm.react_preprocess.mocap_repair import TaskGate, repair_pose_stream
@dataclass(frozen=True)class MetricSummary: median: float p95: float count: int
@dataclass(frozen=True)class BenchmarkReport: task: str seed: int intervals: int high_intervals: int anomaly_lengths: tuple[int, ...] confidence_counts: dict[str, int] metrics: dict[str, MetricSummary] metrics_all: dict[str, MetricSummary] gate: TaskGate methods: dict = field(default_factory=dict)
def to_dict(self) -> dict: return { "schema_version": 1, "task": self.task, "seed": self.seed, "intervals": self.intervals, "high_intervals": self.high_intervals, "anomaly_lengths": list(self.anomaly_lengths), "confidence_counts": dict(sorted(self.confidence_counts.items())), "metrics": {name: asdict(self.metrics[name]) for name in sorted(self.metrics)}, "metrics_all": {name: asdict(self.metrics_all[name]) for name in sorted(self.metrics_all)}, "gate": asdict(self.gate), "methods": self.methods, }
@dataclass(frozen=True)class _Candidate: episode: int start: int length: int motion: float
def _validate_episode(pose: np.ndarray) -> np.ndarray: pose = np.asarray(pose, dtype=float) if pose.ndim != 2 or pose.shape[1] != 7: raise ValueError(f"clean episode must have shape (T, 7), got {pose.shape}") return pose
def _rotation_angle_deg(a: np.ndarray, b: np.ndarray) -> np.ndarray: return np.degrees( (Rotation.from_quat(a) * Rotation.from_quat(b).inv()).magnitude())
def _motion_score(pose: np.ndarray, start: int, length: int) -> float: lo, hi = start - 1, start + length trans = np.linalg.norm(pose[hi, :3] - pose[lo, :3]) * 1000.0 rot = float(_rotation_angle_deg( pose[hi:hi + 1, 3:], pose[lo:lo + 1, 3:])[0]) return float(trans + rot)
def _candidate_order(episodes: list[np.ndarray], lengths: tuple[int, ...], rng: np.random.Generator, *, pool_size: int) -> list[_Candidate]: """Sample a bounded candidate pool before motion-stratified sorting.""" context = 15 spans: list[tuple[int, int, int]] = [] for episode_index, pose in enumerate(episodes): for length in lengths: count = max(0, len(pose) - 2 * context - length) if count: spans.append((episode_index, length, count)) total = sum(count for _, _, count in spans) if not total: return [] take = min(int(pool_size), total) flat_rows = (np.arange(total, dtype=np.int64) if take == total else np.sort(rng.choice(total, size=take, replace=False))) cumulative = np.cumsum([count for _, _, count in spans]) candidates = [] for flat in flat_rows: span_index = int(np.searchsorted(cumulative, flat, side="right")) prior = int(cumulative[span_index - 1]) if span_index else 0 episode_index, length, _ = spans[span_index] start = context + int(flat) - prior pose = episodes[episode_index] rows = pose[start - context:start + length + context] norm = np.linalg.norm(rows[:, 3:], axis=1) if not np.isfinite(rows).all() or np.any(norm <= 1e-12): continue candidates.append(_Candidate( episode_index, start, length, _motion_score(pose, start, length))) candidates.sort(key=lambda row: (row.motion, row.episode, row.start, row.length)) bins = [list(chunk) for chunk in np.array_split( np.asarray(candidates, dtype=object), 3) if len(chunk)] for rows in bins: rng.shuffle(rows) ordered: list[_Candidate] = [] while any(bins): for rows in bins: if rows: ordered.append(rows.pop()) return ordered
def _select_disjoint(candidates: list[_Candidate], count: int) -> list[_Candidate]: used: dict[int, list[tuple[int, int]]] = {} out = [] for candidate in candidates: end = candidate.start + candidate.length overlaps = any(candidate.start < prior_end and prior_start < end for prior_start, prior_end in used.get(candidate.episode, [])) if overlaps: continue used.setdefault(candidate.episode, []).append((candidate.start, end)) out.append(candidate) if len(out) >= count: break return out
def _inject_wrong_branch(pose: np.ndarray, rows: np.ndarray) -> np.ndarray: observed = pose.copy() observed[rows, :3] += np.array([0.029, -0.003, 0.0]) wrong = Rotation.from_euler("yx", [100.0, 8.0], degrees=True) observed[rows, 3:] = ( wrong * Rotation.from_quat(pose[rows, 3:])).as_quat() return observed
def _native_errors(candidate: np.ndarray, truth: np.ndarray, transitions: np.ndarray) -> tuple[np.ndarray, np.ndarray]: truth_delta = truth[transitions + 1, :3] - truth[transitions, :3] candidate_delta = candidate[transitions + 1, :3] - candidate[transitions, :3] trans = np.linalg.norm(candidate_delta - truth_delta, axis=1) * 1000.0 truth_relative = (Rotation.from_quat(truth[transitions + 1, 3:]) * Rotation.from_quat(truth[transitions, 3:]).inv()) candidate_relative = (Rotation.from_quat(candidate[transitions + 1, 3:]) * Rotation.from_quat(candidate[transitions, 3:]).inv()) rot = np.degrees((candidate_relative * truth_relative.inv()).magnitude()) return trans, rot
def _summary(values: list[float]) -> MetricSummary: data = np.asarray(values, dtype=float) if not len(data): return MetricSummary(float("inf"), float("inf"), 0) return MetricSummary( median=float(np.median(data)), p95=float(np.percentile(data, 95)), count=int(len(data)), )
def benchmark_task( clean_episodes: Iterable[np.ndarray], *, task: str, anomaly_lengths: Iterable[int] = (1, 5, 20, 60), max_intervals: int = 300, seed: int = 0,) -> BenchmarkReport: """Mask held-out clean intervals and score reconstruction/action errors.""" episodes = [_validate_episode(pose) for pose in clean_episodes] lengths = tuple(sorted({int(length) for length in anomaly_lengths if int(length) > 0})) if not episodes: raise ValueError("at least one clean episode is required") if not lengths: raise ValueError("at least one positive anomaly length is required") if max_intervals <= 0: raise ValueError("max_intervals must be positive") rng = np.random.default_rng(int(seed)) selected = _select_disjoint( _candidate_order( episodes, lengths, rng, pool_size=max(1000, int(max_intervals) * 50)), int(max_intervals))
names = ("translation_mm", "orientation_deg", "native_translation_mm", "native_rotation_deg") all_values: dict[str, list[float]] = {name: [] for name in names} high_values: dict[str, list[float]] = {name: [] for name in names} high_by_length: dict[int, dict[str, list[float]]] = { length: {name: [] for name in names} for length in lengths} high_interval_count = {length: 0 for length in lengths} method_values = {} method_counts = {} confidence_counts = {"HIGH": 0, "MEDIUM": 0, "LOW": 0} endpoint_lengths = [length for length in lengths if length <= 5] endpoint_trial_max = max(endpoint_lengths, default=0) gate_for_reconstruction = TaskGate( True, max(lengths), endpoint_max_frames=endpoint_trial_max) for index, interval in enumerate(selected): # Only the 15-frame contexts influence reconstruction. Evaluating # an entire many-minute clean episode for every masked window adds # quadratic detection work without supplying any extra evidence. context_start = interval.start - 15 context_end = interval.start + interval.length + 15 truth = episodes[interval.episode][context_start:context_end] interval = _Candidate(interval.episode, 15, interval.length, interval.motion) all_rows = np.arange(interval.start, interval.start + interval.length) if index % 2: corrupt_rows = all_rows[::2] known_gaps: list[tuple[int, int]] = [] else: corrupt_rows = all_rows known_gaps = [(interval.start, interval.length)] observed = _inject_wrong_branch(truth, corrupt_rows) result = repair_pose_stream( observed, "left", known_gaps, task_gate=gate_for_reconstruction) pose_error = np.linalg.norm( result.pose[all_rows, :3] - truth[all_rows, :3], axis=1) * 1000.0 rot_error = _rotation_angle_deg( result.pose[all_rows, 3:], truth[all_rows, 3:]) lo = max(0, interval.start - 1) hi = min(len(truth) - 1, interval.start + interval.length) transitions = np.arange(lo, hi, dtype=int) trans_action, rot_action = _native_errors( result.pose, truth, transitions) interval_values = { "translation_mm": list(map(float, pose_error)), "orientation_deg": list(map(float, rot_error)), "native_translation_mm": list(map(float, trans_action)), "native_rotation_deg": list(map(float, rot_action)), } for name in names: all_values[name].extend(interval_values[name]) corrupt_confidence = result.confidence[corrupt_rows] if (len(corrupt_rows) and result.repaired[corrupt_rows].all() and np.all(corrupt_confidence == 3)): tier = "HIGH" elif (result.repaired[corrupt_rows].any() or np.any(corrupt_confidence == 2)): tier = "MEDIUM" else: tier = "LOW" confidence_counts[tier] += 1 if tier == "HIGH": methods = {event.method for event in result.events if event.bout.start <= interval.start + interval.length - 1 and event.bout.end >= interval.start} method = next(iter(methods)) if len(methods) == 1 else "mixed" method_counts[method] = method_counts.get(method, 0) + 1 values = method_values.setdefault(method, {name: [] for name in names}) for name in names: values[name].extend(interval_values[name]) high_interval_count[interval.length] += 1 for name in names: high_values[name].extend(interval_values[name]) high_by_length[interval.length][name].extend( interval_values[name])
metrics = {name: _summary(high_values[name]) for name in names} metrics_all = {name: _summary(all_values[name]) for name in names}
def passes(values: dict[str, list[float]], interval_count: int) -> bool: summary = {name: _summary(values[name]) for name in names} return ( interval_count >= 100 and summary["translation_mm"].median <= 2.0 and summary["translation_mm"].p95 <= 10.0 and summary["orientation_deg"].median <= 1.0 and summary["orientation_deg"].p95 <= 5.0 and summary["native_translation_mm"].p95 <= 5.0 and summary["native_rotation_deg"].p95 <= 3.0)
validated_max = 0 for max_length in lengths: prefix = {name: [] for name in names} prefix_intervals = 0 for length in lengths: if length > max_length: continue prefix_intervals += high_interval_count[length] for name in names: prefix[name].extend(high_by_length[length][name]) if passes(prefix, prefix_intervals): validated_max = max_length gate = TaskGate( high_confidence_enabled=validated_max > 0, validated_max_frames=validated_max, endpoint_max_frames=(endpoint_trial_max if passes( method_values.get("endpoint_se3", {name: [] for name in names}), method_counts.get("endpoint_se3", 0)) else 0)) return BenchmarkReport( task=str(task), seed=int(seed), intervals=len(selected), high_intervals=confidence_counts["HIGH"], anomaly_lengths=lengths, confidence_counts=confidence_counts, metrics=metrics, metrics_all=metrics_all, gate=gate, methods={method: {"intervals": method_counts[method], "metrics": {name: asdict(_summary(values[name])) for name in names}} for method, values in method_values.items()})123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350#!/usr/bin/env python3"""Audit, calibrate, build, review, and verify mocap repair candidates."""from __future__ import annotations
import argparsefrom collections import Counterfrom dataclasses import asdictimport jsonimport osfrom pathlib import Pathimport tempfilefrom typing import Any, Iterable
import numpy as npimport pyarrow.parquet as pq
from twm.react_preprocess.mocap_candidate import ( CandidateBuild, CandidateWriter, InputManifest, VerificationReport, apply_decisions, load_manifest, save_manifest, snapshot_inputs, verify_candidate,)from twm.react_preprocess.mocap_repair import ( TaskGate, detect_bouts,)from twm.scripts.benchmark_mocap_repair import ( BenchmarkReport, benchmark_task,)
TASKS = ("motherboard", "pushT", "rope", "toy")DEFAULT_SOURCE = Path("/media/yxma/Disk1/twm/release")DEFAULT_OUTPUT = Path( "/media/yxma/Disk1/twm/review/mocap_repair_2026-09-17/candidate_release")
def _atomic_json(path: Path, value: Any) -> Path: path = Path(path) path.parent.mkdir(parents=True, exist_ok=True) with tempfile.NamedTemporaryFile( mode="w", encoding="utf-8", dir=path.parent, prefix=f".{path.name}.", suffix=".tmp", delete=False) as stream: temp = Path(stream.name) json.dump(value, stream, indent=2, sort_keys=True) stream.write("\n") os.replace(temp, path) return path
def _gap_map(source_root: Path, task: str) -> dict[str, Any]: path = source_root / task / "pose_gaps.json" return json.loads(path.read_text()) if path.is_file() else {}
def _known_gaps(gaps: dict[str, Any], date: str, episode: str, side: str) -> list[tuple[int, int]]: return [tuple(map(int, row)) for row in gaps.get(f"{date}/{episode}", {}).get(side, [])]
def _load_pinned_manifest(candidate_root: Path) -> InputManifest: path = Path(candidate_root) / "input_manifest.json" if not path.is_file(): raise ValueError(f"run audit first; missing {path}") return load_manifest(path)
def run_audit(source_root: Path = DEFAULT_SOURCE, candidate_root: Path = DEFAULT_OUTPUT, tasks: Iterable[str] = TASKS) -> InputManifest: """Freeze input membership and report metadata-only anomaly bouts.""" source_root = Path(source_root).resolve() candidate_root = Path(candidate_root).resolve() manifest = snapshot_inputs(source_root, tasks) # Constructor performs the production-root overlap safety check before the # audit writes even its first JSON file. CandidateWriter(source_root, candidate_root, manifest) save_manifest(manifest, candidate_root / "input_manifest.json")
counts: dict[str, Counter] = {task: Counter() for task in manifest.tasks} frames: dict[str, int] = {task: 0 for task in manifest.tasks} gap_cache = {task: _gap_map(source_root, task) for task in manifest.tasks} for item in manifest.files: task, _, date, filename = Path(item.path).parts episode = Path(filename).stem table = pq.read_table(source_root / item.path) for side in ("left", "right"): name = f"sensor_{side}_pose" if name not in table.column_names: continue pose = np.asarray(table[name].to_pylist(), float) bouts = detect_bouts( pose, side, _known_gaps(gap_cache[task], date, episode, side)) for bout in bouts: counts[task][bout.kind] += 1 frames[task] += bout.end - bout.start + 1 _atomic_json(candidate_root / "audit_summary.json", { "schema_version": 1, "manifest_digest": manifest.digest, "source_root": str(source_root), "episode_count": len(manifest.files), "tasks": {task: { "episodes": sum(Path(item.path).parts[0] == task for item in manifest.files), "bouts": dict(sorted(counts[task].items())), "candidate_frames": frames[task], } for task in manifest.tasks}, }) return manifest
def _clean_fragments(manifest: InputManifest, task: str, context: int = 15) -> list[np.ndarray]: source_root = Path(manifest.source_root) gaps = _gap_map(source_root, task) fragments: list[np.ndarray] = [] for item in manifest.files: if Path(item.path).parts[0] != task: continue _, _, date, filename = Path(item.path).parts episode = Path(filename).stem table = pq.read_table(source_root / item.path) for side in ("left", "right"): name = f"sensor_{side}_pose" if name not in table.column_names: continue pose = np.asarray(table[name].to_pylist(), float) blocked = ~np.isfinite(pose).all(axis=1) for bout in detect_bouts( pose, side, _known_gaps(gaps, date, episode, side)): lo = max(0, bout.start - context) hi = min(len(pose), bout.end + context + 1) blocked[lo:hi] = True starts = np.flatnonzero(~blocked & np.r_[True, blocked[:-1]]) ends = np.flatnonzero(~blocked & np.r_[blocked[1:], True]) + 1 for start, end in zip(starts, ends): if end - start >= 40: fragments.append(pose[start:end].copy()) return fragments
def run_benchmarks(candidate_root: Path = DEFAULT_OUTPUT, *, anomaly_lengths: Iterable[int] = (1, 5, 20, 60), max_intervals: int = 300, seed: int = 0) -> dict[str, BenchmarkReport]: """Calibrate one immutable, explicit confidence gate per task.""" candidate_root = Path(candidate_root).resolve() manifest = _load_pinned_manifest(candidate_root) # Preflight source digests before treating any source pose as clean truth. verifier = CandidateWriter( Path(manifest.source_root), candidate_root, manifest) for item in manifest.files: verifier._verify_source(item) reports: dict[str, BenchmarkReport] = {} benchmark_root = candidate_root / "benchmarks" for task in manifest.tasks: fragments = _clean_fragments(manifest, task) if not fragments: raise ValueError(f"no clean pose fragments available for {task}") report = benchmark_task( fragments, task=task, anomaly_lengths=anomaly_lengths, max_intervals=max_intervals, seed=seed) reports[task] = report _atomic_json(benchmark_root / f"{task}.json", report.to_dict()) _atomic_json(candidate_root / "task_gates.json", { "schema_version": 1, "manifest_digest": manifest.digest, "tasks": {task: asdict(report.gate) for task, report in sorted(reports.items())}, }) return reports
def _load_task_gates(candidate_root: Path, manifest: InputManifest) -> dict[str, TaskGate]: path = Path(candidate_root) / "task_gates.json" if not path.is_file(): raise ValueError(f"run benchmark first; missing {path}") payload = json.loads(path.read_text()) if payload.get("manifest_digest") != manifest.digest: raise ValueError("task gates manifest digest mismatch") missing = set(manifest.tasks) - set(payload.get("tasks", {})) if missing: raise ValueError(f"task gates missing tasks: {sorted(missing)}") return {task: TaskGate(**payload["tasks"][task]) for task in manifest.tasks}
def run_build(candidate_root: Path = DEFAULT_OUTPUT, *, task_gates: dict[str, TaskGate] | None = None, branch_review: bool = False, require_loss_evidence: bool = False) -> CandidateBuild: candidate_root = Path(candidate_root).resolve() manifest = _load_pinned_manifest(candidate_root) gates = task_gates or _load_task_gates(candidate_root, manifest) missing = set(manifest.tasks) - set(gates) if missing: raise ValueError(f"task gates missing tasks: {sorted(missing)}") writer = CandidateWriter( Path(manifest.source_root), candidate_root, manifest, task_gates=gates, branch_review=branch_review, require_loss_evidence=require_loss_evidence) build = writer.write_all() _atomic_json(candidate_root / "candidate_summary.json", summarize_candidate(candidate_root)) return build
def run_verify(candidate_root: Path = DEFAULT_OUTPUT) -> VerificationReport: report = verify_candidate(candidate_root) _atomic_json(Path(candidate_root) / "verification.json", { "schema_version": 1, "episodes": report.episodes, "errors": list(report.errors), }) return report
def summarize_candidate(candidate_root: Path = DEFAULT_OUTPUT) -> dict[str, Any]: candidate_root = Path(candidate_root).resolve() manifest = _load_pinned_manifest(candidate_root) summary: dict[str, Any] = { "schema_version": 1, "manifest_digest": manifest.digest, "tasks": {}, } for task in manifest.tasks: row = { "events": {"HIGH": 0, "MEDIUM": 0, "LOW": 0}, "repaired_frames": 0, "native_repaired_actions": 0, "native_recovered_valid_actions": 0, "fps15_repaired_actions": 0, "fps15_recovered_valid_actions": 0, "unresolved_events": 0, } for path in sorted((candidate_root / task / "repair_events").glob("*/*.json")): for event in json.loads(path.read_text()).get("events", []): confidence = str(event["confidence"]).upper() row["events"].setdefault(confidence, 0) row["events"][confidence] += 1 row["repaired_frames"] += len(event.get("replaced_frames", [])) if confidence in {"MEDIUM", "LOW"} and event.get("decision") != "accept_repair": row["unresolved_events"] += 1 for rate, repaired_key, recovered_key in ( ("actions_native", "native_repaired_actions", "native_recovered_valid_actions"), ("actions_fps15", "fps15_repaired_actions", "fps15_recovered_valid_actions")): for path in sorted((candidate_root / task / rate).glob("*/*.npz")): with np.load(path, allow_pickle=False) as data: repaired = np.asarray(data["repaired"], bool) valid = np.asarray(data["valid"], bool) row[repaired_key] += int(repaired.sum()) row[recovered_key] += int((repaired & valid).sum()) summary["tasks"][task] = row return summary
def run_review(candidate_root: Path = DEFAULT_OUTPUT, *, render: bool = False, review_root: Path | None = None, high_sample_rate: float = 0.1, sample_seed: int = 0) -> dict[str, Any]: from twm.scripts.build_pose_review import build_review
candidate_root = Path(candidate_root).resolve() manifest = _load_pinned_manifest(candidate_root) source_root = Path(manifest.source_root) review_root = (Path(review_root).resolve() if review_root is not None else candidate_root.parent / "review_package") results = {} for task in manifest.tasks: results[task] = build_review( source_root / task, review_root / task, render=render, candidate_task_root=candidate_root / task, high_sample_rate=high_sample_rate, sample_seed=sample_seed) return results
def _parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--output", type=Path, default=DEFAULT_OUTPUT) sub = parser.add_subparsers(dest="command", required=True) audit = sub.add_parser("audit") audit.add_argument("--source", type=Path, default=DEFAULT_SOURCE) audit.add_argument("--task", action="append", choices=TASKS) bench = sub.add_parser("benchmark") bench.add_argument("--max-intervals", type=int, default=300) bench.add_argument("--seed", type=int, default=0) build = sub.add_parser("build") build.add_argument("--branch-review", action="store_true") build.add_argument("--require-loss-evidence", action="store_true") review = sub.add_parser("review") review.add_argument("--render", action="store_true") review.add_argument("--review-root", type=Path) review.add_argument("--high-sample-rate", type=float, default=0.1) review.add_argument("--seed", type=int, default=0) decisions = sub.add_parser("apply-decisions") decisions.add_argument("decisions", type=Path) sub.add_parser("verify") sub.add_parser("summary") return parser
def main(argv: list[str] | None = None) -> int: args = _parser().parse_args(argv) if args.command == "audit": result = run_audit(args.source, args.output, args.task or TASKS) print(json.dumps(result.to_dict(), indent=2, sort_keys=True)) elif args.command == "benchmark": result = run_benchmarks( args.output, max_intervals=args.max_intervals, seed=args.seed) print(json.dumps({task: report.to_dict() for task, report in result.items()}, indent=2, sort_keys=True)) elif args.command == "build": result = run_build(args.output, branch_review=args.branch_review, require_loss_evidence=args.require_loss_evidence) print(f"episodes={len(result.episodes)} manifest={result.manifest_digest}") elif args.command == "review": result = run_review( args.output, render=args.render, review_root=args.review_root, high_sample_rate=args.high_sample_rate, sample_seed=args.seed) print(json.dumps({task: len(value["review_events"]) for task, value in result.items()}, indent=2, sort_keys=True)) elif args.command == "apply-decisions": apply_decisions(args.output, json.loads(args.decisions.read_text())) print(json.dumps(summarize_candidate(args.output), indent=2, sort_keys=True)) elif args.command == "verify": report = run_verify(args.output) print(f"episodes={report.episodes} errors={len(report.errors)}") elif args.command == "summary": print(json.dumps(summarize_candidate(args.output), indent=2, sort_keys=True)) return 0
if __name__ == "__main__": raise SystemExit(main())123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240"""Export old motherboard parquet with repaired T-row LeRobot actions.
Raw release columns are preserved. Candidate poses and action validity comefrom the provenance-safe mocap repair tree; unresolved events stay invalid."""from __future__ import annotations
import argparsefrom datetime import datetime, timezoneimport hashlibimport jsonimport osfrom pathlib import Pathimport tempfilefrom typing import Mapping, Sequence
import numpy as npimport pyarrow as paimport pyarrow.parquet as pq
TASK = "motherboard"DATES = ("2026-05-10", "2026-05-11", "2026-05-19")EXPECTED_EPISODES = 32SIDES = ("left", "right")
def _fixed_float32(values: np.ndarray, width: int) -> pa.Array: flat = pa.array(np.asarray(values, np.float32).reshape(-1), type=pa.float32()) return pa.FixedSizeListArray.from_arrays(flat, width)
def _append(table: pa.Table, name: str, values: pa.Array) -> pa.Table: if name in table.column_names: raise ValueError(f"refusing to replace existing column {name!r}") return table.append_column(name, values)
def _long_transition_mask(events: Sequence[Mapping[str, object]], side: str, n_rows: int) -> np.ndarray: result = np.zeros(n_rows, dtype=bool) for event in events: if str(event.get("side")) != side: continue start, end = int(event["start"]), int(event["end"]) if end - start + 1 <= 60: continue first = max(0, start - 1) last = min(n_rows - 2, end) if last >= first: result[first:last + 1] = True return result
def build_action_episode(raw: pa.Table, candidate: pa.Table, native_left: Mapping[str, np.ndarray], native_right: Mapping[str, np.ndarray], events: Sequence[Mapping[str, object]]) -> pa.Table: """Return raw columns plus repaired pose/action columns, aligned to T rows.""" if raw.num_rows != candidate.num_rows: raise ValueError("raw and candidate row counts differ") n = raw.num_rows if n < 1: raise ValueError("empty episode") repaired_pose = {} native = {"left": native_left, "right": native_right} for side in SIDES: repaired_pose[side] = np.asarray( candidate[f"sensor_{side}_pose"].to_pylist(), dtype=np.float32) if repaired_pose[side].shape != (n, 7): raise ValueError(f"candidate {side} pose must have shape ({n}, 7)") for key in ("valid", "repaired"): if np.asarray(native[side][key]).shape != (n - 1,): raise ValueError(f"native {side} {key} must have {n - 1} rows")
target = np.concatenate([ np.concatenate([repaired_pose["left"][1:], repaired_pose["right"][1:]], axis=1), np.concatenate([repaired_pose["left"][-1:], repaired_pose["right"][-1:]], axis=1), ], axis=0) out = raw for side in SIDES: out = _append(out, f"sensor_{side}_pose_repaired", _fixed_float32(repaired_pose[side], 7)) out = _append(out, "action", _fixed_float32(target, 14))
for side in SIDES: valid = np.r_[np.asarray(native[side]["valid"], bool), False] repaired = np.r_[np.asarray(native[side]["repaired"], bool), False] pose_conf = np.asarray( candidate[f"pose_{side}_repair_confidence"].to_numpy(), dtype=np.uint8) confidence = np.zeros(n, dtype=np.uint8) if n > 1: confidence[:-1] = np.maximum(pose_conf[:-1], pose_conf[1:]) event_overlap = np.zeros(n, dtype=bool) for event in events: if str(event.get("side")) != side: continue start, end = int(event["start"]), int(event["end"]) first, last = max(0, start - 1), min(n - 2, end) if last >= first: event_overlap[first:last + 1] = True lost = (~valid) & event_overlap long_lost = _long_transition_mask(events, side, n) & lost out = _append(out, f"action_valid_{side}", pa.array(valid)) out = _append(out, f"action_repaired_{side}", pa.array(repaired)) out = _append(out, f"action_repair_confidence_{side}", pa.array(confidence, type=pa.uint8())) out = _append(out, f"action_lost_track_{side}", pa.array(lost)) out = _append(out, f"action_long_lost_track_{side}", pa.array(long_lost)) return out
def _sha256(path: Path) -> str: digest = hashlib.sha256() with path.open("rb") as stream: for block in iter(lambda: stream.read(1024 * 1024), b""): digest.update(block) return digest.hexdigest()
def _load_native(path: Path) -> dict[str, np.ndarray]: with np.load(path, allow_pickle=False) as data: return {name: np.asarray(data[name]) for name in data.files}
def _atomic_parquet(table: pa.Table, path: Path) -> None: path.parent.mkdir(parents=True, exist_ok=True) with tempfile.NamedTemporaryFile(dir=path.parent, prefix=f".{path.name}.", suffix=".tmp", delete=False) as stream: temp = Path(stream.name) try: pq.write_table(table, temp, compression="zstd") os.replace(temp, path) finally: temp.unlink(missing_ok=True)
def _columns_equal(left: pa.ChunkedArray, right: pa.ChunkedArray) -> bool: if left.type != right.type or len(left) != len(right): return False if left.equals(right): return True try: if (pa.types.is_list(left.type) or pa.types.is_large_list(left.type) or pa.types.is_fixed_size_list(left.type)): a = np.asarray(left.to_pylist(), dtype=float) b = np.asarray(right.to_pylist(), dtype=float) elif pa.types.is_floating(left.type): a = np.asarray(left.to_numpy(zero_copy_only=False), dtype=float) b = np.asarray(right.to_numpy(zero_copy_only=False), dtype=float) else: return False except (TypeError, ValueError): return False return bool(np.array_equal(a, b, equal_nan=True))
def export_tree(release: Path, candidate_root: Path, output: Path) -> dict: release, candidate_root, output = map(Path, (release, candidate_root, output)) sources = [p for date in DATES for p in sorted((release / TASK / "meta" / date).glob("episode_*.parquet"))] if len(sources) != EXPECTED_EPISODES: raise ValueError(f"expected {EXPECTED_EPISODES} episodes, found {len(sources)}") episodes = [] totals = {"valid_left": 0, "valid_right": 0, "repaired_left": 0, "repaired_right": 0, "lost_left": 0, "lost_right": 0, "long_left": 0, "long_right": 0} for source in sources: date, name = source.parent.name, source.name candidate = candidate_root / TASK / "meta" / date / name event_path = candidate_root / TASK / "repair_events" / date / f"{source.stem}.json" if not candidate.is_file() or not event_path.is_file(): raise FileNotFoundError(f"missing candidate artifacts for {date}/{source.stem}") raw_table, candidate_table = pq.read_table(source), pq.read_table(candidate) event_doc = json.loads(event_path.read_text()) events = event_doc.get("events", []) native = { side: _load_native(candidate_root / TASK / "actions_native" / date / f"{source.stem}_{side}.npz") for side in SIDES } table = build_action_episode(raw_table, candidate_table, native["left"], native["right"], events) for field in raw_table.schema: if field.name not in table.column_names or table.schema.field(field.name) != field: raise ValueError(f"original schema changed: {date}/{name}:{field.name}") if not _columns_equal(raw_table[field.name], table[field.name]): raise ValueError(f"original values changed: {date}/{name}:{field.name}") dest = output / "meta" / date / name _atomic_parquet(table, dest) event_dest = output / "action_repair_events" / date / f"{source.stem}.json" event_dest.parent.mkdir(parents=True, exist_ok=True) event_dest.write_bytes(event_path.read_bytes()) stats = {} for side in SIDES: for key, col in (("valid", f"action_valid_{side}"), ("repaired", f"action_repaired_{side}"), ("lost", f"action_lost_track_{side}"), ("long", f"action_long_lost_track_{side}")): value = int(np.asarray(table[col].to_numpy()).sum()) stats[f"{key}_{side}"] = value totals[f"{key}_{side}"] += value episodes.append({"date": date, "episode": source.stem, "rows": table.num_rows, "source_sha256": _sha256(source), "parquet_sha256": _sha256(dest), **stats}) manifest = { "schema_version": 1, "created_utc": datetime.now(timezone.utc).isoformat(), "task": TASK, "dates": list(DATES), "episodes": episodes, "totals": totals, "action": "next-frame repaired left pose (7) + right pose (7)", "terminal_action_valid": False, "long_lost_track_min_frames": 61, } (output / "action_update_manifest.json").write_text( json.dumps(manifest, indent=2, sort_keys=True) + "\n") return manifest
def main() -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--release", type=Path, required=True) parser.add_argument("--candidate", type=Path, required=True) parser.add_argument("--output", type=Path, required=True) args = parser.parse_args() manifest = export_tree(args.release, args.candidate, args.output) print(f"episodes={len(manifest['episodes'])} errors=0") print(json.dumps(manifest["totals"], sort_keys=True)) return 0
if __name__ == "__main__": raise SystemExit(main())123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522"""Map repaired source poses to every published segment without altering raw data.
Inventory pins remote membership/digests and records a verified coordinateconversion. Export keeps every non-action base column, including force columns."""from __future__ import annotations
import argparsefrom collections import Counterfrom html import escapeimport jsonfrom pathlib import Pathimport refrom urllib.parse import quote
import numpy as npimport pyarrow as paimport pyarrow.parquet as pq
from twm.react_toolbox.frames import convert_posesfrom twm.react_preprocess.mocap_candidate import _write_actionsfrom twm.react_preprocess.repaired_actions import native_actions, actions_fps15from twm.scripts.export_old_motherboard_actions import ( build_action_episode, _atomic_parquet, _columns_equal, _sha256)
SIDES = ('left', 'right')POSES = tuple(f'sensor_{s}_pose' for s in SIDES)
def source_relative_path(remote_path: str | Path) -> Path: parts = Path(remote_path).parts if len(parts) != 5 or parts[0] not in ('data', 'old_data') or parts[2] != 'meta': raise ValueError(f'unsupported remote path: {remote_path}') return Path(*parts[1:-1], re.sub(r'_seg\d+(?=\.parquet$)', '', parts[-1]))
def _values(table, column): array = table[column].combine_chunks() if (pa.types.is_list(array.type) or pa.types.is_fixed_size_list(array.type)) and not array.null_count: if len(array) and len(array.values) % len(array) == 0: return array.values.to_numpy(zero_copy_only=False).reshape(len(array), -1) return np.asarray(array.to_pylist())
def _coordinate_mode(raw: pa.Table, selected: pa.Table) -> str: if all(np.array_equal(_values(raw, c), _values(selected, c), equal_nan=True) for c in POSES): return 'identity' if all(np.array_equal(_values(raw, c), convert_poses(_values(selected, c)), equal_nan=True) for c in POSES): return 'yup_to_zup' raise ValueError('sensor pose mismatch: neither identity nor verified Y-up to Z-up')
def align_rows(raw: pa.Table, source: pa.Table) -> np.ndarray: """Require unique source IDs, consecutive rows, exact times and known poses.""" if raw.num_rows == 0: raise ValueError('empty segment') ids = source['source_h5_frame'].to_pylist() if len(set(ids)) != len(ids): raise ValueError('duplicate source_h5_frame in source') index = {value: i for i, value in enumerate(ids)} try: rows = np.asarray([index[value] for value in raw['source_h5_frame'].to_pylist()], dtype=np.int64) except KeyError as exc: raise ValueError(f'missing source_h5_frame: {exc}') from exc if np.any(np.diff(rows) != 1): raise ValueError('segment source rows must be contiguous and unique') selected = source.take(pa.array(rows)) if not np.array_equal(_values(raw, 'timestamp'), _values(selected, 'timestamp')): raise ValueError('timestamp mismatch') _coordinate_mode(raw, selected) return rows
def _derived(name): return (name == 'action' or name.startswith('action_') or name in ('sensor_left_pose_repaired', 'sensor_right_pose_repaired') or name.startswith(('pose_left_', 'pose_right_')))
def build_segment(raw: pa.Table, source: pa.Table, candidate: pa.Table, source_rows: np.ndarray, events: list[dict]): """Return augmented parquet and native/fps15 ActionSeries for each side.
Recompute transitions from candidate pose validity after selecting the published segment, so neither actions nor 15fps phase cross a cut boundary. """ rows = align_rows(raw, source) if not np.array_equal(rows, source_rows): raise ValueError('provided source rows disagree with verified mapping') if candidate.num_rows != source.num_rows: raise ValueError('candidate/source row counts differ') for c in ('source_h5_frame', 'timestamp'): if not _columns_equal(source[c], candidate[c]): raise ValueError(f'candidate/source {c} mismatch') segment = candidate.take(pa.array(rows)) mode = _coordinate_mode(raw, source.take(pa.array(rows))) sidecars = {} for side in SIDES: required = [f'pose_{side}_{key}' for key in ('valid', 'repaired', 'repair_confidence', 'repair_event_id')] for name in required: if name not in segment.column_names: raise ValueError(f'missing candidate provenance: {name}') column = f'sensor_{side}_pose' pose = _values(segment, column) if mode == 'yup_to_zup': pose = convert_poses(pose) segment = segment.set_column(segment.schema.get_field_index(column), column, pa.array(pose.tolist())) native = native_actions(pose, _values(segment, required[0]), _values(segment, required[1]), _values(segment, required[3])) sidecars[side] = {'native': native, 'fps15': actions_fps15(pose, native)} # Keep original event duration; negative local starts are intentional and # retain long-loss classification for events clipped by the segment edge. local_events = [dict(event, start=int(event['start']) - int(rows[0]), end=int(event['end']) - int(rows[0])) for event in events if int(event['end']) >= rows[0] - 1 and int(event['start']) <= rows[-1] + 1] base = raw.select([name for name in raw.column_names if not _derived(name)]) out = build_action_episode(base, segment, {k: getattr(sidecars['left']['native'], k) for k in ('valid', 'repaired')}, {k: getattr(sidecars['right']['native'], k) for k in ('valid', 'repaired')}, local_events) for side in SIDES: for key in ('valid', 'repaired', 'repair_confidence', 'repair_event_id'): name = f'pose_{side}_{key}' out = out.append_column(name, segment[name]) method_name = f'pose_{side}_repair_method' if method_name in segment.column_names: out = out.append_column(method_name, segment[method_name]) else: methods = {event['event_id']: event.get('method') for event in events if event.get('side') == side and 'event_id' in event} values = [methods.get(event_id) for event_id in segment[f'pose_{side}_repair_event_id'].to_pylist()] out = out.append_column(method_name, pa.array(values, type=pa.string())) for name in base.column_names: if out.schema.field(name) != base.schema.field(name) or not _columns_equal(out[name], base[name]): raise ValueError(f'preserved column changed: {name}') return out, sidecars
def segment_reviews(remote_path: str, raw: pa.Table, output: pa.Table, rows: np.ndarray, events: list[dict], video_files: set[str], revision: str, include_high_charts: bool = False) -> list[dict]: """Clip review coordinates to the published video, preserving source evidence.""" remote = Path(remote_path) capture_times = _values(raw, 'timestamp').astype(float) capture_times -= capture_times[0] # Published videos contain one frame per parquet row at constant 30 fps. # Capture timestamps include acquisition stalls and are not media time. times = np.arange(raw.num_rows, dtype=float) / 30. records = [] for event in events: first, last = int(event['start']), int(event['end']) if last < rows[0] or first > rows[-1]: continue lo, hi = max(0, first - int(rows[0])), min(len(rows) - 1, last - int(rows[0])) side = event['side'] event_id = event.get('event_id', f'{side}:{first}-{last}') # Video filenames are included only when present in the frozen HF listing. links = {} for view in ('view_middle', f'wrist_{side}', 'view_left', 'view_right'): video = str(Path(*remote.parts[:2], 'videos', remote.parts[3], remote.stem, view + '.mp4')) if video in video_files: links[view] = (f'https://huggingface.co/datasets/yxma/React/resolve/' f'{quote(revision or "main", safe="")}/{quote(video, safe="/")}' f'#t={max(0., times[lo] - 1):.3f},{times[hi] + 1:.3f}') record = dict(event, qualified_event_id=f'{remote_path}::{event_id}', remote_path=remote_path, source_start_row=first, source_end_row=last, local_start_row=lo, local_end_row=hi, local_start_seconds=float(times[lo]), local_end_seconds=float(times[hi]), capture_start_seconds=float(capture_times[lo]), capture_end_seconds=float(capture_times[hi]), video_time_basis='local_row / 30 fps', video_links=links) if include_high_charts or str(event.get('confidence', '')).upper() != 'HIGH': a, b = max(0, lo - 30), min(len(rows), hi + 31) sample = np.unique(np.r_[np.linspace(a, b - 1, min(160, b - a), dtype=int), lo, hi]) chart = {'seconds': times[sample].tolist(), 'sampled': b - a > 160} for label, column in [('raw', f'sensor_{side}_pose'), ('repaired', f'sensor_{side}_pose_repaired')]: context_start = max(0, a - 1) pose = _values((output if label == 'repaired' else raw).slice( context_start, b - context_start), column).astype(float) # Angular displacement between adjacent native frames; no unwrap # or interpolation is invented for missing/zero quaternions. q = pose[:, 3:] norm = np.linalg.norm(q, axis=1) usable = np.isfinite(q).all(axis=1) & (norm > 1e-12) unit = np.full(q.shape, np.nan) unit[usable] = q[usable] / norm[usable, None] angle = np.r_[np.nan, np.degrees(2 * np.arccos(np.clip( np.abs(np.sum(unit[1:] * unit[:-1], axis=1)), 0, 1)))] data = np.column_stack((pose[:, :3] * 1000., angle))[sample - context_start] chart[label] = [[float(v) if np.isfinite(v) else None for v in row] for row in data] record['chart'] = chart records.append(record) return records
def _json_safe(value): """Represent unavailable nonfinite evidence as JSON null, never as a number.""" if isinstance(value, float) and not np.isfinite(value): return None if isinstance(value, dict): return {key: _json_safe(item) for key, item in value.items()} if isinstance(value, (list, tuple)): return [_json_safe(item) for item in value] return value
def _review_svg(chart: dict) -> str: times = np.asarray(chart['seconds']) left, width, height = 70., 740., 64. x = left + width * (times - times[0]) / max(1e-9, times[-1] - times[0]) parts = ['<svg viewBox="0 0 850 340" role="img" aria-label="Raw and repaired pose traces">'] for k, title in enumerate(('x (mm)', 'y (mm)', 'z (mm)', 'step (deg)')): arrays = [np.asarray(chart[label], dtype=float)[:, k] for label in ('raw', 'repaired')] finite = np.concatenate([a[np.isfinite(a)] for a in arrays]) top = 10. + k * 78. parts.append(f'<text x="0" y="{top + 30}">{title}</text>') if not len(finite): parts.append(f'<text x="80" y="{top + 30}">Missing pose</text>') continue low, high = float(finite.min()), float(finite.max()) span = max(1e-6, high - low) for values, color in zip(arrays, ('#bd3342', '#147cbb')): y = top + height - (values - low) / span * height # Separate path pieces at missing values instead of bridging gaps. points, active = [], False for px, py in zip(x, y): if np.isfinite(py): points.append(f'{"L" if active else "M"}{px:.1f},{py:.1f}') active = True else: active = False parts.append(f'<path d="{" ".join(points)}" fill="none" stroke="{color}" stroke-width="1.4"/>') parts.append(f'<text x="815" y="{top + 15}" font-size="9">{high:.2f}</text>') parts.append(f'<text x="815" y="{top + 63}" font-size="9">{low:.2f}</text>') parts.append(f'<text x="70" y="335">{times[0]:.2f}s</text><text x="745" y="335">{times[-1]:.2f}s</text></svg>') return ''.join(parts)
def choose_review_samples(records: list[dict], count: int = 25) -> list[dict]: """Prefer 20 algorithmic proposals + 5 other events, balancing all scopes.
One source event appears at most once even if it overlaps several segments. Selection uses the final candidate event records, never candidate labels from an earlier build. A shortfall is reported by the exported selection manifest. """ unique = {} for record in records: source = source_relative_path(record['remote_path']) scope = Path(record['remote_path']).parts[0] key = (scope, str(source), record.get('event_id', record['qualified_event_id'])) prior = unique.get(key) if prior is None or record['local_end_row'] - record['local_start_row'] > prior['local_end_row'] - prior['local_start_row']: unique[key] = record def features(record): length = record['source_end_row'] - record['source_start_row'] + 1 duration = 'short_1_4' if length <= 4 else 'flicker_5_20' if length <= 20 else 'medium_21_60' if length <= 60 else 'long_over_60' return ('/'.join(Path(record['remote_path']).parts[:2]), duration, record.get('kind', 'unknown')) selected, used = [], Counter() def take(pool, n): pool = list(pool) for _ in range(min(n, len(pool))): def score(record): group, duration, kind = features(record) ambiguity = 'ambiguous' in str(record.get('method', '')) or 'incompatible' in str(record.get('evidence', {})) return (100 / (1 + used[('scope', group)]) + 20 / (1 + used[('duration', duration)]) + 10 / (1 + used[('kind', kind)]) + (15 if ambiguity and not used[('ambiguous', True)] else 0)) choice = max(sorted(pool, key=lambda r: r['qualified_event_id']), key=score) pool.remove(choice) selected.append(choice) group, duration, kind = features(choice) for name, value in [('scope', group), ('duration', duration), ('kind', kind)]: used[(name, value)] += 1 if 'ambiguous' in str(choice.get('method', '')) or 'incompatible' in str(choice.get('evidence', {})): used[('ambiguous', True)] += 1 def proposed(record): evidence = record.get('evidence', {}) return (str(record.get('confidence', '')).upper() == 'HIGH' or str(evidence.get('prior_confidence', record.get('prior_confidence', ''))).upper() == 'HIGH' or evidence.get('independent_loss_evidence') is False) high = [r for r in unique.values() if proposed(r)] other = [r for r in unique.values() if not proposed(r)] take(high, max(0, count - 5)) take(other, min(5, count)) selected_ids = {r['qualified_event_id'] for r in selected} take([r for r in unique.values() if r['qualified_event_id'] not in selected_ids], count - len(selected)) return [dict(record, human_verification_status='UNVERIFIED', sample_group='algorithmic_proposal' if proposed(record) else 'other_uncertain') for record in selected]
def review_html(records: list[dict], *, include_high: bool = False, title: str = 'Mocap event review') -> str: review = [r for r in records if include_high or str(r.get('confidence', '')).upper() != 'HIGH'] parts = ['<!doctype html><html lang="en"><meta charset="utf-8">', '<title>Mocap event review</title><style>body{font:15px system-ui;max-width:1100px;margin:30px auto;padding:0 16px}details{border:1px solid #ccc;margin:10px 0;padding:12px}summary{cursor:pointer;overflow-wrap:anywhere}svg{width:100%;max-width:900px}a{margin-right:15px}pre{white-space:pre-wrap}</style>', f'<h1>{escape(title)}</h1><p>{len(review)} {"selected" if include_high else "non-HIGH"} event occurrences across published segments. ', 'Raw traces are red; repaired traces are blue. Missing values are gaps. ', 'Each chart includes one second of context; long intervals are sampled. ', 'Video links and charts use segment-local frame / 30 fps; capture-time offsets are listed separately. No approval is implied. ', 'The measured camera footage is unchanged; before/after repair is shown in the red/blue pose charts. ', 'These examples support human verification and are not proof that every jump is tracking loss. ', 'Check visible hand/object motion against the measured jump, the surrounding frames, and the repair.</p>'] for record in review: eid = escape(record['qualified_event_id']) confidence = escape(str(record.get('confidence', 'UNKNOWN'))) method = escape(str(record.get('method', 'unavailable'))) parts.append(f'<details data-clip-start="{max(0., record["local_start_seconds"] - 1):.3f}" ' f'data-clip-end="{record["local_end_seconds"] + 1:.3f}"><summary>{eid} — {confidence} — {method} — ' f'{record["local_start_seconds"]:.3f}–{record["local_end_seconds"]:.3f}s' f'{" — UNVERIFIED" if include_high else ""}</summary>') parts.append('<p>' + ''.join(f'<a href="{escape(url, quote=True)}" target="_blank" rel="noopener">{escape(view)}</a>' for view, url in record['video_links'].items()) + '</p>') if not record['video_links']: parts.append('<p>No matching video in the frozen repository inventory.</p>') if include_high: if record['video_links']: parts.append('<p><button type="button" onclick="playSample(this)">Play synced</button> ' '<button type="button" onclick="pauseSample(this)">Pause</button> ' '<span class="play-status" aria-live="polite"></span></p>') for view, url in record['video_links'].items(): if view == 'view_middle' or view.startswith('wrist_'): parts.append(f'<p>{escape(view)}</p><video controls preload="none" width="480" src="{escape(url, quote=True)}"></video>') if 'chart' in record: parts.append(_review_svg(record['chart'])) parts.append('<pre>' + escape(json.dumps({key: record.get(key) for key in ('source_start_row', 'source_end_row', 'local_start_row', 'local_end_row', 'capture_start_seconds', 'capture_end_seconds', 'video_time_basis', 'kind', 'evidence')}, indent=2)) + '</pre></details>') if include_high: parts.append('''<script>let reviewPlayToken = 0;function pauseSample(button) { reviewPlayToken++; button.closest('details').querySelectorAll('video').forEach(v => v.pause());}async function playSample(button) { const token = ++reviewPlayToken; const box = button.closest('details'); const videos = Array.from(box.querySelectorAll('video')); const status = box.querySelector('.play-status'); const start = Number(box.dataset.clipStart), end = Number(box.dataset.clipEnd); document.querySelectorAll('video').forEach(v => v.pause()); status.textContent = 'Loading video metadata…'; try { await Promise.all(videos.map(v => v.readyState >= 1 ? Promise.resolve() : new Promise((resolve, reject) => { v.addEventListener('loadedmetadata', resolve, {once:true}); v.addEventListener('error', () => reject(new Error('Video unavailable; use the direct link.')), {once:true}); v.load(); }))); if (token !== reviewPlayToken) return; videos.forEach(v => {v.currentTime = Math.min(start, Math.max(0, v.duration - 0.05));}); const master = videos[0]; master.ontimeupdate = () => { if (master.currentTime >= end) {videos.forEach(v => v.pause()); return;} if (!master.paused) videos.slice(1).forEach(v => { if (Math.abs(v.currentTime - master.currentTime) > 0.15) v.currentTime = master.currentTime; }); }; videos.forEach(v => {v.onended = () => videos.forEach(other => other.pause());}); await Promise.all(videos.map(v => v.play())); status.textContent = 'Playing the same segment interval.'; } catch (error) { videos.forEach(v => v.pause()); status.textContent = error.message + ' Click Play synced again if playback was blocked.'; }}</script>''') return ''.join(parts) + '</html>'
def inventory(base_root: Path, source_root: Path, validation_source: Path, revision: str = '') -> dict: entries, errors = [], [] cache = {} for path in sorted(base_root.glob('*/*/meta/*/*.parquet')): relative = path.relative_to(base_root) source_relative = source_relative_path(relative) root = validation_source if relative.parts[1] == 'validation' else source_root source_path = root / source_relative entry = {'remote_path': str(relative), 'base_sha256': _sha256(path), 'source_path': str(source_path), 'candidate_relative': str(source_relative)} try: raw = pq.read_table(path) if source_path not in cache: cache[source_path] = pq.read_table(source_path) source = cache[source_path] rows = align_rows(raw, source) entry.update(rows=len(rows), start_row=int(rows[0]), end_row=int(rows[-1]), coordinate_mode=_coordinate_mode(raw, source.take(pa.array(rows))), source_sha256=_sha256(source_path)) entries.append(entry) except (ValueError, FileNotFoundError, KeyError) as exc: errors.append(dict(entry, error=str(exc))) return {'schema_version': 1, 'revision': revision, 'base_root': str(base_root), 'counts': dict(Counter('/'.join(Path(e['remote_path']).parts[:2]) for e in entries)), 'episodes': entries, 'errors': errors}
def export_inventory(manifest: dict, candidate_root: Path, validation_candidate: Path, output_root: Path, base_root: Path | None = None, video_inventory: dict | None = None) -> dict: if manifest['errors']: raise ValueError('inventory has unresolved mapping errors') base_root = Path(base_root or manifest['base_root']) if output_root.resolve() == base_root.resolve(): raise ValueError('output must differ from frozen base') records, cache, review_records = [], {}, [] video_inventory = video_inventory or {} video_files = set(video_inventory.get('files', [])) for entry in manifest['episodes']: relative = Path(entry['remote_path']) base_path = base_root / relative # A refreshed base is allowed only after the caller freezes a new # inventory. This prevents silently overwriting concurrently changed force. if _sha256(base_path) != entry['base_sha256']: raise ValueError(f'base digest changed: {relative}; regenerate inventory') source_path = Path(entry['source_path']) if _sha256(source_path) != entry['source_sha256']: raise ValueError(f'source digest changed: {source_path}') root = validation_candidate if relative.parts[1] == 'validation' else candidate_root candidate_path = root / entry['candidate_relative'] if candidate_path not in cache: task, _, date, filename = Path(entry['candidate_relative']).parts event_path = root / task / 'repair_events' / date / (Path(filename).stem + '.json') cache[candidate_path] = (pq.read_table(source_path), pq.read_table(candidate_path), json.loads(event_path.read_text())['events']) source, candidate, events = cache[candidate_path] raw = pq.read_table(base_path) rows = np.arange(entry['start_row'], entry['end_row'] + 1) out, sidecars = build_segment(raw, source, candidate, rows, events) dest = output_root / relative _atomic_parquet(out, dest) for side, rates in sidecars.items(): for rate, series in rates.items(): side_path = output_root / relative.parts[0] / relative.parts[1] / ('actions_' + rate) / relative.parts[3] / (relative.stem + '_' + side + '.npz') _write_actions(side_path, series) reviews = segment_reviews(str(relative), raw, out, rows, events, video_files, video_inventory.get('revision', manifest.get('revision', 'main'))) review_records.extend(reviews) review_path = output_root / relative.parts[0] / relative.parts[1] / 'action_repair_events' / relative.parts[3] / (relative.stem + '.json') review_path.parent.mkdir(parents=True, exist_ok=True) review_path.write_text(json.dumps(_json_safe({'schema_version': 1, 'remote_path': str(relative), 'source_path': str(source_path), 'events': reviews}), indent=2, allow_nan=False) + '\n') records.append(dict(entry, output_sha256=_sha256(dest), valid_left=int(sum(out['action_valid_left'].to_pylist())), valid_right=int(sum(out['action_valid_right'].to_pylist())))) result = dict(manifest, episodes=records, output_root=str(output_root)) result['review_event_occurrences'] = len(review_records) result['non_high_review_occurrences'] = sum(str(r.get('confidence', '')).upper() != 'HIGH' for r in review_records) (output_root / 'action_review.html').write_text(review_html(review_records)) samples = choose_review_samples(review_records) output_cache = {} for i, sample in enumerate(samples): if 'chart' in sample: continue relative = sample['remote_path'] if relative not in output_cache: output_cache[relative] = pq.read_table(output_root / relative) table = output_cache[relative] entry = next(e for e in manifest['episodes'] if e['remote_path'] == relative) rows = np.arange(entry['start_row'], entry['end_row'] + 1) samples[i] = segment_reviews(relative, table, table, rows, [sample], video_files, video_inventory.get('revision', manifest.get('revision', 'main')), include_high_charts=True)[0] sample_manifest = {'requested_count': 25, 'actual_count': len(samples), 'high_count': sum(str(s.get('confidence', '')).upper() == 'HIGH' for s in samples), 'sample_group_counts': dict(Counter(s.get('sample_group', 'unknown') for s in samples)), 'scope_counts': dict(Counter('/'.join(Path(s['remote_path']).parts[:2]) for s in samples)), 'selection': 'Prefer 20 algorithmic proposals (HIGH/prior HIGH or explicitly lacking independent loss evidence) and 5 other uncertain; balance scopes, durations, kinds; deduplicate source events. All require human verification.', 'limitation': 'Human verification examples, not proof that every jump is tracking loss.', 'events': samples} result['sample_review_count'] = len(samples) (output_root / 'action_sample25.json').write_text(json.dumps(_json_safe(sample_manifest), indent=2, allow_nan=False) + '\n') (output_root / 'action_sample25.html').write_text(review_html(samples, include_high=True, title=f'{len(samples)} examples for human verification')) (output_root / 'action_publication_manifest.json').write_text(json.dumps(result, indent=2) + '\n') return result
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('command', choices=('inventory', 'export')) parser.add_argument('--base', type=Path, required=True) parser.add_argument('--source', type=Path, required=True) parser.add_argument('--validation-source', type=Path, required=True) parser.add_argument('--inventory', type=Path, required=True) parser.add_argument('--revision', default='') parser.add_argument('--candidate', type=Path) parser.add_argument('--validation-candidate', type=Path) parser.add_argument('--output', type=Path) parser.add_argument('--remote-videos', type=Path, help='Frozen JSON with revision and MP4 files list') args = parser.parse_args() if args.command == 'inventory': result = inventory(args.base, args.source, args.validation_source, args.revision) args.inventory.parent.mkdir(parents=True, exist_ok=True) args.inventory.write_text(json.dumps(result, indent=2) + '\n') else: if not all((args.candidate, args.validation_candidate, args.output)): parser.error('export requires --candidate --validation-candidate --output') result = export_inventory(json.loads(args.inventory.read_text()), args.candidate, args.validation_candidate, args.output, args.base, json.loads(args.remote_videos.read_text()) if args.remote_videos else None) print(json.dumps({'episodes': len(result['episodes']), 'counts': result['counts'], 'errors': result['errors']}, indent=2)) return bool(result['errors'])
if __name__ == '__main__': raise SystemExit(main())123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133"""Merge concurrently rebuilt force into staged actions, then publish explicitly.
The force base must be the verified export of the immediately preceding HFcommit. A parent-commit guard prevents replacing a newer remote update."""from __future__ import annotations
import argparseimport jsonfrom pathlib import Path
import pyarrow as paimport pyarrow.parquet as pq
from twm.scripts.export_old_motherboard_actions import ( _atomic_parquet, _columns_equal, _sha256)
def _derived(name: str) -> bool: return (name == 'action' or name.startswith(('action_', 'pose_left_', 'pose_right_')) or name in ('sensor_left_pose_repaired', 'sensor_right_pose_repaired'))
def merge_force_table(action: pa.Table, force: pa.Table) -> pa.Table: if action.num_rows != force.num_rows: raise ValueError('force/action row counts differ') # Check every raw field, not only row count; old action fields in the force # base are intentionally ignored, since these are what this update replaces. for name in force.column_names: if name.startswith('force_') or _derived(name): continue if name not in action.column_names or not _columns_equal(action[name], force[name]): raise ValueError(f'force/action source mismatch: {name}') result = action for name in force.column_names: if not name.startswith('force_'): continue field = force.schema.field(name) if name in result.column_names: result = result.set_column(result.schema.get_field_index(name), field, force[name]) else: result = result.append_column(field, force[name]) metadata = dict(action.schema.metadata or {}) for key, value in (force.schema.metadata or {}).items(): if key.startswith(b'twm.force'): metadata[key] = value return result.replace_schema_metadata(metadata)
def merge_force_tree(root: Path, force_root: Path, force_revision: str) -> dict: path = root / 'action_publication_manifest.json' manifest = json.loads(path.read_text()) records = {entry['remote_path']: entry for entry in manifest['episodes']} sources = sorted(force_root.glob('*/meta/*/*.parquet')) if len(sources) != 36: raise ValueError(f'expected36 force episodes, found {len(sources)}') receipt = json.loads((force_root / 'force_commit.json').read_text()) if receipt.get('revision') != force_revision: raise ValueError('force export receipt revision mismatch') expected_hashes = receipt.get('parquet_sha256', {}) if len(expected_hashes) != 36: raise ValueError('force receipt must bind36 uploaded parquets') for source in sources: if expected_hashes.get(str(source.relative_to(force_root))) != _sha256(source): raise ValueError(f'force export differs from uploaded content: {source}') for source in sources: relative = Path('old_data') / source.relative_to(force_root) if str(relative) not in records: raise ValueError(f'missing staged action: {relative}') dest = root / relative merged = merge_force_table(pq.read_table(dest), pq.read_table(source)) _atomic_parquet(merged, dest) records[str(relative)]['output_sha256'] = _sha256(dest) manifest['force_revision'] = force_revision manifest['force_merged_episodes'] = len(sources) path.write_text(json.dumps(manifest, indent=2) + '\n') return manifest
def validate_publication_manifest(manifest: dict, expected_revision: str) -> None: if manifest.get('force_revision') != expected_revision: raise ValueError('force revision must equal the immediately preceding HF commit') if manifest.get('force_merged_episodes') != 36: raise ValueError('publication requires36 merged force episodes')
def publish(root: Path, expected_revision: str, repo: str = 'yxma/React'): from huggingface_hub import HfApi, CommitOperationAdd api = HfApi() actual = api.repo_info(repo, repo_type='dataset').sha if actual != expected_revision: raise ValueError(f'remote changed: expected {expected_revision}, got {actual}') manifest = json.loads((root / 'action_publication_manifest.json').read_text()) validate_publication_manifest(manifest, expected_revision) for entry in manifest['episodes']: if _sha256(root / entry['remote_path']) != entry['output_sha256']: raise ValueError(f'staged parquet changed: {entry["remote_path"]}') files = sorted(p for p in root.rglob('*') if p.is_file()) top_files = {'action_publication_manifest.json', 'action_sample25.json', 'action_sample25.html', 'action_review.html', 'ACTION_REPAIR_20260918.md', 'sample25_verification.json'} directories = {'data', 'old_data', 'action_repair_tools', 'repair_audit'} suffixes = {'.parquet', '.npz', '.json', '.html', '.md', '.py', '.txt', '.toml'} for file in files: relative = file.relative_to(root) if (file.suffix not in suffixes or (len(relative.parts) == 1 and relative.name not in top_files) or (len(relative.parts) > 1 and relative.parts[0] not in directories)): raise ValueError(f'unexpected publication artifact: {relative}') operations = [CommitOperationAdd(path_in_repo=str(p.relative_to(root)), path_or_fileobj=str(p)) for p in files] result = api.create_commit(repo, repo_type='dataset', operations=operations, commit_message='Repair mocap actions across all tasks, old_data and validation; retain V8 force', parent_commit=expected_revision, num_threads=8) print(result, flush=True) return result
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--root', type=Path, required=True) parser.add_argument('--force-root', type=Path) parser.add_argument('--parent', required=True) parser.add_argument('--publish', action='store_true') args = parser.parse_args() if args.force_root: merge_force_tree(args.root, args.force_root, args.parent) if args.publish: publish(args.root, args.parent)
if __name__ == '__main__': main()12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182"""Write separate, never-training-valid branch hypotheses for human review."""from __future__ import annotations
import argparseimport jsonfrom pathlib import Path
import numpy as npimport pyarrow.parquet as pq
from twm.react_preprocess.mocap_branch import find_branch_candidatesfrom twm.scripts.build_mocap_repair_candidates import _atomic_json
def write_branch_review(candidate_root, source_root, output_root, *, manifest_digest): candidate_root, source_root, output_root = map(Path, (candidate_root, source_root, output_root)) for protected in (candidate_root.resolve(), source_root.resolve()): if output_root.resolve().is_relative_to(protected) or protected.is_relative_to(output_root.resolve()): raise ValueError('review output must be separate from source and primary candidates') proposals = [] unique_events = set() gaps = {} for event_path in sorted(candidate_root.glob('*/repair_events/*/*.json')): record = json.loads(event_path.read_text()) unresolved = [e for e in record['events'] if e['confidence'] != 'HIGH'] if not unresolved: continue task = record['task'] if task not in gaps: path = source_root/task/'pose_gaps.json' gaps[task] = json.loads(path.read_text()) if path.exists() else {} source_path = source_root/record['source_path'] columns = [f'sensor_{side}_pose' for side in sorted({e['side'] for e in unresolved})] table = pq.read_table(source_path, columns=columns, use_threads=False) for side in sorted({e['side'] for e in unresolved}): raw = np.asarray(table[f'sensor_{side}_pose'].to_pylist(), dtype=float) known = gaps[task].get(record['date']+'/'+record['episode'], {}).get(side, []) for proposal in find_branch_candidates(raw, known): events = [e for e in unresolved if e['side'] == side and e['start'] <= proposal.end+1 and e['end'] >= proposal.start-1] if not events: continue path = Path(task)/record['date']/f"{record['episode']}_{side}_{proposal.start}_{proposal.end}.json" overlap_ids = [e['event_id'] for e in events] unique_events.update((str(event_path), eid) for eid in overlap_ids) payload = { 'schema_version': 1, 'manifest_digest': manifest_digest, 'source_path': record['source_path'], 'source_sha256': record.get('source_sha256'), 'task': task, 'date': record['date'], 'episode': record['episode'], 'side': side, 'start': proposal.start, 'end': proposal.end, 'confidence': 'MEDIUM', 'training_valid': False, 'requires_independent_branch_identity_evidence': True, 'overlapping_event_ids': overlap_ids, 'evidence': proposal.evidence, 'branch_rotation_xyzw': proposal.branch_rotation_xyzw.tolist(), 'branch_translation_m': proposal.branch_translation_m.tolist(), 'proposed_pose': proposal.pose.tolist(), } _atomic_json(output_root/path, payload) proposals.append({'path': str(path), 'task': task, 'side': side, 'start': proposal.start, 'end': proposal.end, 'matching_return_pairs': proposal.evidence['matching_return_pairs']}) report = {'schema_version': 1, 'manifest_digest': manifest_digest, 'proposal_count': len(proposals), 'overlapping_unresolved_events': len(unique_events), 'training_valid': False, 'requires_independent_branch_identity_evidence': True, 'proposals': proposals} _atomic_json(output_root/'index.json', report) return report
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--candidate-root', type=Path, required=True) parser.add_argument('--output-root', type=Path, required=True) args = parser.parse_args() manifest = json.loads((args.candidate_root/'input_manifest.json').read_text()) report = write_branch_review(args.candidate_root, manifest['source_root'], args.output_root, manifest_digest=manifest['digest']) print(json.dumps({k:v for k,v in report.items() if k != 'proposals'}), flush=True)
if __name__ == '__main__': main()123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_000.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_000.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_001_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_001.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_001_seg01.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_001.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_002_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_002.parquet", "events": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_003_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_003.parquet", "events": [ { "confidence": "MEDIUM", "end": 6920, "event_id": "right:6919-6920:branch_discontinuity", "evidence": { "anchor_rotation_deg": 47.800997433372316, "anchor_translation_mm": 63.09745055264558, "branch_unambiguous": true, "duration_frames": 2, "endpoint_return_consistent": false, "fit_converged": true, "fit_iterations": 0, "left_anchor": 6918, "left_context_frames": 15, "observed_inlier_frames": 2, "physical": true, "prediction_rotation_max_deg": 15.933665811124106, "prediction_translation_max_mm": 21.032483517548528, "reconstructed_max_step_rotation_deg": 18.02254004629295, "reconstructed_max_step_translation_mm": 23.619626470526953, "replaced_frames": 0, "right_anchor": 6921, "right_context_frames": 15, "rotation_inlier_threshold_deg": 10.882346383786663, "rotation_residual_p95_deg": 3.8708448926461196, "translation_inlier_threshold_mm": 12.887418899887527, "translation_residual_p95_mm": 8.0939798311343 }, "kind": "branch_discontinuity", "left_context_end": 6918, "method": "endpoint_se3", "replaced_frames": [], "right_context_start": 6921, "seed_frames": [ 6919, 6920 ], "side": "right", "start": 6919, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_003_seg00.parquet::right:6919-6920:branch_discontinuity", "remote_path": "data/motherboard/meta/2026-09-11/episode_003_seg00.parquet", "source_start_row": 6919, "source_end_row": 6920, "local_start_row": 6701, "local_end_row": 6702, "local_start_seconds": 223.36666666666667, "local_end_seconds": 223.4, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/view_middle.mp4#t=222.367,224.400", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/wrist_right.mp4#t=222.367,224.400", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/view_left.mp4#t=222.367,224.400", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_003_seg00/view_right.mp4#t=222.367,224.400" }, "chart": { "seconds": [ 222.36666666666667, 222.4, 222.43333333333334, 222.46666666666667, 222.5, 222.53333333333333, 222.56666666666666, 222.6, 222.63333333333333, 222.66666666666666, 222.7, 222.73333333333332, 222.76666666666668, 222.8, 222.83333333333334, 222.86666666666667, 222.9, 222.93333333333334, 222.96666666666667, 223.0, 223.03333333333333, 223.06666666666666, 223.1, 223.13333333333333, 223.16666666666666, 223.2, 223.23333333333332, 223.26666666666668, 223.3, 223.33333333333334, 223.36666666666667, 223.4, 223.43333333333334, 223.46666666666667, 223.5, 223.53333333333333, 223.56666666666666, 223.6, 223.63333333333333, 223.66666666666666, 223.7, 223.73333333333332, 223.76666666666668, 223.8, 223.83333333333334, 223.86666666666667, 223.9, 223.93333333333334, 223.96666666666667, 224.0, 224.03333333333333, 224.06666666666666, 224.1, 224.13333333333333, 224.16666666666666, 224.2, 224.23333333333332, 224.26666666666668, 224.3, 224.33333333333334, 224.36666666666667, 224.4 ], "sampled": false, "raw": [ [ 370.15020847320557, -307.28912353515625, 129.32030856609344, 4.581267290822462 ], [ 357.12629556655884, -317.51638650894165, 122.70187214016914, 6.351192366263943 ], [ 344.1023826599121, -327.74364948272705, 116.08343571424484, 6.351192366264173 ], [ 334.0568244457245, -334.2737555503845, 110.0734993815422, 5.787207748344732 ], [ 324.88134503364563, -339.52388167381287, 105.96378892660141, 3.8889746700406893 ], [ 314.23309445381165, -344.1632091999054, 103.13183069229126, 2.540913521261554 ], [ 305.04152178764343, -347.8493094444275, 99.12799298763275, 3.429002470471916 ], [ 299.7454106807709, -349.67517852783203, 95.54816037416458, 2.137292407871144 ], [ 295.8969175815582, -351.2740433216095, 91.17428958415985, 1.8051434691713055 ], [ 293.77853870391846, -352.7408540248871, 86.95591241121292, 1.8057691340848259 ], [ 292.85910725593567, -352.7231812477112, 86.77159994840622, 0.7578494138799575 ], [ 293.38428378105164, -353.1348705291748, 86.71535551548004, 0.2080590761024491 ], [ 294.35858130455017, -352.9517352581024, 86.51842921972275, 0.27214184308840006 ], [ 296.30476236343384, -352.33667492866516, 86.52237802743912, 0.5505349716505942 ], [ 298.1317341327667, -351.5044152736664, 86.51205897331238, 0.7566887262715563 ], [ 300.4000186920166, -349.2770195007324, 87.74051070213318, 1.8075304083898873 ], [ 303.42674255371094, -346.33785486221313, 88.15488964319229, 0.9524203386988132 ], [ 305.9097230434418, -344.0278470516205, 88.02296966314316, 0.829092237963907 ], [ 309.7114861011505, -339.8905396461487, 88.13311159610748, 1.0131210597282816 ], [ 312.59968876838684, -336.640328168869, 87.82649785280228, 0.7640244879093242 ], [ 315.55405259132385, -333.1450819969177, 87.5314399600029, 0.8688125097354973 ], [ 319.2662298679352, -328.5831809043884, 87.06294000148773, 1.12399616549346 ], [ 321.9890594482422, -324.9320387840271, 86.99896931648254, 0.5945252655803855 ], [ 324.5532512664795, -320.86214423179626, 87.46501803398132, 0.7283559851126152 ], [ 327.6453912258148, -315.565288066864, 86.91767603158951, 1.004268824886563 ], [ 329.7255039215088, -311.6109073162079, 87.15754002332687, 0.7983144232306935 ], [ 331.653356552124, -307.9427182674408, 87.67323195934296, 0.8739178418191154 ], [ 334.19784903526306, -303.58999967575073, 89.53502029180527, 2.2985920118378536 ], [ 336.55864000320435, -300.4562258720398, 92.23424643278122, 2.7200629654563926 ], [ 345.7067310810089, -290.95327854156494, 100.03190487623215, 9.958079215339954 ], [ 360.3336811065674, -280.9585928916931, 112.08071559667587, 14.859518479050207 ], [ 377.5336444377899, -274.0369439125061, 121.00819498300552, 15.582657357633812 ], [ 400.38537979125977, -268.1031823158264, 121.69770151376724, 18.02254004629303 ], [ 414.7932231426239, -266.18102192878723, 117.95668303966522, 9.495539888145608 ], [ 425.73249340057373, -265.934020280838, 110.72003841400146, 6.6265554921820495 ], [ 434.6875250339508, -266.7140066623688, 101.50788724422455, 6.215115272100366 ], [ 438.67018818855286, -268.1088447570801, 95.05028277635574, 3.1167359770960634 ], [ 440.42518734931946, -269.34245228767395, 90.16593545675278, 1.5068636542343181 ], [ 440.60879945755005, -270.7052230834961, 91.10765904188156, 1.7736553434916984 ], [ 440.1378631591797, -270.7827091217041, 91.05587005615234, 1.0381252950514077 ], [ 439.7316873073578, -270.6463634967804, 91.05349332094193, 0.7002445874809634 ], [ 434.262216091156, -273.2030153274536, 91.92927181720734, 3.617392048967906 ], [ 427.69959568977356, -275.66057443618774, 95.7038402557373, 7.20066853551511 ], [ 415.5217409133911, -283.2616865634918, 99.53054785728455, 14.529695571743906 ], [ 407.69803524017334, -288.17451000213623, 99.89657998085022, 11.411634579167378 ], [ 406.6103398799896, -289.66766595840454, 97.33802080154419, 4.133389319857812 ], [ 409.8658859729767, -288.02138566970825, 90.54867923259735, 4.84107430269087 ], [ 409.70858931541443, -286.90528869628906, 86.44093573093414, 3.2118736941459978 ], [ 407.0625603199005, -287.3843014240265, 83.78896862268448, 1.2394037795520134 ], [ 401.45766735076904, -288.425475358963, 81.57867193222046, 1.3203412189498525 ], [ 396.37744426727295, -289.4059419631958, 78.62628996372223, 2.593850559284567 ], [ 390.92713594436646, -290.61058163642883, 74.92747157812119, 3.898528843227758 ], [ 388.48862051963806, -290.1637554168701, 73.845274746418, 2.113596982950668 ], [ 388.343870639801, -289.30485248565674, 74.00846481323242, 0.3834442563476623 ], [ 388.8293504714966, -288.2601022720337, 73.91779869794846, 0.6510597623525856 ], [ 389.49528336524963, -286.90606355667114, 72.97954708337784, 0.7660073295094691 ], [ 389.34552669525146, -286.5028977394104, 71.74604386091232, 0.47233041058436726 ], [ 388.20403814315796, -286.6301238536835, 71.52379304170609, 0.863382535661734 ], [ 386.8829607963562, -287.1820032596588, 71.11699879169464, 1.0986581402374065 ], [ 386.0696256160736, -287.68569231033325, 71.13145291805267, 2.1669161352813546 ], [ 385.941743850708, -287.49021887779236, 71.20191305875778, 1.6656127458743637 ], [ 386.52724027633667, -287.7366244792938, 71.31502032279968, 0.5505672133341698 ] ], "repaired": [ [ 370.15020847320557, -307.28912353515625, 129.32030856609344, 4.5812643877033095 ], [ 357.12629556655884, -317.51638650894165, 122.70186841487885, 6.351194901626617 ], [ 344.1023826599121, -327.74364948272705, 116.08343571424484, 6.351194222813863 ], [ 334.0568244457245, -334.2737555503845, 110.0734993815422, 5.787204140469812 ], [ 324.88134503364563, -339.52388167381287, 105.96378892660141, 3.8889773809390893 ], [ 314.23309445381165, -344.1632091999054, 103.13183069229126, 2.54091372107966 ], [ 305.04152178764343, -347.8493094444275, 99.12799298763275, 3.4289978742507063 ], [ 299.7454106807709, -349.67517852783203, 95.54816037416458, 2.1372952770865226 ], [ 295.8969175815582, -351.2740433216095, 91.17428958415985, 1.8051417452700222 ], [ 293.77853870391846, -352.7408540248871, 86.95591241121292, 1.8057729084074383 ], [ 292.85910725593567, -352.7231812477112, 86.77159994840622, 0.7578474827938105 ], [ 293.38428378105164, -353.1348705291748, 86.71535551548004, 0.20805599132561178 ], [ 294.35858130455017, -352.9517352581024, 86.51842921972275, 0.27214090311773903 ], [ 296.30476236343384, -352.33667492866516, 86.52237802743912, 0.55053270485435 ], [ 298.1317341327667, -351.5044152736664, 86.51205897331238, 0.7566884913211891 ], [ 300.4000186920166, -349.2770195007324, 87.74051070213318, 1.8075337432419374 ], [ 303.42674255371094, -346.33785486221313, 88.15488964319229, 0.9524179440682972 ], [ 305.9097230434418, -344.0278470516205, 88.02296966314316, 0.829092087800482 ], [ 309.7114861011505, -339.8905396461487, 88.13311159610748, 1.013123853149451 ], [ 312.59968876838684, -336.640328168869, 87.82649785280228, 0.7640261011566353 ], [ 315.55405259132385, -333.1450819969177, 87.5314399600029, 0.8688123011559358 ], [ 319.2662298679352, -328.5831809043884, 87.06294000148773, 1.1239942226170936 ], [ 321.9890594482422, -324.9320387840271, 86.99896931648254, 0.5945276368198887 ], [ 324.5532512664795, -320.86214423179626, 87.46501803398132, 0.7283550346418588 ], [ 327.6453912258148, -315.565288066864, 86.91767603158951, 1.0042672920936229 ], [ 329.7255039215088, -311.6109073162079, 87.15754002332687, 0.7983137984154982 ], [ 331.653356552124, -307.9427182674408, 87.67323195934296, 0.8739180483360409 ], [ 334.19784903526306, -303.58999967575073, 89.53502029180527, 2.298591750169675 ], [ 336.55864000320435, -300.4562258720398, 92.23424643278122, 2.7200645170845474 ], [ 345.7067310810089, -290.95327854156494, 100.03190487623215, 9.958076963570061 ], [ 360.3336811065674, -280.9585928916931, 112.08071559667587, 14.859518048422823 ], [ 377.5336444377899, -274.0369439125061, 121.00819498300552, 15.582656244790098 ], [ 400.38537979125977, -268.1031823158264, 121.69770151376724, 18.022541668713803 ], [ 414.7932231426239, -266.18102192878723, 117.95668303966522, 9.495539960722246 ], [ 425.73249340057373, -265.934020280838, 110.72003841400146, 6.626555427716629 ], [ 434.6875250339508, -266.7140066623688, 101.50788724422455, 6.215114286355204 ], [ 438.67018818855286, -268.1088447570801, 95.05028277635574, 3.116735313231769 ], [ 440.42518734931946, -269.34245228767395, 90.16593545675278, 1.5068647004832754 ], [ 440.60879945755005, -270.7052230834961, 91.10765904188156, 1.7736584476203259 ], [ 440.1378631591797, -270.7827091217041, 91.05587005615234, 1.0381256470486724 ], [ 439.7316873073578, -270.6463634967804, 91.05349332094193, 0.700240961277817 ], [ 434.262216091156, -273.2030153274536, 91.92927181720734, 3.6173931213043797 ], [ 427.69959568977356, -275.66057443618774, 95.7038402557373, 7.200667188085469 ], [ 415.5217409133911, -283.2616865634918, 99.53054785728455, 14.52969556861255 ], [ 407.69803524017334, -288.17451000213623, 99.89657998085022, 11.411635539824383 ], [ 406.6103398799896, -289.66766595840454, 97.33802080154419, 4.133386285676683 ], [ 409.8658859729767, -288.02138566970825, 90.54867923259735, 4.841073346379383 ], [ 409.70858931541443, -286.90528869628906, 86.44093573093414, 3.2118726318271724 ], [ 407.0625603199005, -287.3843014240265, 83.78896862268448, 1.2394074406052322 ], [ 401.45766735076904, -288.425475358963, 81.57867193222046, 1.3203392922005757 ], [ 396.37744426727295, -289.4059419631958, 78.62628996372223, 2.593851330297442 ], [ 390.92713594436646, -290.61058163642883, 74.92747157812119, 3.898527653208505 ], [ 388.48862051963806, -290.1637554168701, 73.845274746418, 2.1135978131175106 ], [ 388.343870639801, -289.30485248565674, 74.00846481323242, 0.3834421591037004 ], [ 388.8293504714966, -288.2601022720337, 73.91779869794846, 0.6510588601675623 ], [ 389.49528336524963, -286.90606355667114, 72.97954708337784, 0.7660096456067839 ], [ 389.34552669525146, -286.5028977394104, 71.74604386091232, 0.47233068811599865 ], [ 388.20403814315796, -286.6301238536835, 71.52379304170609, 0.8633820404915564 ], [ 386.8829607963562, -287.1820032596588, 71.11699879169464, 1.0986557955044947 ], [ 386.0696256160736, -287.68569231033325, 71.13145291805267, 2.1669180837540702 ], [ 385.941743850708, -287.49021887779236, 71.20191305875778, 1.665611421815971 ], [ 386.52724027633667, -287.7366244792938, 71.31502032279968, 0.5505671059975917 ] ] }, "capture_start_seconds": 226.30533981323242, "capture_end_seconds": 226.33783555030823, "video_time_basis": "local_row / 30 fps" } ]}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_004_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_004.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_004_seg01.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_004.parquet", "events": []}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet", "events": [ { "confidence": "LOW", "end": 1010, "event_id": "right:988-1010:known_gap", "evidence": { "branch_unambiguous": true, "duration_frames": 23, "fit_converged": true, "fit_iterations": 2, "left_anchor": 987, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 25.666901571080622, "prediction_translation_max_mm": 81.05492076501436, "reconstructed_max_step_rotation_deg": 0.8517370673452712, "reconstructed_max_step_translation_mm": 2.5927819723783916, "rejection": "incompatible_two_sided_prediction", "replaced_frames": 23, "right_anchor": 1011, "right_context_frames": 15, "rotation_inlier_threshold_deg": 2.4168308174733784, "rotation_residual_p95_deg": 73.18756471123928, "translation_inlier_threshold_mm": 4.032219895902639, "translation_residual_p95_mm": 31.845096119858983 }, "kind": "known_gap", "left_context_end": 987, "method": "unrepaired_ambiguous_branch", "replaced_frames": [], "right_context_start": 1011, "seed_frames": [ 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010 ], "side": "right", "start": 988, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_005_seg00.parquet::right:988-1010:known_gap", "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg00.parquet", "source_start_row": 988, "source_end_row": 1010, "local_start_row": 988, "local_end_row": 1010, "local_start_seconds": 32.93333333333333, "local_end_seconds": 33.666666666666664, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/view_middle.mp4#t=31.933,34.667", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/wrist_right.mp4#t=31.933,34.667", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/view_left.mp4#t=31.933,34.667", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_005_seg00/view_right.mp4#t=31.933,34.667" }, "chart": { "seconds": [ 31.933333333333334, 31.966666666666665, 32.0, 32.03333333333333, 32.06666666666667, 32.1, 32.13333333333333, 32.166666666666664, 32.2, 32.233333333333334, 32.266666666666666, 32.3, 32.333333333333336, 32.36666666666667, 32.4, 32.43333333333333, 32.46666666666667, 32.5, 32.53333333333333, 32.56666666666667, 32.6, 32.63333333333333, 32.666666666666664, 32.7, 32.733333333333334, 32.766666666666666, 32.8, 32.833333333333336, 32.86666666666667, 32.9, 32.93333333333333, 32.96666666666667, 33.0, 33.03333333333333, 33.06666666666667, 33.1, 33.13333333333333, 33.166666666666664, 33.2, 33.233333333333334, 33.266666666666666, 33.3, 33.333333333333336, 33.36666666666667, 33.4, 33.43333333333333, 33.46666666666667, 33.5, 33.53333333333333, 33.56666666666667, 33.6, 33.63333333333333, 33.666666666666664, 33.7, 33.733333333333334, 33.766666666666666, 33.8, 33.833333333333336, 33.86666666666667, 33.9, 33.93333333333333, 33.96666666666667, 34.0, 34.03333333333333, 34.06666666666667, 34.1, 34.13333333333333, 34.166666666666664, 34.2, 34.233333333333334, 34.266666666666666, 34.3, 34.333333333333336, 34.36666666666667, 34.4, 34.43333333333333, 34.46666666666667, 34.5, 34.53333333333333, 34.56666666666667, 34.6, 34.63333333333333, 34.666666666666664 ], "sampled": false, "raw": [ [ 423.85026812553406, -303.09051275253296, 103.4170314669609, 0.5912643663102232 ], [ 424.81812834739685, -301.0128140449524, 103.60579192638397, 0.7994745203834677 ], [ 425.3072738647461, -299.5603680610657, 103.68989408016205, 0.4088948303273436 ], [ 425.2752363681793, -298.21109771728516, 103.58338057994843, 0.2557725222092512 ], [ 424.70645904541016, -296.37181758880615, 103.38965058326721, 0.7816055550225298 ], [ 424.43370819091797, -294.27483677864075, 103.14623266458511, 0.7193048984262551 ], [ 424.4348406791687, -293.21688413619995, 103.07274758815765, 0.12187899522888432 ], [ 424.55166578292847, -291.1716401576996, 103.07352244853973, 0.16867951999941486 ], [ 424.873948097229, -289.77206349372864, 103.16231846809387, 0.37231373664935474 ], [ 424.9938428401947, -287.94077038764954, 103.09071093797684, 0.1477168166745452 ], [ 424.71835017204285, -286.75514459609985, 102.94326394796371, 0.4436825627145368 ], [ 424.6615171432495, -285.4054570198059, 102.78984904289246, 0.37134630396984497 ], [ 424.33029413223267, -283.597469329834, 102.55991667509079, 0.5523604947828624 ], [ 424.2231845855713, -282.18144178390503, 102.47844457626343, 0.32625609670435946 ], [ 424.4680404663086, -280.77182173728943, 102.55881398916245, 0.3370989624516577 ], [ 424.90968108177185, -278.8239121437073, 102.61606425046921, 0.24747174045491196 ], [ 425.2588152885437, -277.51418948173523, 102.6676595211029, 0.2982194467369422 ], [ 425.81480741500854, -276.29008889198303, 102.80360281467438, 0.482877512251612 ], [ 426.12510919570923, -275.7679224014282, 102.86169499158859, 0.3597962428797945 ], [ 426.3419210910797, -275.68066120147705, 102.8919368982315, 0.14211354706225535 ], [ 426.5254735946655, -276.07688307762146, 103.07947546243668, 0.35829534777775685 ], [ 427.001029253006, -276.4851748943329, 103.27409952878952, 0.4308496214871962 ], [ 427.7275502681732, -276.88610553741455, 103.83957624435425, 0.6783926380079802 ], [ 428.3698499202728, -277.7758240699768, 104.54951971769333, 0.8983130205315121 ], [ 428.68557572364807, -278.7923514842987, 105.13187199831009, 0.6563644234315006 ], [ 428.86650562286377, -279.94289994239807, 105.5775135755539, 0.5455085114408055 ], [ 428.29304933547974, -281.7381024360657, 106.31638020277023, 1.3635079016280347 ], [ 427.5025427341461, -283.1801176071167, 107.19635337591171, 2.64911998183676 ], [ 427.72841453552246, -285.66762804985046, 112.71543055772781, 3.568823665700867 ], [ 431.14885687828064, -288.1978154182434, 123.0020523071289, 3.5269364768820304 ], [ 441.02707505226135, -299.0027666091919, 140.77125489711761, 51.66557111917531 ], [ 444.5767104625702, -301.41475796699524, 146.6025710105896, 2.5089092227697827 ], [ 447.5852847099304, -307.7232837677002, 147.9480117559433, 15.562512565347888 ], [ 443.1382715702057, -302.1283745765686, 146.2784707546234, 21.018183071945668 ], [ 447.073757648468, -312.7385079860687, 147.3458856344223, 35.510491072741715 ], [ 441.5605962276459, -302.9881715774536, 146.69208228588104, 34.783588866048866 ], [ 433.9704215526581, -295.0749099254608, 136.73251867294312, 47.02067009472409 ], [ 433.79250168800354, -295.3698933124542, 136.78939640522003, 0.21358322143310227 ], [ 433.96833539009094, -295.42016983032227, 136.8311494588852, 0.09488952842198277 ], [ 435.0060522556305, -295.64744234085083, 137.04626262187958, 0.2954231523082665 ], [ 435.26536226272583, -295.74763774871826, 137.01070845127106, 0.1457545178515781 ], [ 435.36607921123505, -295.96318304538727, 136.69921457767487, 0.3148483633475346 ], [ 435.46679615974426, -296.1787283420563, 136.38772070407867, 0.3148483633475346 ], [ 435.45830249786377, -296.2515950202942, 136.10400259494781, 0.21938391155620723 ], [ 435.59935688972473, -296.22817039489746, 136.21732592582703, 0.1672063275412512 ], [ 435.7191324234009, -296.25755548477173, 136.76296174526215, 0.17580575080008445 ], [ 435.89508533477783, -296.4293360710144, 137.7841979265213, 0.5090701609066534 ], [ 437.1311366558075, -296.6286242008209, 139.91671800613403, 0.9094099999509796 ], [ 438.62783908843994, -296.5937554836273, 141.2813514471054, 0.7088527888547084 ], [ 447.3488926887512, -304.47304248809814, 151.90058946609497, 46.034692898035466 ], [ 448.37281107902527, -302.3861050605774, 150.8232057094574, 5.959773495795272 ], [ 448.9457905292511, -302.83138155937195, 150.71889758110046, 1.9927513794140483 ], [ 452.8866410255432, -312.16758489608765, 151.92657709121704, 32.1459268858814 ], [ 440.5269920825958, -296.15944623947144, 139.45646584033966, 74.48308114314918 ], [ 438.25604021549225, -296.6279685497284, 137.571282684803, 1.0052768988816014 ], [ 435.9850883483887, -297.09649085998535, 135.68609952926636, 1.005276898884502 ], [ 432.60735273361206, -298.27597737312317, 132.12454319000244, 2.1915850856095638 ], [ 430.60487508773804, -299.37297105789185, 129.51421737670898, 1.6033205479382076 ], [ 429.2965531349182, -300.40299892425537, 126.72291696071625, 1.2407609582683183 ], [ 427.47536301612854, -302.1578788757324, 121.99191004037857, 1.982730665388962 ], [ 426.08189582824707, -303.48676443099976, 117.99179017543793, 1.439095673175958 ], [ 424.80209469795227, -304.82274293899536, 112.88315057754517, 2.103330128964338 ], [ 424.201101064682, -305.73755502700806, 110.29647290706635, 1.0272597232827942 ], [ 423.90644550323486, -306.8124055862427, 109.41243171691895, 0.3235892965214147 ], [ 423.98759722709656, -308.37759375572205, 109.38067734241486, 0.24496406886013622 ], [ 423.6733615398407, -310.1000785827637, 109.64439809322357, 0.21839482812387803 ], [ 423.0443239212036, -312.0340406894684, 109.65369641780853, 0.21519779408972362 ], [ 421.6989576816559, -314.54145908355713, 108.61964523792267, 0.540026915547988 ], [ 419.95498538017273, -316.3342773914337, 106.58968985080719, 1.1818317153126212 ], [ 418.09529066085815, -318.00833344459534, 104.5193076133728, 1.1741303429533951 ], [ 416.49842262268066, -319.67470049858093, 102.64996439218521, 1.3570478615139685 ], [ 415.79464077949524, -320.6106424331665, 101.66709125041962, 1.0113977567722248 ], [ 415.2069389820099, -321.28894329071045, 100.59047490358353, 0.7165874045303219 ], [ 414.48625922203064, -321.9183385372162, 99.68945384025574, 1.0423348415402474 ], [ 413.1104648113251, -322.4773108959198, 98.2770100235939, 1.5913807769348387 ], [ 411.38821840286255, -322.97825813293457, 96.56678140163422, 1.979243271099836 ], [ 410.91033816337585, -322.7740228176117, 95.72175145149231, 0.6023509053975707 ], [ 410.8063280582428, -322.48446345329285, 95.18107026815414, 0.4414006204333312 ], [ 411.56330704689026, -322.0393657684326, 95.1974019408226, 0.3853775911265195 ], [ 412.22256422042847, -321.77290320396423, 95.30282765626907, 0.4099323672171214 ], [ 412.97051310539246, -321.4207589626312, 95.40123492479324, 0.5550358674411892 ], [ 414.59423303604126, -320.29327750205994, 95.77357023954391, 0.8902319629668474 ], [ 415.8998131752014, -319.1111087799072, 96.0613414645195, 0.6426651149630808 ] ], "repaired": [ [ 423.85026812553406, -303.09051275253296, 103.4170314669609, 0.5912674712418717 ], [ 424.81812834739685, -301.0128140449524, 103.60579192638397, 0.7994720280104634 ], [ 425.3072738647461, -299.5603680610657, 103.68989408016205, 0.40889631222496964 ], [ 425.2752363681793, -298.21109771728516, 103.58338057994843, 0.2557758606980334 ], [ 424.70645904541016, -296.37181758880615, 103.38965058326721, 0.7816051581062903 ], [ 424.43370819091797, -294.27483677864075, 103.14623266458511, 0.7193066618775714 ], [ 424.4348406791687, -293.21688413619995, 103.07274758815765, 0.12188165424780632 ], [ 424.55166578292847, -291.1716401576996, 103.07352244853973, 0.16867733759778317 ], [ 424.873948097229, -289.77206349372864, 103.16231846809387, 0.3723099496193637 ], [ 424.9938428401947, -287.94077038764954, 103.09071093797684, 0.1477159563763838 ], [ 424.71835017204285, -286.75514459609985, 102.94326394796371, 0.4436828378430115 ], [ 424.6615171432495, -285.4054570198059, 102.78984904289246, 0.37134442970630177 ], [ 424.33029413223267, -283.597469329834, 102.55991667509079, 0.5523604527224142 ], [ 424.2231845855713, -282.18144178390503, 102.47844457626343, 0.32625485093680556 ], [ 424.4680404663086, -280.77182173728943, 102.55881398916245, 0.3371001059724048 ], [ 424.90968108177185, -278.8239121437073, 102.61606425046921, 0.24747244041856595 ], [ 425.2588152885437, -277.51418948173523, 102.6676595211029, 0.29821925227038015 ], [ 425.81480741500854, -276.29008889198303, 102.80360281467438, 0.4828798887700454 ], [ 426.12510919570923, -275.7679224014282, 102.86169499158859, 0.3597909655834436 ], [ 426.3419210910797, -275.68066120147705, 102.8919368982315, 0.1421134462322925 ], [ 426.5254735946655, -276.07688307762146, 103.07947546243668, 0.3582958707913821 ], [ 427.001029253006, -276.4851748943329, 103.27409952878952, 0.4308484920770811 ], [ 427.7275502681732, -276.88610553741455, 103.83957624435425, 0.6783930218626768 ], [ 428.3698499202728, -277.7758240699768, 104.54951971769333, 0.8983110937668835 ], [ 428.68557572364807, -278.7923514842987, 105.13187199831009, 0.6563667923516038 ], [ 428.86650562286377, -279.94289994239807, 105.5775135755539, 0.5455072142087468 ], [ 428.29304933547974, -281.7381024360657, 106.31638020277023, 1.363509025735364 ], [ 427.5025427341461, -283.1801176071167, 107.19635337591171, 2.6491235816276526 ], [ 427.72841453552246, -285.66762804985046, 112.71543055772781, 3.5688219481378796 ], [ 431.14885687828064, -288.1978154182434, 123.0020523071289, 3.526937740724667 ], [ 441.02707505226135, -299.0027666091919, 140.77125489711761, 51.665569758332595 ], [ 444.5767104625702, -301.41475796699524, 146.6025710105896, 2.5089097275717225 ], [ 447.5852847099304, -307.7232837677002, 147.9480117559433, 15.562513429097377 ], [ 443.1382715702057, -302.1283745765686, 146.2784707546234, 21.018182995667058 ], [ 447.073757648468, -312.7385079860687, 147.3458856344223, 35.51049029365445 ], [ 441.5605962276459, -302.9881715774536, 146.69208228588104, 34.78358950477343 ], [ 433.9704215526581, -295.0749099254608, 136.73251867294312, 47.02067147883974 ], [ 433.79250168800354, -295.3698933124542, 136.78939640522003, 0.21358067450891352 ], [ 433.96833539009094, -295.42016983032227, 136.8311494588852, 0.09488646952676277 ], [ 435.0060522556305, -295.64744234085083, 137.04626262187958, 0.2954244768607081 ], [ 435.26536226272583, -295.74763774871826, 137.01070845127106, 0.14575546877335085 ], [ 435.36609411239624, -295.9631681442261, 136.69921457767487, 0.3148491370701844 ], [ 435.46679615974426, -296.1787283420563, 136.38772070407867, 0.31484580328151324 ], [ 435.45830249786377, -296.2515950202942, 136.10400259494781, 0.2193849627848785 ], [ 435.59935688972473, -296.22817039489746, 136.21732592582703, 0.16720716022265272 ], [ 435.7191324234009, -296.25755548477173, 136.76296174526215, 0.17580783510197323 ], [ 435.89508533477783, -296.4293360710144, 137.7841979265213, 0.5090700579337953 ], [ 437.1311366558075, -296.6286242008209, 139.91671800613403, 0.9094052648573816 ], [ 438.62783908843994, -296.5937554836273, 141.2813514471054, 0.7088566492520092 ], [ 447.3488926887512, -304.47304248809814, 151.90058946609497, 46.034692257423444 ], [ 448.37281107902527, -302.3861050605774, 150.8232057094574, 5.959774033063332 ], [ 448.9457905292511, -302.83138155937195, 150.71889758110046, 1.9927512077743128 ], [ 452.8866410255432, -312.16758489608765, 151.92657709121704, 32.14592616960677 ], [ 440.5269920825958, -296.15944623947144, 139.45646584033966, 74.48307977512198 ], [ 438.25602531433105, -296.6279685497284, 137.5712752342224, 1.0052794801147122 ], [ 435.9850883483887, -297.09649085998535, 135.68609952926636, 1.0052758926875167 ], [ 432.60735273361206, -298.27597737312317, 132.12454319000244, 2.1915867657281876 ], [ 430.60487508773804, -299.37297105789185, 129.51421737670898, 1.6033190745206687 ], [ 429.2965531349182, -300.40299892425537, 126.72291696071625, 1.2407617174191403 ], [ 427.47536301612854, -302.1578788757324, 121.99191004037857, 1.9827289007564166 ], [ 426.08189582824707, -303.48676443099976, 117.99179017543793, 1.4390959046977212 ], [ 424.80209469795227, -304.82274293899536, 112.88315057754517, 2.1033346196438325 ], [ 424.201101064682, -305.73755502700806, 110.29647290706635, 1.02725766052826 ], [ 423.90644550323486, -306.8124055862427, 109.41243171691895, 0.32358551429761473 ], [ 423.98759722709656, -308.37759375572205, 109.38067734241486, 0.24496378411303074 ], [ 423.6733615398407, -310.1000785827637, 109.64439809322357, 0.21839673313748686 ], [ 423.0443239212036, -312.0340406894684, 109.65369641780853, 0.2151985692752507 ], [ 421.6989576816559, -314.54145908355713, 108.61964523792267, 0.5400284196520856 ], [ 419.95498538017273, -316.3342773914337, 106.58968985080719, 1.1818308240724775 ], [ 418.09529066085815, -318.00833344459534, 104.5193076133728, 1.1741339647687374 ], [ 416.49842262268066, -319.67470049858093, 102.64996439218521, 1.3570460738660306 ], [ 415.79464077949524, -320.6106424331665, 101.66709125041962, 1.0113969321898177 ], [ 415.2069389820099, -321.28894329071045, 100.59047490358353, 0.7165877419494951 ], [ 414.48625922203064, -321.9183385372162, 99.68945384025574, 1.0423339563335388 ], [ 413.1104648113251, -322.4773108959198, 98.2770100235939, 1.5913826059011045 ], [ 411.38821840286255, -322.97825813293457, 96.56678140163422, 1.9792436532953113 ], [ 410.91033816337585, -322.7740228176117, 95.72175145149231, 0.6023513391235751 ], [ 410.8063280582428, -322.48446345329285, 95.18107026815414, 0.44139953675354304 ], [ 411.56330704689026, -322.0393657684326, 95.1974019408226, 0.38537575389783424 ], [ 412.22256422042847, -321.77290320396423, 95.30282765626907, 0.40993386816731886 ], [ 412.97051310539246, -321.4207589626312, 95.40123492479324, 0.5550365881834043 ], [ 414.59423303604126, -320.29327750205994, 95.77357023954391, 0.8902302197617677 ], [ 415.8998131752014, -319.1111087799072, 96.0613414645195, 0.642665534877153 ] ] }, "capture_start_seconds": 33.923091411590576, "capture_end_seconds": 34.753862619400024, "video_time_basis": "local_row / 30 fps" } ]}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg01.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg02.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg03.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg04.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_005_seg05.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_005.parquet", "events": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_006_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_006.parquet", "events": [ { "confidence": "MEDIUM", "end": 135, "event_id": "left:135-135:branch_discontinuity", "evidence": { "anchor_rotation_deg": 12.907309139387474, "anchor_translation_mm": 45.451282814189234, "branch_unambiguous": false, "duration_frames": 1, "endpoint_return_consistent": true, "fit_converged": true, "fit_iterations": 0, "left_anchor": 134, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 6.453654569693737, "prediction_translation_max_mm": 22.725641407094617, "reconstructed_max_step_rotation_deg": 6.453654569693842, "reconstructed_max_step_translation_mm": 22.725641407094617, "replaced_frames": 1, "right_anchor": 136, "right_context_frames": 15, "rotation_inlier_threshold_deg": 6.153024877535055, "rotation_residual_p95_deg": 6.45365456969375, "translation_inlier_threshold_mm": 17.40523897927769, "translation_residual_p95_mm": 22.725641407094617 }, "kind": "branch_discontinuity", "left_context_end": 134, "method": "endpoint_se3", "replaced_frames": [ 135 ], "right_context_start": 136, "seed_frames": [ 135 ], "side": "left", "start": 135, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_006_seg00.parquet::left:135-135:branch_discontinuity", "remote_path": "data/motherboard/meta/2026-09-11/episode_006_seg00.parquet", "source_start_row": 135, "source_end_row": 135, "local_start_row": 8, "local_end_row": 8, "local_start_seconds": 0.26666666666666666, "local_end_seconds": 0.26666666666666666, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/view_middle.mp4#t=0.000,1.267", "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/wrist_left.mp4#t=0.000,1.267", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/view_left.mp4#t=0.000,1.267", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_006_seg00/view_right.mp4#t=0.000,1.267" }, "chart": { "seconds": [ 0.0, 0.03333333333333333, 0.06666666666666667, 0.1, 0.13333333333333333, 0.16666666666666666, 0.2, 0.23333333333333334, 0.26666666666666666, 0.3, 0.3333333333333333, 0.36666666666666664, 0.4, 0.43333333333333335, 0.4666666666666667, 0.5, 0.5333333333333333, 0.5666666666666667, 0.6, 0.6333333333333333, 0.6666666666666666, 0.7, 0.7333333333333333, 0.7666666666666667, 0.8, 0.8333333333333334, 0.8666666666666667, 0.9, 0.9333333333333333, 0.9666666666666667, 1.0, 1.0333333333333334, 1.0666666666666667, 1.1, 1.1333333333333333, 1.1666666666666667, 1.2, 1.2333333333333334, 1.2666666666666666 ], "sampled": false, "raw": [ [ 100.35984218120575, -270.11433243751526, 62.29174882173538, null ], [ 99.73137825727463, -269.40229535102844, 61.85771897435188, 1.917270175827278 ], [ 97.70844876766205, -266.8423056602478, 60.79837679862976, 5.476370262861608 ], [ 94.82218325138092, -263.22364807128906, 59.300824999809265, 6.67430681386113 ], [ 93.82323175668716, -263.4114623069763, 60.05174294114113, 1.9847508470654787 ], [ 93.89735013246536, -265.2513384819031, 65.30791521072388, 6.253149031303126 ], [ 93.72428059577942, -267.98906922340393, 80.01864701509476, 4.728800538888919 ], [ 99.3417426943779, -272.793173789978, 93.87470781803131, 4.116891678708605 ], [ 130.23164868354797, -290.68872332572937, 122.00622260570526, 12.90730913938736 ], [ 130.23164868354797, -290.68872332572937, 122.00622260570526, 0.0 ], [ 147.23718166351318, -298.42081665992737, 129.9772411584854, 6.011060189758857 ], [ 159.7302258014679, -303.4225106239319, 134.1945230960846, 3.4628309362387455 ], [ 177.85990238189697, -309.6180558204651, 139.33928310871124, 4.958183563651148 ], [ 194.54225897789001, -312.3992085456848, 138.50736618041992, 2.8454953329821 ], [ 199.98875260353088, -309.9346458911896, 128.37612628936768, 2.1932836038285513 ], [ 200.58685541152954, -308.33110213279724, 122.29735404253006, 1.2488329512664915 ], [ 200.30935108661652, -307.026743888855, 115.71670323610306, 1.5185043693254836 ], [ 200.54911077022552, -306.76814913749695, 114.06124383211136, 0.5145608563431292 ], [ 201.70655846595764, -306.7685663700104, 113.77377063035965, 0.6911778197135255 ], [ 202.6977837085724, -306.84906244277954, 113.69107663631439, 0.32367537597053997 ], [ 203.99822294712067, -307.0114254951477, 113.2405623793602, 0.5984700492922287 ], [ 206.10813796520233, -307.35698342323303, 112.1068224310875, 0.9396039557341291 ], [ 207.7530324459076, -306.5430819988251, 108.73059928417206, 1.4813986310334681 ], [ 207.74365961551666, -306.2240779399872, 107.85919427871704, 0.31288857987189683 ], [ 207.2862833738327, -304.75443601608276, 103.68755459785461, 1.577903526537662 ], [ 207.6142579317093, -304.2484223842621, 100.14652460813522, 0.9292271132422304 ], [ 207.7282965183258, -304.20470237731934, 99.7178703546524, 0.8477232920419426 ], [ 208.240807056427, -304.41954731941223, 99.03644770383835, 0.6255393058700005 ], [ 209.19731259346008, -304.9773871898651, 98.00697863101959, 1.0763457177871436 ], [ 209.64086055755615, -305.4491877555847, 97.22122550010681, 0.7207240158543969 ], [ 209.77871119976044, -306.00273609161377, 96.80983424186707, 0.6620086564691914 ], [ 209.6571922302246, -306.28180503845215, 96.63059562444687, 0.2852280645802218 ], [ 209.9921554327011, -307.4820041656494, 96.3166132569313, 0.5790214957862232 ], [ 210.357666015625, -308.77456068992615, 96.18020802736282, 0.24400614547406813 ], [ 210.67236363887787, -310.1627230644226, 96.09176963567734, 0.12285252525692285 ], [ 211.0975831747055, -312.21720576286316, 96.06446325778961, 0.04328837158142338 ], [ 211.04049682617188, -313.66971135139465, 96.18928283452988, 0.44302974886912 ], [ 210.92666685581207, -315.1862323284149, 96.31972759962082, 0.4871239176863666 ], [ 210.89869737625122, -317.5593614578247, 96.50222212076187, 0.5813347250554594 ] ], "repaired": [ [ 100.35984218120575, -270.11433243751526, 62.29174882173538, null ], [ 99.73137825727463, -269.40229535102844, 61.85771897435188, 1.917270734485066 ], [ 97.70844876766205, -266.8423056602478, 60.79837679862976, 5.47636812226729 ], [ 94.82218325138092, -263.22364807128906, 59.300824999809265, 6.674309056167478 ], [ 93.82323175668716, -263.4114623069763, 60.05174294114113, 1.9847501649555894 ], [ 93.89735013246536, -265.2513384819031, 65.30791521072388, 6.2531489260917414 ], [ 93.72428059577942, -267.98906922340393, 80.01864701509476, 4.728800180940165 ], [ 99.3417426943779, -272.793173789978, 93.87470781803131, 4.116889168965711 ], [ 114.78669941425323, -281.7409634590149, 107.94046521186829, 6.453656786961352 ], [ 130.23164868354797, -290.68872332572937, 122.00622260570526, 6.453657062054262 ], [ 147.23718166351318, -298.42081665992737, 129.9772411584854, 6.011056537754309 ], [ 159.7302258014679, -303.4225106239319, 134.1945230960846, 3.4628300281510125 ], [ 177.85990238189697, -309.6180558204651, 139.33928310871124, 4.958186224780879 ], [ 194.54225897789001, -312.3992085456848, 138.50736618041992, 2.845497420508905 ], [ 199.98875260353088, -309.9346458911896, 128.37612628936768, 2.1932827774403614 ], [ 200.58685541152954, -308.33110213279724, 122.29735404253006, 1.2488334110469441 ], [ 200.30935108661652, -307.026743888855, 115.71670323610306, 1.5185031373772402 ], [ 200.54911077022552, -306.76814913749695, 114.06124383211136, 0.5145606582387273 ], [ 201.70655846595764, -306.7685663700104, 113.77377063035965, 0.6911782541748633 ], [ 202.6977837085724, -306.84906244277954, 113.69107663631439, 0.32367617523712977 ], [ 203.99822294712067, -307.0114254951477, 113.2405623793602, 0.5984718994656546 ], [ 206.10813796520233, -307.35698342323303, 112.1068224310875, 0.9396027603784758 ], [ 207.7530324459076, -306.5430819988251, 108.73059928417206, 1.4813985856716319 ], [ 207.74365961551666, -306.2240779399872, 107.85919427871704, 0.3128896968677141 ], [ 207.2862833738327, -304.75443601608276, 103.68755459785461, 1.5779040285070212 ], [ 207.6142579317093, -304.2484223842621, 100.14652460813522, 0.9292268069954142 ], [ 207.7282965183258, -304.20470237731934, 99.7178703546524, 0.8477237110830159 ], [ 208.240807056427, -304.41954731941223, 99.03644770383835, 0.6255390346796013 ], [ 209.19731259346008, -304.9773871898651, 98.00697863101959, 1.0763461096954665 ], [ 209.64086055755615, -305.4491877555847, 97.22122550010681, 0.7207204057961701 ], [ 209.77871119976044, -306.00273609161377, 96.80983424186707, 0.6620127749934824 ], [ 209.6571922302246, -306.28180503845215, 96.63059562444687, 0.2852271133672206 ], [ 209.9921554327011, -307.4820041656494, 96.3166132569313, 0.5790258184263283 ], [ 210.357666015625, -308.77456068992615, 96.18020802736282, 0.2440039319924171 ], [ 210.67236363887787, -310.1627230644226, 96.09176963567734, 0.1228517569898105 ], [ 211.0975831747055, -312.21720576286316, 96.06446325778961, 0.04328780680033871 ], [ 211.04049682617188, -313.66971135139465, 96.18928283452988, 0.4430295309480642 ], [ 210.92666685581207, -315.1862323284149, 96.31972759962082, 0.4871254458901983 ], [ 210.89869737625122, -317.5593614578247, 96.50222212076187, 0.5813295043684571 ] ] }, "capture_start_seconds": 0.3642127513885498, "capture_end_seconds": 0.3642127513885498, "video_time_basis": "local_row / 30 fps" } ]}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_006_seg01.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_006.parquet", "events": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet", "events": [ { "confidence": "MEDIUM", "end": 544, "event_id": "right:544-544:branch_discontinuity", "evidence": { "anchor_rotation_deg": 14.981120961953765, "anchor_translation_mm": 48.37311204519902, "branch_unambiguous": true, "duration_frames": 1, "endpoint_return_consistent": true, "fit_converged": true, "fit_iterations": 0, "independent_loss_evidence": false, "left_anchor": 543, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 7.490560480976883, "prediction_translation_max_mm": 24.18655602259951, "reconstructed_max_step_rotation_deg": 7.490560480976786, "reconstructed_max_step_translation_mm": 24.18655602259951, "replaced_frames": 1, "review_required": true, "right_anchor": 545, "right_context_frames": 15, "rotation_inlier_threshold_deg": 4.1984467148612294, "rotation_residual_p95_deg": 7.562254191729277, "translation_inlier_threshold_mm": 12.312927979729979, "translation_residual_p95_mm": 22.100730708888793 }, "kind": "branch_discontinuity", "left_context_end": 543, "method": "endpoint_se3", "replaced_frames": [ 544 ], "right_context_start": 545, "seed_frames": [ 544 ], "side": "right", "start": 544, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg00.parquet::right:544-544:branch_discontinuity", "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg00.parquet", "source_start_row": 544, "source_end_row": 544, "local_start_row": 544, "local_end_row": 544, "local_start_seconds": 18.133333333333333, "local_end_seconds": 18.133333333333333, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/view_middle.mp4#t=17.133,19.133", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/wrist_right.mp4#t=17.133,19.133", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/view_left.mp4#t=17.133,19.133", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg00/view_right.mp4#t=17.133,19.133" }, "chart": { "seconds": [ 17.133333333333333, 17.166666666666668, 17.2, 17.233333333333334, 17.266666666666666, 17.3, 17.333333333333332, 17.366666666666667, 17.4, 17.433333333333334, 17.466666666666665, 17.5, 17.533333333333335, 17.566666666666666, 17.6, 17.633333333333333, 17.666666666666668, 17.7, 17.733333333333334, 17.766666666666666, 17.8, 17.833333333333332, 17.866666666666667, 17.9, 17.933333333333334, 17.966666666666665, 18.0, 18.033333333333335, 18.066666666666666, 18.1, 18.133333333333333, 18.166666666666668, 18.2, 18.233333333333334, 18.266666666666666, 18.3, 18.333333333333332, 18.366666666666667, 18.4, 18.433333333333334, 18.466666666666665, 18.5, 18.533333333333335, 18.566666666666666, 18.6, 18.633333333333333, 18.666666666666668, 18.7, 18.733333333333334, 18.766666666666666, 18.8, 18.833333333333332, 18.866666666666667, 18.9, 18.933333333333334, 18.966666666666665, 19.0, 19.033333333333335, 19.066666666666666, 19.1, 19.133333333333333 ], "sampled": false, "raw": [ [ 293.1345999240875, -351.333886384964, 61.266228556632996, 0.687451528411576 ], [ 293.68919134140015, -351.2651026248932, 61.460234224796295, 0.7325192287076495 ], [ 293.95976662635803, -351.26224160194397, 61.32737919688225, 0.3732694793804291 ], [ 293.20332407951355, -352.51671075820923, 60.26877835392952, 3.0820496420165875 ], [ 291.9199466705322, -353.7198007106781, 59.7648024559021, 1.9898495588624356 ], [ 291.56753420829773, -354.38233613967896, 59.61282178759575, 0.866343745865375 ], [ 291.8187975883484, -354.39276695251465, 59.804871678352356, 0.4308827414978981 ], [ 294.82302069664, -354.8979461193085, 62.41493672132492, 3.7765435787711565 ], [ 297.53339290618896, -354.39392924308777, 63.63362818956375, 1.3160221470353055 ], [ 298.77597093582153, -353.8702726364136, 63.517652451992035, 0.5161627662487882 ], [ 300.1197874546051, -353.2220125198364, 63.514143228530884, 0.45316212014949103 ], [ 303.20677161216736, -351.4164686203003, 63.71813267469406, 0.6252093424346389 ], [ 305.2299916744232, -350.039541721344, 63.184648752212524, 0.7508498018849415 ], [ 310.5168044567108, -345.84781527519226, 64.22349065542221, 2.2819793087134355 ], [ 311.0499382019043, -345.30365467071533, 64.46491181850433, 0.4266986022208447 ], [ 311.97622418403625, -343.7676727771759, 63.82576376199722, 0.892170808005379 ], [ 312.9937946796417, -341.0952091217041, 63.55633586645126, 2.2933420023472397 ], [ 313.2440745830536, -340.85723757743835, 63.96554410457611, 0.6378371338008306 ], [ 314.3502473831177, -339.3517732620239, 64.89276140928268, 2.9173937144210655 ], [ 316.6208565235138, -336.7346525192261, 66.50929152965546, 2.9446755006536476 ], [ 316.92636013031006, -336.3368511199951, 66.4486214518547, 1.0485635310005839 ], [ 316.7653977870941, -336.5139961242676, 66.28798693418503, 2.995881690480761 ], [ 317.4707293510437, -335.4126811027527, 66.90811365842819, 2.1324149865195285 ], [ 317.7834153175354, -334.69173312187195, 66.89349561929703, 1.7021675199236332 ], [ 317.83527135849, -333.8753879070282, 66.7475238442421, 0.5777126995514399 ], [ 316.1773085594177, -333.9933454990387, 65.02436101436615, 2.5336525357991597 ], [ 315.01907110214233, -334.3987762928009, 63.944511115550995, 1.4955213760506871 ], [ 313.9919936656952, -334.7807824611664, 63.045695424079895, 1.495893748302454 ], [ 313.7209117412567, -335.0702226161957, 62.98482418060303, 0.6636471933923805 ], [ 314.28825855255127, -334.96007323265076, 63.59536200761795, 0.7337285661600823 ], [ 316.0325288772583, -334.7402811050415, 65.16243517398834, 0.8700382612155738 ], [ 332.14324712753296, -331.99402689933777, 108.45469683408737, 15.027749122112803 ], [ 332.14324712753296, -331.99402689933777, 108.45469683408737, 0.0 ], [ 341.92711114883423, -329.11837100982666, 122.78661131858826, 4.395244431209681 ], [ 348.44863414764404, -325.9589970111847, 127.88505852222443, 2.5174553376251385 ], [ 353.90937328338623, -321.8695819377899, 127.5901049375534, 2.381002945378305 ], [ 358.2216501235962, -317.58448481559753, 123.63783270120621, 2.361307115538593 ], [ 360.61105132102966, -314.1844570636749, 115.3286024928093, 1.7041090143332824 ], [ 361.04410886764526, -312.1437430381775, 106.9612130522728, 1.9343795128742742 ], [ 359.93874073028564, -311.5338385105133, 99.08898919820786, 2.2364422096740935 ], [ 356.38025403022766, -313.41809034347534, 93.87563169002533, 1.449978016433078 ], [ 353.2029688358307, -315.4681921005249, 92.6341637969017, 0.7268002973073359 ], [ 348.3954071998596, -318.47113370895386, 92.12961792945862, 1.1850327099511877 ], [ 343.3808386325836, -321.84338569641113, 93.25993061065674, 1.3047113523593696 ], [ 339.22621607780457, -324.88691806793213, 92.34482049942017, 1.279801716832145 ], [ 336.5621864795685, -326.68477296829224, 90.09996056556702, 1.0507941248571373 ], [ 333.09316635131836, -328.0491828918457, 83.85724574327469, 2.9697694922657365 ], [ 331.71308040618896, -327.4717628955841, 79.33017611503601, 2.3148280999851614 ], [ 331.5514326095581, -326.78258419036865, 78.5917416214943, 0.6691687482898295 ], [ 331.7137360572815, -325.371116399765, 78.62141728401184, 0.6043201001048663 ], [ 331.63028955459595, -324.77304339408875, 78.34472507238388, 0.3192961948175036 ], [ 331.400603055954, -323.97884130477905, 75.70776343345642, 0.7999868659174019 ], [ 330.43795824050903, -323.75940680503845, 71.54644280672073, 0.9530872062469837 ], [ 329.82951402664185, -323.71991872787476, 69.59924846887589, 0.4935616842824806 ], [ 328.97576689720154, -323.0929672718048, 66.19051098823547, 1.0203049267955422 ], [ 328.6614716053009, -322.37523794174194, 65.57655334472656, 0.2643159262903845 ], [ 329.05641198158264, -320.77667117118835, 65.84209203720093, 0.6066023020921874 ], [ 329.3440043926239, -319.52643394470215, 65.47638773918152, 0.7175444887359127 ], [ 329.31357622146606, -319.0698027610779, 65.408855676651, 0.27190653162417144 ], [ 329.3303847312927, -318.95262002944946, 65.41609019041061, 0.17256720887291088 ], [ 329.2910158634186, -319.2327618598938, 65.11540710926056, 0.3526696322556167 ] ], "repaired": [ [ 293.1345999240875, -351.333886384964, 61.266228556632996, 0.687451028563998 ], [ 293.68919134140015, -351.2651026248932, 61.460234224796295, 0.7325189346178936 ], [ 293.95976662635803, -351.26224160194397, 61.32737919688225, 0.3732668245690396 ], [ 293.20332407951355, -352.51671075820923, 60.26877835392952, 3.0820481696718924 ], [ 291.9199466705322, -353.7198007106781, 59.7648024559021, 1.9898505734486545 ], [ 291.56753420829773, -354.38233613967896, 59.61282178759575, 0.8663413573869908 ], [ 291.8187975883484, -354.39276695251465, 59.804871678352356, 0.4308826267352641 ], [ 294.82302069664, -354.8979461193085, 62.41493672132492, 3.776544930407562 ], [ 297.53339290618896, -354.39392924308777, 63.63362818956375, 1.3160201478215028 ], [ 298.77597093582153, -353.8702726364136, 63.517652451992035, 0.5161647158902474 ], [ 300.1197874546051, -353.2220125198364, 63.514143228530884, 0.4531619986947299 ], [ 303.20677161216736, -351.4164686203003, 63.71813267469406, 0.6252106686168672 ], [ 305.2299916744232, -350.039541721344, 63.184648752212524, 0.7508483094198176 ], [ 310.5168044567108, -345.84781527519226, 64.22349065542221, 2.2819777146614 ], [ 311.0499382019043, -345.30365467071533, 64.46491181850433, 0.4266956840886113 ], [ 311.97622418403625, -343.7676727771759, 63.82576376199722, 0.8921717686413367 ], [ 312.9937946796417, -341.0952091217041, 63.55633586645126, 2.293345597410516 ], [ 313.2440745830536, -340.85723757743835, 63.96554410457611, 0.6378326435024896 ], [ 314.3502473831177, -339.3517732620239, 64.89276140928268, 2.9173971351465546 ], [ 316.6208565235138, -336.7346525192261, 66.50929152965546, 2.944669090308108 ], [ 316.92636013031006, -336.3368511199951, 66.4486214518547, 1.048565512024611 ], [ 316.7653977870941, -336.5139961242676, 66.28798693418503, 2.9958828358593763 ], [ 317.4707293510437, -335.4126811027527, 66.90811365842819, 2.132416665693146 ], [ 317.7834153175354, -334.69173312187195, 66.89349561929703, 1.702165169290894 ], [ 317.83527135849, -333.8753879070282, 66.7475238442421, 0.5777139464830907 ], [ 316.1773085594177, -333.9933454990387, 65.02436101436615, 2.533652686443174 ], [ 315.01907110214233, -334.3987762928009, 63.944511115550995, 1.4955227525689865 ], [ 313.9919936656952, -334.7807824611664, 63.045695424079895, 1.4958939279146763 ], [ 313.7209117412567, -335.0702226161957, 62.98482418060303, 0.6636429240190245 ], [ 314.28825855255127, -334.96007323265076, 63.59536200761795, 0.7337268363409191 ], [ 323.2157528400421, -333.47705006599426, 86.02502942085266, 7.490561236684089 ], [ 332.14324712753296, -331.99402689933777, 108.45469683408737, 7.490560683642035 ], [ 332.14324712753296, -331.99402689933777, 108.45469683408737, 0.0 ], [ 341.92711114883423, -329.11837100982666, 122.78661131858826, 4.395241797533204 ], [ 348.44863414764404, -325.9589970111847, 127.88505852222443, 2.5174572301828633 ], [ 353.90937328338623, -321.8695819377899, 127.5901049375534, 2.381001658083867 ], [ 358.2216501235962, -317.58448481559753, 123.63783270120621, 2.3613067701119497 ], [ 360.61105132102966, -314.1844570636749, 115.3286024928093, 1.704106939256216 ], [ 361.04410886764526, -312.1437430381775, 106.9612130522728, 1.9343804592161327 ], [ 359.93874073028564, -311.5338385105133, 99.08898919820786, 2.2364409330887165 ], [ 356.38025403022766, -313.41809034347534, 93.87563169002533, 1.44997737723863 ], [ 353.2029688358307, -315.4681921005249, 92.6341637969017, 0.7268019248122041 ], [ 348.3954071998596, -318.47113370895386, 92.12961792945862, 1.1850338557537639 ], [ 343.3808386325836, -321.84338569641113, 93.25993061065674, 1.3047066742642828 ], [ 339.22621607780457, -324.88691806793213, 92.34482049942017, 1.2798020082945034 ], [ 336.5621864795685, -326.68477296829224, 90.09996056556702, 1.0507975689163822 ], [ 333.09316635131836, -328.0491828918457, 83.85724574327469, 2.9697686892440323 ], [ 331.71308040618896, -327.4717628955841, 79.33017611503601, 2.3148301850876867 ], [ 331.5514326095581, -326.78258419036865, 78.5917416214943, 0.6691679389130569 ], [ 331.7137360572815, -325.371116399765, 78.62141728401184, 0.6043219833155733 ], [ 331.63028955459595, -324.77304339408875, 78.34472507238388, 0.31930047344429463 ], [ 331.400603055954, -323.97884130477905, 75.70776343345642, 0.7999833442648805 ], [ 330.43795824050903, -323.75940680503845, 71.54644280672073, 0.9530863592080867 ], [ 329.82951402664185, -323.71991872787476, 69.59924846887589, 0.49356419411953867 ], [ 328.97576689720154, -323.0929672718048, 66.19051098823547, 1.0203024094192636 ], [ 328.6614716053009, -322.37523794174194, 65.57655334472656, 0.2643160754210582 ], [ 329.05641198158264, -320.77667117118835, 65.84209203720093, 0.6066015301804601 ], [ 329.3440043926239, -319.52643394470215, 65.47638773918152, 0.7175423868444918 ], [ 329.31357622146606, -319.0698027610779, 65.408855676651, 0.27190670997849375 ], [ 329.3303847312927, -318.95262002944946, 65.41609019041061, 0.17256693072006424 ], [ 329.2910158634186, -319.2327618598938, 65.11540710926056, 0.3526653390518131 ] ] }, "capture_start_seconds": 20.011152267456055, "capture_end_seconds": 20.011152267456055, "video_time_basis": "local_row / 30 fps" } ]}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet", "events": [ { "confidence": "MEDIUM", "end": 3198, "event_id": "right:3198-3198:branch_discontinuity", "evidence": { "anchor_rotation_deg": 25.348470228574193, "anchor_translation_mm": 46.11884776977851, "branch_unambiguous": true, "duration_frames": 1, "endpoint_return_consistent": false, "fit_converged": true, "fit_iterations": 0, "left_anchor": 3197, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 12.674235114287097, "prediction_translation_max_mm": 23.059423884889256, "reconstructed_max_step_rotation_deg": 12.674235114287082, "reconstructed_max_step_translation_mm": 23.059423884889256, "replaced_frames": 1, "right_anchor": 3199, "right_context_frames": 15, "rotation_inlier_threshold_deg": 4.480161780996793, "rotation_residual_p95_deg": 10.2630229478109, "translation_inlier_threshold_mm": 11.760744127895912, "translation_residual_p95_mm": 21.04218397951475 }, "kind": "branch_discontinuity", "left_context_end": 3197, "method": "endpoint_se3", "replaced_frames": [ 3198 ], "right_context_start": 3199, "seed_frames": [ 3198 ], "side": "right", "start": 3198, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet::right:3198-3198:branch_discontinuity", "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet", "source_start_row": 3198, "source_end_row": 3198, "local_start_row": 1326, "local_end_row": 1326, "local_start_seconds": 44.2, "local_end_seconds": 44.2, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_middle.mp4#t=43.200,45.200", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/wrist_right.mp4#t=43.200,45.200", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_left.mp4#t=43.200,45.200", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_right.mp4#t=43.200,45.200" }, "chart": { "seconds": [ 43.2, 43.233333333333334, 43.266666666666666, 43.3, 43.333333333333336, 43.36666666666667, 43.4, 43.43333333333333, 43.46666666666667, 43.5, 43.53333333333333, 43.56666666666667, 43.6, 43.63333333333333, 43.666666666666664, 43.7, 43.733333333333334, 43.766666666666666, 43.8, 43.833333333333336, 43.86666666666667, 43.9, 43.93333333333333, 43.96666666666667, 44.0, 44.03333333333333, 44.06666666666667, 44.1, 44.13333333333333, 44.166666666666664, 44.2, 44.233333333333334, 44.266666666666666, 44.3, 44.333333333333336, 44.36666666666667, 44.4, 44.43333333333333, 44.46666666666667, 44.5, 44.53333333333333, 44.56666666666667, 44.6, 44.63333333333333, 44.666666666666664, 44.7, 44.733333333333334, 44.766666666666666, 44.8, 44.833333333333336, 44.86666666666667, 44.9, 44.93333333333333, 44.96666666666667, 45.0, 45.03333333333333, 45.06666666666667, 45.1, 45.13333333333333, 45.166666666666664, 45.2 ], "sampled": false, "raw": [ [ 405.3952395915985, -266.4848268032074, 77.30727642774582, 1.0026019971868467 ], [ 407.94217586517334, -262.9442811012268, 74.60123300552368, 1.3657502858774124 ], [ 409.8564088344574, -261.36380434036255, 70.43160498142242, 1.1458928369952015 ], [ 410.4922115802765, -261.55197620391846, 68.55341047048569, 0.4947168296044661 ], [ 410.99587082862854, -262.1247172355652, 68.66680085659027, 0.28738658441955955 ], [ 410.64849495887756, -263.4833753108978, 67.90655106306076, 1.0054419686485676 ], [ 410.249799489975, -264.88813757896423, 67.25863367319107, 0.8283861749181091 ], [ 410.2030098438263, -266.8197453022003, 67.0810267329216, 0.38779525531764464 ], [ 410.47030687332153, -268.6574161052704, 67.13657081127167, 0.30824616232394925 ], [ 411.26224398612976, -271.5844213962555, 67.4060583114624, 0.598634369460212 ], [ 412.2091233730316, -273.91138672828674, 67.86694377660751, 0.7210515817832327 ], [ 413.478285074234, -276.05339884757996, 68.53117793798447, 0.9875120053998807 ], [ 415.25793075561523, -278.788685798645, 69.07965987920761, 0.93482813940151 ], [ 416.31218791007996, -281.04251623153687, 69.30582225322723, 0.8932286293520793 ], [ 417.47355461120605, -283.0815613269806, 69.49757784605026, 0.7132044888348353 ], [ 419.42936182022095, -285.73328256607056, 69.61800903081894, 0.8020344083252803 ], [ 421.2401807308197, -287.5960171222687, 69.78561729192734, 0.5619983996266291 ], [ 423.2463240623474, -289.3909513950348, 69.92638856172562, 0.46285373341564073 ], [ 426.0267913341522, -291.79447889328003, 69.67514753341675, 0.8050507250937742 ], [ 428.27266454696655, -293.3959364891052, 69.68165189027786, 0.20716420279299744 ], [ 432.0083260536194, -297.4567115306854, 69.24746185541153, 0.7931682563308251 ], [ 434.92546677589417, -301.52347683906555, 68.84844601154327, 0.7980160651461685 ], [ 435.62188744544983, -303.0882477760315, 68.54798644781113, 0.44356138174555615 ], [ 436.68070435523987, -305.2087128162384, 68.15370917320251, 0.2869839239201239 ], [ 439.42898511886597, -308.28943848609924, 68.37941706180573, 0.9702391122902844 ], [ 440.71048498153687, -309.13594365119934, 68.54711472988129, 0.2607926581207613 ], [ 441.8005347251892, -310.1106584072113, 68.72717291116714, 0.37431922269312373 ], [ 443.38569045066833, -311.05634570121765, 69.8409304022789, 1.4916944926423124 ], [ 443.38569045066833, -311.05634570121765, 69.8409304022789, 0.0 ], [ 447.18214869499207, -307.6777458190918, 75.19669085741043, 3.4504178828495595 ], [ 477.8321087360382, -290.84423184394836, 101.76485031843185, 22.86364688194979 ], [ 480.1974594593048, -293.7803864479065, 104.24493998289108, 3.0270983564032163 ], [ 480.38843274116516, -298.096626996994, 104.92163151502609, 1.307074667580104 ], [ 480.93128204345703, -299.40634965896606, 104.97692972421646, 1.6152765920577823 ], [ 481.8103611469269, -299.5704114437103, 103.33967953920364, 1.9802781871839041 ], [ 481.7497730255127, -300.0728487968445, 95.33065557479858, 1.85837762263489 ], [ 481.4143180847168, -300.2975583076477, 93.49677711725235, 0.261037541088642 ], [ 478.98510098457336, -301.45540833473206, 88.12548220157623, 0.6985828934883531 ], [ 476.525753736496, -302.2834360599518, 85.28055995702744, 0.2963559523011386 ], [ 472.2505211830139, -302.6594817638397, 82.00187981128693, 0.7041119517286946 ], [ 468.26717257499695, -302.50871181488037, 77.92379707098007, 1.3755517660178722 ], [ 466.5735363960266, -302.5636076927185, 72.92819023132324, 1.3791052933809882 ], [ 464.87680077552795, -301.6646206378937, 71.15648686885834, 2.4998905778327973 ], [ 464.87680077552795, -301.6646206378937, 71.15648686885834, 0.0 ], [ 465.7115936279297, -300.4785478115082, 71.66124135255814, 1.3551763449878587 ], [ 466.6639566421509, -299.6499538421631, 71.86450809240341, 0.383017351331154 ], [ 469.5872962474823, -296.89112305641174, 72.15959578752518, 0.5719700290396695 ], [ 470.62623500823975, -295.5724596977234, 71.68501615524292, 1.0666412430889527 ], [ 471.24117612838745, -294.57518458366394, 71.20323926210403, 1.2671700403235047 ], [ 471.86627984046936, -293.3160364627838, 70.7450732588768, 1.162714820739517 ], [ 471.9564914703369, -292.3278510570526, 70.3180655837059, 1.1927029402113951 ], [ 472.4558889865875, -290.9247577190399, 70.19450515508652, 0.4260640570352108 ], [ 472.46620059013367, -290.2967631816864, 69.89384442567825, 0.3577590023981031 ], [ 472.6879596710205, -289.3086075782776, 69.69974935054779, 0.6082943680842399 ], [ 473.2133448123932, -288.11249136924744, 69.6849673986435, 0.7784642905783601 ], [ 474.22608733177185, -286.23321652412415, 69.78163868188858, 1.0109561683366226 ], [ 475.2237796783447, -284.4102680683136, 69.72207874059677, 0.72760074338533 ], [ 476.37462615966797, -282.3224663734436, 69.65924054384232, 0.7188929097486061 ], [ 478.12363505363464, -279.3165445327759, 69.53620910644531, 0.7712920549249944 ], [ 479.167103767395, -277.4237394332886, 69.16673481464386, 0.533892346178185 ], [ 481.04536533355713, -275.0835418701172, 69.099061191082, 0.39611320554436064 ] ], "repaired": [ [ 405.3952395915985, -266.4848268032074, 77.30727642774582, 1.0026012244839428 ], [ 407.94217586517334, -262.9442811012268, 74.60123300552368, 1.3657479959334908 ], [ 409.8564088344574, -261.36380434036255, 70.43160498142242, 1.1458944063231267 ], [ 410.4922115802765, -261.55197620391846, 68.55341047048569, 0.4947161007264918 ], [ 410.99587082862854, -262.1247172355652, 68.66680085659027, 0.2873870432659057 ], [ 410.64849495887756, -263.4833753108978, 67.90655106306076, 1.005438845206848 ], [ 410.249799489975, -264.88813757896423, 67.25863367319107, 0.8283886906118779 ], [ 410.2030098438263, -266.8197453022003, 67.0810267329216, 0.3877914246056837 ], [ 410.47030687332153, -268.6574161052704, 67.13657081127167, 0.30825180697555843 ], [ 411.26224398612976, -271.5844213962555, 67.4060583114624, 0.5986298102119793 ], [ 412.2091233730316, -273.91138672828674, 67.86694377660751, 0.7210528664322468 ], [ 413.478285074234, -276.05339884757996, 68.53117793798447, 0.9875115807486567 ], [ 415.25793075561523, -278.788685798645, 69.07965987920761, 0.9348270279683347 ], [ 416.31218791007996, -281.04251623153687, 69.30582225322723, 0.893226355836123 ], [ 417.47355461120605, -283.0815613269806, 69.49757784605026, 0.7132070899332486 ], [ 419.42936182022095, -285.73328256607056, 69.61800903081894, 0.8020364942207572 ], [ 421.2401807308197, -287.5960171222687, 69.78561729192734, 0.5619981614907023 ], [ 423.2463240623474, -289.3909513950348, 69.92638856172562, 0.46285503790783367 ], [ 426.0267913341522, -291.79447889328003, 69.67514753341675, 0.8050484874705062 ], [ 428.27266454696655, -293.3959364891052, 69.68165189027786, 0.20716645470461623 ], [ 432.0083260536194, -297.4567115306854, 69.24746185541153, 0.7931690296907629 ], [ 434.92546677589417, -301.52347683906555, 68.84844601154327, 0.798016443296962 ], [ 435.62188744544983, -303.0882477760315, 68.54798644781113, 0.4435653799645006 ], [ 436.68070435523987, -305.2087128162384, 68.15370917320251, 0.28698608075697013 ], [ 439.42898511886597, -308.28943848609924, 68.37941706180573, 0.9702357617128466 ], [ 440.71048498153687, -309.13594365119934, 68.54711472988129, 0.26079189738927655 ], [ 441.8005347251892, -310.1106584072113, 68.72717291116714, 0.37431891743022544 ], [ 443.38569045066833, -311.05634570121765, 69.8409304022789, 1.491698332919788 ], [ 443.38569045066833, -311.05634570121765, 69.8409304022789, 1.7075472925031877e-06 ], [ 447.18214869499207, -307.6777458190918, 75.19669085741043, 3.4504156787257734 ], [ 463.68980407714844, -300.72906613349915, 89.72081542015076, 12.674236560287447 ], [ 480.1974594593048, -293.7803864479065, 104.24493998289108, 12.674236768214145 ], [ 480.38843274116516, -298.096626996994, 104.92163151502609, 1.3070758071922286 ], [ 480.93128204345703, -299.40634965896606, 104.97692972421646, 1.6152767662419791 ], [ 481.8103611469269, -299.5704114437103, 103.33967953920364, 1.9802748826216197 ], [ 481.7497730255127, -300.0728487968445, 95.33065557479858, 1.8583766643330628 ], [ 481.4143180847168, -300.2975583076477, 93.49677711725235, 0.2610378570244182 ], [ 478.98510098457336, -301.45540833473206, 88.12548220157623, 0.698584362238088 ], [ 476.525753736496, -302.2834360599518, 85.28055995702744, 0.2963546936246488 ], [ 472.2505211830139, -302.6594817638397, 82.00187981128693, 0.7041141289245489 ], [ 468.26717257499695, -302.50871181488037, 77.92379707098007, 1.3755480972272647 ], [ 466.5735363960266, -302.5636076927185, 72.92819023132324, 1.379106191721616 ], [ 464.87680077552795, -301.6646206378937, 71.15648686885834, 2.4998902489133235 ], [ 464.87680077552795, -301.6646206378937, 71.15648686885834, 1.7075472925031877e-06 ], [ 465.7115936279297, -300.4785478115082, 71.66124135255814, 1.3551714316651566 ], [ 466.6639566421509, -299.6499538421631, 71.86450809240341, 0.38302194066100415 ], [ 469.5872962474823, -296.89112305641174, 72.15959578752518, 0.5719632821189707 ], [ 470.62623500823975, -295.5724596977234, 71.68501615524292, 1.066639349271138 ], [ 471.24117612838745, -294.57518458366394, 71.20323926210403, 1.2671696192377029 ], [ 471.86627984046936, -293.3160364627838, 70.7450732588768, 1.1627171070003433 ], [ 471.9564914703369, -292.3278510570526, 70.3180655837059, 1.1927019867610882 ], [ 472.4558889865875, -290.9247577190399, 70.19450515508652, 0.42606266757747585 ], [ 472.46620059013367, -290.2967631816864, 69.89384442567825, 0.35776147357233123 ], [ 472.6879596710205, -289.3086075782776, 69.69974935054779, 0.608298039616038 ], [ 473.2133448123932, -288.11249136924744, 69.6849673986435, 0.778462241750048 ], [ 474.22608733177185, -286.23321652412415, 69.78163868188858, 1.0109573397230374 ], [ 475.2237796783447, -284.4102680683136, 69.72207874059677, 0.7276000855575298 ], [ 476.37462615966797, -282.3224663734436, 69.65924054384232, 0.7188920386321677 ], [ 478.12363505363464, -279.3165445327759, 69.53620910644531, 0.771291524332582 ], [ 479.167103767395, -277.4237394332886, 69.16673481464386, 0.5338931147198002 ], [ 481.04536533355713, -275.0835418701172, 69.099061191082, 0.39611166033298484 ] ] }, "capture_start_seconds": 45.49140000343323, "capture_end_seconds": 45.49140000343323, "video_time_basis": "local_row / 30 fps" }, { "confidence": "MEDIUM", "end": 5362, "event_id": "right:5362-5362:branch_discontinuity", "evidence": { "anchor_rotation_deg": 14.322734395178589, "anchor_translation_mm": 36.157976267818334, "branch_unambiguous": false, "duration_frames": 1, "endpoint_return_consistent": true, "fit_converged": true, "fit_iterations": 0, "left_anchor": 5361, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 7.1613671975892945, "prediction_translation_max_mm": 18.078988133909167, "reconstructed_max_step_rotation_deg": 7.161367197589416, "reconstructed_max_step_translation_mm": 18.078988133909167, "replaced_frames": 1, "right_anchor": 5363, "right_context_frames": 15, "rotation_inlier_threshold_deg": 4.5746407089529395, "rotation_residual_p95_deg": 5.99864660941583, "translation_inlier_threshold_mm": 17.493324801605226, "translation_residual_p95_mm": 14.470892034462283 }, "kind": "branch_discontinuity", "left_context_end": 5361, "method": "endpoint_se3", "replaced_frames": [ 5362 ], "right_context_start": 5363, "seed_frames": [ 5362 ], "side": "right", "start": 5362, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet::right:5362-5362:branch_discontinuity", "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg01.parquet", "source_start_row": 5362, "source_end_row": 5362, "local_start_row": 3490, "local_end_row": 3490, "local_start_seconds": 116.33333333333333, "local_end_seconds": 116.33333333333333, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_middle.mp4#t=115.333,117.333", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/wrist_right.mp4#t=115.333,117.333", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_left.mp4#t=115.333,117.333", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg01/view_right.mp4#t=115.333,117.333" }, "chart": { "seconds": [ 115.33333333333333, 115.36666666666666, 115.4, 115.43333333333334, 115.46666666666667, 115.5, 115.53333333333333, 115.56666666666666, 115.6, 115.63333333333334, 115.66666666666667, 115.7, 115.73333333333333, 115.76666666666667, 115.8, 115.83333333333333, 115.86666666666666, 115.9, 115.93333333333334, 115.96666666666667, 116.0, 116.03333333333333, 116.06666666666666, 116.1, 116.13333333333334, 116.16666666666667, 116.2, 116.23333333333333, 116.26666666666667, 116.3, 116.33333333333333, 116.36666666666666, 116.4, 116.43333333333334, 116.46666666666667, 116.5, 116.53333333333333, 116.56666666666666, 116.6, 116.63333333333334, 116.66666666666667, 116.7, 116.73333333333333, 116.76666666666667, 116.8, 116.83333333333333, 116.86666666666666, 116.9, 116.93333333333334, 116.96666666666667, 117.0, 117.03333333333333, 117.06666666666666, 117.1, 117.13333333333334, 117.16666666666667, 117.2, 117.23333333333333, 117.26666666666667, 117.3, 117.33333333333333 ], "sampled": false, "raw": [ [ 482.6417863368988, -86.38282120227814, 102.5238186120987, 1.0699223650638725 ], [ 481.9776117801666, -88.21597695350647, 102.17894613742828, 0.9728038341819308 ], [ 481.3976287841797, -90.10819345712662, 101.83504223823547, 0.8504803665238833 ], [ 480.30874133110046, -93.10565143823624, 101.14873200654984, 1.2298536543896033 ], [ 479.3519675731659, -95.54847329854965, 100.70785880088806, 0.9614921365896332 ], [ 478.06599736213684, -99.0297943353653, 100.23587942123413, 1.3267856724201412 ], [ 477.4029552936554, -100.81177204847336, 99.97809678316116, 0.6936751213834494 ], [ 476.21485590934753, -104.16610538959503, 99.56713020801544, 1.27032972329257 ], [ 475.4602611064911, -106.38341307640076, 99.41110014915466, 0.8594695811168254 ], [ 474.7545123100281, -108.01244527101517, 99.1920605301857, 0.5771188811820182 ], [ 472.6371765136719, -110.65034568309784, 98.56167435646057, 1.0833199188824036 ], [ 472.2934067249298, -110.67650467157364, 98.39799255132675, 0.2603357266800196 ], [ 471.797913312912, -110.65922677516937, 98.1791615486145, 0.32266275965787816 ], [ 471.53767943382263, -110.98319292068481, 98.21616113185883, 0.4019632366437493 ], [ 471.58321738243103, -111.64461076259613, 98.4615907073021, 0.752940509568698 ], [ 471.8729853630066, -112.25245147943497, 98.8491103053093, 0.8283149874325745 ], [ 472.23949432373047, -112.9891574382782, 99.13617372512817, 1.2220276965549817 ], [ 472.19833731651306, -113.14865946769714, 99.11257028579712, 0.1344255265097333 ], [ 471.7372953891754, -114.32939022779465, 98.95529597997665, 0.46405966717572 ], [ 471.27509117126465, -115.37854373455048, 98.83590042591095, 0.33556546883656846 ], [ 470.8123505115509, -116.54577404260635, 98.66075217723846, 0.41568672730627626 ], [ 468.54084730148315, -125.95759332180023, 98.05263578891754, 3.256850709505281 ], [ 468.04434061050415, -127.95864045619965, 97.93635457754135, 0.6803136242516329 ], [ 466.75318479537964, -132.8757405281067, 97.42332994937897, 1.501265446095244 ], [ 465.04878997802734, -138.11582326889038, 96.91934287548065, 1.6990786792420858 ], [ 464.2873704433441, -140.2239054441452, 96.68826311826706, 0.634201880531052 ], [ 463.51557970046997, -142.3112154006958, 96.48702293634415, 0.6710365436720716 ], [ 461.31905913352966, -148.59619736671448, 96.15908563137054, 1.9655955073746507 ], [ 460.19744873046875, -155.87562322616577, 96.87748551368713, 2.476238166732308 ], [ 460.0863456726074, -157.8071266412735, 99.19077903032303, 0.8883636241092048 ], [ 460.8059525489807, -156.60016238689423, 103.1566932797432, 1.227401411359002 ], [ 469.0019190311432, -133.232980966568, 124.17123466730118, 13.154126005146834 ], [ 468.2603180408478, -127.55070626735687, 121.89370393753052, 1.806012370689099 ], [ 469.16085481643677, -120.99438905715942, 114.85791206359863, 1.3950081530325555 ], [ 471.3348150253296, -117.0467883348465, 113.48191648721695, 0.8862558354619806 ], [ 476.11477971076965, -109.30580645799637, 115.46096205711365, 2.885375603303403 ], [ 482.62497782707214, -100.5363017320633, 118.9471185207367, 3.6422203374050244 ], [ 486.91871762275696, -95.39701789617538, 120.80421298742294, 2.0553909818805196 ], [ 489.92449045181274, -91.97371453046799, 122.24019318819046, 1.5445050787847734 ], [ 493.2052195072174, -88.49091082811356, 123.24754893779755, 1.534008673259228 ], [ 497.7656304836273, -83.81148427724838, 123.11076372861862, 1.5800288364120265 ], [ 502.25013494491577, -78.88338714838028, 120.88244408369064, 1.1248985727454062 ], [ 504.4797658920288, -76.16361230611801, 118.05140972137451, 0.36226425314070737 ], [ 504.9586892127991, -74.23321902751923, 112.67553269863129, 0.9259078287512869 ], [ 504.2301416397095, -73.53686541318893, 108.23288559913635, 1.2650125542207573 ], [ 502.7565360069275, -73.17056506872177, 104.55070436000824, 0.5984803731955305 ], [ 500.5977749824524, -72.54862785339355, 101.59139335155487, 0.3897680458459791 ], [ 498.7626075744629, -72.14441150426865, 100.40789097547531, 0.16756293682862877 ], [ 497.13021516799927, -71.62202894687653, 99.86557811498642, 0.434728250187133 ], [ 495.5774247646332, -70.73014974594116, 99.04865175485611, 0.6330498384917451 ], [ 494.66970562934875, -70.08381932973862, 97.4685326218605, 0.7846167550749329 ], [ 494.3259060382843, -69.4279670715332, 94.78488564491272, 0.9612229794854422 ], [ 493.51173639297485, -69.5885568857193, 90.22792428731918, 1.5198521926481185 ], [ 492.89509654045105, -69.63885575532913, 88.47497403621674, 0.3499492093772542 ], [ 492.0858144760132, -69.56187635660172, 87.66647428274155, 0.18181937454318092 ], [ 490.0558590888977, -70.0441375374794, 88.03591877222061, 0.8465483791750913 ], [ 487.3320162296295, -71.41244411468506, 90.98231047391891, 0.9126290310668641 ], [ 483.573853969574, -73.61067086458206, 95.2826589345932, 1.1897701444176634 ], [ 476.9265949726105, -77.86422967910767, 100.2873107790947, 1.6635422782819314 ], [ 470.6611931324005, -82.16457813978195, 102.41379588842392, 1.3540107211031196 ], [ 463.70863914489746, -86.99561655521393, 102.02021896839142, 1.7549197408583468 ] ], "repaired": [ [ 482.6417863368988, -86.38282120227814, 102.5238186120987, 1.0699231873185198 ], [ 481.9776117801666, -88.21597695350647, 102.17894613742828, 0.9728050761451552 ], [ 481.3976287841797, -90.10819345712662, 101.83504223823547, 0.8504773789668594 ], [ 480.30874133110046, -93.10565143823624, 101.14873200654984, 1.2298583341403668 ], [ 479.3519675731659, -95.54847329854965, 100.70785880088806, 0.9614919423016002 ], [ 478.06599736213684, -99.0297943353653, 100.23587942123413, 1.3267858316691323 ], [ 477.4029552936554, -100.81177204847336, 99.97809678316116, 0.6936713328363481 ], [ 476.21485590934753, -104.16610538959503, 99.56713020801544, 1.2703303394428638 ], [ 475.4602611064911, -106.38341307640076, 99.41110014915466, 0.8594711955809843 ], [ 474.7545123100281, -108.01244527101517, 99.1920605301857, 0.5771174821707885 ], [ 472.6371765136719, -110.65034568309784, 98.56167435646057, 1.0833204125258757 ], [ 472.2934067249298, -110.67650467157364, 98.39799255132675, 0.260335817409963 ], [ 471.797913312912, -110.65922677516937, 98.1791615486145, 0.32266241764663994 ], [ 471.53767943382263, -110.98319292068481, 98.21616113185883, 0.4019650702462509 ], [ 471.58321738243103, -111.64461076259613, 98.4615907073021, 0.7529392258673852 ], [ 471.8729853630066, -112.25245147943497, 98.8491103053093, 0.8283157170236677 ], [ 472.23949432373047, -112.9891574382782, 99.13617372512817, 1.2220275589464908 ], [ 472.19833731651306, -113.14865946769714, 99.11257028579712, 0.13442664335589818 ], [ 471.7372953891754, -114.32939022779465, 98.95529597997665, 0.4640605999142641 ], [ 471.27509117126465, -115.37854373455048, 98.83590042591095, 0.33556297353446723 ], [ 470.8123505115509, -116.54577404260635, 98.66075217723846, 0.4156891934546834 ], [ 468.54084730148315, -125.95759332180023, 98.05263578891754, 3.256847895058644 ], [ 468.04434061050415, -127.95864045619965, 97.93635457754135, 0.6803129086526134 ], [ 466.75318479537964, -132.8757405281067, 97.42332994937897, 1.5012664932204094 ], [ 465.04878997802734, -138.11582326889038, 96.91934287548065, 1.6990801403202735 ], [ 464.2873704433441, -140.2239054441452, 96.68826311826706, 0.6342015532683041 ], [ 463.51557970046997, -142.3112154006958, 96.48702293634415, 0.671033469675006 ], [ 461.31905913352966, -148.59619736671448, 96.15908563137054, 1.9655989137860297 ], [ 460.19744873046875, -155.87562322616577, 96.87748551368713, 2.476237367660011 ], [ 460.0863456726074, -157.8071266412735, 99.19077903032303, 0.8883626511434112 ], [ 464.5441174507141, -145.52006125450134, 111.6810068488121, 7.1613662360597115 ], [ 469.0019190311432, -133.232980966568, 124.17123466730118, 7.161368802096247 ], [ 468.2603180408478, -127.55070626735687, 121.89370393753052, 1.8060134957442366 ], [ 469.16085481643677, -120.99438905715942, 114.85791206359863, 1.3950095694473457 ], [ 471.3348150253296, -117.0467883348465, 113.48191648721695, 0.8862564237840634 ], [ 476.11477971076965, -109.30580645799637, 115.46096205711365, 2.8853739652251424 ], [ 482.62497782707214, -100.5363017320633, 118.9471185207367, 3.6422207380896228 ], [ 486.91871762275696, -95.39701789617538, 120.80421298742294, 2.0553940867657285 ], [ 489.92449045181274, -91.97371453046799, 122.24019318819046, 1.5445045668637145 ], [ 493.2052195072174, -88.49091082811356, 123.24754893779755, 1.5340079320129971 ], [ 497.7656304836273, -83.81148427724838, 123.11076372861862, 1.5800272662226214 ], [ 502.25013494491577, -78.88338714838028, 120.88244408369064, 1.1249006753755175 ], [ 504.4797658920288, -76.16361230611801, 118.05140972137451, 0.3622646778734997 ], [ 504.9586892127991, -74.23321902751923, 112.67553269863129, 0.9259080256973147 ], [ 504.2301416397095, -73.53686541318893, 108.23288559913635, 1.2650167903645457 ], [ 502.7565360069275, -73.17056506872177, 104.55070436000824, 0.5984779550130415 ], [ 500.5977749824524, -72.54862785339355, 101.59139335155487, 0.3897664203880398 ], [ 498.7626075744629, -72.14441150426865, 100.40789097547531, 0.16756239463815012 ], [ 497.13021516799927, -71.62202894687653, 99.86557811498642, 0.4347273765853793 ], [ 495.5774247646332, -70.73014974594116, 99.04865175485611, 0.6330503397070504 ], [ 494.66970562934875, -70.08381932973862, 97.4685326218605, 0.784617169087389 ], [ 494.3259060382843, -69.4279670715332, 94.78488564491272, 0.9612254123662124 ], [ 493.51173639297485, -69.5885568857193, 90.22792428731918, 1.5198518805558143 ], [ 492.89509654045105, -69.63885575532913, 88.47497403621674, 0.3499489005406492 ], [ 492.0858144760132, -69.56187635660172, 87.66647428274155, 0.18181988538036672 ], [ 490.0558590888977, -70.0441375374794, 88.03591877222061, 0.8465482963437503 ], [ 487.3320162296295, -71.41244411468506, 90.98231047391891, 0.9126324122357385 ], [ 483.573853969574, -73.61067086458206, 95.2826589345932, 1.189766324874909 ], [ 476.9265949726105, -77.86422967910767, 100.2873107790947, 1.6635407898231334 ], [ 470.6611931324005, -82.16457813978195, 102.41379588842392, 1.35401022831763 ], [ 463.70863914489746, -86.99561655521393, 102.02021896839142, 1.75492014830419 ] ] }, "capture_start_seconds": 120.26913237571716, "capture_end_seconds": 120.26913237571716, "video_time_basis": "local_row / 30 fps" } ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet", "events": [ { "confidence": "HIGH", "end": 11524, "event_id": "left:11508-11524:known_gap", "evidence": { "branch_unambiguous": true, "duration_frames": 17, "fit_converged": true, "fit_iterations": 2, "independent_loss_evidence": true, "left_anchor": 11507, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 1.8883926662443438, "prediction_translation_max_mm": 0.0, "reconstructed_max_step_rotation_deg": 0.12942894233738014, "reconstructed_max_step_translation_mm": 0.48175749286052183, "replaced_frames": 17, "review_required": false, "right_anchor": 11525, "right_context_frames": 15, "rotation_inlier_threshold_deg": 2.0, "rotation_residual_p95_deg": 114.91567778285882, "translation_inlier_threshold_mm": 3.0, "translation_residual_p95_mm": 35.90582173242482 }, "kind": "known_gap", "left_context_end": 11507, "method": "robust_se3_hermite", "replaced_frames": [ 11508, 11509, 11510, 11511, 11512, 11513, 11514, 11515, 11516, 11517, 11518, 11519, 11520, 11521, 11522, 11523, 11524 ], "right_context_start": 11525, "seed_frames": [ 11508, 11509, 11510, 11511, 11512, 11513, 11514, 11515, 11516, 11517, 11518, 11519, 11520, 11521, 11522, 11523, 11524 ], "side": "left", "start": 11508, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet::left:11508-11524:known_gap", "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet", "source_start_row": 11508, "source_end_row": 11524, "local_start_row": 5408, "local_end_row": 5424, "local_start_seconds": 180.26666666666668, "local_end_seconds": 180.8, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_middle.mp4#t=179.267,181.800", "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/wrist_left.mp4#t=179.267,181.800", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_left.mp4#t=179.267,181.800", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_right.mp4#t=179.267,181.800" }, "capture_start_seconds": 184.26710653305054, "capture_end_seconds": 184.80454468727112, "video_time_basis": "local_row / 30 fps" }, { "confidence": "MEDIUM", "end": 9206, "event_id": "left:9206-9206:branch_discontinuity", "evidence": { "anchor_rotation_deg": 20.986986089019943, "anchor_translation_mm": 53.34502967643309, "branch_unambiguous": true, "duration_frames": 1, "endpoint_return_consistent": false, "fit_converged": true, "fit_iterations": 0, "left_anchor": 9205, "left_context_frames": 15, "observed_inlier_frames": 1, "physical": true, "prediction_rotation_max_deg": 10.493493044509972, "prediction_translation_max_mm": 26.672514838216546, "reconstructed_max_step_rotation_deg": 13.977465376616701, "reconstructed_max_step_translation_mm": 34.419846139739306, "replaced_frames": 0, "right_anchor": 9207, "right_context_frames": 15, "rotation_inlier_threshold_deg": 5.651300624452402, "rotation_residual_p95_deg": 3.4997602628726066, "translation_inlier_threshold_mm": 20.0, "translation_residual_p95_mm": 7.905862582002085 }, "kind": "branch_discontinuity", "left_context_end": 9205, "method": "endpoint_se3", "replaced_frames": [], "right_context_start": 9207, "seed_frames": [ 9206 ], "side": "left", "start": 9206, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet::left:9206-9206:branch_discontinuity", "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet", "source_start_row": 9206, "source_end_row": 9206, "local_start_row": 3106, "local_end_row": 3106, "local_start_seconds": 103.53333333333333, "local_end_seconds": 103.53333333333333, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_middle.mp4#t=102.533,104.533", "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/wrist_left.mp4#t=102.533,104.533", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_left.mp4#t=102.533,104.533", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_right.mp4#t=102.533,104.533" }, "chart": { "seconds": [ 102.53333333333333, 102.56666666666666, 102.6, 102.63333333333334, 102.66666666666667, 102.7, 102.73333333333333, 102.76666666666667, 102.8, 102.83333333333333, 102.86666666666666, 102.9, 102.93333333333334, 102.96666666666667, 103.0, 103.03333333333333, 103.06666666666666, 103.1, 103.13333333333334, 103.16666666666667, 103.2, 103.23333333333333, 103.26666666666667, 103.3, 103.33333333333333, 103.36666666666666, 103.4, 103.43333333333334, 103.46666666666667, 103.5, 103.53333333333333, 103.56666666666666, 103.6, 103.63333333333334, 103.66666666666667, 103.7, 103.73333333333333, 103.76666666666667, 103.8, 103.83333333333333, 103.86666666666666, 103.9, 103.93333333333334, 103.96666666666667, 104.0, 104.03333333333333, 104.06666666666666, 104.1, 104.13333333333334, 104.16666666666667, 104.2, 104.23333333333333, 104.26666666666667, 104.3, 104.33333333333333, 104.36666666666666, 104.4, 104.43333333333334, 104.46666666666667, 104.5, 104.53333333333333 ], "sampled": false, "raw": [ [ 266.02599024772644, -323.1574296951294, 109.24706608057022, 1.279943942184891 ], [ 272.460401058197, -327.2022604942322, 106.5957099199295, 1.6227327785362229 ], [ 278.32090854644775, -329.7925889492035, 101.83586180210114, 1.7509033896002146 ], [ 284.079372882843, -330.22186160087585, 93.1093692779541, 3.2172579619775785 ], [ 287.4341011047363, -330.5896520614624, 87.43041008710861, 1.0266815590745435 ], [ 287.49680519104004, -329.48973774909973, 88.91845494508743, 1.774389104005074 ], [ 286.75076365470886, -326.26888155937195, 91.33544564247131, 3.0767250342491517 ], [ 287.0325744152069, -326.05478167533875, 91.35692566633224, 0.22899793183473208 ], [ 288.3221507072449, -325.64377784729004, 90.7275527715683, 0.5809680044128726 ], [ 288.67512941360474, -325.57106018066406, 90.46876430511475, 0.19912265075237268 ], [ 290.3337776660919, -324.97432827949524, 90.61000496149063, 0.6353916037214533 ], [ 295.781672000885, -323.10593128204346, 92.14004129171371, 2.4648439797022723 ], [ 295.781672000885, -323.10593128204346, 92.14004129171371, 0.0 ], [ 302.57299542427063, -320.9860622882843, 90.89843928813934, 1.1816147609726417 ], [ 310.78091263771057, -316.07481837272644, 90.42178094387054, 1.948525290778624 ], [ 310.78091263771057, -316.07481837272644, 90.42178094387054, 0.0 ], [ 320.52725553512573, -307.78592824935913, 91.14763885736465, 1.204338949789072 ], [ 324.31307435035706, -303.75152826309204, 90.68293869495392, 0.6272900705956274 ], [ 325.11797547340393, -302.72236466407776, 90.47055244445801, 0.3053640756578454 ], [ 327.78599858283997, -296.1147725582123, 90.00074118375778, 1.2193370888756334 ], [ 328.79459857940674, -288.37335109710693, 89.956134557724, 1.1920479273681202 ], [ 328.8991451263428, -286.84359788894653, 89.90698307752609, 0.1722425362479182 ], [ 329.193651676178, -280.4901897907257, 89.79225903749466, 0.41931542454085674 ], [ 329.8552930355072, -273.7351357936859, 89.17629718780518, 0.992125340244241 ], [ 330.6853175163269, -267.80861616134644, 88.75507861375809, 0.9737363519773184 ], [ 331.5874934196472, -247.6513385772705, 87.79166638851166, 3.4079399299399102 ], [ 331.5487504005432, -245.2334612607956, 87.57595717906952, 0.6731766329872426 ], [ 322.33721017837524, -227.89786756038666, 91.6517972946167, 7.902289377796125 ], [ 313.60989809036255, -221.88575565814972, 95.58894485235214, 4.706765629498876 ], [ 295.08063197135925, -212.2778296470642, 104.37002032995224, 9.614010538125978 ], [ 264.8945152759552, -198.25105369091034, 113.13208192586899, 13.977465376616701 ], [ 247.50667810440063, -190.76202809810638, 115.30077457427979, 7.025174542676379 ], [ 221.7174768447876, -179.5310229063034, 113.06412518024445, 10.404549147724225 ], [ 218.19913387298584, -177.8176873922348, 111.97405308485031, 1.387758592882308 ], [ 212.81352639198303, -174.90366101264954, 109.81268435716629, 2.1820915073729243 ], [ 208.96483957767487, -170.99714279174805, 105.84994405508041, 1.5068689446840198 ], [ 208.3021104335785, -169.614776968956, 104.76890951395035, 0.8632455003603424 ], [ 208.2684338092804, -167.68291592597961, 103.2281294465065, 0.9204080909159219 ], [ 209.60605144500732, -166.8049544095993, 103.92562299966812, 1.541769165377461 ], [ 211.04490756988525, -166.482612490654, 105.74308782815933, 1.0619600542638208 ], [ 215.1469886302948, -164.70268368721008, 105.99453747272491, 0.7955928337729189 ], [ 217.35025942325592, -162.29330003261566, 104.7496497631073, 0.7368854648388969 ], [ 218.72647106647491, -159.84706580638885, 104.12003099918365, 0.6528336112663587 ], [ 221.40741348266602, -157.48834609985352, 105.50838708877563, 0.5140555975030705 ], [ 223.97494316101074, -155.90359270572662, 106.36799782514572, 0.6714540945143209 ], [ 225.8833944797516, -154.00229394435883, 105.59134930372238, 0.7667002098477652 ], [ 227.6795357465744, -152.74852514266968, 104.30806130170822, 1.6311754003141783 ], [ 229.57199811935425, -152.2633582353592, 103.25261950492859, 2.057599453789722 ], [ 231.61396384239197, -151.7171561717987, 101.80456191301346, 1.887327285063928 ], [ 235.19490659236908, -151.52794122695923, 101.13079845905304, 2.821944041287961 ], [ 237.01930046081543, -150.70392191410065, 100.2047061920166, 1.549434512839415 ], [ 238.25404047966003, -149.66467022895813, 99.90144520998001, 0.9505043690011529 ], [ 240.48826098442078, -147.90651202201843, 99.434033036232, 1.6862543652827824 ], [ 241.86325073242188, -146.22077345848083, 99.11731630563736, 1.0763993393327345 ], [ 242.50531196594238, -144.17435228824615, 99.05633330345154, 0.6006083759933696 ], [ 243.7279373407364, -141.22766256332397, 98.80807250738144, 0.7958756247104561 ], [ 245.30233442783356, -138.84341716766357, 98.52980077266693, 0.9719128314614347 ], [ 246.96066975593567, -136.18561625480652, 98.20466488599777, 0.8162528258886547 ], [ 248.6710101366043, -132.39312171936035, 98.04119169712067, 0.6418473386934933 ], [ 250.26240944862366, -129.28612530231476, 97.84704446792603, 0.7259479468206407 ], [ 251.67319178581238, -125.88296830654144, 97.75474667549133, 0.6539106243828096 ] ], "repaired": [ [ 266.02599024772644, -323.1574296951294, 109.24706608057022, 1.279941376587039 ], [ 272.460401058197, -327.2022604942322, 106.5957099199295, 1.6227316720874538 ], [ 278.32090854644775, -329.7925889492035, 101.83586180210114, 1.7509034944601867 ], [ 284.079372882843, -330.22186160087585, 93.1093692779541, 3.2172568002595066 ], [ 287.4341011047363, -330.5896520614624, 87.43041008710861, 1.0266824833717079 ], [ 287.49680519104004, -329.48973774909973, 88.91845494508743, 1.7743899793307338 ], [ 286.75076365470886, -326.26888155937195, 91.33544564247131, 3.076724415404989 ], [ 287.0325744152069, -326.05478167533875, 91.35692566633224, 0.2289966860311052 ], [ 288.3221507072449, -325.64377784729004, 90.7275527715683, 0.5809674377486116 ], [ 288.67512941360474, -325.57106018066406, 90.46876430511475, 0.19912547723056204 ], [ 290.3337776660919, -324.97432827949524, 90.61000496149063, 0.6353916391567456 ], [ 295.781672000885, -323.10593128204346, 92.14004129171371, 2.4648450445610766 ], [ 295.781672000885, -323.10593128204346, 92.14004129171371, 0.0 ], [ 302.57299542427063, -320.9860622882843, 90.89843928813934, 1.1816193532197552 ], [ 310.78091263771057, -316.07481837272644, 90.42178094387054, 1.9485217744531484 ], [ 310.78091263771057, -316.07481837272644, 90.42178094387054, 0.0 ], [ 320.52725553512573, -307.78592824935913, 91.14763885736465, 1.204337072524177 ], [ 324.31307435035706, -303.75152826309204, 90.68293869495392, 0.6272909058821693 ], [ 325.11797547340393, -302.72236466407776, 90.47055244445801, 0.3053623157115757 ], [ 327.78599858283997, -296.1147725582123, 90.00074118375778, 1.2193343774227186 ], [ 328.79459857940674, -288.37335109710693, 89.956134557724, 1.1920490271974629 ], [ 328.8991451263428, -286.84359788894653, 89.90698307752609, 0.17224241448488806 ], [ 329.193651676178, -280.4901897907257, 89.79225903749466, 0.41931549458032696 ], [ 329.8552930355072, -273.7351357936859, 89.17629718780518, 0.9921259622704122 ], [ 330.6853175163269, -267.80861616134644, 88.75507861375809, 0.973734009571809 ], [ 331.5874934196472, -247.6513385772705, 87.79166638851166, 3.4079415857852005 ], [ 331.5487504005432, -245.2334612607956, 87.57595717906952, 0.6731765353769056 ], [ 322.33721017837524, -227.89786756038666, 91.6517972946167, 7.902289563600104 ], [ 313.60989809036255, -221.88575565814972, 95.58894485235214, 4.706764397918632 ], [ 295.08063197135925, -212.2778296470642, 104.37002032995224, 9.614012528215115 ], [ 264.8945152759552, -198.25105369091034, 113.13208192586899, 13.977464002877861 ], [ 247.50667810440063, -190.76202809810638, 115.30077457427979, 7.0251744739754045 ], [ 221.7174768447876, -179.5310229063034, 113.06412518024445, 10.404545910619824 ], [ 218.19913387298584, -177.8176873922348, 111.97405308485031, 1.3877630683623994 ], [ 212.81352639198303, -174.90366101264954, 109.81268435716629, 2.1820910771081405 ], [ 208.96483957767487, -170.99714279174805, 105.84994405508041, 1.506867481471735 ], [ 208.3021104335785, -169.614776968956, 104.76890951395035, 0.8632436009475697 ], [ 208.2684338092804, -167.68291592597961, 103.2281294465065, 0.9204094381255384 ], [ 209.60605144500732, -166.8049544095993, 103.92562299966812, 1.54176908929701 ], [ 211.04490756988525, -166.482612490654, 105.74308782815933, 1.0619582964970822 ], [ 215.1469886302948, -164.70268368721008, 105.99453747272491, 0.7955909136171658 ], [ 217.35025942325592, -162.29330003261566, 104.7496497631073, 0.7368845663013257 ], [ 218.72647106647491, -159.84706580638885, 104.12003099918365, 0.6528372349807925 ], [ 221.40741348266602, -157.48834609985352, 105.50838708877563, 0.5140563698853632 ], [ 223.97494316101074, -155.90359270572662, 106.36799782514572, 0.6714567375175785 ], [ 225.8833944797516, -154.00229394435883, 105.59134930372238, 0.7666976930823317 ], [ 227.6795357465744, -152.74852514266968, 104.30806130170822, 1.6311781662846268 ], [ 229.57199811935425, -152.2633582353592, 103.25261950492859, 2.0575966349501713 ], [ 231.61396384239197, -151.7171561717987, 101.80456191301346, 1.8873280993763233 ], [ 235.19490659236908, -151.52794122695923, 101.13079845905304, 2.821943955440586 ], [ 237.01930046081543, -150.70392191410065, 100.2047061920166, 1.549435437133384 ], [ 238.25404047966003, -149.66467022895813, 99.90144520998001, 0.9505014116715386 ], [ 240.48826098442078, -147.90651202201843, 99.434033036232, 1.6862575138893183 ], [ 241.86325073242188, -146.22077345848083, 99.11731630563736, 1.0763968306919571 ], [ 242.50531196594238, -144.17435228824615, 99.05633330345154, 0.6006105416105321 ], [ 243.7279373407364, -141.22766256332397, 98.80807250738144, 0.79587506849517 ], [ 245.30233442783356, -138.84341716766357, 98.52980077266693, 0.97191190586648 ], [ 246.96066975593567, -136.18561625480652, 98.20466488599777, 0.8162549921096831 ], [ 248.6710101366043, -132.39312171936035, 98.04119169712067, 0.6418463968664805 ], [ 250.26240944862366, -129.28612530231476, 97.84704446792603, 0.7259451205843661 ], [ 251.67319178581238, -125.88296830654144, 97.75474667549133, 0.6539095364951929 ] ] }, "capture_start_seconds": 106.1249270439148, "capture_end_seconds": 106.1249270439148, "video_time_basis": "local_row / 30 fps" }, { "confidence": "MEDIUM", "end": 8851, "event_id": "right:8851-8851:branch_discontinuity", "evidence": { "anchor_rotation_deg": 23.907169901333106, "anchor_translation_mm": 44.4391333317201, "branch_unambiguous": true, "duration_frames": 1, "endpoint_return_consistent": false, "fit_converged": true, "fit_iterations": 0, "left_anchor": 8850, "left_context_frames": 15, "observed_inlier_frames": 1, "physical": true, "prediction_rotation_max_deg": 11.953584950666553, "prediction_translation_max_mm": 22.21956666586005, "reconstructed_max_step_rotation_deg": 13.397196229285298, "reconstructed_max_step_translation_mm": 25.130371048046992, "replaced_frames": 0, "right_anchor": 8852, "right_context_frames": 15, "rotation_inlier_threshold_deg": 10.843206677670306, "rotation_residual_p95_deg": 1.531693193591164, "translation_inlier_threshold_mm": 15.830646477997565, "translation_residual_p95_mm": 3.426902759642317 }, "kind": "branch_discontinuity", "left_context_end": 8850, "method": "endpoint_se3", "replaced_frames": [], "right_context_start": 8852, "seed_frames": [ 8851 ], "side": "right", "start": 8851, "qualified_event_id": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet::right:8851-8851:branch_discontinuity", "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg02.parquet", "source_start_row": 8851, "source_end_row": 8851, "local_start_row": 2751, "local_end_row": 2751, "local_start_seconds": 91.7, "local_end_seconds": 91.7, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_middle.mp4#t=90.700,92.700", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/wrist_right.mp4#t=90.700,92.700", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_left.mp4#t=90.700,92.700", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-11/episode_007_seg02/view_right.mp4#t=90.700,92.700" }, "chart": { "seconds": [ 90.7, 90.73333333333333, 90.76666666666667, 90.8, 90.83333333333333, 90.86666666666666, 90.9, 90.93333333333334, 90.96666666666667, 91.0, 91.03333333333333, 91.06666666666666, 91.1, 91.13333333333334, 91.16666666666667, 91.2, 91.23333333333333, 91.26666666666667, 91.3, 91.33333333333333, 91.36666666666666, 91.4, 91.43333333333334, 91.46666666666667, 91.5, 91.53333333333333, 91.56666666666666, 91.6, 91.63333333333334, 91.66666666666667, 91.7, 91.73333333333333, 91.76666666666667, 91.8, 91.83333333333333, 91.86666666666666, 91.9, 91.93333333333334, 91.96666666666667, 92.0, 92.03333333333333, 92.06666666666666, 92.1, 92.13333333333334, 92.16666666666667, 92.2, 92.23333333333333, 92.26666666666667, 92.3, 92.33333333333333, 92.36666666666666, 92.4, 92.43333333333334, 92.46666666666667, 92.5, 92.53333333333333, 92.56666666666666, 92.6, 92.63333333333334, 92.66666666666667, 92.7 ], "sampled": false, "raw": [ [ 407.03970193862915, -255.8211088180542, 212.6345932483673, 2.6803832698880155 ], [ 416.91815853118896, -262.4295651912689, 216.73768758773804, 3.1155903138839727 ], [ 426.1801242828369, -268.85247230529785, 219.48938071727753, 2.3537346570335704 ], [ 439.3206536769867, -277.46060490608215, 223.38391840457916, 4.18018933143938 ], [ 453.369177877903, -285.161092877388, 230.99462315440178, 4.246020330049803 ], [ 467.4177020788193, -292.86158084869385, 238.6053279042244, 4.24602033004946 ], [ 481.46622627973557, -300.5620688199997, 246.216032654047, 4.24602033004946 ], [ 495.51475048065186, -308.26255679130554, 253.82673740386963, 4.24602033004946 ], [ 519.9068784713745, -315.91495871543884, 268.15086603164673, 7.339917023668772 ], [ 537.8333330154419, -320.91739773750305, 277.7864933013916, 7.4052524925970555 ], [ 553.3128976821899, -324.3877589702606, 285.9755754470825, 4.646087916391416 ], [ 565.4428005218506, -326.64749026298523, 292.5516963005066, 2.9824839182574663 ], [ 578.1363844871521, -327.76162028312683, 298.49234223365784, 2.46322393438754 ], [ 585.3208899497986, -327.78751850128174, 301.1696934700012, 1.0845261710201861 ], [ 593.0305123329163, -328.0385136604309, 302.5546967983246, 1.1850166623392075 ], [ 597.8676080703735, -327.8728127479553, 301.8839657306671, 0.5050580355215725 ], [ 601.7434597015381, -326.68957114219666, 299.76433515548706, 0.5143034882057618 ], [ 604.2627096176147, -325.1596689224243, 296.295702457428, 1.9414868489460837 ], [ 605.9460043907166, -324.4590759277344, 293.97037625312805, 2.4068806106020126 ], [ 608.9571714401245, -323.7685561180115, 291.63476824760437, 3.3016837770291794 ], [ 613.0953431129456, -323.10324907302856, 290.40539264678955, 1.5840882632002211 ], [ 617.9807782173157, -322.4791884422302, 289.5188331604004, 1.0247856611023345 ], [ 622.9420304298401, -321.7817544937134, 288.914293050766, 0.9245967886957139 ], [ 624.713122844696, -321.0411071777344, 288.7232005596161, 0.6107813316236503 ], [ 624.8288750648499, -319.8522627353668, 289.07883167266846, 0.5330056487308316 ], [ 623.4927177429199, -319.0098702907562, 289.8269593715668, 1.131498902288158 ], [ 619.9914216995239, -316.7468011379242, 289.3128991127014, 3.457234754870953 ], [ 614.5975589752197, -312.839537858963, 287.30663657188416, 3.5122027391623 ], [ 602.4017333984375, -306.4176142215729, 282.04044699668884, 6.821682430551266 ], [ 589.7039771080017, -301.2423515319824, 274.62732791900635, 7.937843059854426 ], [ 570.8975791931152, -295.14333605766296, 259.11420583724976, 13.397196229285191 ], [ 558.0803155899048, -292.171448469162, 244.75260078907013, 10.53477845465798 ], [ 547.8951930999756, -290.85883498191833, 230.2676886320114, 9.279411976410083 ], [ 539.0520095825195, -287.88453340530396, 211.48689091205597, 8.511102938292193 ], [ 535.2357029914856, -283.56996178627014, 201.4380544424057, 3.16643630632492 ], [ 533.1785678863525, -277.46233344078064, 195.9739476442337, 2.958259812049837 ], [ 528.179943561554, -270.2581584453583, 188.45729529857635, 7.647395018810899 ], [ 520.3224420547485, -266.4727568626404, 179.33979630470276, 5.00356814060007 ], [ 512.1849775314331, -260.6738805770874, 166.6858047246933, 4.872962960131747 ], [ 498.4845817089081, -253.9248764514923, 149.2423564195633, 1.998062089339668 ], [ 487.002968788147, -250.6459653377533, 137.99269497394562, 2.713719707176876 ], [ 472.700297832489, -248.20134043693542, 127.48388946056366, 2.530851703677965 ], [ 464.51735496520996, -245.93523144721985, 123.46600741147995, 0.8934624870381644 ], [ 458.93362164497375, -242.4726039171219, 120.34144252538681, 1.4535195498005873 ], [ 451.82153582572937, -238.71897161006927, 117.00130254030228, 0.8205523687736768 ], [ 447.02959060668945, -236.81512475013733, 114.99601602554321, 0.6213587454532391 ], [ 441.23193621635437, -235.08796095848083, 112.41966485977173, 0.8817236005468918 ], [ 437.5329315662384, -234.27823185920715, 111.38903349637985, 0.7693953197689978 ], [ 434.5511794090271, -233.6479127407074, 110.99094152450562, 0.690545918789305 ], [ 431.9588243961334, -233.34339261054993, 111.07716709375381, 0.9937575369983188 ], [ 430.93812465667725, -233.67711901664734, 111.379474401474, 0.7485641491823736 ], [ 429.74090576171875, -234.7383052110672, 110.9473705291748, 1.1336544306799727 ], [ 428.56553196907043, -236.56199872493744, 110.52192747592926, 1.339340971798905 ], [ 427.73720622062683, -238.13942074775696, 110.44525355100632, 0.8105602004826585 ], [ 426.1195659637451, -240.49627780914307, 110.60348898172379, 2.066739233901525 ], [ 423.7767457962036, -243.4685379266739, 110.87743937969208, 2.617012259555472 ], [ 422.14423418045044, -245.5030232667923, 111.13286018371582, 1.8189479524294418 ], [ 420.52730917930603, -247.28210270404816, 111.00099980831146, 1.295149437780488 ], [ 418.6536371707916, -249.0447610616684, 110.86756736040115, 1.2935570812606751 ], [ 417.6326096057892, -249.8752623796463, 111.07352375984192, 0.9506627152384115 ], [ 416.8710708618164, -250.3056526184082, 110.94443500041962, 0.8291465255753956 ] ], "repaired": [ [ 407.03970193862915, -255.8211088180542, 212.6345932483673, 2.68038391368858 ], [ 416.91815853118896, -262.4295651912689, 216.73768758773804, 3.1155917427293214 ], [ 426.1801242828369, -268.85247230529785, 219.48938071727753, 2.3537345947758124 ], [ 439.3206536769867, -277.46060490608215, 223.38391840457916, 4.180186168155515 ], [ 453.3691704273224, -285.1610779762268, 230.99462687969208, 4.246021724882351 ], [ 467.41771697998047, -292.86158084869385, 238.6053204536438, 4.246019974049894 ], [ 481.46623373031616, -300.5620837211609, 246.2160289287567, 4.246020560090072 ], [ 495.51475048065186, -308.26255679130554, 253.82673740386963, 4.246019499523762 ], [ 519.9068784713745, -315.91495871543884, 268.15086603164673, 7.339916404571856 ], [ 537.8333330154419, -320.91739773750305, 277.7864933013916, 7.405253491885746 ], [ 553.3128976821899, -324.3877589702606, 285.9755754470825, 4.646087651532317 ], [ 565.4428005218506, -326.64749026298523, 292.5516963005066, 2.982484041291355 ], [ 578.1363844871521, -327.76162028312683, 298.49234223365784, 2.463224074640134 ], [ 585.3208899497986, -327.78751850128174, 301.1696934700012, 1.0845255555928015 ], [ 593.0305123329163, -328.0385136604309, 302.5546967983246, 1.1850170868532408 ], [ 597.8676080703735, -327.8728127479553, 301.8839657306671, 0.5050567033010621 ], [ 601.7434597015381, -326.68957114219666, 299.76433515548706, 0.5143025515132367 ], [ 604.2627096176147, -325.1596689224243, 296.295702457428, 1.9414871578638162 ], [ 605.9460043907166, -324.4590759277344, 293.97037625312805, 2.406881354531008 ], [ 608.9571714401245, -323.7685561180115, 291.63476824760437, 3.3016804004662808 ], [ 613.0953431129456, -323.10324907302856, 290.40539264678955, 1.5840923385467927 ], [ 617.9807782173157, -322.4791884422302, 289.5188331604004, 1.024784900744142 ], [ 622.9420304298401, -321.7817544937134, 288.914293050766, 0.9245971875296511 ], [ 624.713122844696, -321.0411071777344, 288.7232005596161, 0.6107824322089133 ], [ 624.8288750648499, -319.8522627353668, 289.07883167266846, 0.5330006511774952 ], [ 623.4927177429199, -319.0098702907562, 289.8269593715668, 1.1314992246395963 ], [ 619.9914216995239, -316.7468011379242, 289.3128991127014, 3.4572330713587505 ], [ 614.5975589752197, -312.839537858963, 287.30663657188416, 3.512209024459775 ], [ 602.4017333984375, -306.4176142215729, 282.04044699668884, 6.821681429233355 ], [ 589.7039771080017, -301.2423515319824, 274.62732791900635, 7.9378434580758785 ], [ 570.8975791931152, -295.14333605766296, 259.11420583724976, 13.397196294771335 ], [ 558.0803155899048, -292.171448469162, 244.75260078907013, 10.534776976931854 ], [ 547.8951930999756, -290.85883498191833, 230.2676886320114, 9.27941384834969 ], [ 539.0520095825195, -287.88453340530396, 211.48689091205597, 8.511099902083004 ], [ 535.2357029914856, -283.56996178627014, 201.4380544424057, 3.16643702368469 ], [ 533.1785678863525, -277.46233344078064, 195.9739476442337, 2.9582599143734045 ], [ 528.179943561554, -270.2581584453583, 188.45729529857635, 7.647395884722646 ], [ 520.3224420547485, -266.4727568626404, 179.33979630470276, 5.003566181623503 ], [ 512.1849775314331, -260.6738805770874, 166.6858047246933, 4.872962337740919 ], [ 498.4845817089081, -253.9248764514923, 149.2423564195633, 1.998061644975087 ], [ 487.002968788147, -250.6459653377533, 137.99269497394562, 2.713720627913556 ], [ 472.700297832489, -248.20134043693542, 127.48388946056366, 2.5308563547748895 ], [ 464.51735496520996, -245.93523144721985, 123.46600741147995, 0.8934592042686608 ], [ 458.93362164497375, -242.4726039171219, 120.34144252538681, 1.4535214736501059 ], [ 451.82153582572937, -238.71897161006927, 117.00130254030228, 0.8205523336715118 ], [ 447.02959060668945, -236.81512475013733, 114.99601602554321, 0.6213595408589614 ], [ 441.23193621635437, -235.08796095848083, 112.41966485977173, 0.8817219730206973 ], [ 437.5329315662384, -234.27823185920715, 111.38903349637985, 0.7693961934763056 ], [ 434.5511794090271, -233.6479127407074, 110.99094152450562, 0.6905470032960066 ], [ 431.9588243961334, -233.34339261054993, 111.07716709375381, 0.993757271228744 ], [ 430.93812465667725, -233.67711901664734, 111.379474401474, 0.7485649856798022 ], [ 429.74090576171875, -234.7383052110672, 110.9473705291748, 1.1336542972636146 ], [ 428.56553196907043, -236.56199872493744, 110.52192747592926, 1.339343475635721 ], [ 427.73720622062683, -238.13942074775696, 110.44525355100632, 0.8105604117763948 ], [ 426.1195659637451, -240.49627780914307, 110.60348898172379, 2.0667404075249323 ], [ 423.7767457962036, -243.4685379266739, 110.87743937969208, 2.617010474175997 ], [ 422.14423418045044, -245.5030232667923, 111.13286018371582, 1.8189488386848605 ], [ 420.52730917930603, -247.28210270404816, 111.00099980831146, 1.2951509869989084 ], [ 418.6536371707916, -249.0447610616684, 110.86756736040115, 1.2935561327101286 ], [ 417.6326096057892, -249.8752623796463, 111.07352375984192, 0.950662062335189 ], [ 416.8710708618164, -250.3056526184082, 110.94443500041962, 0.8291463586952834 ] ] }, "capture_start_seconds": 93.99189257621765, "capture_end_seconds": 93.99189257621765, "video_time_basis": "local_row / 30 fps" } ]}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_007_seg03.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_007.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-11/episode_008_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-11/episode_008.parquet", "events": []}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_000.parquet", "events": [ { "confidence": "LOW", "end": 25428, "event_id": "left:25409-25428:known_gap", "evidence": { "branch_unambiguous": true, "duration_frames": 20, "fit_converged": true, "fit_iterations": 2, "left_anchor": 25408, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 29.58022541080827, "prediction_translation_max_mm": 120.02576739275884, "reconstructed_max_step_rotation_deg": 1.1241443343272723, "reconstructed_max_step_translation_mm": 5.210175221216358, "rejection": "incompatible_two_sided_prediction", "replaced_frames": 20, "right_anchor": 25429, "right_context_frames": 15, "rotation_inlier_threshold_deg": 10.16446838233392, "rotation_residual_p95_deg": 65.12822399810119, "translation_inlier_threshold_mm": 13.330843682314375, "translation_residual_p95_mm": 39.63937965121875 }, "kind": "known_gap", "left_context_end": 25408, "method": "unrepaired_ambiguous_branch", "replaced_frames": [], "right_context_start": 25429, "seed_frames": [ 25409, 25410, 25411, 25412, 25413, 25414, 25415, 25416, 25417, 25418, 25419, 25420, 25421, 25422, 25423, 25424, 25425, 25426, 25427, 25428 ], "side": "left", "start": 25409, "qualified_event_id": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet::left:25409-25428:known_gap", "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet", "source_start_row": 25409, "source_end_row": 25428, "local_start_row": 25409, "local_end_row": 25428, "local_start_seconds": 846.9666666666667, "local_end_seconds": 847.6, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_middle.mp4#t=845.967,848.600", "wrist_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/wrist_left.mp4#t=845.967,848.600", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_left.mp4#t=845.967,848.600", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_right.mp4#t=845.967,848.600" }, "chart": { "seconds": [ 845.9666666666667, 846.0, 846.0333333333333, 846.0666666666667, 846.1, 846.1333333333333, 846.1666666666666, 846.2, 846.2333333333333, 846.2666666666667, 846.3, 846.3333333333334, 846.3666666666667, 846.4, 846.4333333333333, 846.4666666666667, 846.5, 846.5333333333333, 846.5666666666667, 846.6, 846.6333333333333, 846.6666666666666, 846.7, 846.7333333333333, 846.7666666666667, 846.8, 846.8333333333334, 846.8666666666667, 846.9, 846.9333333333333, 846.9666666666667, 847.0, 847.0333333333333, 847.0666666666667, 847.1, 847.1333333333333, 847.1666666666666, 847.2, 847.2333333333333, 847.2666666666667, 847.3, 847.3333333333334, 847.3666666666667, 847.4, 847.4333333333333, 847.4666666666667, 847.5, 847.5333333333333, 847.5666666666667, 847.6, 847.6333333333333, 847.6666666666666, 847.7, 847.7333333333333, 847.7666666666667, 847.8, 847.8333333333334, 847.8666666666667, 847.9, 847.9333333333333, 847.9666666666667, 848.0, 848.0333333333333, 848.0666666666667, 848.1, 848.1333333333333, 848.1666666666666, 848.2, 848.2333333333333, 848.2666666666667, 848.3, 848.3333333333334, 848.3666666666667, 848.4, 848.4333333333333, 848.4666666666667, 848.5, 848.5333333333333, 848.5666666666667, 848.6 ], "sampled": false, "raw": [ [ 287.83875703811646, -304.62267994880676, 114.3956109881401, 0.30968054059940286 ], [ 286.4469587802887, -303.7014603614807, 114.51622098684311, 0.3549812314414388 ], [ 284.7020626068115, -302.5079667568207, 114.91329222917557, 0.4862926133703677 ], [ 282.02277421951294, -300.50843954086304, 115.80575257539749, 0.836993326766165 ], [ 279.64454889297485, -298.67929220199585, 116.48748815059662, 0.8045450449999282 ], [ 276.86068415641785, -296.39220237731934, 117.30382591485977, 1.062330347544654 ], [ 272.31863141059875, -292.1760678291321, 118.47323179244995, 2.0265921268938882 ], [ 268.5332000255585, -288.4897291660309, 119.33870613574982, 1.755409060983253 ], [ 263.2598280906677, -283.2823097705841, 120.42056024074554, 2.2402120425405783 ], [ 259.3441903591156, -279.0164053440094, 121.29242718219757, 1.623735511597987 ], [ 255.56397438049316, -274.34372901916504, 122.34102189540863, 1.6280687174970734 ], [ 251.11815333366394, -267.248272895813, 124.87819045782089, 2.633785105066782 ], [ 248.02571535110474, -262.42539286613464, 129.24017012119293, 2.7124414295200516 ], [ 246.2460696697235, -259.5410346984863, 135.05631685256958, 1.3400188139683147 ], [ 249.12311136722565, -257.3968768119812, 140.9979611635208, 1.8299835221316816 ], [ 255.6101679801941, -256.99368119239807, 141.3968950510025, 3.5012392923289615 ], [ 267.98778772354126, -257.7456831932068, 137.14013993740082, 5.977300729893008 ], [ 276.74493193626404, -257.87219405174255, 131.97624683380127, 3.246278281356913 ], [ 284.54604744911194, -257.4864327907562, 125.64757466316223, 2.4670174353217855 ], [ 291.10080003738403, -258.45205783843994, 114.34192210435867, 9.157549265761528 ], [ 295.74036598205566, -257.5708031654358, 107.85229504108429, 1.5493712755484643 ], [ 300.70754885673523, -254.92742657661438, 105.12711852788925, 7.198850326305885 ], [ 302.84151434898376, -254.2978823184967, 101.27852857112885, 1.346959462672298 ], [ 302.3383319377899, -256.08429312705994, 96.97545319795609, 6.575046990242264 ], [ 304.1363060474396, -256.7814886569977, 94.14903819561005, 0.717855614178061 ], [ 308.7144196033478, -256.5770447254181, 90.70130437612534, 6.213394988593225 ], [ 307.9581558704376, -258.5946321487427, 83.71956646442413, 9.753489808309752 ], [ 311.63549423217773, -257.64307379722595, 82.85784721374512, 8.160426107318992 ], [ 311.47265434265137, -256.84821605682373, 83.11618864536285, 1.0185576647181083 ], [ 310.15583872795105, -256.03124499320984, 83.13044905662537, 1.4419626433277277 ], [ 306.45155906677246, -257.89902607599896, 88.8102725148201, 19.547493353240515 ], [ 302.7472794055939, -259.766807158788, 94.49009597301483, 19.547493353240515 ], [ 299.0429997444153, -261.63458824157715, 100.16991943120956, 19.547493353240515 ], [ 308.92300605773926, -255.69239258766174, 83.69669318199158, 56.30326619931805 ], [ 298.4730899333954, -263.3991539478302, 100.63933581113815, 60.508997637143054 ], [ 298.61876368522644, -263.4347081184387, 100.49222409725189, 0.79452009608457 ], [ 297.81971871852875, -263.5054886341095, 100.78205168247223, 0.9199802261747388 ], [ 297.02067375183105, -263.5762691497803, 101.07187926769257, 0.9199802261747388 ], [ 299.0429401397705, -260.58173179626465, 99.14891421794891, 12.562544852974401 ], [ 299.5223104953766, -259.67514514923096, 98.3288586139679, 4.654459037597948 ], [ 297.2531020641327, -261.43327355384827, 100.22799670696259, 8.404211516320187 ], [ 296.82719707489014, -261.72155141830444, 100.3727838397026, 0.38075712663396133 ], [ 297.27302491664886, -261.4552825689316, 99.879439920187, 2.47685672113217 ], [ 297.7188527584076, -261.1890137195587, 99.38609600067139, 2.47685672113217 ], [ 296.985387802124, -261.92277669906616, 99.99685734510422, 2.950995359058886 ], [ 296.91872000694275, -262.3162269592285, 100.1523956656456, 1.0788599858235337 ], [ 298.3560860157013, -261.4460587501526, 99.32195395231247, 5.773412293859073 ], [ 296.42608761787415, -264.20098543167114, 101.20032727718353, 10.160159250541096 ], [ 299.8750905195872, -262.31802503267926, 95.73508054018022, 18.376876621999287 ], [ 303.3240934213003, -260.4350646336873, 90.26983380317688, 18.376876621999365 ], [ 306.7730963230133, -258.55210423469543, 84.80458706617355, 18.376876621999365 ], [ 307.30047821998596, -258.9484751224518, 84.33738350868225, 0.895759422937142 ], [ 308.4471821784973, -259.8506808280945, 83.44506472349167, 1.6663582008083708 ], [ 309.4472885131836, -260.79100370407104, 82.68500119447708, 1.33335443938006 ], [ 310.38379669189453, -261.92471385002136, 82.11658149957657, 0.9798751840926763 ], [ 311.4562928676605, -264.0001177787781, 81.76560699939728, 1.1011101270402903 ], [ 312.1500611305237, -266.51260256767273, 81.76075667142868, 1.1618302378377408 ], [ 312.6705586910248, -269.53092217445374, 82.07525312900543, 1.4605563726876785 ], [ 313.4174942970276, -274.1166949272156, 82.87405222654343, 2.7386210679248326 ], [ 314.53195214271545, -279.0995240211487, 83.74817669391632, 2.4902257103976977 ], [ 315.65767526626587, -284.0711176395416, 84.71626788377762, 3.1030877236646313 ], [ 317.8543448448181, -290.38724303245544, 85.79021692276001, 3.1811083823589406 ], [ 319.35420632362366, -293.80643367767334, 86.45369857549667, 1.9771584365337935 ], [ 321.02271914482117, -296.7956066131592, 86.80874109268188, 1.4328510441285256 ], [ 323.0038583278656, -299.32087659835815, 87.02840656042099, 1.107609660685783 ], [ 324.0295946598053, -300.25893449783325, 86.99427545070648, 0.2615320319516599 ], [ 324.67982172966003, -300.9750247001648, 86.81835234165192, 0.3933108541740634 ], [ 324.82844591140747, -301.35464668273926, 86.7825523018837, 0.33539575068473193 ], [ 324.8268961906433, -301.7062544822693, 86.85534447431564, 0.2670883612040739 ], [ 324.79116320610046, -301.88122391700745, 86.94441616535187, 0.31683231742420354 ], [ 324.97459650039673, -302.3075461387634, 86.88989281654358, 0.4791139571993126 ], [ 325.46788454055786, -303.10049653053284, 86.74144744873047, 0.6359627258170248 ], [ 326.33376121520996, -304.47301268577576, 86.54715120792389, 0.5634556952841742 ], [ 327.242910861969, -305.92668056488037, 86.47706359624863, 0.31353957898544543 ], [ 328.4637928009033, -307.8799247741699, 86.49381250143051, 0.5136826355840761 ], [ 330.69220185279846, -311.0445737838745, 86.5376740694046, 0.9825570087647815 ], [ 332.66520500183105, -313.6473298072815, 86.67613565921783, 0.8635762687757502 ], [ 335.73117852211, -317.47186183929443, 86.94154769182205, 1.4296037834998752 ], [ 338.3660018444061, -320.6148147583008, 87.08512037992477, 1.284996298248242 ], [ 340.9656286239624, -323.83832335472107, 87.57978677749634, 1.2250238935555777 ] ], "repaired": [ [ 287.83875703811646, -304.62267994880676, 114.3956109881401, 0.30968171327191935 ], [ 286.4469587802887, -303.7014603614807, 114.51622098684311, 0.3549786811080562 ], [ 284.7020626068115, -302.5079667568207, 114.91329222917557, 0.48629280529376245 ], [ 282.02277421951294, -300.50843954086304, 115.80575257539749, 0.8369952752086003 ], [ 279.64454889297485, -298.67929220199585, 116.48748815059662, 0.8045434504831638 ], [ 276.86068415641785, -296.39220237731934, 117.30382591485977, 1.0623311179740096 ], [ 272.31863141059875, -292.1760678291321, 118.47323179244995, 2.0265916919108857 ], [ 268.5332000255585, -288.4897291660309, 119.33870613574982, 1.7554087834383056 ], [ 263.2598280906677, -283.2823097705841, 120.42056024074554, 2.2402158814737176 ], [ 259.3441903591156, -279.0164053440094, 121.29242718219757, 1.6237334107183474 ], [ 255.56397438049316, -274.34372901916504, 122.34102189540863, 1.6280694625961036 ], [ 251.11815333366394, -267.248272895813, 124.87819045782089, 2.633782229437317 ], [ 248.02571535110474, -262.42539286613464, 129.24017012119293, 2.7124416469135424 ], [ 246.2460696697235, -259.5410346984863, 135.05631685256958, 1.3400189794617583 ], [ 249.12311136722565, -257.3968768119812, 140.9979611635208, 1.8299823657809438 ], [ 255.6101679801941, -256.99368119239807, 141.3968950510025, 3.501238348447552 ], [ 267.98778772354126, -257.7456831932068, 137.14013993740082, 5.977302890651232 ], [ 276.74493193626404, -257.87219405174255, 131.97624683380127, 3.2462766448861005 ], [ 284.54604744911194, -257.4864327907562, 125.64757466316223, 2.467017870357393 ], [ 291.10080003738403, -258.45205783843994, 114.34192210435867, 9.157549168422355 ], [ 295.74036598205566, -257.5708031654358, 107.85229504108429, 1.5493731323176956 ], [ 300.70754885673523, -254.92742657661438, 105.12711852788925, 7.198851431597693 ], [ 302.84151434898376, -254.2978823184967, 101.27852857112885, 1.3469589033647296 ], [ 302.3383319377899, -256.08429312705994, 96.97545319795609, 6.5750475020824055 ], [ 304.1363060474396, -256.7814886569977, 94.14903819561005, 0.7178583395501069 ], [ 308.7144196033478, -256.5770447254181, 90.70130437612534, 6.2133952553365095 ], [ 307.9581558704376, -258.5946321487427, 83.71956646442413, 9.753491051265453 ], [ 311.63549423217773, -257.64307379722595, 82.85784721374512, 8.160426092534301 ], [ 311.47265434265137, -256.84821605682373, 83.11618864536285, 1.0185581692340389 ], [ 310.15583872795105, -256.03124499320984, 83.13044905662537, 1.4419638186110126 ], [ 306.45155906677246, -257.8990161418915, 88.8102725148201, 19.54749281405072 ], [ 302.7472794055939, -259.7668170928955, 94.49009597301483, 19.547492569676336 ], [ 299.0429997444153, -261.63458824157715, 100.16991943120956, 19.547492740872503 ], [ 308.92300605773926, -255.69239258766174, 83.69669318199158, 56.30326501557877 ], [ 298.4730899333954, -263.3991539478302, 100.63933581113815, 60.50899879435414 ], [ 298.61876368522644, -263.4347081184387, 100.49222409725189, 0.7945212208322786 ], [ 297.81973361968994, -263.5054886341095, 100.78205168247223, 0.9199802614307054 ], [ 297.02067375183105, -263.5762691497803, 101.07187926769257, 0.9199809981007125 ], [ 299.0429401397705, -260.58173179626465, 99.14891421794891, 12.562548241034992 ], [ 299.5223104953766, -259.67514514923096, 98.3288586139679, 4.654457549566833 ], [ 297.2531020641327, -261.43327355384827, 100.22799670696259, 8.40421058169135 ], [ 296.82719707489014, -261.72155141830444, 100.3727838397026, 0.3807571346209403 ], [ 297.27303981781006, -261.4552974700928, 99.8794436454773, 2.476858782222544 ], [ 297.7188527584076, -261.1890137195587, 99.38609600067139, 2.4768516455331535 ], [ 296.985387802124, -261.92277669906616, 99.99685734510422, 2.9509941212174393 ], [ 296.91872000694275, -262.3162269592285, 100.1523956656456, 1.0788618842541822 ], [ 298.3560860157013, -261.4460587501526, 99.32195395231247, 5.773412341312107 ], [ 296.42608761787415, -264.20098543167114, 101.20032727718353, 10.160155146299514 ], [ 299.87508058547974, -262.3180150985718, 95.7350805401802, 18.37687612875972 ], [ 303.3241033554077, -260.4350745677948, 90.26983380317688, 18.37687882386254 ], [ 306.7730963230133, -258.55210423469543, 84.80458706617355, 18.376872947029167 ], [ 307.30047821998596, -258.9484751224518, 84.33738350868225, 0.8957581318538925 ], [ 308.4471821784973, -259.8506808280945, 83.44506472349167, 1.6663597828864087 ], [ 309.4472885131836, -260.79100370407104, 82.68500119447708, 1.3333540704368132 ], [ 310.38379669189453, -261.92471385002136, 82.11658149957657, 0.9798764978372154 ], [ 311.4562928676605, -264.0001177787781, 81.76560699939728, 1.1011087354991336 ], [ 312.1500611305237, -266.51260256767273, 81.76075667142868, 1.1618294326517724 ], [ 312.6705586910248, -269.53092217445374, 82.07525312900543, 1.4605586913924025 ], [ 313.4174942970276, -274.1166949272156, 82.87405222654343, 2.738620686178424 ], [ 314.53195214271545, -279.0995240211487, 83.74817669391632, 2.49022781708489 ], [ 315.65767526626587, -284.0711176395416, 84.71626788377762, 3.1030847078798023 ], [ 317.8543448448181, -290.38724303245544, 85.79021692276001, 3.1811081188209123 ], [ 319.35420632362366, -293.80643367767334, 86.45369857549667, 1.9771568890554754 ], [ 321.02271914482117, -296.7956066131592, 86.80874109268188, 1.4328517672440524 ], [ 323.0038583278656, -299.32087659835815, 87.02840656042099, 1.107610288441884 ], [ 324.0295946598053, -300.25893449783325, 86.99427545070648, 0.26153261830690516 ], [ 324.67982172966003, -300.9750247001648, 86.81835234165192, 0.3933118876506543 ], [ 324.82844591140747, -301.35464668273926, 86.7825523018837, 0.3353994796492204 ], [ 324.8268961906433, -301.7062544822693, 86.85534447431564, 0.26708763218663223 ], [ 324.79116320610046, -301.88122391700745, 86.94441616535187, 0.31683153337846115 ], [ 324.97459650039673, -302.3075461387634, 86.88989281654358, 0.4791135560900302 ], [ 325.46788454055786, -303.10049653053284, 86.74144744873047, 0.6359612977401633 ], [ 326.33376121520996, -304.47301268577576, 86.54715120792389, 0.5634544668543481 ], [ 327.242910861969, -305.92668056488037, 86.47706359624863, 0.31354033011347565 ], [ 328.4637928009033, -307.8799247741699, 86.49381250143051, 0.5136829362881316 ], [ 330.69220185279846, -311.0445737838745, 86.5376740694046, 0.9825574516649365 ], [ 332.66520500183105, -313.6473298072815, 86.67613565921783, 0.8635755123101464 ], [ 335.73117852211, -317.47186183929443, 86.94154769182205, 1.4296045194694034 ], [ 338.3660018444061, -320.6148147583008, 87.08512037992477, 1.2849970658817662 ], [ 340.9656286239624, -323.83832335472107, 87.57978677749634, 1.2250236844201465 ] ] }, "capture_start_seconds": 853.8774020671844, "capture_end_seconds": 854.5156986713409, "video_time_basis": "local_row / 30 fps" }, { "confidence": "LOW", "end": 18269, "event_id": "right:18241-18269:known_gap", "evidence": { "branch_unambiguous": true, "duration_frames": 29, "fit_converged": true, "fit_iterations": 2, "left_anchor": 18240, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 25.834501740871318, "prediction_translation_max_mm": 15.090656088135642, "reconstructed_max_step_rotation_deg": 1.1326677708465143, "reconstructed_max_step_translation_mm": 0.5728805670187909, "rejection": "incompatible_two_sided_prediction", "replaced_frames": 29, "right_anchor": 18270, "right_context_frames": 15, "rotation_inlier_threshold_deg": 5.304836298218591, "rotation_residual_p95_deg": 17.994014368462977, "translation_inlier_threshold_mm": 4.795698479997411, "translation_residual_p95_mm": 6.951045398426912 }, "kind": "known_gap", "left_context_end": 18240, "method": "unrepaired_ambiguous_branch", "replaced_frames": [], "right_context_start": 18270, "seed_frames": [ 18241, 18242, 18243, 18244, 18245, 18246, 18247, 18248, 18249, 18250, 18251, 18252, 18253, 18254, 18255, 18256, 18257, 18258, 18259, 18260, 18261, 18262, 18263, 18264, 18265, 18266, 18267, 18268, 18269 ], "side": "right", "start": 18241, "qualified_event_id": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet::right:18241-18269:known_gap", "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet", "source_start_row": 18241, "source_end_row": 18269, "local_start_row": 18241, "local_end_row": 18269, "local_start_seconds": 608.0333333333333, "local_end_seconds": 608.9666666666667, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_middle.mp4#t=607.033,609.967", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/wrist_right.mp4#t=607.033,609.967", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_left.mp4#t=607.033,609.967", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_right.mp4#t=607.033,609.967" }, "chart": { "seconds": [ 607.0333333333333, 607.0666666666667, 607.1, 607.1333333333333, 607.1666666666666, 607.2, 607.2333333333333, 607.2666666666667, 607.3, 607.3333333333334, 607.3666666666667, 607.4, 607.4333333333333, 607.4666666666667, 607.5, 607.5333333333333, 607.5666666666667, 607.6, 607.6333333333333, 607.6666666666666, 607.7, 607.7333333333333, 607.7666666666667, 607.8, 607.8333333333334, 607.8666666666667, 607.9, 607.9333333333333, 607.9666666666667, 608.0, 608.0333333333333, 608.0666666666667, 608.1, 608.1333333333333, 608.1666666666666, 608.2, 608.2333333333333, 608.2666666666667, 608.3, 608.3333333333334, 608.3666666666667, 608.4, 608.4333333333333, 608.4666666666667, 608.5, 608.5333333333333, 608.5666666666667, 608.6, 608.6333333333333, 608.6666666666666, 608.7, 608.7333333333333, 608.7666666666667, 608.8, 608.8333333333334, 608.8666666666667, 608.9, 608.9333333333333, 608.9666666666667, 609.0, 609.0333333333333, 609.0666666666667, 609.1, 609.1333333333333, 609.1666666666666, 609.2, 609.2333333333333, 609.2666666666667, 609.3, 609.3333333333334, 609.3666666666667, 609.4, 609.4333333333333, 609.4666666666667, 609.5, 609.5333333333333, 609.5666666666667, 609.6, 609.6333333333333, 609.6666666666666, 609.7, 609.7333333333333, 609.7666666666667, 609.8, 609.8333333333334, 609.8666666666667, 609.9, 609.9333333333333, 609.9666666666667 ], "sampled": false, "raw": [ [ 431.3232898712158, -384.27117466926575, 72.46900349855423, 0.2014582746989268 ], [ 431.380957365036, -385.1749897003174, 72.05665856599808, 0.7524318329132165 ], [ 431.31959438323975, -385.86685061454773, 71.6843232512474, 0.608467634481723 ], [ 431.41886591911316, -386.2491250038147, 71.42627239227295, 0.4248531223334273 ], [ 431.8299889564514, -387.0321810245514, 71.23274356126785, 0.7215748863342543 ], [ 432.1843385696411, -387.80224323272705, 71.1081475019455, 0.7496697823470688 ], [ 432.6546788215637, -388.14520835876465, 71.06754183769226, 0.7466309524096729 ], [ 432.9459071159363, -387.7454400062561, 71.36942446231842, 0.3934078473478845 ], [ 433.1085681915283, -387.041836977005, 71.88565284013748, 0.5383150138833217 ], [ 433.31828713417053, -387.0577812194824, 71.98257744312286, 0.24088213355621665 ], [ 433.37154388427734, -387.7977430820465, 71.54951989650726, 0.600752587305908 ], [ 433.4258735179901, -388.4184658527374, 71.34462147951126, 0.564395951070828 ], [ 433.40548872947693, -388.7379765510559, 71.15480303764343, 0.3235568084286885 ], [ 433.3363473415375, -388.9404833316803, 71.03342562913895, 0.16083278261822173 ], [ 433.2759380340576, -388.99099826812744, 70.98168134689331, 0.14858850229721055 ], [ 433.2578480243683, -388.96727561950684, 70.97900658845901, 0.07955057427115923 ], [ 433.33175778388977, -389.0331983566284, 71.09128683805466, 0.377113374761655 ], [ 433.33420157432556, -388.6948227882385, 71.00728899240494, 0.5004286195244619 ], [ 433.4241449832916, -388.18028569221497, 71.10005617141724, 0.580024924761252 ], [ 433.5927963256836, -387.4585032463074, 71.81740552186966, 0.5811388771266103 ], [ 433.1834614276886, -386.2738907337189, 71.40316069126129, 2.207194469066038 ], [ 433.3309233188629, -385.39278507232666, 71.49896770715714, 0.5409416473046472 ], [ 434.1488629579544, -384.6781551837921, 74.01271536946297, 8.122339688703399 ], [ 434.9668025970459, -383.96352529525757, 76.5264630317688, 8.122339688703219 ], [ 435.59449911117554, -383.38151574134827, 77.30764895677567, 2.557839238910028 ], [ 435.7207864522934, -382.8025907278061, 77.52903550863266, 0.43996850768576506 ], [ 435.84707379341125, -382.2236657142639, 77.75042206048965, 0.4399685076791379 ], [ 435.3255331516266, -382.64110684394836, 76.95252448320389, 1.8168757633492416 ], [ 435.09331345558167, -382.8537166118622, 77.24093645811081, 1.618112708910672 ], [ 434.5029890537262, -383.55299830436707, 76.63954794406891, 0.7810726572363977 ], [ 433.4009289741516, -384.53006744384766, 70.59325277805328, 17.721303805753355 ], [ 433.27662348747253, -384.8331570625305, 70.38184255361557, 0.3515325584970709 ], [ 433.39529633522034, -385.03628969192505, 70.44874876737595, 0.2553478013940264 ], [ 433.57357382774353, -384.680300951004, 70.77524065971375, 0.22156935060786656 ], [ 433.80188941955566, -383.67611169815063, 71.24161720275879, 1.1619493867325494 ], [ 434.0122938156128, -382.3555111885071, 71.92368060350418, 1.1761767970924155 ], [ 434.4278573989868, -381.19059801101685, 72.67706841230392, 0.8867084650484227 ], [ 434.8340332508087, -379.4257640838623, 73.45722615718842, 1.7030549726054556 ], [ 435.1080656051636, -378.3523440361023, 73.85292649269104, 0.9959664109821083 ], [ 435.1256787776947, -377.5692880153656, 74.2151066660881, 0.7179413517915832 ], [ 434.8631501197815, -377.12913751602173, 74.22663271427155, 0.5460144012122867 ], [ 434.50284004211426, -376.9030272960663, 74.15753602981567, 0.39851305406489923 ], [ 433.9140057563782, -376.56497955322266, 73.96673411130905, 0.7054706621232878 ], [ 433.40450525283813, -376.30030512809753, 73.90642166137695, 0.4190646770565121 ], [ 433.05182456970215, -375.91445446014404, 73.86582344770432, 0.4193654010825786 ], [ 432.82777070999146, -375.3817677497864, 73.90276342630386, 0.44844445638354374 ], [ 432.6561987400055, -374.71336126327515, 73.73502850532532, 1.0706691926092913 ], [ 432.6997399330139, -374.59149956703186, 73.7968236207962, 0.14168538452734677 ], [ 432.82806873321533, -375.1358389854431, 74.06618446111679, 1.1823098614175178 ], [ 432.7220618724823, -375.6610155105591, 73.86501133441925, 0.42447534367813944 ], [ 432.62338638305664, -376.3868510723114, 73.67012649774551, 0.7609641531490925 ], [ 432.5353801250458, -376.8095076084137, 73.41213524341583, 0.3232186389969838 ], [ 432.4893653392792, -377.08228826522827, 73.30723851919174, 0.24680412166093368 ], [ 432.43688344955444, -377.21049785614014, 73.27823340892792, 0.1823854957397843 ], [ 432.13018774986267, -377.14141607284546, 72.81580567359924, 1.196282634221252 ], [ 432.0570230484009, -377.1328628063202, 72.79662787914276, 0.12583044411017982 ], [ 431.6575825214386, -377.76514887809753, 72.1283033490181, 2.4918778093863696 ], [ 432.97168612480164, -376.2286901473999, 78.46485078334808, 20.31462039479274 ], [ 432.7070415019989, -375.91686844825745, 77.8680220246315, 2.435838955626385 ], [ 431.6406548023224, -376.5743374824524, 72.4179670214653, 18.082062805604437 ], [ 431.68050050735474, -376.1018216609955, 72.63752818107605, 0.4286452731132735 ], [ 431.7387044429779, -375.6812512874603, 72.76565581560135, 0.39674549567816686 ], [ 431.8373203277588, -375.476211309433, 72.89445400238037, 0.22038249280738514 ], [ 431.94007873535156, -375.36823749542236, 73.03102314472198, 0.1757086180642858 ], [ 432.0387840270996, -374.84481930732727, 73.27292859554291, 0.4871404635235868 ], [ 432.7540099620819, -373.4424412250519, 74.38185065984726, 3.274677438298629 ], [ 432.91351199150085, -372.8258013725281, 74.64300841093063, 0.5491376740567234 ], [ 433.12689661979675, -371.8620538711548, 75.01675933599472, 0.8382904220514082 ], [ 433.42533707618713, -371.3502585887909, 75.28969645500183, 0.5148070169859035 ], [ 433.59115719795227, -371.42518162727356, 75.40313154459, 0.10668748909422086 ], [ 433.58758091926575, -371.6394007205963, 75.291208922863, 0.23294227804987072 ], [ 433.4932863712311, -371.7690706253052, 75.21986216306686, 0.12874474820122103 ], [ 433.62700939178467, -372.01201915740967, 75.64954459667206, 1.367006067362803 ], [ 433.0257773399353, -371.4132308959961, 75.058214366436, 1.5168372367867367 ], [ 432.6878786087036, -370.90736627578735, 75.00889897346497, 0.4842669670427513 ], [ 432.2745203971863, -370.5609440803528, 74.90695267915726, 0.4424739036382653 ], [ 431.72237277030945, -370.0231909751892, 74.8247504234314, 0.621578865273515 ], [ 431.39344453811646, -369.791179895401, 74.70154762268066, 0.3641062591422283 ], [ 431.1537444591522, -369.7577714920044, 74.59349930286407, 0.2527696940088729 ], [ 430.7354688644409, -369.974821805954, 74.33106005191803, 0.4261480615271059 ], [ 430.2956461906433, -370.43043971061707, 74.01853799819946, 0.5818324534000812 ], [ 429.62339520454407, -371.63808941841125, 73.60927015542984, 1.2733329203458068 ], [ 428.6722242832184, -372.8664815425873, 72.86585867404938, 1.613158179825336 ], [ 427.98760533332825, -373.1338083744049, 72.5264623761177, 1.0542128801232526 ], [ 427.9864430427551, -371.3298738002777, 73.17709177732468, 1.668631623564206 ], [ 428.83792519569397, -368.600994348526, 75.43035596609116, 0.9633312008997572 ], [ 430.2579462528229, -365.3919994831085, 78.54413986206055, 1.3113109945279584 ], [ 432.5615167617798, -361.9951605796814, 81.75583183765411, 1.4152380816943164 ], [ 434.411883354187, -360.96811294555664, 82.67194032669067, 1.3915120465507405 ] ], "repaired": [ [ 431.3232898712158, -384.27117466926575, 72.46900349855423, 0.20146017177629588 ], [ 431.380957365036, -385.1749897003174, 72.05665856599808, 0.7524366889529566 ], [ 431.31959438323975, -385.86685061454773, 71.6843232512474, 0.6084601715154392 ], [ 431.41886591911316, -386.2491250038147, 71.42627239227295, 0.4248548793453975 ], [ 431.8299889564514, -387.0321810245514, 71.23274356126785, 0.7215726467983066 ], [ 432.1843385696411, -387.80224323272705, 71.1081475019455, 0.7496723489280491 ], [ 432.6546788215637, -388.14520835876465, 71.06754183769226, 0.7466301449557953 ], [ 432.9459071159363, -387.7454400062561, 71.36942446231842, 0.3934094864871941 ], [ 433.1085681915283, -387.041836977005, 71.88565284013748, 0.5383143754900004 ], [ 433.31828713417053, -387.0577812194824, 71.98257744312286, 0.24088291182183214 ], [ 433.37154388427734, -387.7977430820465, 71.54951989650726, 0.600755202657291 ], [ 433.4258735179901, -388.4184658527374, 71.34462147951126, 0.5643924825518201 ], [ 433.40548872947693, -388.7379765510559, 71.15480303764343, 0.3235578683467363 ], [ 433.3363473415375, -388.9404833316803, 71.03342562913895, 0.16083256933177073 ], [ 433.2759380340576, -388.99099826812744, 70.98168134689331, 0.14859025486548477 ], [ 433.2578480243683, -388.96727561950684, 70.97900658845901, 0.07954927099343109 ], [ 433.33175778388977, -389.0331983566284, 71.09128683805466, 0.3771117423552006 ], [ 433.33420157432556, -388.6948227882385, 71.00728899240494, 0.5004286590715535 ], [ 433.4241449832916, -388.18028569221497, 71.10005617141724, 0.5800259533053227 ], [ 433.5927963256836, -387.4585032463074, 71.81740552186966, 0.5811348520660641 ], [ 433.1834614276886, -386.2738907337189, 71.40316069126129, 2.2071930829034847 ], [ 433.3309233188629, -385.39278507232666, 71.49896770715714, 0.540942414169541 ], [ 434.1488480567932, -384.6781551837921, 74.01271164417267, 8.122339873876875 ], [ 434.9668025970459, -383.96352529525757, 76.5264630317688, 8.12234144568203 ], [ 435.59449911117554, -383.38151574134827, 77.30764895677567, 2.5578372522741875 ], [ 435.7208013534546, -382.8026056289673, 77.52903550863266, 0.4399724998955712 ], [ 435.84707379341125, -382.2236657142639, 77.75042206048965, 0.4399683919828291 ], [ 435.3255331516266, -382.64110684394836, 76.95252448320389, 1.816877844657864 ], [ 435.09331345558167, -382.8537166118622, 77.24093645811081, 1.6181132931636228 ], [ 434.5029890537262, -383.55299830436707, 76.63954794406891, 0.7810771013953797 ], [ 433.4009289741516, -384.53006744384766, 70.59325277805328, 17.721303464462306 ], [ 433.27662348747253, -384.8331570625305, 70.38184255361557, 0.35153121921122105 ], [ 433.39529633522034, -385.03628969192505, 70.44874876737595, 0.25534782483074814 ], [ 433.57357382774353, -384.680300951004, 70.77524065971375, 0.22156740477815476 ], [ 433.80188941955566, -383.67611169815063, 71.24161720275879, 1.1619527100247131 ], [ 434.0122938156128, -382.3555111885071, 71.92368060350418, 1.1761752189777477 ], [ 434.4278573989868, -381.19059801101685, 72.67706841230392, 0.8867073027964191 ], [ 434.8340332508087, -379.4257640838623, 73.45722615718842, 1.7030564597560125 ], [ 435.1080656051636, -378.3523440361023, 73.85292649269104, 0.9959630954148234 ], [ 435.1256787776947, -377.5692880153656, 74.2151066660881, 0.7179458737844869 ], [ 434.8631501197815, -377.12913751602173, 74.22663271427155, 0.54601430829323 ], [ 434.50284004211426, -376.9030272960663, 74.15753602981567, 0.39851699338826646 ], [ 433.9140057563782, -376.56497955322266, 73.96673411130905, 0.7054700710181903 ], [ 433.40450525283813, -376.30030512809753, 73.90642166137695, 0.41906384058765556 ], [ 433.05182456970215, -375.91445446014404, 73.86582344770432, 0.4193655331874447 ], [ 432.82777070999146, -375.3817677497864, 73.90276342630386, 0.44844473778091043 ], [ 432.6561987400055, -374.71336126327515, 73.73502850532532, 1.070667226536913 ], [ 432.6997399330139, -374.59149956703186, 73.7968236207962, 0.14168676225229265 ], [ 432.82806873321533, -375.1358389854431, 74.06618446111679, 1.1823118235794614 ], [ 432.7220618724823, -375.6610155105591, 73.86501133441925, 0.42447613381936516 ], [ 432.62338638305664, -376.3868510723114, 73.67012649774551, 0.760963684853812 ], [ 432.5353801250458, -376.8095076084137, 73.41213524341583, 0.32321740497669393 ], [ 432.4893653392792, -377.08228826522827, 73.30723851919174, 0.24680310662600166 ], [ 432.43688344955444, -377.21049785614014, 73.27823340892792, 0.18238943431716745 ], [ 432.13018774986267, -377.14141607284546, 72.81580567359924, 1.1962822925789742 ], [ 432.0570230484009, -377.1328628063202, 72.79662787914276, 0.12582890536556518 ], [ 431.6575825214386, -377.76514887809753, 72.1283033490181, 2.4918766849693337 ], [ 432.97168612480164, -376.2286901473999, 78.46485078334808, 20.314620412274742 ], [ 432.7070415019989, -375.91686844825745, 77.8680220246315, 2.4358398817926097 ], [ 431.6406548023224, -376.5743374824524, 72.4179670214653, 18.082063042053086 ], [ 431.68050050735474, -376.1018216609955, 72.63752818107605, 0.42864708848003097 ], [ 431.7387044429779, -375.6812512874603, 72.76565581560135, 0.3967397279204386 ], [ 431.8373203277588, -375.476211309433, 72.89445400238037, 0.2203818998391833 ], [ 431.94007873535156, -375.36823749542236, 73.03102314472198, 0.175711084098152 ], [ 432.0387840270996, -374.84481930732727, 73.27292859554291, 0.4871391929130305 ], [ 432.7540099620819, -373.4424412250519, 74.38185065984726, 3.2746784834353813 ], [ 432.91351199150085, -372.8258013725281, 74.64300841093063, 0.549135372812373 ], [ 433.12689661979675, -371.8620538711548, 75.01675933599472, 0.8382909286253489 ], [ 433.42533707618713, -371.3502585887909, 75.28969645500183, 0.514806397903109 ], [ 433.59115719795227, -371.42518162727356, 75.40313154459, 0.10668668061554606 ], [ 433.58758091926575, -371.6394007205963, 75.291208922863, 0.23294297140482437 ], [ 433.4932863712311, -371.7690706253052, 75.21986216306686, 0.12874262184185972 ], [ 433.62700939178467, -372.01201915740967, 75.64954459667206, 1.367007358961544 ], [ 433.0257773399353, -371.4132308959961, 75.058214366436, 1.5168367205957094 ], [ 432.6878786087036, -370.90736627578735, 75.00889897346497, 0.4842665830592468 ], [ 432.2745203971863, -370.5609440803528, 74.90695267915726, 0.44247636127790024 ], [ 431.72237277030945, -370.0231909751892, 74.8247504234314, 0.6215785121651313 ], [ 431.39344453811646, -369.791179895401, 74.70154762268066, 0.364103588745553 ], [ 431.1537444591522, -369.7577714920044, 74.59349930286407, 0.25276955050082905 ], [ 430.7354688644409, -369.974821805954, 74.33106005191803, 0.42614869718345894 ], [ 430.2956461906433, -370.43043971061707, 74.01853799819946, 0.581831204350115 ], [ 429.62339520454407, -371.63808941841125, 73.60927015542984, 1.2733380370417011 ], [ 428.6722242832184, -372.8664815425873, 72.86585867404938, 1.6131529664404674 ], [ 427.98760533332825, -373.1338083744049, 72.5264623761177, 1.0542131757184168 ], [ 427.9864430427551, -371.3298738002777, 73.17709177732468, 1.6686329795309307 ], [ 428.83792519569397, -368.600994348526, 75.43035596609116, 0.9633281206082966 ], [ 430.2579462528229, -365.3919994831085, 78.54413986206055, 1.3113109970528132 ], [ 432.5615167617798, -361.9951605796814, 81.75583183765411, 1.415236247575056 ], [ 434.411883354187, -360.96811294555664, 82.67194032669067, 1.3915122104663384 ] ] }, "capture_start_seconds": 612.881019115448, "capture_end_seconds": 613.8230102062225, "video_time_basis": "local_row / 30 fps" }, { "confidence": "LOW", "end": 38434, "event_id": "right:38409-38434:known_gap", "evidence": { "branch_unambiguous": true, "duration_frames": 26, "fit_converged": true, "fit_iterations": 2, "left_anchor": 38408, "left_context_frames": 15, "observed_inlier_frames": 0, "physical": true, "prediction_rotation_max_deg": 91.48977666967491, "prediction_translation_max_mm": 482.74269783409295, "reconstructed_max_step_rotation_deg": 2.2959961154213073, "reconstructed_max_step_translation_mm": 14.468306121058506, "rejection": "incompatible_two_sided_prediction", "replaced_frames": 26, "right_anchor": 38435, "right_context_frames": 15, "rotation_inlier_threshold_deg": 2.4901709260233513, "rotation_residual_p95_deg": 114.0336509687834, "translation_inlier_threshold_mm": 7.385954430037193, "translation_residual_p95_mm": 86.87016362479505 }, "kind": "known_gap", "left_context_end": 38408, "method": "unrepaired_ambiguous_branch", "replaced_frames": [], "right_context_start": 38435, "seed_frames": [ 38409, 38410, 38411, 38412, 38413, 38414, 38415, 38416, 38417, 38418, 38419, 38420, 38421, 38422, 38423, 38424, 38425, 38426, 38427, 38428, 38429, 38430, 38431, 38432, 38433, 38434 ], "side": "right", "start": 38409, "qualified_event_id": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet::right:38409-38434:known_gap", "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg00.parquet", "source_start_row": 38409, "source_end_row": 38434, "local_start_row": 38409, "local_end_row": 38419, "local_start_seconds": 1280.3, "local_end_seconds": 1280.6333333333334, "video_links": { "view_middle": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_middle.mp4#t=1279.300,1281.633", "wrist_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/wrist_right.mp4#t=1279.300,1281.633", "view_left": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_left.mp4#t=1279.300,1281.633", "view_right": "https://huggingface.co/datasets/yxma/React/resolve/396b72f02535b653bb07fac4cd1383c46872b5b3/data/motherboard/videos/2026-09-12/episode_000_seg00/view_right.mp4#t=1279.300,1281.633" }, "chart": { "seconds": [ 1279.3, 1279.3333333333333, 1279.3666666666666, 1279.4, 1279.4333333333334, 1279.4666666666667, 1279.5, 1279.5333333333333, 1279.5666666666666, 1279.6, 1279.6333333333334, 1279.6666666666667, 1279.7, 1279.7333333333333, 1279.7666666666667, 1279.8, 1279.8333333333333, 1279.8666666666666, 1279.9, 1279.9333333333334, 1279.9666666666667, 1280.0, 1280.0333333333333, 1280.0666666666666, 1280.1, 1280.1333333333334, 1280.1666666666667, 1280.2, 1280.2333333333333, 1280.2666666666667, 1280.3, 1280.3333333333333, 1280.3666666666666, 1280.4, 1280.4333333333334, 1280.4666666666667, 1280.5, 1280.5333333333333, 1280.5666666666666, 1280.6, 1280.6333333333334 ], "sampled": false, "raw": [ [ 424.17600750923157, -244.59561705589294, 102.14490443468094, 0.3810462198821703 ], [ 421.0907816886902, -245.92556059360504, 102.37690806388855, 0.15763046268625622 ], [ 419.3500876426697, -246.52475118637085, 102.27581113576889, 0.2954050588730712 ], [ 417.95429587364197, -246.94359302520752, 102.33546048402786, 0.24342799729508532 ], [ 417.5335764884949, -247.00398743152618, 102.3651733994484, 0.12507766450128693 ], [ 417.5568222999573, -246.8426376581192, 102.56645083427429, 0.13115613818367064 ], [ 417.89063811302185, -246.34234607219696, 103.04496437311172, 0.26478441806178676 ], [ 419.1786050796509, -245.41181325912476, 103.76307368278503, 1.1812550511713087 ], [ 422.0898747444153, -243.22833120822906, 105.69643974304199, 2.239892687531317 ], [ 430.9566617012024, -238.8288676738739, 113.75264078378677, 6.493422285218414 ], [ 439.6904408931732, -236.92291975021362, 123.26838821172714, 6.248120707185776 ], [ 449.3556022644043, -237.13862895965576, 135.2299600839615, 8.509817239377984 ], [ 461.89630031585693, -242.00204014778137, 156.30824863910675, 11.700062778885986 ], [ 469.8592722415924, -249.61960315704346, 174.90753531455994, 6.0388138658480415 ], [ 480.172723531723, -263.4692192077637, 202.67494022846222, 7.829070288540594 ], [ 485.48075556755066, -276.42184495925903, 222.881019115448, 4.329178205999985 ], [ 487.5868558883667, -292.4838364124298, 239.64272439479828, 4.9412820097900925 ], [ 492.1429753303528, -313.61809372901917, 261.4304721355438, 4.540559967375278 ], [ 495.27785181999207, -329.9117684364319, 275.63753724098206, 5.219037373240957 ], [ 499.0074932575226, -344.9949026107788, 290.48430919647217, 5.199711639395289 ], [ 502.28506326675415, -360.2961003780365, 302.024245262146, 3.9648404215206647 ], [ 502.8790831565857, -378.53094935417175, 314.99233841896057, 2.8146699106549087 ], [ 502.41029262542725, -390.48561453819275, 323.00543785095215, 2.5361909910196867 ], [ 501.48284435272217, -405.4127037525177, 331.9592475891113, 3.4498568273555885 ], [ 499.80485439300537, -414.7646427154541, 336.24333143234253, 2.0620612356830463 ], [ 497.721403837204, -422.273725271225, 338.3532464504242, 2.3275562454510315 ], [ 494.44901943206787, -429.90967631340027, 338.2589519023895, 3.090184439037834 ], [ 491.7372763156891, -433.087557554245, 335.9660506248474, 2.43456392746682 ], [ 488.30947279930115, -434.02206897735596, 331.16522431373596, 3.6987789735262036 ], [ 487.84375190734863, -435.54210662841797, 329.29345965385437, 1.6342689122353993 ], [ 498.1243312358856, -466.97553992271423, 320.0395405292511, 120.35790356591423 ], [ 500.6706118583679, -465.48324823379517, 320.8659291267395, 13.20302845346037 ], [ 502.6847720146179, -464.07219767570496, 322.1845328807831, 10.298485273755146 ], [ 503.99142503738403, -466.2529230117798, 322.864830493927, 1.7516173661115209 ], [ 506.6846013069153, -467.0402705669403, 324.823260307312, 4.44309793961758 ], [ 509.7081959247589, -466.1361575126648, 325.2404034137726, 2.5945737709421524 ], [ 512.7317905426025, -465.2320444583893, 325.65754652023315, 2.5945737709410284 ], [ 514.4286155700684, -463.86003494262695, 325.8979916572571, 2.8743082517225322 ], [ 514.8836374282837, -461.9181454181671, 324.7118294239044, 1.2709514900915715 ], [ 514.478862285614, -457.63492584228516, 323.4366178512573, 7.67787278710522 ], [ 508.48495960235596, -467.34145283699036, 317.5080716609955, 40.90176900719457 ] ], "repaired": [ [ 424.17600750923157, -244.59561705589294, 102.14490443468094, 0.38104642090105006 ], [ 421.0907816886902, -245.92556059360504, 102.37690806388855, 0.15762884674603428 ], [ 419.3500876426697, -246.52475118637085, 102.27581113576889, 0.295404949989418 ], [ 417.95429587364197, -246.94359302520752, 102.33546048402786, 0.24342588756080719 ], [ 417.5335764884949, -247.00398743152618, 102.3651733994484, 0.12507984922543255 ], [ 417.5568222999573, -246.8426376581192, 102.56645083427429, 0.13115776029538637 ], [ 417.89063811302185, -246.34234607219696, 103.04496437311172, 0.26478361436785275 ], [ 419.1786050796509, -245.41181325912476, 103.76307368278503, 1.181255518437771 ], [ 422.0898747444153, -243.22833120822906, 105.69643974304199, 2.2398893623388263 ], [ 430.9566617012024, -238.8288676738739, 113.75264078378677, 6.493419910406281 ], [ 439.6904408931732, -236.92291975021362, 123.26838821172714, 6.248124581355706 ], [ 449.3556022644043, -237.13862895965576, 135.2299600839615, 8.509815744260166 ], [ 461.89630031585693, -242.00204014778137, 156.30824863910675, 11.700062403006049 ], [ 469.8592722415924, -249.61960315704346, 174.90753531455994, 6.038816528975225 ], [ 480.172723531723, -263.4692192077637, 202.67494022846222, 7.829069247320377 ], [ 485.48075556755066, -276.42184495925903, 222.881019115448, 4.32917708924549 ], [ 487.5868558883667, -292.4838364124298, 239.64272439479828, 4.941281361167136 ], [ 492.1429753303528, -313.61809372901917, 261.4304721355438, 4.540562658522702 ], [ 495.27785181999207, -329.9117684364319, 275.63753724098206, 5.219035173943669 ], [ 499.0074932575226, -344.9949026107788, 290.48430919647217, 5.19971386647697 ], [ 502.28506326675415, -360.2961003780365, 302.024245262146, 3.9648402210138673 ], [ 502.8790831565857, -378.53094935417175, 314.99233841896057, 2.8146704728665743 ], [ 502.41029262542725, -390.48561453819275, 323.00543785095215, 2.536193890227339 ], [ 501.48284435272217, -405.4127037525177, 331.9592475891113, 3.4498538387868005 ], [ 499.80485439300537, -414.7646427154541, 336.24333143234253, 2.0620637491746576 ], [ 497.721403837204, -422.273725271225, 338.3532464504242, 2.3275538994539278 ], [ 494.44901943206787, -429.90967631340027, 338.2589519023895, 3.090185676292373 ], [ 491.7372763156891, -433.087557554245, 335.9660506248474, 2.4345638736380812 ], [ 488.30947279930115, -434.02206897735596, 331.16522431373596, 3.6987796478878807 ], [ 487.84375190734863, -435.54210662841797, 329.29345965385437, 1.6342701724882724 ], [ 498.1243312358856, -466.97553992271423, 320.0395405292511, 120.357905112917 ], [ 500.6706118583679, -465.48324823379517, 320.8659291267395, 13.203027741283421 ], [ 502.6847720146179, -464.07219767570496, 322.1845328807831, 10.298485086603515 ], [ 503.99142503738403, -466.2529230117798, 322.864830493927, 1.7516153014447107 ], [ 506.6846013069153, -467.0402705669403, 324.823260307312, 4.443097384493698 ], [ 509.7081661224365, -466.1361575126648, 325.2404034137726, 2.5945736990194477 ], [ 512.7317905426025, -465.2320444583893, 325.65754652023315, 2.594573903708433 ], [ 514.4286155700684, -463.86003494262695, 325.8979916572571, 2.874308877187068 ], [ 514.8836374282837, -461.9181454181671, 324.7118294239044, 1.2709511613864328 ], [ 514.478862285614, -457.63492584228516, 323.4366178512573, 7.6778729431926775 ], [ 508.48495960235596, -467.34145283699036, 317.5080716609955, 40.901770451008986 ] ] }, "capture_start_seconds": 1290.6433517932892, "capture_end_seconds": 1290.9792442321777, "video_time_basis": "local_row / 30 fps" } ]}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-12/episode_000_seg01.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_000.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-12/episode_002.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_002.parquet", "events": []}123456{ "schema_version": 1, "remote_path": "data/motherboard/meta/2026-09-12/episode_003.parquet", "source_path": "/media/yxma/Disk1/twm/release/motherboard/meta/2026-09-12/episode_003.parquet", "events": []}123version https://git-lfs.github.com/spec/v1oid sha256:b81a63ee53b7c73ac8cbbaeb124d50ec505efc35dc2d05107881ae0476da06fasize 158034ACTION_REPAIR_20260918.mdAdded+77
action_publication_manifest.jsonAdded
action_repair_tools/README.mdAdded+39
action_repair_tools/requirements.txtAdded+4
action_repair_tools/twm/__init__.pyAdded+1
action_repair_tools/twm/react_preprocess/__init__.pyAdded+1
action_repair_tools/twm/react_preprocess/mocap_branch.pyAdded+181
action_repair_tools/twm/react_preprocess/mocap_branch_review.pyAdded+90
action_repair_tools/twm/react_preprocess/mocap_candidate.pyAdded+740
action_repair_tools/twm/react_preprocess/mocap_repair.pyAdded+624
action_repair_tools/twm/react_preprocess/repaired_actions.pyAdded+125
action_repair_tools/twm/react_toolbox/__init__.pyAdded+1
action_repair_tools/twm/react_toolbox/frames.pyAdded+150
action_repair_tools/twm/scripts/__init__.pyAdded+1
action_repair_tools/twm/scripts/benchmark_mocap_branch.pyAdded+119
action_repair_tools/twm/scripts/benchmark_mocap_repair.pyAdded+315
action_repair_tools/twm/scripts/build_mocap_repair_candidates.pyAdded+350
action_repair_tools/twm/scripts/export_old_motherboard_actions.pyAdded+240
action_repair_tools/twm/scripts/propagate_mocap_repairs.pyAdded+522
action_repair_tools/twm/scripts/publish_action_repairs.pyAdded+133
action_repair_tools/twm/scripts/review_mocap_branches.pyAdded+82
action_review.htmlAdded
action_sample25.htmlAdded
action_sample25.jsonAdded
data/motherboard/action_repair_events/2026-09-11/episode_000.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_001_seg00.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_001_seg01.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_002_seg00.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_003_seg00.jsonAdded+879
data/motherboard/action_repair_events/2026-09-11/episode_004_seg00.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_004_seg01.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_005_seg00.jsonAdded+1171
data/motherboard/action_repair_events/2026-09-11/episode_005_seg01.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_005_seg02.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_005_seg03.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_005_seg04.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_005_seg05.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_006_seg00.jsonAdded+581
data/motherboard/action_repair_events/2026-09-11/episode_006_seg01.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_007_seg00.jsonAdded+869
data/motherboard/action_repair_events/2026-09-11/episode_007_seg01.jsonAdded+1727
data/motherboard/action_repair_events/2026-09-11/episode_007_seg02.jsonAdded+1812
data/motherboard/action_repair_events/2026-09-11/episode_007_seg03.jsonAdded+6
data/motherboard/action_repair_events/2026-09-11/episode_007_seg04.jsonAdded
data/motherboard/action_repair_events/2026-09-11/episode_008_seg00.jsonAdded+6
data/motherboard/action_repair_events/2026-09-12/episode_000_seg00.jsonAdded+2998
data/motherboard/action_repair_events/2026-09-12/episode_000_seg01.jsonAdded+6
data/motherboard/action_repair_events/2026-09-12/episode_002.jsonAdded+6
data/motherboard/action_repair_events/2026-09-12/episode_003.jsonAdded+6
data/motherboard/actions_fps15/2026-09-11/episode_000_left.npzAdded+3