Skip to content

v0.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:31
· 6 commits to main since this release
e49b579

Added

  • Bundled native Rust/PyO3 core (trackflow._native, abi3-py310) enabled by default across all three package variants (trackflow-python, trackflow-python-cuda, and trackflow-python-tensorrt), with zero extra packages required (TRACKFLOW_BACKEND=python escape hatch, native_backend reported in trackflow info [--json], and scripts/bench_rust_vs_python.py for local A/B comparisons).
  • --tracker nltrack (NonLinearTracker), a pure Apache-2.0, zero-weight non-linear tracker combining damped dual-anchor motion (XywhKalmanFilter + CMC + ORU/OCM), scene-calibrated clean-bank Re-ID (--reid osnet), iterative mutual-best matching, guarded lost-track recovery, and duplicate-spawn suppression. Across all 81 official validation videos (rtdetr-v2-r18, --threshold 0.45), nltrack --reid osnet reaches 42.9 mean HOTA (47.1 DanceTrack, 50.2 SportsMOT, 48.1 MOT17, 26.1 MOT20; +4.1 mean HOTA and 1,242 fewer ID switches than botsort --reid osnet), zero-ReID nltrack reaches 39.6 mean HOTA (+1.2 over ocsort), and combining nltrack --reid osnet --postprocess reaches 44.7 mean HOTA (4,294 ID switches, -33%).
  • Opt-in --postprocess offline pass (TrackflowPipeline(..., postprocess=True) and postprocess_records / postprocess_tracks_array) for recorded videos and image directories: splits suspect track switches, links fragmented tracklets with camera-motion-compensated kinematics and self-calibrated OSNet appearance, fills short supported occlusion gaps, and smooths jitter with motion-adaptive two-scale Gaussian filtering. Lifts 4-dataset mean HOTA across all 81 official validation videos by +3.2 HOTA on botsort --reid osnet (38.8 → 42.0: DanceTrack +3.4, SportsMOT +5.3, MOT17 +2.8, MOT20 +1.2) and +0.7 to +1.1 HOTA without Re-ID, in ~64–265 ms/video (max 397 ms), while leaving live stream() and ByteTracker web parity untouched.
  • Optional ambiguity-triggered SAM 2.1 mask fallback (--mask-fallback sam2.1-tiny|sam2.1-small|sam2.1-base-plus, --mask-budget, optional [sam2] extra) for resolving dense crowd crossings and short-window ID swaps.
  • --cmc/--no-cmc flag on trackflow run (and use_cmc on TrackflowPipeline and create_tracker) so fixed-camera deployments can disable camera motion compensation cleanly.
  • --postprocess flag in scripts/eval_benchmarks.py, last_cmc_warp exposure on BotSortTracker, OcSortTracker, BoostTracker, and NonLinearTracker, and an MkDocs Material documentation site published alongside the GitHub Pages playground.

Changed

  • Accelerated DETR/Re-ID tensor conversion (bgr_to_nchw_f32 / bgr_batch_to_nchw_f32: 2.9x–11.3x faster than v0.6.1), DETR output postprocessing + class-aware NMS (4.9x), all five multi-object trackers (ByteTracker 11.5x, BotSortTracker 8.0x–9.5x, OcSortTracker 16.3x, BoostTracker 8.9x–13.8x, NonLinearTracker 2.4x–11.5x on crowded 1,203-frame MOT20-03 with 0 ID diffs and exact ByteTracker web parity), and offline --postprocess frame overlap calculation (1.11x bit-exact) in native Rust (trackflow._native), while retaining OpenCV cv2.dnn.blobFromImage / blobFromImages and vectorized Python fast paths as fallback.
  • Deduplicated overlapping person boxes in PrivacyAnonymizer.apply() while preserving 100% pixel mask coverage of all tracks, coasting boxes, and raw detections (merging overlapping blur/pixelate boxes into enclosing unions and clustering overlapping face-blur head ellipses into one blur pass per cluster with 2x downscale-blur-upsample on wide kernels), speeding up 1080p anonymization by 11.4x (blur), 7.6x (face-blur), and 2.1x (pixelate).

Install with pip install trackflow-python==0.7.0 (CPU/macOS), pip install trackflow-python-cuda==0.7.0 (NVIDIA CUDA), or pip install trackflow-python-tensorrt==0.7.0 (NVIDIA TensorRT).

What's Changed

  • ci: use distinct PyPI environments for CUDA/TensorRT variants and allow tag dispatch by @obendidi in #143
  • Add MkDocs Material documentation site on GitHub Pages (/docs/) by @obendidi in #144
  • feat: add opt-in offline --postprocess pass (+3.2 HOTA on recorded videos) by @obendidi in #145
  • feat: add pure Apache-2.0 --tracker nltrack (+4.1 mean HOTA across 81 videos) by @obendidi in #146
  • feat: add optional ambiguity-triggered SAM 2.1 mask fallback by @obendidi in #147
  • perf: speed up DETR/Re-ID preprocessing, privacy anonymization, NLTrack, and postprocess by @obendidi in #148
  • feat: bundle native Rust core by default across CPU, CUDA, and TensorRT wheels by @obendidi in #149
  • chore: prepare v0.7.0 release by @obendidi in #150

Full Changelog: v0.6.1...v0.7.0