ultralytics 8.2.45 Fix YOLOv8 augment inference (#14017)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Laughing 2024-06-27 00:28:43 +08:00 committed by GitHub
parent 8136f66bfc
commit 69cfc8aa22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 10 deletions

View file

@ -95,7 +95,7 @@ def test_predict_img(model_name):
Image.open(SOURCE), # PIL
np.zeros((320, 640, 3), dtype=np.uint8), # numpy
]
assert len(model(batch, imgsz=32)) == len(batch) # multiple sources in a batch
assert len(model(batch, imgsz=32, augment=True)) == len(batch) # multiple sources in a batch
@pytest.mark.parametrize("model", MODELS)