Add dota8.yaml and O tests (#7394)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
d0562d7a2f
commit
a6a2c256d4
13 changed files with 176 additions and 16 deletions
|
|
@ -77,6 +77,7 @@ def test_predict_img():
|
|||
seg_model = YOLO(WEIGHTS_DIR / 'yolov8n-seg.pt')
|
||||
cls_model = YOLO(WEIGHTS_DIR / 'yolov8n-cls.pt')
|
||||
pose_model = YOLO(WEIGHTS_DIR / 'yolov8n-pose.pt')
|
||||
obb_model = YOLO(WEIGHTS_DIR / 'yolov8n-obb.pt')
|
||||
im = cv2.imread(str(SOURCE))
|
||||
assert len(model(source=Image.open(SOURCE), save=True, verbose=True, imgsz=32)) == 1 # PIL
|
||||
assert len(model(source=im, save=True, save_txt=True, imgsz=32)) == 1 # ndarray
|
||||
|
|
@ -105,6 +106,8 @@ def test_predict_img():
|
|||
assert len(results) == t.shape[0]
|
||||
results = pose_model(t, imgsz=32)
|
||||
assert len(results) == t.shape[0]
|
||||
results = obb_model(t, imgsz=32)
|
||||
assert len(results) == t.shape[0]
|
||||
|
||||
|
||||
def test_predict_grey_and_4ch():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue