You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a trackers tune CLI subcommand that runs hyperparameter optimization for any registered tracker. The tuner takes pre-computed detections (MOT format) and ground-truth annotations, repeatedly instantiates the tracker with different parameter configurations proposed by Optuna, evaluates each configuration using the existing evaluate_mot_sequences engine, and reports the best-found parameters.
Define search_space: ClassVar[dict[str, dict]] on SORTTracker and ByteTrackTracker with sensible ranges for each tunable parameter. Validate that every key in search_space matches a parameter name in __init__.
Implement a Tuner class that wraps an Optuna study: converts search_space to Optuna distributions, runs trials calling the objective function.
Register the tune subcommand in trackers/scripts/__main__.py with arguments: --tracker, --gt-dir, --detections-dir, --metrics, --objective, --n-trials, --output, --resume.
Add optuna as an optional dependency under trackers[tune] in pyproject.toml.
Document usage: expected input format for detections-dir and gt-dir, how to generate detections with trackers track, example commands, and the meaning of output files.
Description
Add a
trackers tuneCLI subcommand that runs hyperparameter optimization for any registered tracker. The tuner takes pre-computed detections (MOT format) and ground-truth annotations, repeatedly instantiates the tracker with different parameter configurations proposed by Optuna, evaluates each configuration using the existingevaluate_mot_sequencesengine, and reports the best-found parameters.Search space definition
Each tracker declares a
search_spaceclass variable alongside its__init__parameters.Tasks
search_space: ClassVar[dict[str, dict]]onSORTTrackerandByteTrackTrackerwith sensible ranges for each tunable parameter. Validate that every key insearch_spacematches a parameter name in__init__.Tunerclass that wraps an Optuna study: convertssearch_spaceto Optuna distributions, runs trials calling the objective function.tunesubcommand intrackers/scripts/__main__.pywith arguments:--tracker,--gt-dir,--detections-dir,--metrics,--objective,--n-trials,--output,--resume.optunaas an optional dependency undertrackers[tune]inpyproject.toml.trackers track, example commands, and the meaning of output files.