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:
@ -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)
|
||||
|
Reference in New Issue
Block a user