Most of our research depends on unglamorous tooling: timeline forensics, shot detection, evaluation and annotation. We publish it under permissive licences and keep it maintained, because we depend on it too.
hetki-eval
Python
v1.3.0
Evaluation toolkit for natural-language moment retrieval. R@K at multiple IoU thresholds, soft-IoU against annotator distributions, per-language and per-query-type breakdowns.
Apache-2.0Released 2 Oct 2026★ 1.2k
pip install hetki-eval
from hetki_eval import load, evaluate
refs = load("hetki-40k", split="test")
res = evaluate(refs, "runs/my_model.jsonl", metrics=["r@1/0.5", "r@5/0.7", "soft_iou"])
print(res.table(by="query_type"))
Shot-aware forced alignment. Reconstructs the real presentation timeline from MP4/MOV containers (edit lists, priming, VFR) and aligns transcript words to frames.
Fast frame sampling and shot-boundary detection. Decodes only the frames you need, emits shots with frame-accurate cuts and fades, and computes the flow fields used for motion tokens.
Segment index with temporal merge. Product-quantised vectors, per-shard graph search, and a merge step that turns adjacent segment hits into moments with calibrated scores.
Apache-2.0Released 14 Oct 2026★ 870
cargo add virta
let idx = virta::Index::open("shards/")?;
let hits = idx.search(&query_vec, Search { k: 200, merge_gap_ms: 500, ..Default::default() })?;
for m in hits.moments().take(5) { println!("{} {:.1}–{:.1}s {:.3}", m.clip, m.start, m.end, m.score); }
The browser tool our annotators use to mark time ranges with keyboard-only controls, frame stepping and blind multi-annotator review. Works offline; exports HETKI-format JSONL.