mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 05:24:22 +08:00
fix onnx model val.py AssertionError (#190)
This commit is contained in:
parent
ba0e6cbc1a
commit
15bdea757a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user