Skip to content

v0.13.0: Trustworthy integrity checks

Latest

Choose a tag to compare

@omertt27 omertt27 released this 17 Oct 08:02
· 32 commits to main since this release

Changed

  • velocity_discontinuity_rate severity ignores sensor noise. The flag
    level now comes from the rate after the same ~10 Hz low-pass LDLJ uses (no-op
    at ≤10 Hz); the text shows the unfiltered rate when it differs. Unfiltered, the
    metric was CRITICAL on clean 50 Hz data and non-monotone: an injected spike
    raised peak speed and hid the noise, so lightly corrupted ALOHA scored 2.9% vs
    6.5% clean. Filtered: 0.0% clean, rising with corruption. ALOHA CRITICAL → OK,
    Unitree H1 CRITICAL → WARNING, PushT unchanged. The unfiltered rate is kept
    (mean_disc_fraction, per-episode values) for regime thresholds, prune limits,
    profiles, the Calibra Score and claims, so those do not move; filtered values
    are added alongside. Evidence: eval/investigations/vel_disc/FINDINGS.md.

  • Local dataset copies get their dataset profile automatically when they
    can be identified from their own files: the hf download revision equals the
    revision a profile was measured on, or the dataset card links a covered Hub
    ID. Previously only Hub IDs did, so calibra prune ./pusht silently used the
    global Stage-1 limits and dropped 48 clean PushT episodes (0 with the
    profile). The applied profile and the evidence are printed and stored in the
    report (dataset_profile_reason); a directory named like a profiled dataset
    only prints a --profile hint. An explicit --profile still wins.

  • short_episode_fraction no longer flags fixed-length recordings. The lower
    fence is now Q1 − 1.5 × max(IQR, 0.25 × median). Datasets recorded at a few
    fixed lengths have IQR = 0, which put the fence at Q1: on
    lerobot/unitreeh1_rearrange_objects (23 × 250 and 7 × 200 steps) every
    complete 200-step episode was an "outlier" and calibra integrity failed CI.
    An episode must now be below about 62% of the typical length to count as
    short; ordinary variable-length datasets are unaffected (regression goldens
    unchanged for this metric).

  • ldlj is now computed per sub-movement (ldlj_definition: per_submovement_v1). Whole-episode LDLJ was defined for a single movement;
    over a demonstration of N movements it fell by about 4 ln N regardless of
    smoothness, and triple differentiation amplified sensor noise by 1/dt³, so it
    was CRITICAL on all 30 official LeRobot datasets audited and correlated −0.95
    with episode length on PushT. Velocities are now low-pass filtered (moving
    average, ~10 Hz; no-op at ≤10 Hz), split into sub-movements at speed minima,
    scored per sub-movement and combined as a duration-weighted mean. Thresholds
    (−10 / −15) are unchanged; they are the single-movement scale the new values
    are on. Details and evidence: eval/investigations/ldlj/FINDINGS.md.

    • Smooth synthetic demos score −4.6 to −5.0 for any number of movements
      (previously −4.5 to −18.4). Injected glitches and heavy noise still lower
      the score. White-noise actions score about −11 to −13 (WARNING); they
      remain CRITICAL on velocity_discontinuity_rate.
    • PushT: ldlj CRITICAL → OK (mean −16.0 → −8.1); Calibra Score
      44.3 → 63.1. The old value zeroed the smoothness dimension, which through
      the integrity gate also halved coverage and task-structure credit.
      Regression goldens updated (ldlj only).
    • Expect higher Calibra Scores and fewer ldlj flags on most datasets,
      especially long or 50 Hz ones. Stage-1 per-episode drops at min_ldlj
      (−30) effectively no longer occur.
    • Reference profiles in calibra/references/ were made with the old
      definition. calibra compare no longer compares ldlj against them and
      says so; regenerate a reference with scripts/profile_dataset.py, which
      now records ldlj_definition. Claims LDLJ-001 / LDLJ-002 are annotated as
      measured with the old definition, with re-tests pending.
  • Synthetic timestamps are reported as not evaluable, not passed. When every
    episode's timestamps lie on an exact t0 + k*dt grid (LeRobot writes
    frame_index / fps; simulators step a fixed clock), timestamp_jitter_cv and
    timestamp_dropout_rate are emitted at level INFO with the reason, and
    calibra integrity lists them under Not Evaluated instead of Passed. They no
    longer count toward the integrity score, so integrity scores of LeRobot and
    simulated datasets drop accordingly. Raw metric values, the Calibra Score and
    pruning decisions are unchanged. Regression goldens for PushT updated
    (OK → INFO for these two metrics only).

  • calibra analyze and calibra integrity treat INFO integrity flags as not
    evaluated. Previously a category with only skipped checks (e.g. calibration
    drift with no stationary holds) showed as OK in analyze and was omitted
    entirely from integrity.

  • Dataset cards no longer show a predicted training success rate. The
    prediction is not validated, and cards are meant for other people's dataset
    pages. The Calibra Score is labelled as a heuristic composite.

  • calibra prune prints a ready lerobot-train command for LeRobot sources
    instead of the old python train.py hint.

Added

  • calibra integrity --decode-video runs duplicate_frame_rate and
    camera_freeze_events on LeRobot v2/v3 video (previously Not Evaluated).
    Opt-in, sampled (--video-sample N, default 20 episodes, evenly spaced),
    full resolution in 64-frame chunks, every camera; same measure and
    thresholds as for image datasets. Validated on real data: flags
    lerobot/aloha_static_battery (cam_high 30% repeated frames, cameras
    slower than the 50 Hz recording), passes unitreeh1_rearrange_objects
    (<1%) and pusht (1.5%).
  • Duplicate episode check (duplicate_episode_fraction, task_structure
    analyzer): episodes whose actions and numeric observations are byte-identical
    to another episode are CRITICAL and block-level in calibra integrity; the
    finding names each copy and its original. Found in practice: episode 26 of
    lerobot/unitreeh1_rearrange_objects @ e874d89b copies episode 6.
  • calibra integrity checks LeRobot v2/v3 video files (missing, undecodable,
    frame-count/coverage mismatch, wrong fps) on local datasets. New optional
    extra calibra-robotics[video] (OpenCV).
  • calibra.integrations.lerobot: lerobot_train_args, lerobot_episode_indices
    and load_lerobot_dataset to train on kept episodes without exporting a copy.
  • calibra card --push --create-pr opens the card as a Hub pull request.
  • Real-fault evaluation tooling (calibra.fault_eval, scripts/fault_eval.py,
    eval/real_faults/).

Fixed

  • calibra card --push replaced the dataset's entire README with the card (it
    read a non-existent attribute and always saw an empty README). It now edits
    only the Calibra section and aborts if the README can't be read.
  • calibra benchmark printed --dataset.episodes with batch positions instead
    of LeRobot episode_index values.

Install: pip install -U calibra-robotics

Full changelog: v0.12.0...v0.13.0