ultralytics-ascend/ultralytics/tracker
2023-04-14 15:17:41 +02:00
..
cfg Update LICENSE to AGPL-3.0 (#2031) 2023-04-14 15:17:41 +02:00
trackers Update LICENSE to AGPL-3.0 (#2031) 2023-04-14 15:17:41 +02:00
utils Update LICENSE to AGPL-3.0 (#2031) 2023-04-14 15:17:41 +02:00
__init__.py Update LICENSE to AGPL-3.0 (#2031) 2023-04-14 15:17:41 +02:00
README.md ultralytics 8.0.42 DDP fix and Docs updates (#1065) 2023-02-20 12:56:20 +01:00
track.py Update LICENSE to AGPL-3.0 (#2031) 2023-04-14 15:17:41 +02:00

Tracker

Trackers

  • ByteTracker
  • BoT-SORT

Usage

python interface:

from ultralytics import YOLO

model = YOLO("yolov8n.pt")  # or a segmentation model .i.e yolov8n-seg.pt
model.track(
    source="video/streams",
    stream=True,
    tracker="botsort.yaml",  # or 'bytetrack.yaml'
    ...,
)

cli:

yolo detect track source=... tracker=...
yolo segment track source=... tracker=...

By default, trackers will use the configuration in ultralytics/tracker/cfg. We also support using a modified tracker config file. Please refer to the tracker config files in ultralytics/tracker/cfg.