Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

111 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Calibra

CI Docs Ruff License

Audit robot datasets. Build better coresets. Train with less data.

Open-source tooling for robot dataset quality, diagnostics, and coreset selection.


Highlights

  • πŸ” Audit robot datasets for quality, synchrony, coverage, and task integrity
  • βœ‚οΈ Reduce training data by up to 75% with quality-aware coreset selection
  • πŸ“Š Audit 30+ public LeRobot datasets with an interactive Hugging Face Space
  • πŸ€– Supports LeRobot, Isaac Lab, RLDS, HDF5, MCAP, and Hugging Face Hub
  • πŸ“¦ Install with pip install calibra-robotics

How it works

Calibra pipeline


Quick start

pip install calibra-robotics

calibra audit lerobot/pusht

Try it online

No installation required.

πŸ”— Robot Dataset Health Check (Hugging Face Space)

  • Audit any LeRobot dataset
  • View health score and percentile
  • Compare against community benchmarks
  • Download a full audit report

Why quality-aware selection matters

Most robot learning labs collect thousands of demonstrations and train on all of them β€” silently ingesting bad data, wasting compute on near-duplicates, and producing undiagnosable policy failures.

Problem What Calibra does
Jerk spikes, dropped frames, sync errors Audit β€” detect and flag bad episodes before training
60–80% of episodes are near-duplicates Select β€” maximize behavioral coverage in a smaller coreset
Policy failure cause is unknown Score β€” decompose quality into measurable, falsifiable metrics

Why diversity-aware selection beats random

Behavioral diversity comparison

Random selection picks a clustered subset. Calibra's coverage-based selector spreads selections across the behavioral space β€” ensuring the policy sees every behavioral mode, even rare ones.


Benchmark results

Calibra vs random retention curve on PushT real

On real PushT data: at 10% retention, Calibra achieves lower prediction error than training on the full dataset, while random selection degrades sharply. The shaded region is Calibra's advantage over random at every budget.

Ablation: which component drives Calibra's gains?

Ablation across 5 seeds on ALOHA mobile (keep 30%): Calibra full pipeline and diversity-only both outperform all published baselines. Herding is the only method that reliably underperforms random.

Mean improvement over random selection (5 seeds, 30% retention, 3 datasets):

Method BC-MLP ACT Diffusion Policy
Diversity-only +29.5% +26.5% +11.9%
Calibra full +24.5% +23.7% +13.8%
K-Center +24.0% +23.1% +10.1%
Facility Location +21.5% +18.4% +8.7%
Random 0.0% 0.0% 0.0%

Method rankings are stable across all three policy families (Spearman ρ β‰₯ 0.86). β†’ Full benchmarks and ablations


Dashboard

Calibra dashboard showing dataset health score, diagnostic findings, and per-episode outliers

Inspect dataset health, identify problematic demonstrations with root causes, and generate a training-ready coreset β€” all from one interface. Generated with calibra audit lerobot/columbia_cairlab_pusht_real --html-out report.html.


In practice

Before and after Calibra


Commands

Command Description
calibra audit Full diagnostic report with bootstrap CIs and per-episode outlier detection
calibra prune Two-stage coreset: quality filter + greedy max-coverage selection
calibra certify Structured CERTIFIED / PROVISIONAL / NOT CERTIFIED; --json for CI
calibra predict Estimate training outcome before spending GPU time
calibra watch Real-time quality feedback during teleoperation
calibra score Composite 0–100 score across Quality, Synchrony, Coverage, Task Structure
calibra compare Evidence-backed cross-dataset comparison with falsifiable claims
calibra corrupt Inject synthetic corruptions to validate metric sensitivity
calibra card Generate a HuggingFace dataset quality card
calibra sim2real Quantify sim-to-real distribution gap and transfer risk
calibra transfer Cross-embodiment compatibility scoring
calibra cure Automatic data remediation (smoothing, resampling, trimming)
calibra audit-all Bulk-audit an entire HF org; writes CalibraReport JSONs
calibra site Generate a static leaderboard website from audit results
calibra serve Local REST API server and web dashboard

β†’ Full command reference


LeRobot integration

# 1. Record demos
lerobot-record --robot-type so100 --repo-id $HF_USER/my_dataset

# 2. Curate and write the report
calibra prune /path/to/my_dataset --keep 0.3 --report results/my_dataset/latest.json

# 3. Train on the coreset
lerobot-train policy=act dataset_repo_id=./my_dataset_coreset
from calibra.integrations.lerobot import load_dataset

ds = load_dataset("lerobot/pusht", report_path="results/pusht/latest.json")
# ds is a datasets.Dataset with only Calibra-approved episodes

Isaac Lab β†’ GR00T (NVIDIA)

from calibra.integrations.isaac_lab import export_gr00t_manifest, filter_hdf5

export_gr00t_manifest("results/franka/latest.json", demos_path="demos.hdf5")
filter_hdf5("demos.hdf5", "results/franka/latest.json", "demos_coreset.hdf5")
calibra prune demos.hdf5 --keep 0.3 --policy gr00t --report results/franka/latest.json
python -m gr00t.train --manifest gr00t_manifest.json --demo-file demos_coreset.hdf5

Python API

from calibra.ingestion.registry import load
from calibra.pipeline import Pipeline
from calibra.pruning import CoresetSelector

batch = load("lerobot/pusht")
report = Pipeline().run(batch, policy_family="diffusion")

selector = CoresetSelector(keep_fraction=0.3)
result = selector.select(batch, report)
# result.keep_episode_ids β†’ filter your dataset

Install

PyPI package name: calibra-robotics (the calibra name on PyPI is an unrelated package)

pip install calibra-robotics                      # core (numpy + pydantic only)
pip install 'calibra-robotics[lerobot]'           # LeRobot / HuggingFace Hub (recommended)
pip install 'calibra-robotics[hdf5]'              # HDF5 (Isaac Lab, Robomimic)
pip install 'calibra-robotics[rlds]'              # RLDS / TF Datasets
pip install 'calibra-robotics[mcap]'              # MCAP / ROS2 bags
pip install 'calibra-robotics[all]'               # everything

Formats supported: LeRobot v1/v2/v3 (Parquet), HuggingFace Hub IDs, HDF5 (Isaac Lab, Robomimic), RLDS/TF Datasets, MCAP/ROS2 bags.


Paper

Coming soon. The central empirical finding β€” that the optimal coreset selection strategy depends on the data-retention budget β€” will be described in full detail.


Citation

Available after paper release.


Contributing

Calibra is not open to external pull requests or contributions at this time.

Development

git clone https://github.com/omertt27/Calibra
pip install -e '.[all,dev]'
pytest              # 596 tests
ruff check .        # zero errors expected

License

Business Source License 1.1 β€” free for research and internal use, converts to Apache 2.0 on 2030-06-30. Commercial hosting requires a separate license. See LICENSE and LICENSING.md. Contact: omertahtaci05@gmail.com

About

Dataset observability and coreset selection for robotics imitation learning

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages