mirror of
https://github.com/ultralytics/ultralytics
synced 2026-04-21 14:07:18 +00:00
Use jsdelivr CDN assets URL for boats.jpg reliability (#24011)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
1b9ba17054
commit
4e625bf78f
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ def test_predict_callback_and_setup():
|
|||
@pytest.mark.parametrize("model", MODELS)
|
||||
def test_results(model: str, tmp_path):
|
||||
"""Test YOLO model results processing and output in various formats."""
|
||||
im = f"{ASSETS_URL}/boats.jpg" if model == "yolo26n-obb.pt" else SOURCE
|
||||
im = "https://cdn.jsdelivr.net/gh/ultralytics/assets@main/im/boats.jpg" if model == "yolo26n-obb.pt" else SOURCE
|
||||
results = YOLO(WEIGHTS_DIR / model)([im, im], imgsz=160)
|
||||
for r in results:
|
||||
assert len(r), f"'{model}' results should not be empty!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue