ultralytics 8.0.71
updates and fixes (#1907)
Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: Pavel Bugneac <50273042+pavelbugneac@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -205,18 +205,33 @@ def test_predict_callback_and_setup():
|
||||
|
||||
|
||||
def test_result():
|
||||
model = YOLO('yolov8n-pose.pt')
|
||||
res = model([SOURCE, SOURCE])
|
||||
res[0].plot(show_conf=False) # raises warning
|
||||
res[0].plot(conf=True, boxes=False)
|
||||
res[0].plot(pil=True)
|
||||
res[0] = res[0].cpu().numpy()
|
||||
print(res[0].path, res[0].keypoints)
|
||||
|
||||
model = YOLO('yolov8n-seg.pt')
|
||||
res = model([SOURCE, SOURCE])
|
||||
res[0].plot(show_conf=False) # raises warning
|
||||
res[0].plot(conf=True, boxes=False, masks=True)
|
||||
res[0].plot(pil=True)
|
||||
res[0] = res[0].cpu().numpy()
|
||||
print(res[0].path, res[0].masks.masks)
|
||||
|
||||
model = YOLO('yolov8n.pt')
|
||||
res = model(SOURCE)
|
||||
res[0].plot(pil=True)
|
||||
res[0].plot()
|
||||
res[0] = res[0].cpu().numpy()
|
||||
print(res[0].path)
|
||||
|
||||
model = YOLO('yolov8n-cls.pt')
|
||||
res = model(SOURCE)
|
||||
res[0].plot(probs=False)
|
||||
res[0].plot(pil=True)
|
||||
res[0].plot()
|
||||
res[0] = res[0].cpu().numpy()
|
||||
print(res[0].path)
|
||||
|
Reference in New Issue
Block a user