Installation
BoxMOT supports Python 3.10–3.13. Install it in a virtual environment, then add the dependencies needed for your detector or workflow.
Quick install
Install BoxMOT and the Ultralytics backend used in the tracking examples:
pip install boxmot "ultralytics>=8.4.58"
boxmot --help
boxmot track --source video.mp4 --detector yolov8n --tracker bytetrack --save
Replace video.mp4 with your video. The first run downloads the detector
weights. See Track for webcams, streams, and output options.
If you supply your own detections, pip install boxmot provides the CLI,
Python API, trackers, and core ReID stack without a detector package. ReID
training, evaluation, and comparison also use this core installation.
The commands above use the standard PyPI PyTorch build. For CPU-only or CUDA 13.0 wheels, follow PyTorch and source setup.
Mode-specific extras
Add optional dependencies to an installed BoxMOT environment with install:
| Workflow | Extra | Guide |
|---|---|---|
| Ultralytics and YOLOX detectors (source checkout) | yolo |
Source installation |
| RT-DETR v2 detectors | rtdetr |
Detector models |
| Hyperparameter tuning | evolve |
Tune |
| Code-evolution research | research |
Research |
| HTTP tracker service | service |
Service deployment |
| Ollama or vLLM track descriptions | attributes |
Track Attributes |
| MOTS mask evaluation | mots |
EagerMOT |
| Reference TrackEval comparison | trackeval |
Evaluation |
| ONNX export and inference | onnx |
Export |
| Core ML export and inference | coreml |
Export |
| OpenVINO export and inference | onnx and openvino |
Export |
| TFLite export and inference | tflite |
Export |
The yolo extra includes YOLOX, which uses the repository's dependency and
build overrides; use the source workflow when you need that backend. The quick
install above is sufficient for Ultralytics detectors such as yolov8n.
Core ML requires macOS. TensorRT needs a compatible CUDA/NVIDIA stack and
separate installation steps. KITTI 2D evaluation
uses built-in metrics and does not require trackeval.
Dependency checks report an installation command when a workflow needs more packages. To target a specific Python interpreter, run:
See Install dependencies for custom requirements. For
source checkouts, continue using uv sync with the selected
PyTorch profile; boxmot install does not accept cpu or cu130.
Other installation options
| Setup | Guide |
|---|---|
| Source checkout, CPU-only Torch, or CUDA 13.0 Torch | PyTorch and source setup |
| Containerized CLI | Docker |
| Detection-to-track HTTP service | Service deployment |
| Native C++ tracker backends | Native dependencies and builds |
| Development and documentation tools | Contributing |
Verify the Python API
import boxmot
from boxmot.trackers import TrackerSpec
tracker = boxmot.create_tracker(TrackerSpec(name="bytetrack"))
print(boxmot.__version__, tracker.requirements)
Continue with the overview, CLI workflows, or Python API.