iscyy / yoloair

🔥🔥🔥 专注于YOLOv5,YOLOv7、YOLOv8、YOLOv9改进模型,Support to improve backbone, neck, head, loss, IoU, NMS and other modules🚀
https://github.com/iscyy/yoloair
GNU General Public License v3.0
2.51k stars 430 forks source link

The verification result in the training is seriously inconsistent with the result of val.py #138

Closed zmdcs closed 1 year ago

zmdcs commented 1 year ago

Hello, I encountered a very strange problem. At the end of the training, my mAP has reached 0.8, and then used best.pt for verification, but only 0.269. Why? More than one model has this problem. image

SusanJJN commented 1 year ago

Try to adjust the 'imgsz' to 160 instead of default 640. In the function _parseopt() in val.py.