Repository navigation
Added
- Bundled native Rust/PyO3 core (
trackflow._native,abi3-py310) enabled by default across all three package variants (trackflow-python,trackflow-python-cuda, andtrackflow-python-tensorrt), with zero extra packages required (TRACKFLOW_BACKEND=pythonescape hatch,native_backendreported intrackflow info [--json], andscripts/bench_rust_vs_python.pyfor 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 osnetreaches42.9mean HOTA (47.1DanceTrack,50.2SportsMOT,48.1MOT17,26.1MOT20;+4.1mean HOTA and1,242fewer ID switches thanbotsort --reid osnet), zero-ReIDnltrackreaches39.6mean HOTA (+1.2overocsort), and combiningnltrack --reid osnet --postprocessreaches44.7mean HOTA (4,294ID switches,-33%).- Opt-in
--postprocessoffline pass (TrackflowPipeline(..., postprocess=True)andpostprocess_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 onbotsort --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(max397 ms), while leaving livestream()andByteTrackerweb 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-cmcflag ontrackflow run(anduse_cmconTrackflowPipelineandcreate_tracker) so fixed-camera deployments can disable camera motion compensation cleanly.--postprocessflag inscripts/eval_benchmarks.py,last_cmc_warpexposure onBotSortTracker,OcSortTracker,BoostTracker, andNonLinearTracker, 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.3xfaster thanv0.6.1), DETR output postprocessing + class-aware NMS (4.9x), all five multi-object trackers (ByteTracker11.5x,BotSortTracker8.0x–9.5x,OcSortTracker16.3x,BoostTracker8.9x–13.8x,NonLinearTracker2.4x–11.5xon crowded 1,203-frameMOT20-03with0ID diffs and exactByteTrackerweb parity), and offline--postprocessframe overlap calculation (1.11xbit-exact) in native Rust (trackflow._native), while retaining OpenCVcv2.dnn.blobFromImage/blobFromImagesand 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 overlappingblur/pixelateboxes into enclosing unions and clustering overlappingface-blurhead ellipses into one blur pass per cluster with 2x downscale-blur-upsample on wide kernels), speeding up 1080p anonymization by11.4x(blur),7.6x(face-blur), and2.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