fix onnx model val.py AssertionError (#190)

This commit is contained in:
kangsanha 2024-06-04 20:18:04 +09:00 committed by GitHub
parent ba0e6cbc1a
commit 15bdea757a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,7 @@ class YOLOv10DetectionValidator(DetectionValidator):
if isinstance(preds, (list, tuple)):
preds = preds[0]
# Acknowledgement: Thanks to sanha9999 in #190 and #181!
if preds.shape[-1] == 6:
return preds
else: