ultralytics-ascend/ultralytics/tracker
Glenn Jocher fe61018975
ultralytics 8.0.43 optimized Results class and fixes (#1069)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alexander Duda <Alexander.Duda@me.com>
Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
2023-02-21 20:37:59 +01:00
..
cfg ultralytics 8.0.42 DDP fix and Docs updates (#1065) 2023-02-20 12:56:20 +01:00
trackers ultralytics 8.0.42 DDP fix and Docs updates (#1065) 2023-02-20 12:56:20 +01:00
utils ultralytics 8.0.42 DDP fix and Docs updates (#1065) 2023-02-20 12:56:20 +01:00
__init__.py ultralytics 8.0.43 optimized Results class and fixes (#1069) 2023-02-21 20:37:59 +01:00
README.md ultralytics 8.0.42 DDP fix and Docs updates (#1065) 2023-02-20 12:56:20 +01:00
track.py ultralytics 8.0.43 optimized Results class and fixes (#1069) 2023-02-21 20:37:59 +01: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.