Patch MNN test order bug (#17290)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
pull/17288/head^2
Glenn Jocher 2 weeks ago committed by GitHub
parent 66adbd79ad
commit b8783cad24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      tests/test_exports.py

@ -193,14 +193,14 @@ def test_export_paddle():
@pytest.mark.slow
def test_export_ncnn():
"""Test YOLO exports to NCNN format."""
file = YOLO(MODEL).export(format="ncnn", imgsz=32)
def test_export_mnn():
"""Test YOLO exports to MNN format (WARNING: MNN test must precede NCNN test or CI error on Windows)."""
file = YOLO(MODEL).export(format="mnn", imgsz=32)
YOLO(file)(SOURCE, imgsz=32) # exported model inference
@pytest.mark.slow
def test_export_mnn():
"""Test YOLO exports to MNN format."""
file = YOLO(MODEL).export(format="mnn", imgsz=32)
def test_export_ncnn():
"""Test YOLO exports to NCNN format."""
file = YOLO(MODEL).export(format="ncnn", imgsz=32)
YOLO(file)(SOURCE, imgsz=32) # exported model inference

Loading…
Cancel
Save