CLI
The main workflow and environment commands are:
ui, install, track, materialize, eval, tune, research,
train-reid, eval-reid, compare-reid, export, build
Run boxmot COMMAND --help for the authoritative option set.
For paired CLI and Python examples, open the mode guides and select either tab.
Use boxmot --version for the installed version. The global --dashboard
option goes before the command, for example
boxmot --dashboard track --source video.mp4. Use the terminal UI
to configure a command interactively.
export-edgetam also appears in help, but its conversion backend is absent in
this checkout. Use the supported PyTorch mask workflows
instead of treating that draft adapter as a working exporter.
Common workflows
The YOLOX benchmark examples require the
source checkout with yolo;
add evolve for tuning and research for code search. In that checkout, prefix
the commands below with uv run --no-sync.
# Track a finite video or live source
boxmot track --source video.mp4 --detector yolov8n --tracker bytetrack --save
# Publish perception once
boxmot materialize --experiment mot17/ablation-yolox-lmbn.yaml
# Replay the explicit build
boxmot eval \
--experiment mot17/ablation-yolox-lmbn.yaml \
--build BUILD_ID \
--tracker boosttrack
boxmot tune \
--experiment mot17/ablation-yolox-lmbn.yaml \
--build BUILD_ID \
--tracker bytetrack
boxmot research \
--experiment mot17/ablation-yolox-lmbn.yaml \
--build BUILD_ID \
--tracker bytetrack \
--proposal-model openai/gpt-5.4
Replace video.mp4 with your input and BUILD_ID with the printed build ID.
Research invokes an external proposal model; configure its credentials as
described in Research.
For --build, an existing path is used directly. An ID is resolved only under
--build-root, whose default is ./runs/materializations unless
BOXMOT_BUILDS_DIR is set. When eval or tune omits --build, the resolved
experiment and inputs determine a canonical build under that root. Reuse
requires matching source and semantic component fingerprints. There is no
latest-build lookup.
Input contracts
| Command | Input contract |
|---|---|
track |
--source plus components, or the saved-mask replay paths |
materialize |
image --experiment, or --time-variant with dataset, sequence, and parent build |
eval |
image experiment/build, saved 2D predictions, or an EagerMOT sensor dataset |
tune |
image experiment/build or an EagerMOT sensor dataset; saved 2D boxes are not supported |
research |
--experiment and --build |
Image materialization gets its dataset, split, geometry, components, and class map from the experiment. To change any of those values, select or create another experiment; the command line exposes only execution, publication, and location controls.
Evaluation and tuning also accept --dataset, --detector, and optional --reid as
shorthand for a matching authored catalog experiment. Missing or ambiguous
matches require an explicit --experiment. See Evaluate
for an example. Saved prediction/sensor datasets instead supply observations
from their declared modalities; they do not use a perception build. See
Datasets for the supported input paths.
Raw tracking datasets default to ./datasets/mot; pass --data-root explicitly
to use another location. Materialized-dataset roots resolve independently from
--build-root, then BOXMOT_BUILDS_DIR, then ./runs/materializations.
Command references
- Terminal UI
- Install dependencies
- Track
- Materialize
- Eval
- Tune
- Research
- Train ReID
- Evaluate ReID
- Compare ReID
- Export
- Native build
Global options
boxmot
Pluggable object tracking for detection, segmentation, and pose models.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--version |
boolean | Show the version and exit. | False |
--dashboard |
boolean | Enable live keyboard navigation in workflow panels (terminal only). | False |
--help |
boolean | Show this message and exit. | False |
build
Build native (C++) tracker shared libraries
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--tracker |
choice (all | botsort | bytetrack | occluboost | ocsort | sfsort | reid) |
Tracker(s) to build. Pass --tracker multiple times or use "all" (default). | ('all',) |
--force |
boolean | Force rebuild even if libraries already exist. | False |
--help |
boolean | Show this message and exit. | False |
compare-reid
Compare ReID checkpoints across target datasets
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--weights |
path | Path to a trained ReID checkpoint. Repeat for multiple models. | Sentinel.UNSET |
--target |
text | Evaluation target as DATASET=DATA_DIR. Repeat for multiple target datasets. | Sentinel.UNSET |
--label |
text | Optional display/output label for each --weights entry. | Sentinel.UNSET |
--model |
text | Model architecture override. Pass once for all weights or once per checkpoint. | Sentinel.UNSET |
--include-same-dataset / --cross-domain-only |
boolean | Also evaluate models on their training dataset when checkpoint metadata is available. | False |
--preprocess |
choice (resize | resize_pad) |
Crop preprocessing method (default: checkpoint/hparams value) | None |
--imgsz |
text | Image size as H,W (default: hparams value, fallback 256,128) | None |
--inference-feature |
choice (concat_bn | norm_concat_bn | global | raw_mean | raw_concat | visibility_weighted_parts | evidence_sinkhorn | dse_weighted | dse_mix) |
Override CSL-TinyViT eval embedding without retraining | None |
--flip-tta / --no-flip-tta |
boolean | Use horizontal flip test-time augmentation (default: hparams value) | None |
--device |
text | PyTorch device: cpu, mps, or cuda:N (e.g. cuda:0). | cpu |
--batch-size |
integer | Batch size for feature extraction | 64 |
--num-workers |
integer | Dataloader workers | 4 |
--latency-warmup |
integer | Warmup forward passes before measuring ReID inference latency | 5 |
--latency-iters |
integer | Timed forward passes for ReID inference latency; 0 disables latency measurement | 30 |
--continue-on-error / --fail-fast |
boolean | Record failed pairs and continue instead of stopping at the first failure. | False |
--output |
path | Directory to save aggregate comparison files and per-model eval JSONs | runs/reid_cross_domain |
--help |
boolean | Show this message and exit. | False |
eval
Evaluate tracking from perception builds, saved predictions, or ground-truth prompts.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment |
text | experiment YAML filename or path, e.g. mot17/ablation-yolox-lmbn.yaml or boxmot/configs/experiments/mot17/ablation-yolox-lmbn.yaml | Sentinel.UNSET |
--dataset |
text | Dataset id, YAML file, or sensor dataset folder containing dataset.yaml (eval and tune). | None |
--detector |
text | Detector profile ID or YAML config used to resolve an authored experiment with --dataset; append /CHECKPOINT to disambiguate. | None |
--reid |
text | ReID profile for an authored experiment or for encoding saved 2D detections during eval. Omit when appearance is disabled. | None |
--build |
text | Materialized build ID or explicit build directory. Omit with --experiment, or with --dataset and --detector, to materialize and reuse a compatible canonical build automatically. | Sentinel.UNSET |
--build-root |
path | Root for build IDs, automatic materialization, and shared detector cache; overrides BOXMOT_BUILDS_DIR and defaults to ./runs/materializations. | None |
--device |
text | One device for uncached perception or EdgeTAM propagation: cpu, mps, cuda:N, or N (e.g. 0). | cpu |
--data-root |
path | Base folder for dataset storage.root; defaults to ./datasets/mot for built-in datasets or the local YAML folder. | None |
--split |
text | Dataset split to use (e.g. train, val, test, ablation). Overrides auto-detection from source path. | None |
--fps |
float | Target dataset FPS: sample frames before perception and align ground truth. Default: original frames, or the selected build's FPS when replaying. | None |
--prompt-source |
choice (first-visible) |
EdgeTAM: initialize each GT pedestrian once, at its first fully in-frame eligible box. | None |
--prompt-min-visibility |
float range (between 0.0 and 1.0) |
EdgeTAM: minimum MOT ground-truth visibility for first-visible initialization. | 1.0 |
--prompt-weights |
file | EdgeTAM checkpoint; the default downloads on the first prompted frame if missing. | edgetam.pt |
--eval-masks |
boolean | Evaluate KITTI-MOTS with mask IoU. Image workflows default to boxes; sensor workflows default to masks. | False |
--postprocessing |
choice (gsi | gbrc | gta) |
Postprocess AABB tracking results before scoring. Repeat in application order; GTA must precede GSI/GBRC and requires cached embeddings. Uses --sequence-workers with per-sequence progress. | () |
--eval-3d |
boolean | EagerMOT: 3D tracking metrics from KITTI tracking ground truth. | False |
--eval-ap |
boolean | Add official KITTI 2D/3D AP40; requires --eval-3d and aligned per-image object ground truth. | False |
--tracker-backend |
choice (python | cpp) |
Tracker implementation backend. Native 'cpp' is available for botsort, bytetrack, occluboost, ocsort, and sfsort. Building native libraries requires CMake, a C++17 compiler, OpenCV development files, and Eigen3. | python |
--tracker-config |
text | Tracker runtime YAML path or built-in preset; overrides must preserve calibrated time units. | None |
--cmc-policy |
text | CMC policy: auto reuses stored transforms or analyzes sequences during setup (Python 2D Kalman trackers), off disables CMC, or YAML. | None |
--class-config |
file | EagerMOT: car and pedestrian profiles from tuning's best.yaml or KF calibration's calibrated.yaml. | Sentinel.UNSET |
--asso-func |
choice (iou | giou | diou | ciou | hmiou | centroid) |
Association geometry override for AABB and OBB tracking. OBB ciou is a custom experimental adaptation; OBB hmiou is an experimental global-y height cue for scenes where image vertical is meaningful. | None |
--mask-guidance-weights |
path | Checkpoint or exported TFLite bundle directory used with --edgetam. Selecting weights alone does not enable guidance; edgetam.pt uses the default model cache. TFLite guidance runs on CPU. Python AABB box trackers with IoU only. | None |
--edgetam / --no-edgetam |
boolean | Enable EdgeTAM mask guidance with tracker YAML settings; uses edgetam.pt unless weights are supplied. | False |
--mask-guidance-max-objects |
integer range (1 and above) |
Override the tracker config's edgetam.max_objects (default 96) when --edgetam is enabled. Maximum identities with temporal mask memory; fixed when tuning. | None |
--sequence-workers |
integer range (1 and above) |
Maximum sequence worker processes for replay and uncached automatic CMC analysis. Default: 1 for EdgeTAM evaluation/tuning; otherwise min(sequences, CPU cores - 2), at least 1. During tuning, replay uses this limit per trial; CMC setup precedes trials. | 2 |
--cache-inputs / --no-cache-inputs |
boolean | Build and reuse mapped inputs for repeated eval/tune runs, including images, detections, embeddings, masks, sensors, and annotations. Uses extra disk space. | False |
--project |
Path | save results to project/name | runs |
--name |
text | save results to project/name | exp |
--exist-ok |
boolean | reuse project/name and allow overwriting outputs instead of incrementing | False |
--ci |
boolean | reuse existing runs in CI (no UI) | False |
--tracker |
choice (boosttrack | botsort | bytetrack | deepocsort | eagermot | edgetam | hybridsort | maf_hda | occluboost | ocsort | sfsort | strongsort) |
one of: boosttrack, botsort, bytetrack, deepocsort, eagermot, edgetam, hybridsort, maf_hda, occluboost, ocsort, sfsort, strongsort | bytetrack |
--variable-dt / --fixed-dt |
boolean | Use capture timestamps for tracker motion; otherwise keep the tracker YAML setting (default: fixed dt). | None |
--verbose |
boolean | print detailed logs | False |
--show-timing / --hide-timing |
boolean | print runtime timing summary after evaluation | False |
--per-class |
boolean | track each class separately | False |
--show |
boolean | Preview tracking at source timing, after calibration when --calibrate-kf is enabled. Sensor replay displays tracked masks, IDs, and classes. | False |
--save |
boolean | Save annotated tracking videos from replay, after calibration when --calibrate-kf is enabled. EagerMOT writes one MP4 per sequence under results/videos. | False |
--show-3d |
boolean | EagerMOT sensor evaluation: overlay estimated tracked 3D cuboids; requires --show or --save. | False |
--calibrate-kf |
boolean | Calibrate Kalman noise from detections and ground truth, then evaluate once; Python Kalman trackers only. EagerMOT requires ground_truth_3d with track IDs. | False |
--sequence |
text | Limit the selected split to one sequence. Repeat to select multiple sequences. | Sentinel.UNSET |
--allow-noncanonical-build |
boolean | Allow an unbound legacy build after validating it against the selected dataset. WARNING: use only when you have independently verified the build provenance. | False |
--compare-trackeval / --no-compare-trackeval |
boolean | Compare BoxMOT metrics against TrackEval for an AABB MOTChallenge benchmark. | False |
--help |
boolean | Show this message and exit. | False |
eval-reid
Evaluate a trained ReID model on query/gallery
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--weights |
path | Path to trained ReID checkpoint (.pt) | Sentinel.UNSET |
--model |
text | Model architecture (auto-detected from checkpoint if omitted) | None |
--dataset |
text | Evaluation dataset (e.g. market1501, duke, msmt17) | Sentinel.UNSET |
--data-dir |
path | Root directory of the dataset | Sentinel.UNSET |
--preprocess |
choice (resize | resize_pad) |
Crop preprocessing method (default: checkpoint/hparams value) | None |
--imgsz |
text | Image size as H,W (default: hparams value, fallback 256,128) | None |
--inference-feature |
choice (concat_bn | norm_concat_bn | global | raw_mean | raw_concat | visibility_weighted_parts | evidence_sinkhorn | dse_weighted | dse_mix) |
Override CSL-TinyViT eval embedding without retraining | None |
--flip-tta / --no-flip-tta |
boolean | Use horizontal flip test-time augmentation (default: hparams value) | None |
--device |
text | PyTorch device: cpu, mps, or cuda:N (e.g. cuda:0). | cpu |
--batch-size |
integer | Batch size for feature extraction | 64 |
--num-workers |
integer | Dataloader workers | 4 |
--latency-warmup |
integer | Warmup forward passes before measuring ReID inference latency | 5 |
--latency-iters |
integer | Timed forward passes for ReID inference latency; 0 disables latency measurement | 30 |
--output |
path | Directory to save eval JSON (default: next to weights) | None |
--help |
boolean | Show this message and exit. | False |
export
Export ReID models
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--batch-size |
integer | Batch size for export | 1 |
--imgsz, --img, --img-size |
text | Parsed H,W value; current export uses the checkpoint or registered model crop instead. | 256,128 |
--device |
text | One device: cpu, mps, cuda:N, or N (e.g. 0). GPU lists are not supported. | cpu |
--optimize |
boolean | Optimize TorchScript for mobile (CPU export only) | False |
--dynamic |
boolean | Enable dynamic batch for ONNX, TensorRT, and OpenVINO; attempt it for TFLite. Crop size stays fixed. | False |
--simplify |
boolean | Simplify ONNX model | False |
--opset |
integer | ONNX opset version | 17 |
--workspace |
integer | TensorRT workspace size (GB) | 4 |
--verbose |
boolean | Enable verbose logging for TensorRT | False |
--weights |
Path | Path to the model weights (.pt file) | osnet_x0_25_msmt17 |
--half |
boolean | Request FP16 export; ONNX graph conversion also supports CPU. TensorRT requires CUDA. | False |
--coreml-batch-buckets |
text | Static MLProgram batch buckets; values above 32 are rejected | 1,8,16,32 |
--coreml-minimum-deployment-target |
choice (macOS12 | macOS13 | macOS14 | macOS15 | macOS26) |
Minimum macOS target; macOS15 enables native SDPA | macOS15 |
--coreml-compute-units |
choice (ALL | CPUAndGPU | CPUAndNeuralEngine | CPUOnly) |
CoreML compute units used when compiling MLPrograms | CPUAndGPU |
--coreml-timeout |
float range (1.0 and above) |
Per-bucket CoreML conversion timeout in seconds | 600.0 |
--coreml-max-memory-gb |
float range (1.0 and above) |
Per-bucket CoreML conversion process memory limit | 16.0 |
--tflite-quantize |
choice (none | weight | dynamic | static) |
Post-quantize TFLite export: weight=int8 weights with float compute, dynamic=int8 dynamic range, static=int8 weights with calibrated activations | none |
--tflite-calibration-data |
Path | Image, image-list .txt, or directory of ReID crops for TFLite static calibration | None |
--tflite-calibration-samples |
integer | Maximum number of calibration images for TFLite static export | 256 |
--tflite-calibration-preprocess |
choice (resize | resize_pad) |
Crop preprocessing for TFLite static calibration images | resize |
--tflite-calibration-seed |
integer | Seed for nested directory sampling in TFLite static calibration | 0 |
--tflite-calibration-update |
choice (minmax | moving_average) |
Activation range update rule for TFLite static calibration | minmax |
--tflite-static-activation-bits |
integer | Activation precision for TFLite static quantization; weights remain int8 | 16 |
--include |
text | Export formats to include. Options: torchscript, onnx, openvino, engine, coreml, tflite | ('onnx',) |
--help |
boolean | Show this message and exit. | False |
export-edgetam
Export the full EdgeTAM TFLite bundle with a dynamic object count.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--weights |
file | Official full EdgeTAM checkpoint; edgetam.pt downloads the default weights if absent. | edgetam.pt |
--output |
directory | Directory for the TFLite components, bundle manifest, and validation report. | Sentinel.UNSET |
--max-objects |
integer range (1 and above) |
Maximum object batch size to export and validate; the shared image input stays fixed. | 96 |
--validate-objects |
text | Object counts to test, e.g. 1,2,8,96; by default the exporter selects counts up to --max-objects. | None |
--converter-python |
file | Python executable with onnx2tf installed; defaults to the current interpreter. | None |
--help |
boolean | Show this message and exit. | False |
install
Install optional dependencies in the active Python environment.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--extra |
text | BoxMOT extra to install; repeat for several extras. | Sentinel.UNSET |
--requirement |
text | Package requirement to install; repeat as needed. | Sentinel.UNSET |
--extra-index-url |
text | Additional package index; repeat as needed. | Sentinel.UNSET |
--quiet |
boolean | Suppress installation progress and success messages. | False |
--kitti-devkit |
directory | Compile the official object evaluator from an extracted KITTI devkit (requires C++17 and Boost headers). | Sentinel.UNSET |
--help |
boolean | Show this message and exit. | False |
materialize
Build an immutable perception dataset or derive a timestamped frame-loss variant
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--time-variant |
boolean | Derive a frame-loss dataset from --dataset, --sequence, and --build, preserving source timestamps. | False |
--experiment |
text | experiment YAML filename or path, e.g. mot17/ablation-yolox-lmbn.yaml or boxmot/configs/experiments/mot17/ablation-yolox-lmbn.yaml | Sentinel.UNSET |
--dataset |
text | Source dataset ID or YAML file for --time-variant. | mot17 |
--split |
text | Source split containing the sequence and ground truth for --time-variant. | ablation |
--sequence |
text | One source sequence for --time-variant, e.g. MOT17-10-FRCNN. | Sentinel.UNSET |
--build |
text | Parent materialized build ID or directory for --time-variant. | Sentinel.UNSET |
--name |
text | New dataset ID for --time-variant; defaults to the lowercase sequence name plus '-variable-time'. Existing outputs are refused. | Sentinel.UNSET |
--seed |
integer range (0 and above) |
Seed for reproducible frame selection and simulated outages with --time-variant. | 0 |
--device |
text | One device for all perception stages: cpu, mps, cuda:N, or N (e.g. 0). GPU lists are not supported. | cpu |
--fps |
float | Target dataset FPS: sample frames before perception and align ground truth. Default: original frames, or the selected build's FPS when replaying. | None |
--publish-image-refs / --no-publish-image-refs |
boolean | N/A | True |
--publish-masks / --no-publish-masks |
boolean | N/A | False |
--publish-embeddings / --no-publish-embeddings |
boolean | N/A | True |
--data-root |
path | Tracking-dataset root; defaults to ./datasets/mot. | None |
--build-root |
path | Materialized-dataset and shared detector-cache root; overrides BOXMOT_BUILDS_DIR and defaults to ./runs/materializations. | None |
--plan |
file | YAML file containing local executor stage settings. | None |
--auto-batch |
boolean | Measure and apply CUDA detector/ReID batch sizes before uncached materialization (one worker per stage). | False |
--auto-batch-max-size |
integer range (1 and above) |
Largest detector/ReID candidate when automatic batch sizing is selected. | 256 |
--auto-batch-memory-fraction |
float range (between 0 and 1) |
Fraction of available CUDA memory allowed for batch allocations during automatic sizing. | 0.8 |
--set |
text | Override one executor plan value; detect/embed.batch_size also accept auto. Repeat as needed. | Sentinel.UNSET |
--resume / --no-resume |
boolean | Resume this build's checkpoints; compatible shared detections are reused independently. | True |
--help |
boolean | Show this message and exit. | False |
research
Research tracker code changes with GEPA
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment |
text | experiment YAML filename or path, e.g. mot17/ablation-yolox-lmbn.yaml or boxmot/configs/experiments/mot17/ablation-yolox-lmbn.yaml | Sentinel.UNSET |
--build |
text | Materialized build ID or explicit build directory. | Sentinel.UNSET |
--build-root |
path | Materialized-dataset root for build IDs and shared detector cache; overrides BOXMOT_BUILDS_DIR and defaults to ./runs/materializations. | None |
--data-root |
path | Base folder for dataset storage.root; defaults to ./datasets/mot for built-in datasets or the local YAML folder. | None |
--project |
Path | save results to project/name | runs |
--name |
text | save results to project/name | exp |
--exist-ok |
boolean | reuse project/name and allow overwriting outputs instead of incrementing | False |
--ci |
boolean | reuse existing runs in CI (no UI) | False |
--tracker |
choice (boosttrack | botsort | bytetrack | deepocsort | eagermot | edgetam | hybridsort | maf_hda | occluboost | ocsort | sfsort | strongsort) |
one of: boosttrack, botsort, bytetrack, deepocsort, eagermot, edgetam, hybridsort, maf_hda, occluboost, ocsort, sfsort, strongsort | bytetrack |
--variable-dt / --fixed-dt |
boolean | Use capture timestamps for tracker motion; otherwise keep the tracker YAML setting (default: fixed dt). | None |
--verbose |
boolean | print detailed logs | False |
--show-timing / --hide-timing |
boolean | print runtime timing summary after evaluation | False |
--per-class |
boolean | track each class separately | False |
--proposal-model |
text | proposal model identifier used by GEPA reflections, e.g. openai/gpt-5.4, anthropic/claude-sonnet-4-20250514, openrouter/openai/gpt-5.4 | openai/gpt-5.4 |
--proposal-api-key |
text | proposal model API key; prefer shell env vars in CI but this can inject the key at runtime | None |
--proposal-api-key-env |
text | environment variable name for --proposal-api-key when the provider is not inferred, e.g. OPENAI_API_KEY or ANTHROPIC_API_KEY | None |
--max-metric-calls |
integer | maximum number of benchmark evaluations during research | 24 |
--eval-timeout |
float | hard timeout in seconds for each benchmark evaluation | 900.0 |
--keep-workspace / --no-keep-workspace |
boolean | preserve the temporary research workspace after the run | False |
--hota-penalty |
float | penalty multiplier for combined HOTA regression versus baseline | 0.0 |
--idf1-penalty |
float | penalty multiplier for combined IDF1 regression versus baseline | 1.0 |
--mota-penalty |
float | penalty multiplier for combined MOTA regression versus baseline | 1.0 |
--hota-tolerance |
float | allowed combined HOTA drop before penalties apply | 0.0 |
--idf1-tolerance |
float | allowed combined IDF1 drop before penalties apply | 0.0 |
--mota-tolerance |
float | allowed combined MOTA drop before penalties apply | 0.0 |
--help |
boolean | Show this message and exit. | False |
stream
Supervise a headless network camera and retain JSON metadata.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--config |
file | Continuous camera YAML configuration. | Sentinel.UNSET |
--help |
boolean | Show this message and exit. | False |
stream-db
Upgrade attribute storage or clean expired continuous-camera history.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
maintain
Cancel orphan work and prune acknowledged historical database records.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--database-url-env |
text | N/A | BOXMOT_ATTRIBUTES_DATABASE_URL |
--retention-days |
integer range (1 and above) |
N/A | 7 |
--help |
boolean | Show this message and exit. | False |
upgrade
Apply the additive schema upgrade with existing clients stopped.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--database-url-env |
text | N/A | BOXMOT_ATTRIBUTES_DATABASE_URL |
--help |
boolean | Show this message and exit. | False |
stream-outputs
Maintain one camera's exported metadata without global database cleanup.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
maintain
Export abandoned events and prune this camera's expired output segments.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--database-url-env |
text | N/A | BOXMOT_ATTRIBUTES_DATABASE_URL |
--retention-days |
integer range (1 and above) |
N/A | 7 |
--output-dir |
path | Root containing camera directories. | Sentinel.UNSET |
--camera-id |
text | Stable camera identity to maintain. | Sentinel.UNSET |
--help |
boolean | Show this message and exit. | False |
track
Run tracking on a source or saved TrackR-CNN predictions.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--source |
text | file/dir/URL/glob, 0 for webcam | 0 |
--tracker-backend |
choice (python | cpp) |
Tracker implementation backend. Native 'cpp' is available for botsort, bytetrack, occluboost, ocsort, and sfsort. Building native libraries requires CMake, a C++17 compiler, OpenCV development files, and Eigen3. | python |
--tracker-config |
text | Tracker runtime YAML path or built-in preset; overrides must preserve calibrated time units. | None |
--asso-func |
choice (iou | giou | diou | ciou | hmiou | centroid) |
Association geometry override for AABB and OBB tracking. OBB ciou is a custom experimental adaptation; OBB hmiou is an experimental global-y height cue for scenes where image vertical is meaningful. | None |
--imgsz |
text | Image size for model input as H,W (e.g. 800,1440) or single int for square. Default: read from the selected detector config, otherwise use detector-specific defaults. | None |
--fps |
integer range (1 and above) |
Frame rate of saved tracking video; input frames and capture timestamps are unchanged. | None |
--conf |
float | Min confidence threshold. Default: read from the selected detector config, fallback 0.01. | None |
--iou |
float | IoU threshold for NMS | 0.7 |
--device |
text | One device: cpu, mps, cuda:N, or N (e.g. 0). GPU lists are not supported. | cpu |
--project |
Path | save results to project/name | runs |
--exist-ok |
boolean | reuse project/name and allow overwriting outputs instead of incrementing | False |
--half |
boolean | use FP16 for supported ReID inference paths; detector precision is unchanged | False |
--tracker |
choice (boosttrack | botsort | bytetrack | deepocsort | eagermot | edgetam | hybridsort | maf_hda | occluboost | ocsort | sfsort | strongsort) |
one of: boosttrack, botsort, bytetrack, deepocsort, eagermot, edgetam, hybridsort, maf_hda, occluboost, ocsort, sfsort, strongsort | bytetrack |
--variable-dt / --fixed-dt |
boolean | Use capture timestamps for tracker motion; otherwise keep the tracker YAML setting (default: fixed dt). | None |
--verbose |
boolean | print detailed logs | False |
--show |
boolean | display tracking in a window when OpenCV GUI support is available | False |
--show-trajectories |
boolean | Accepted, but trajectory overlays are not implemented by the current track renderer. | False |
--show-kf-preds |
boolean | Accepted, but Kalman prediction overlays are not implemented by the current track renderer. | False |
--save-txt |
boolean | save results to a .txt file | False |
--save |
boolean | save annotated video | False |
--per-class |
boolean | track each class separately | False |
--detector |
text | detector profile ID, YAML config, or artifact path | yolov8n |
--reid |
text | ReID profile ID, YAML config, or artifact path | osnet_x0_25_msmt17 |
--classes |
text | filter by class indices, e.g. 0 or "0,1" | None |
--segmentor |
text | Segmentor config ID or YAML path. | None |
--mask-guidance-weights |
path | Checkpoint or exported TFLite bundle directory used with --edgetam. Selecting weights alone does not enable guidance; edgetam.pt uses the default model cache. TFLite guidance runs on CPU. Python AABB box trackers with IoU only. | None |
--edgetam / --no-edgetam |
boolean | Enable EdgeTAM mask guidance with tracker YAML settings; uses edgetam.pt unless weights are supplied. | False |
--mask-guidance-max-objects |
integer range (1 and above) |
Override the tracker config's edgetam.max_objects (default 96) when --edgetam is enabled. Maximum identities with temporal mask memory; fixed when tuning. | None |
--prompt-weights |
file | EdgeTAM checkpoint for --tracker edgetam; draw boxes or click points in its video window. | edgetam.pt |
--geometry |
choice (auto | aabb | obb) |
Infer box geometry from the detector; aabb/obb require matching detector output. | auto |
--save-json |
boolean | Write canonical JSON Lines track output. | False |
--attributes |
text | Attribute profile; analyze tracks in the background and write attributes.jsonl. | None |
--attributes-host |
text | Override the attribute server URL; requires --attributes. | None |
--detections |
directory | TrackR-CNN detection directory; requires --images and --instances. Defaults to maf_hda and runs/trackrcnn. | None |
--images |
directory | KITTI training/image_02 directory for saved TrackR-CNN tracking. | None |
--instances |
directory | KITTI MOTS ground-truth instance PNG directory for saved TrackR-CNN mask evaluation. | None |
--split |
choice (val | train | fulltrain) |
KITTI MOTS split for saved TrackR-CNN tracking. | val |
--sequence |
text | Limit the selected split to one sequence. Repeat to select multiple sequences. | Sentinel.UNSET |
--help |
boolean | Show this message and exit. | False |
train-reid
Train a ReID model
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--cfg |
file | BoxMOT ReID YAML/JSON config or saved hparams.json. Explicit CLI flags override config values. | None |
--recipe |
choice (csl_tinyvit_11m | csl_tinyvit_11m_v20_pose_teacher | csl_tinyvit_23m | csl_tinyvit_23m_v8 | csl_tinyvit_7m | csl_tinyvit_7m_hi_afa_lite | csl_tinyvit_7m_hpgrd | csl_tinyvit_7m_multilevel_suppression | csl_tinyvit_7m_v20 | hi_afa_market1501 | lmbn_n | lmbn_n_market1501 | mobilenetv4 | mobilenetv4_conv_large | mobilenetv4_conv_medium | mobilenetv4_conv_medium_v20 | mobilenetv4_conv_small | mobilenetv4_conv_small_a11k | mobilenetv4_hybrid_medium_v20 | vit) |
Training recipe preset (overrides defaults; CLI flags still take priority). Available: csl_tinyvit_11m, csl_tinyvit_11m_v20_pose_teacher, csl_tinyvit_23m, csl_tinyvit_23m_v8, csl_tinyvit_7m, csl_tinyvit_7m_hi_afa_lite, csl_tinyvit_7m_hpgrd, csl_tinyvit_7m_multilevel_suppression, csl_tinyvit_7m_v20, hi_afa_market1501, lmbn_n, lmbn_n_market1501, mobilenetv4, mobilenetv4_conv_large, mobilenetv4_conv_medium, mobilenetv4_conv_medium_v20, mobilenetv4_conv_small, mobilenetv4_conv_small_a11k, mobilenetv4_hybrid_medium_v20, vit | None |
--model |
choice (csl_tinyvit_11m | csl_tinyvit_11m_lmbn | csl_tinyvit_11m_v20 | csl_tinyvit_23m | csl_tinyvit_23m_lmbn | csl_tinyvit_7m | csl_tinyvit_7m_lmbn | csl_tinyvit_7m_v20 | csl_tinyvit_large | csl_tinyvit_lmbn | csl_tinyvit_normal | csl_tinyvit_small | hacnn | hi_afa | lmbn_ain_n | lmbn_n | mlfn | mobilenetv2_x1_0 | mobilenetv2_x1_4 | mobilenetv4_conv_large | mobilenetv4_conv_medium | mobilenetv4_conv_medium_v20 | mobilenetv4_conv_small | mobilenetv4_hybrid_large | mobilenetv4_hybrid_medium | mobilenetv4_hybrid_medium_v20 | osnet_ain_x0_25 | osnet_ain_x0_5 | osnet_ain_x0_75 | osnet_ain_x1_0 | osnet_ibn_x1_0 | osnet_x0_25 | osnet_x0_5 | osnet_x0_75 | osnet_x1_0 | resnet101 | resnet152 | resnet18 | resnet34 | resnet50 | resnet50_fc512 | resnext101_32x8d | resnext50_32x4d) |
ReID backbone architecture | csl_tinyvit_11m_v20 |
--data |
text | ReID dataset name or YAML data config. Repeat or comma-separate for multi-dataset training, e.g. --data market1501.yaml --data duke.yaml. YAML supports dataset/name, path, train, val, query, gallery, and download. | () |
--dataset |
text | Training dataset (comma-separated for joint training, e.g. market1501,duke,cuhk03,msmt17). Available: cuhk03, duke, market1501, mot171501, msmt17, msmt17_merged, veri | market1501 |
--data-dir |
path | Root directory of the dataset (inferred from hparams.json when --resume is used) | None |
--loss |
choice (softmax | triplet | wrt | circle | ms) |
Metric loss type (triplet=batch-hard triplet, wrt=weighted regularized triplet, circle=Circle loss, ms=multi-similarity, softmax=classifier only) | triplet |
--classifier-loss |
choice (ce | arcface | cosface) |
ID classifier loss: ce, arcface, or cosface | ce |
--preprocess |
choice (resize | resize_pad) |
Crop preprocessing method; must match inference-time preprocessing | resize |
--imgsz |
text | Image size as H,W (e.g. 256,128) | 384,128 |
--batch-size |
integer | Evaluation batch size; training uses --p-ids × --k-instances | 64 |
--lr |
float | Base learning rate | 0.0007 |
--weight-decay |
float | Weight decay | 0.1 |
--epochs |
integer | Number of training epochs | 200 |
--warmup-epochs |
integer | Linear warmup epochs | 20 |
--vit-lr-profile |
choice (layer_decay | reid_lrd) |
Transformer LR grouping profile: geometric layer decay or ReID stage-wise decay | layer_decay |
--layer-decay |
float | Geometric per-stage LR decay for hierarchical transformer backbones | 0.95 |
--backbone-lr-mult |
float | Persistent pretrained-backbone LR multiplier for MobileNetV4 | 1.0 |
--backbone-freeze-epochs |
integer | Freeze pretrained backbone layers for the first N epochs | 10 |
--gradual-unfreeze / --no-gradual-unfreeze |
boolean | Use staged ReID unfreeze: head/neck, last backbone stage, then full model | False |
--gradual-unfreeze-head-epochs |
integer | Gradual unfreeze head/neck-only epoch boundary | 5 |
--gradual-unfreeze-stage-epochs |
integer | Gradual unfreeze last-stage epoch boundary before full model training | 20 |
--gradual-unfreeze-backbone-lr-mult |
float | Backbone LR multiplier for early full-model gradual-unfreeze epochs | 0.1 |
--gradual-unfreeze-backbone-lr-epochs |
integer | Number of full-model epochs using the gradual-unfreeze backbone LR multiplier | 5 |
--eval-interval |
integer | Validate every N epochs | 10 |
--p-ids |
integer | Number of identities per PK batch | 12 |
--k-instances |
integer | Number of instances per identity | 8 |
--source-balance |
text | Source-balanced PK sampler spec, e.g. 'market1501:8,4;mot17_1501:8,4'. Empty uses the global --p-ids x --k-instances sampler. | `` |
--pk-steps-per-epoch |
integer | Fixed PK batches per epoch; zero uses one shuffled identity pass | 0 |
--camera-aware-sampler / --no-camera-aware-sampler |
boolean | Prefer distinct-camera instances within each identity; cameras affect sampling only | False |
--margin |
float | Triplet loss margin | 0.3 |
--triplet-soft-margin / --triplet-hard-margin |
boolean | Use softplus batch-hard triplet instead of the hard margin. Default: auto for transformer-family recipes, hard margin otherwise. | True |
--arcface-scale |
float | ArcFace logit scale | 30.0 |
--arcface-margin |
float | ArcFace angular margin | 0.5 |
--cosface-scale |
float | CosFace logit scale | 30.0 |
--cosface-margin |
float | CosFace cosine margin | 0.35 |
--label-smooth |
float | Label smoothing epsilon | 0.05 |
--center-loss-weight |
float | Center loss weight | 0.005 |
--id-loss-weight |
float | Weight applied to the ID classification loss term | 1.0 |
--metric-loss-weight |
float | Weight applied to the metric loss term (triplet/wrt/circle/ms) | 1.0 |
--adasp-loss-weight |
float | Weight for AdaSP on the full normalized descriptor; 0 disables | 0.0 |
--adasp-temperature |
float | AdaSP similarity temperature | 0.04 |
--adasp-scale |
float | AdaSP paper-scale multiplier applied before its ablation weight | 0.1 |
--coarse-branch-ce-weight |
float | Relative CE weight for two-stripe branches; 0 disables coarse CE | 1.0 |
--fine-branch-ce-weight |
float | Relative CE weight for four-stripe branches; 0 disables fine CE | 1.0 |
--part-relation-weight |
float | EMA cross-ID neighborhood loss weight for corresponding fine parts | 0.0 |
--part-to-global-weight |
float | Weight for distilling aggregate part neighborhoods into global features | 0.0 |
--part-relation-teacher-momentum |
float | EMA momentum for the training-only part-relation teacher | 0.999 |
--part-relation-temperature |
float | Temperature for cross-ID part-neighborhood distillation | 0.07 |
--compact-metric-loss-weight |
float | Triplet-loss weight for an enabled compact deployment descriptor | 1.0 |
--compact-cosine-distill-weight |
float | Cosine alignment weight from compact student to the full teacher descriptor | 1.0 |
--compact-pairwise-distill-weight |
float | PK-batch pairwise-distance distillation weight for the compact student | 1.0 |
--csmm-loss-weight |
float | Cross-scale majority-margin auxiliary loss weight; 0 disables | 0.0 |
--csmm-margin |
float | Target cosine ranking margin for the median descriptor scale | 0.1 |
--csmm-temperature |
float | Softplus temperature for the cross-scale majority-margin loss | 0.05 |
--csmm-topk-negatives |
integer | Closest full-descriptor negatives evaluated per CSMM anchor | 8 |
--csmm-start-epoch |
integer | Epoch through which the CSMM auxiliary weight remains zero | 20 |
--csmm-ramp-end-epoch |
integer | Epoch where CSMM reaches --csmm-loss-weight | 40 |
--treeboost-loss-weight |
float | TreeBoost-AP hierarchical retrieval auxiliary loss weight; 0 disables | 0.0 |
--treeboost-coarse-coefficient |
float | Coefficient for coarse residual ranking supervision inside TreeBoost-AP | 1.0 |
--treeboost-fine-coefficient |
float | Coefficient for fine residual ranking supervision inside TreeBoost-AP | 1.0 |
--treeboost-node-coefficient |
float | Coefficient for upper/lower parent-child refinement terms | 0.25 |
--treeboost-regression-coefficient |
float | Coefficient penalizing ranking regressions at finer hierarchy levels | 0.1 |
--treeboost-difficulty-floor |
float | Minimum supervision retained for hierarchy levels after easy parent rankings | 0.25 |
--treeboost-regression-tolerance |
float | Allowed SmoothAP loss increase when adding a finer hierarchy level | 0.02 |
--treeboost-temperature |
float | Pairwise sigmoid temperature for cross-camera-positive TreeBoost SmoothAP | 0.05 |
--treeboost-start-epoch |
integer | Epoch through which the TreeBoost-AP auxiliary weight remains zero | 30 |
--treeboost-ramp-end-epoch |
integer | Epoch where TreeBoost-AP reaches --treeboost-loss-weight | 60 |
--global-ap-loss-weight |
float | Identity-defined dataset-memory SmoothAP weight on the deployed descriptor; 0 disables | 0.0 |
--global-ap-temperature |
float | Pairwise rank-relaxation temperature for GlobalAP | 0.05 |
--global-ap-topk |
integer | Different-identity hard negatives per GlobalAP query; all non-self same-identity positives remain | 500 |
--global-ap-memory-size |
integer | Stable sample-index capacity of the GlobalAP memory | 16384 |
--global-ap-momentum |
float | Descriptor momentum for repeated GlobalAP memory rows | 0.2 |
--global-ap-max-age |
integer | Maximum memory age in optimizer steps; 0 keeps all populated rows | 0 |
--global-ap-start-epoch |
integer | Last epoch with GlobalAP disabled | 20 |
--global-ap-ramp-end-epoch |
integer | Epoch where GlobalAP reaches full weight | 50 |
--global-ap-decay-start-epoch |
integer | Last epoch with GlobalAP at full weight | 130 |
--global-ap-decay-end-epoch |
integer | Epoch where GlobalAP returns to zero | 170 |
--hpgrd-cache-dir |
path | Offline human-privileged teacher cache used only during training | None |
--hpgrd-global-weight |
float | External-teacher identity-relational distillation weight | 0.0 |
--hpgrd-part-weight |
float | Visibility-aware fixed-mask part relational distillation weight | 0.0 |
--hpgrd-background-weight |
float | Background-intervention descriptor consistency weight | 0.0 |
--hpgrd-part-drop-weight |
float | Semantic part leave-out teacher consistency weight | 0.0 |
--hpgrd-part-drop-probability |
float | Probability of masking one visible semantic part in a student view | 0.0 |
--hpgrd-gradient-fraction |
float | Maximum shared-feature HP-GRD gradient norm as a fraction of the base objective | 0.3 |
--hpgrd-min-confidence |
float | Minimum fused pose/parser teacher confidence | 0.05 |
--early-id-loss-weight |
float | Temporary ID loss weight for the first --early-id-loss-epochs epochs; 0 disables | 0.0 |
--early-id-loss-epochs |
integer | Number of initial epochs using --early-id-loss-weight | 0 |
--center-loss-ramp-start-epoch |
integer | Epoch through which center loss weight stays at 0; 0 disables unless end is set | 0 |
--center-loss-ramp-end-epoch |
integer | Epoch where center loss reaches --center-loss-weight; 0 disables ramping | 0 |
--aux-ce-weight |
float | Relative CE weight for auxiliary branch classifiers; 1.0 preserves equal branch averaging | 1.0 |
--aux-ce-drop-epoch |
integer | Set auxiliary CE weight to 0 after this epoch; 0 keeps it active for all epochs | 0 |
--branch-loss-agg |
choice (mean | sum) |
How to aggregate multi-branch losses before weighting | mean |
--scale-balanced-branches / --no-scale-balanced-branches |
boolean | Give global, two-stripe, and four-stripe scales equal CE and descriptor weight | True |
--multilevel-suppression / --no-multilevel-suppression |
boolean | Train coarse and fine classifiers on evidence suppressed by the preceding scale | False |
--multilevel-suppression-ratio |
float | Maximum top-saliency spatial fraction suppressed in the auxiliary path | 0.15 |
--multilevel-suppression-loss-weight |
float | Peak weight of scale-balanced multilevel suppression CE | 0.2 |
--multilevel-suppression-start-epoch |
integer | Epoch through which multilevel suppression remains disabled | 20 |
--multilevel-suppression-ramp-end-epoch |
integer | Epoch where suppression ratio and auxiliary CE reach full strength | 50 |
--multilevel-suppression-decay-start-epoch |
integer | Last epoch at full multilevel suppression strength | 140 |
--multilevel-suppression-decay-end-epoch |
integer | Epoch where multilevel suppression and auxiliary CE return to zero | 170 |
--hierarchical-branch-attention / --no-hierarchical-branch-attention |
boolean | Refine the 1-to-2-to-4 branch descriptors with tree-masked token attention | False |
--branch-attention-token-dim |
integer | Token width used by hierarchical branch attention | 96 |
--branch-attention-num-heads |
integer | Attention heads used by hierarchical branch attention | 4 |
--branch-attention-num-layers |
integer | Transformer layers used by hierarchical branch attention | 1 |
--branch-attention-mlp-ratio |
float | Transformer MLP expansion ratio for hierarchical branch attention | 2.0 |
--branch-attention-dropout |
float | Dropout used by hierarchical branch attention | 0.0 |
--branch-set-attention / --no-branch-set-attention |
boolean | Refine all seven pooled 512-D branches with shared unmasked attention | False |
--branch-set-attention-token-dim |
integer | Shared token width used by branch-set attention | 128 |
--branch-set-attention-num-heads |
integer | Attention heads used by branch-set attention | 4 |
--branch-set-attention-num-layers |
integer | Transformer layers used by branch-set attention | 1 |
--branch-set-attention-mlp-ratio |
float | Transformer MLP expansion ratio for branch-set attention | 2.0 |
--branch-set-attention-dropout |
float | Dropout used by branch-set attention | 0.0 |
--multiscale-query-decoder / --no-multiscale-query-decoder |
boolean | Decode seven pooled queries against final, Stage-2, and Stage-0 spatial maps | False |
--query-decoder-dim |
integer | Shared query and spatial-memory token width | 128 |
--query-decoder-num-heads |
integer | Self- and cross-attention head count for the query decoder | 4 |
--query-decoder-num-layers |
integer | Number of residual multi-scale query decoder layers | 1 |
--query-decoder-mlp-ratio |
float | Query-decoder FFN expansion ratio | 2.0 |
--query-decoder-dropout |
float | Dropout used by the query decoder | 0.0 |
--hierarchical-late-interaction / --no-hierarchical-late-interaction |
boolean | Train the pair-conditioned hierarchical matcher and top-k reranker | False |
--late-interaction-dim |
integer | Shared branch-token width for hierarchical late interaction | 128 |
--late-interaction-num-heads |
integer | Cross-attention head count for hierarchical late interaction | 4 |
--late-interaction-num-layers |
integer | Pair-conditioned cross-attention layer count | 1 |
--late-interaction-sinkhorn-iters |
integer | Sinkhorn normalization iterations for pair alignment | 5 |
--late-interaction-null-tokens |
integer | Learned null evidence tokens per image | 1 |
--late-interaction-negative-identities |
integer | Detached-base hard negative identities per anchor | 16 |
--late-interaction-rerank-topk |
integer | Base-cosine candidates reranked by late interaction | 100 |
--late-interaction-base-score-init |
float | Initial contribution of the proven base descriptor score | 0.9 |
--late-interaction-loss-weight |
float | Full-weight multi-positive matcher loss coefficient | 0.2 |
--late-interaction-distill-weight |
float | Full-weight matcher-to-base ranking distillation coefficient | 0.05 |
--late-interaction-temperature |
float | Listwise matcher and distillation temperature | 0.07 |
--late-interaction-start-epoch |
integer | Epoch through which late-interaction auxiliary weights remain zero | 20 |
--late-interaction-ramp-end-epoch |
integer | Epoch where matcher and distillation reach full weight | 50 |
--mcpt-mode |
choice (none | dataset_boundaries | per_image_stage2 | shared_multiscale | foreground_aware_shared_multiscale) |
Monotonic canonical part transport treatment | none |
--mcpt-hidden-dim |
integer | Hidden row-predictor width for RGB-conditioned MCPT | 64 |
--mcpt-max-displacement |
float | Maximum normalized vertical displacement | 0.15 |
--mcpt-smoothness-weight |
float | Second-difference MCPT regularization weight | 0.01 |
--mcpt-identity-weight |
float | Initial identity-warp regularization weight | 0.02 |
--mcpt-identity-decay-epoch |
integer | Epoch where MCPT identity regularization reaches zero | 60 |
--mcpt-lr-multiplier |
float | MCPT learning-rate multiplier relative to the head | 2.0 |
--mcpt-start-epoch |
integer | Last epoch with transport forced exactly off | 10 |
--mcpt-ramp-end-epoch |
integer | Epoch where the MCPT gate schedule reaches full scale | 40 |
--mcpt-disabled-eval / --no-mcpt-disabled-eval |
boolean | Also validate with MCPT forcibly disabled | False |
--jpm / --no-jpm |
boolean | Enable training-only TransReID Jigsaw Patch Module | False |
--jpm-num-groups |
integer | Number of JPM shuffled patch groups | 4 |
--jpm-shift |
integer | Patch-token cyclic shift before JPM shuffle | 5 |
--jpm-token-dim |
integer | JPM auxiliary transformer bottleneck width | 96 |
--jpm-num-heads |
integer | JPM shared transformer attention heads | 4 |
--jpm-mlp-ratio |
float | JPM shared transformer MLP expansion | 4.0 |
--jpm-dropout |
float | JPM shared transformer dropout | 0.0 |
--jpm-id-loss-weight |
float | Mean JPM local identity-loss coefficient | 1.0 |
--jpm-metric-loss-weight |
float | Mean JPM local triplet-loss coefficient | 1.0 |
--metric-feature |
choice (auto | global | coarse_concat | raw_mean | raw_concat | concat_bn | dse_weighted | dse_mix) |
Feature representation used for metric losses when the model supports multiple branches | raw_concat |
--inference-feature |
choice (concat_bn | norm_concat_bn | global | raw_mean | raw_concat | visibility_weighted_parts | evidence_sinkhorn | dse_weighted | dse_mix) |
Feature representation emitted by CSL-TinyViT at validation/inference time | norm_concat_bn |
--feature-fusion |
choice (final | last2 | last3 | last4_layer0_target | last3_stage2_target | last3_stage1_concat | global_final_parts_stage1_concat | global_final_parts_fpn_layer0 | last3_fpn_stage1_add | last3_fpn_stage1_split | last3_panet_stage1_split | last3_panet_stage1_shared | last3_panet_stage1_scale_aware | last3_bifpn_stage1_split | last3_bifpn_stage1_branch_aware | global_final_parts_hierarchical_fpn | last3_fpn_stage2 | last3_pafpn_stage2 | last4_fpn_layer0_target | global_final_parts_stage2 | global_final_parts_stage2_semantic_residual | global_final_parts_stage2_hierarchical_control | global_final_parts_stage0_semantic_fine_reference | global_final_parts_stage0_semantic_fine | global_final_parts_stage0_fine_lite | global_final_parts_stage0_panet_lite | global_final_parts_stage0_bifpn_lite | global_final_parts_stage0_native_pyramid | global_final_parts_stage0_pool_first | late_concat_stage2 | weighted_last2 | weighted_last3 | normpres_last2 | normpres_last3 | dynamic_last3 | dynamic_last3_scale_token | dpt_fpn) |
CSL-TinyViT static or per-image dynamic spatial fusion before the ReID head | global_final_parts_stage0_semantic_fine |
--pyramid-resize-mode |
choice (bilinear | pool_nearest | pool_bilinear) |
Pyramid resizing: bilinear, average-pool down/nearest up, or average-pool down/bilinear up | bilinear |
--spatial-conv-mode |
choice (standard | depthwise_separable | bottleneck_depthwise) |
CSL-TinyViT neck/FPN 3x3 convolution implementation | depthwise_separable |
--post-fusion-mixer |
choice (none | dwconv) |
Optional zero-gated local mixer after CSL-TinyViT feature fusion | none |
--post-fusion-mixer-reduction |
integer | Channel reduction ratio for the post-fusion local mixer | 4 |
--post-fusion-mixer-kernel |
text | Post-fusion depthwise mixer kernel as H,W, e.g. 5,3 | 5,3 |
--post-fusion-mixer-gamma-init |
float | Initial residual scale for the post-fusion local mixer | 0.0 |
--feat-dim |
integer | Per-branch embedding dimension for ReID heads that support projection | 512 |
--neck-dim |
integer | Neck channel dimension for ReID backbones that support a feature neck | 512 |
--drop-path-rate |
float | Maximum stochastic-depth probability for CSL-TinyViT | 0.1 |
--timm-model-name |
text | Optional exact timm pretrained model tag for MobileNetV4 | `` |
--timm-head-mode |
choice (pooled | spatial | spatial_adapt_norm | spatial_linear | off) |
MobileNetV4 C5 head path, including spatial normalization controls | pooled |
--mobilenetv4-last-stride |
integer range (between 1 and 2) |
MobileNetV4 final spatial stride: 1 retains stride-16 C5; 2 keeps ImageNet topology | 2 |
--mobilenetv4-neck-mode |
choice (cnn | spatial_ln) |
MobileNetV4 ReID neck: CNN projection or TinyViT-matched spatial LayerNorm neck | cnn |
--attention-window-layout |
choice (legacy | rect) |
CSL-TinyViT attention windows: legacy square windows or ReID rectangular windows | rect |
--attention-bias |
choice (absolute | signed_factorized) |
CSL-TinyViT relative attention bias parameterization | absolute |
--interpolate-pretrained-attention-bias / --no-interpolate-pretrained-attention-bias |
boolean | Resize official absolute attention-bias tables for non-legacy attention windows | True |
--attention-mask / --no-attention-mask |
boolean | Mask padded tokens in CSL-TinyViT window attention | True |
--attention-shift / --no-attention-shift |
boolean | Alternate shifted CSL-TinyViT windows in attention stages 1 and 2 | False |
--stage3-global / --no-stage3-global |
boolean | Use full 24x8 attention in the final CSL-TinyViT block | False |
--stage3-downsample / --no-stage3-downsample |
boolean | Downsample only the final/global transformer stage while retaining Stage-2 local tokens | False |
--stage2-width-merge-after |
integer | Merge adjacent Stage-2 columns after this many blocks; 0 disables | 0 |
--stage2-mlp-ratio |
float | MLP expansion ratio used only in CSL-TinyViT Stage 2 | 4.0 |
--stage3-mlp-ratio |
float | MLP expansion ratio used only in CSL-TinyViT Stage 3 | 4.0 |
--stage2-depth |
integer | Number of transformer blocks used only in CSL-TinyViT Stage 2 | 6 |
--stage3-depth |
integer | Number of transformer blocks used only in CSL-TinyViT Stage 3 | 2 |
--width-first-hierarchy / --no-width-first-hierarchy |
boolean | Preserve vertical detail via 48x16 -> 48x8 -> 24x8 CSL-TinyViT stages | False |
--identity-registers / --no-identity-registers |
boolean | Exchange Stage-2/3 context through global identity-register tokens | False |
--identity-register-count |
integer | Number of global identity-register tokens | 4 |
--identity-register-dim |
integer | Bottleneck width used for identity-register communication | 128 |
--identity-register-num-heads |
integer | Attention heads used by identity-register communication | 4 |
--identity-register-dropout |
float | Training-time probability of dropping each identity register | 0.1 |
--identity-register-gate-init |
float | Initial residual broadcast gate for identity registers | 0.0 |
--identity-register-diversity-weight |
float | Weight for the weak identity-register diversity loss | 0.0 |
--identity-register-diversity-margin |
float | Maximum unpenalized cosine similarity between identity registers | 0.1 |
--native-branch-widths / --no-native-branch-widths |
boolean | Keep global/local/fine fusion maps at descriptor-native 512/256/128 widths | False |
--fine-map-dim |
integer | Fine Stage-0 fusion-map channels; 0 keeps the full neck width | 0 |
--compact-deployment-head / --no-compact-deployment-head |
boolean | Train seven teacher branches but emit one distilled 512-D descriptor at inference | False |
--reid-adapter-stages |
text | CSL-TinyViT attention stages that receive zero-gated ReID residual adapters | `` |
--reid-adapter-reduction |
integer | Channel reduction ratio for CSL-TinyViT ReID residual adapters | 4 |
--reid-adapter-suppression-tau |
float | RMS-saliency suppression threshold for ReID adapters; 0 disables | 0.0 |
--head-pool |
choice (avg | gem | dse | gelu_gem | relu_gem | softplus_gem) |
Pooling layer used by CSL-TinyViT multi-branch heads | gelu_gem |
--head-parts |
text | CSL-TinyViT head granularities, e.g. 1,2 for global+2 parts or 1,2,4 for MGN | 1,2,4 |
--head-type |
choice (standard | gpc_lite | stage2_channel2 | multiscale_channel2 | stage2_pg | stage2_gpc_lite | stage2_gpc_lite_gate | stage2_pg_gate | suppressed_global | body_slot) |
CSL-TinyViT branch head, including optional channel and G/P/C specialists | standard |
--multiscale-channel-alpha |
float | Channel power amplitude mixed inside each global/coarse/fine scale | 0.5 |
--body-slot-mode |
choice (recurrent_read | recurrent_read_write) |
Persistent body-slot communication: read-only Tier B or zero-gated read/write Tier C | recurrent_read |
--body-slot-alpha |
float | Descriptor power allocated to the 512-D global stream | 0.45 |
--body-slot-visibility-floor |
float | Minimum retrieval power retained for every body slot | 0.05 |
--part-pooling |
choice (stripes | overlap_stripes | tokens | semantic_parts) |
CSL-TinyViT local pooling: fixed, overlapping, learned-token, or semantic-visibility parts | stripes |
--num-part-tokens |
integer | Number of learned local/evidence queries for token or semantic-part pooling | 4 |
--evidence-num-roles |
integer | Number of latent semantic role bins for CSL-TinyViT evidence tokens | 8 |
--decouple-patterns / --no-decouple-patterns |
boolean | Use separate zero-initialized residual adapters for global and local features | False |
--pattern-adapter-dim |
integer | Bottleneck width of each global/local pattern adapter | 128 |
--stripe-visibility / --no-stripe-visibility |
boolean | Learn a per-image confidence for each fixed local stripe | False |
--drop-global-aux / --no-drop-global-aux |
boolean | Add a training-only dropped-global CE auxiliary classifier to the standard CSL-TinyViT head | False |
--drop-global-aux-ratio |
float | Horizontal activation-band ratio suppressed by --drop-global-aux | 0.25 |
--branch-aware-metric / --no-branch-aware-metric |
boolean | Apply metric loss separately to CSL-TinyViT global and part branches | False |
--branch-metric-part-weight |
float | Weight for each part branch metric loss when branch-aware metric is enabled | 0.5 |
--evidence-alignment-loss-weight |
float | Weight for batch Sinkhorn evidence alignment loss; 0 disables | 0.0 |
--evidence-alignment-margin |
float | Negative-pair margin for evidence alignment loss | 0.2 |
--evidence-sinkhorn-iters |
integer | Sinkhorn iterations for evidence alignment and reranking | 20 |
--evidence-sinkhorn-temperature |
float | Sinkhorn temperature for evidence alignment and reranking | 0.1 |
--evidence-rerank-topk |
integer | Gallery top-K reranked with evidence Sinkhorn distance; 0 reranks all | 100 |
--evidence-null-loss-weight |
float | Weight for explicit final-token null/background supervision; 0 disables | 0.0 |
--evidence-diversity-loss-weight |
float | Weight for role/descriptor diversity regularization across evidence tokens | 0.0 |
--head-warmup-epochs |
integer | Train only CSL-TinyViT neck/head for the first N epochs | 0 |
--head-warmup-lr-mult |
float | LR multiplier for neck/head parameter groups during head warmup | 2.0 |
--eta-min |
float | Minimum learning rate for cosine annealing schedule | 1e-07 |
--pretrained / --no-pretrained |
boolean | Use ImageNet-pretrained backbone | True |
--pretrained-weights |
file | Local exact-backbone checkpoint from human pretraining; overrides model-zoo init | None |
--device |
text | PyTorch device: cpu, mps, or cuda:N (e.g. cuda:0). | mps |
--project |
path | Save directory | runs/reid_train |
--name |
text | Experiment name | exp |
--num-workers |
integer | Dataloader workers | 4 |
--seed |
integer | Global random seed for Python, NumPy, PyTorch, samplers, and dataloader workers | 0 |
--deterministic / --no-deterministic |
boolean | Require deterministic PyTorch algorithms and backend behavior | True |
--eval-datasets |
text | Comma-separated list of extra datasets for cross-domain evaluation (e.g. duke,cuhk03,msmt17) | `` |
--flip-tta / --no-flip-tta |
boolean | Use horizontal flip augmentation during validation (default: recipe value) | None |
--ema-decay |
float | EMA momentum decay for model averaging (e.g. 0.999). Disabled by default. Inspired by DynaMix | 0.0 |
--gaussian-blur / --no-gaussian-blur |
boolean | Apply random Gaussian blur augmentation | True |
--color-jitter / --no-color-jitter |
boolean | Apply color jitter augmentation (auto-enabled for transformer-family recipes) | True |
--random-grayscale |
float | Probability of random grayscale conversion (0 to disable) | 0.1 |
--random-erasing |
float | Probability of random erasing augmentation (0 to disable) | 0.5 |
--random-patch / --no-random-patch |
boolean | Apply random patch augmentation | True |
--random-crop-scale |
float | Random2DTranslation resize factor before crop; 1.05 matches LMBN implementation | 1.05 |
--color-augmentation / --no-color-augmentation |
boolean | Enable additional color augmentation mix used by LMBN-style recipes | True |
--background-mosaic / --no-background-mosaic |
boolean | Replace only the anchor background with a four-source donor mosaic | False |
--background-mosaic-mask-dir |
path | Mask root containing primary/ anchor and all_people/ donor trees | None |
--background-mosaic-probability |
float | Maximum probability of identity-preserving background mosaic | 0.3 |
--background-mosaic-start-epoch |
integer | Keep background mosaic disabled through this epoch | 10 |
--background-mosaic-ramp-end-epoch |
integer | Epoch at which background mosaic reaches its maximum probability | 30 |
--background-mosaic-min-foreground-ratio |
float | Reject anchor masks retaining less than this image fraction | 0.2 |
--background-mosaic-max-foreground-ratio |
float | Reject anchor masks retaining more than this image fraction | 0.9 |
--background-mosaic-feather |
float | Gaussian mask-edge feather radius in source-image pixels | 1.5 |
--background-mosaic-dilation |
integer | Foreground-mask dilation radius before background compositing | 2 |
--background-mosaic-occluder-probability |
float | Probability of adding a boundary-entering person occluder | 0.0 |
--background-mosaic-occluder-min-area |
float | Minimum image fraction covered by a context occluder | 0.05 |
--background-mosaic-occluder-max-area |
float | Maximum image fraction covered by a context occluder | 0.2 |
--same-id-part-mosaic / --no-same-id-part-mosaic |
boolean | Copy body-aligned regions from same-ID batch donors | False |
--same-id-part-mosaic-probability |
float | Probability of selecting each sample for same-ID part mosaic | 0.35 |
--same-id-part-mosaic-max-regions |
integer | Maximum number of body regions copied per augmented sample | 2 |
--same-id-part-mosaic-min-area |
float | Minimum total image fraction replaced by same-ID regions | 0.15 |
--same-id-part-mosaic-max-area |
float | Maximum total image fraction replaced by same-ID regions | 0.4 |
--same-id-part-mosaic-boundary-jitter |
float | Body-region boundary jitter as a fraction of image height | 0.05 |
--same-id-part-mosaic-cross-camera-rate |
float | Rate of preferring different-camera same-ID donors when available | 1.0 |
--same-id-part-mosaic-min-unaltered |
float | Minimum fraction of each training batch left unaltered | 0.5 |
--pav-mosaic / --no-pav-mosaic |
boolean | Warp semantic body parts from pose-aligned same-ID donors | False |
--pav-metadata-dir |
path | PAV metadata root generated by tools.create_market1501_pav_metadata | None |
--pav-mosaic-probability |
float | Maximum scheduled probability of PAV-Mosaic | 0.25 |
--pav-mosaic-max-parts |
integer | Maximum semantic body parts replaced per PAV sample | 3 |
--pav-mosaic-max-foreground-replacement |
float | Maximum anchor-foreground fraction replaced by PAV | 0.45 |
--pav-mosaic-cross-camera-rate |
float | Rate of preferring cross-camera same-ID PAV donors | 0.8 |
--pav-mosaic-different-pose-rate |
float | Rate of favoring pose-diverse PAV donors | 0.5 |
--pav-mosaic-min-keypoint-confidence |
float | Minimum pose-keypoint confidence for a semantic part | 0.5 |
--pav-mosaic-min-unaltered |
float | Minimum fraction of each batch reverted to a clean view | 0.5 |
--pav-mosaic-warmup-epochs |
integer | Epochs used to ramp PAV probability from zero | 40 |
--pav-mosaic-decay-start-epoch |
integer | Epoch at which final PAV probability decay begins | 170 |
--pav-mosaic-final-probability-scale |
float | Fraction of maximum PAV probability retained at the final epoch | 0.5 |
--pav-consistency-weight |
float | Clean-versus-PAV cosine embedding consistency weight | 0.0 |
--clean-student-consistency-weight |
float | Weight for clean-teacher query and descriptor consistency on augmented RGB views | 0.0 |
--anatomical-auxiliary / --no-anatomical-auxiliary |
boolean | Train RGB anatomical tokens from privileged pose/mask targets | False |
--anatomical-metadata-dir |
path | Pose/person-mask metadata root used only during training | None |
--anatomical-person-mask-dir |
path | External high-confidence person-mask directory used only during training | None |
--anatomical-min-keypoint-confidence |
float | Minimum pose confidence used to rasterize anatomical targets | 0.5 |
--anatomical-token-dim |
integer | Width of the six grid-aligned anatomical tokens (minimum 16) | 128 |
--anatomical-distill-weight |
float | Weight for same-scale mask-routed token consistency | 0.2 |
--anatomical-attention-weight |
float | Weight for scale-aware anatomical cell-routing KL supervision | 0.1 |
--anatomical-foreground-weight |
float | Weight for RGB foreground mask supervision | 0.15 |
--anatomical-semantic-part-weight |
float | Weight for training-only six-part semantic BCE/Dice supervision | 0.0 |
--anatomical-visibility-weight |
float | Weight for per-part visibility supervision | 0.05 |
--anatomical-contrastive-weight |
float | Weight for visible same-part cross-camera contrastive learning | 0.1 |
--anatomical-descriptor-distill-weight |
float | Weight for local semantic anatomy distillation into the final descriptor | 0.0 |
--anatomical-branch-distill-weight |
float | Weight for EMA anatomy relations distilled into deployed 1/2/4-stripe branches | 0.0 |
--anatomical-branch-global-coefficient |
float | Global-level share of anatomical branch distillation | 0.2 |
--anatomical-branch-coarse-coefficient |
float | Two-stripe-level share of anatomical branch distillation | 0.3 |
--anatomical-branch-fine-coefficient |
float | Four-stripe-level share of anatomical branch distillation | 0.5 |
--anatomical-pose-teacher-weight |
float | Weight for the selected privileged pose-teacher objective | 0.0 |
--anatomical-query-distill-weight |
float | Weight for masked-teacher to unrestricted-RGB query distillation | 0.0 |
--anatomical-query-relational-distill-weight |
float | Weight for visibility-weighted teacher/student query relation matching | 0.0 |
--anatomical-query-diversity-weight |
float | Weight discouraging collapse among RGB anatomical queries | 0.0 |
--anatomical-query-diversity-margin |
float | Maximum allowed cosine similarity between distinct queries | 0.1 |
--anatomical-part-triplet-weight |
float | Weight for visible same-part cross-camera hard triplets | 0.0 |
--anatomical-target-type |
choice (deterministic_scale_aware_geometry | learned_pose_concat_ema | learned_pose_semantic_ema | learned_pose_semantic_fused_ema | privileged_mask_pose_attention | decoupled_pose_parsing_teacher | body_slot_privileged_ema) |
Anatomical teacher implementation used for training | deterministic_scale_aware_geometry |
--anatomical-teacher-momentum |
float | EMA momentum for learned pose-teacher targets | 0.99 |
--anatomical-multiscale / --no-anatomical-multiscale |
boolean | Supervise matched anatomical roles on Stage-2 local and Stage-0 fine maps | False |
--anatomical-accessory-query / --no-anatomical-accessory-query |
boolean | Add a training-only seventh mask-supervised bag/accessory query | False |
--anatomical-deployment / --no-anatomical-deployment |
boolean | Append six pose-supervised RGB semantic-part tokens to the retrieval descriptor | False |
--anatomical-deployment-dim |
integer | Deployed width of each RGB anatomical part token | 64 |
--anatomical-deployment-alpha |
float | Relative retrieval energy assigned to the deployed anatomical descriptor | 0.25 |
--anatomical-deployment-id-weight |
float | Persistent visibility-weighted ID loss for deployed anatomical parts | 0.25 |
--anatomical-deployment-metric-weight |
float | Persistent cross-camera contrastive loss for deployed anatomical parts | 0.1 |
--anatomical-local-scale-weight |
float | Balanced contribution of the Stage-2 anatomical student | 0.6 |
--anatomical-fine-scale-weight |
float | Balanced contribution of the Stage-0 anatomical student | 0.4 |
--anatomical-cross-scale-weight |
float | Weight aligning within-image anatomical role relations across scales | 0.05 |
--anatomical-pose-only-reliability |
float | Reliability multiplier for pose targets without a person mask | 0.35 |
--anatomical-min-effective-coverage |
float | Minimum fraction of training samples with usable anatomical targets | 0.0 |
--anatomical-student-start-epoch |
integer | Last epoch before shared anatomical supervision starts | 0 |
--anatomical-student-ramp-end-epoch |
integer | Epoch at which anatomy distillation reaches full weight | 0 |
--anatomical-query-start-epoch |
integer | Last epoch before decoupled query distillation and triplets start | 20 |
--anatomical-query-ramp-end-epoch |
integer | Epoch at which decoupled query losses reach full weight | 50 |
--anatomical-fine-start-epoch |
integer | Last epoch before fine-map anatomy starts; 0/0 follows the shared student schedule | 0 |
--anatomical-fine-ramp-end-epoch |
integer | Epoch at which fine-map and cross-scale anatomy reach full weight | 0 |
--anatomical-decay-start-epoch |
integer | Epoch at which all anatomical losses begin decaying | 0 |
--anatomical-decay-end-epoch |
integer | Epoch at which all anatomy losses become zero | 0 |
--anatomical-temperature |
float | Temperature for anatomical supervised contrastive learning | 0.07 |
--resume |
path | Resume training from a checkpoint dir or last.pt file | None |
--help |
boolean | Show this message and exit. | False |
tune
Tune tracker parameters from a perception build or a saved-sensor dataset. EagerMOT jointly tunes car and pedestrian profiles for class-average KITTI mask HOTA.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment |
text | experiment YAML filename or path, e.g. mot17/ablation-yolox-lmbn.yaml or boxmot/configs/experiments/mot17/ablation-yolox-lmbn.yaml | Sentinel.UNSET |
--dataset |
text | Dataset id, YAML file, or sensor dataset folder containing dataset.yaml (eval and tune). | None |
--detector |
text | Detector profile ID or YAML config used to resolve an authored experiment with --dataset; append /CHECKPOINT to disambiguate. | None |
--reid |
text | ReID profile for an authored experiment or for encoding saved 2D detections during eval. Omit when appearance is disabled. | None |
--build |
text | Materialized build ID or explicit build directory. Omit with --experiment, or with --dataset and --detector, to materialize and reuse a compatible canonical build automatically. | Sentinel.UNSET |
--build-root |
path | Root for build IDs, automatic materialization, and shared detector cache; overrides BOXMOT_BUILDS_DIR and defaults to ./runs/materializations. | None |
--device |
text | One device for uncached perception and EdgeTAM mask guidance: cpu, mps, cuda:N, or N (e.g. 0). | cpu |
--data-root |
path | Base folder for dataset storage.root; defaults to ./datasets/mot for built-in datasets or the local YAML folder. | None |
--split |
text | Dataset split to use (e.g. train, val, test, ablation). Overrides auto-detection from source path. | None |
--sequence |
text | Limit the selected split to one sequence. Repeat to select multiple sequences. | Sentinel.UNSET |
--fps |
float | Target dataset FPS: sample frames before perception and align ground truth. Default: original frames, or the selected build's FPS when replaying. | None |
--eval-masks |
boolean | Evaluate KITTI-MOTS with mask IoU. Image workflows default to boxes; sensor workflows default to masks. | False |
--mask-guidance-weights |
path | Checkpoint or exported TFLite bundle directory used with --edgetam. Selecting weights alone does not enable guidance; edgetam.pt uses the default model cache. TFLite guidance runs on CPU. Python AABB box trackers with IoU only. | None |
--edgetam / --no-edgetam |
boolean | Enable EdgeTAM mask guidance with tracker YAML settings; uses edgetam.pt unless weights are supplied. | False |
--mask-guidance-max-objects |
integer range (1 and above) |
Override the tracker config's edgetam.max_objects (default 96) when --edgetam is enabled. Maximum identities with temporal mask memory; fixed when tuning. | None |
--tracker-backend |
choice (python | cpp) |
Tracker implementation backend. Native 'cpp' is available for botsort, bytetrack, occluboost, ocsort, and sfsort. Building native libraries requires CMake, a C++17 compiler, OpenCV development files, and Eigen3. | python |
--tracker-config |
text | Tracker runtime YAML path or built-in preset; overrides must preserve calibrated time units. | None |
--asso-func |
choice (iou | giou | diou | ciou | hmiou | centroid) |
Association geometry override for AABB and OBB tracking. OBB ciou is a custom experimental adaptation; OBB hmiou is an experimental global-y height cue for scenes where image vertical is meaningful. | None |
--class-config |
file | EagerMOT: baseline car/pedestrian profiles; --tune-kf selects noise scales to refine. The yaw model stays fixed. | Sentinel.UNSET |
--sequence-workers |
integer range (1 and above) |
Maximum sequence worker processes for replay and uncached automatic CMC analysis. Default: 1 for EdgeTAM evaluation/tuning; otherwise min(sequences, CPU cores - 2), at least 1. During tuning, replay uses this limit per trial; CMC setup precedes trials. | 2 |
--cache-inputs / --no-cache-inputs |
boolean | Build and reuse mapped inputs for repeated eval/tune runs, including images, detections, embeddings, masks, sensors, and annotations. Uses extra disk space. | False |
--project |
Path | save results to project/name | runs |
--name |
text | save results to project/name | exp |
--exist-ok |
boolean | reuse project/name and allow overwriting outputs instead of incrementing | False |
--ci |
boolean | reuse existing runs in CI (no UI) | False |
--tracker |
choice (boosttrack | botsort | bytetrack | deepocsort | eagermot | edgetam | hybridsort | maf_hda | occluboost | ocsort | sfsort | strongsort) |
one of: boosttrack, botsort, bytetrack, deepocsort, eagermot, edgetam, hybridsort, maf_hda, occluboost, ocsort, sfsort, strongsort | bytetrack |
--variable-dt / --fixed-dt |
boolean | Use capture timestamps for tracker motion; otherwise keep the tracker YAML setting (default: fixed dt). | None |
--verbose |
boolean | print detailed logs | False |
--show-timing / --hide-timing |
boolean | print runtime timing summary after evaluation | False |
--per-class |
boolean | track each class separately | False |
--calibrate-kf |
boolean | Calibrate Kalman noise from detections and ground truth, then tune tracker parameters with calibrated KF settings fixed; Python Kalman trackers only. EagerMOT requires ground_truth_3d with track IDs. | False |
--select-cmc |
boolean | Jointly select CMC off/automatic SOF, KF type and noise profile with --select-kf. Fits each candidate under its camera behavior; Python 2D Kalman trackers only. | False |
--select-kf |
boolean | Compare default, partial and full KF calibration across compatible filter types on held-out detection/GT predictions, then tune with the winning type and noise fixed. CMC stays off unless --select-cmc is used. Requires a Python 2D Kalman tracker. | False |
--tune-kf |
choice (process_position_scale | process_velocity_scale | measurement_noise_scale | initial_position_scale | initial_velocity_scale) |
Refine a KF scale from 0.25x to 4x its baseline; repeat to select more scales. Other priors stay fixed. | Sentinel.UNSET |
--n-trials |
integer range (1 and above) |
number of hyperparameter optimization trials | 10 |
--seed |
integer range (between 0 and 4294967295) |
Random seed for parameter sampling. Sensor datasets default to 0. | None |
--max-concurrent-trials |
integer | max concurrent trials (0 = auto: 1 with temporal EdgeTAM, otherwise min(4, cpu_count)); controls parallelism and improves Bayesian search effectiveness | 0 |
--time-budget-s |
float | optional time budget in seconds for the entire tuning run; Tune stops launching new trials after this time | None |
--resume-tune |
text | resume a Ray Tune experiment; pass a folder name (e.g. deepocsort_tune_3) or full path under runs/ray/. Retries errored trials and continues remaining ones. | None |
--objectives |
text | first metric supplies the default --maximize value; reports retain standard metrics. Accepts repeated, comma-separated, or space-separated values | ('HOTA',) |
--maximize |
text | metrics to maximize; accepts repeated, comma-separated, or space-separated values; defaults to first --objectives value (e.g. HOTA) | ('HOTA',) |
--minimize |
text | metrics to minimize for Pareto search; accepts repeated, comma-separated, or space-separated values (e.g. IDSW_rate); triggers multi-objective mode when set | () |
--search-alg |
choice (optuna | hyperopt | random) |
search algorithm backend for hyperparameter optimization; optuna (default) uses TPE with conditional search spaces, hyperopt uses Tree-structured Parzen Estimators via HyperOpt, random uses uniform random sampling | optuna |
--help |
boolean | Show this message and exit. | False |
ui
Choose a command, models, and options in an interactive terminal launcher.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--command |
choice (track | materialize | eval | tune | export | train-reid | eval-reid) |
Start with this command selected. | Sentinel.UNSET |
--experiment |
text | Prefill an experiment ID or YAML path. | None |
--help |
boolean | Show this message and exit. | False |