ultralytics 8.0.91 tracker fix and docs comments (#2343)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
Glenn Jocher
2023-05-01 22:20:05 +02:00
committed by GitHub
parent 44c7c3514d
commit 3fd317edfd
65 changed files with 585 additions and 258 deletions

View File

@ -236,3 +236,13 @@ def test_result():
res[0].plot()
res[0] = res[0].cpu().numpy()
print(res[0].path)
def test_track():
im = cv2.imread(str(SOURCE))
model = YOLO(MODEL)
seg_model = YOLO('yolov8n-seg.pt')
pose_model = YOLO('yolov8n-pose.pt')
model.track(source=im)
seg_model.track(source=im)
pose_model.track(source=im)