ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
50.48k stars 16.29k forks source link

Change evaluation #8955

Closed bzha5848 closed 2 years ago

bzha5848 commented 2 years ago

Search before asking

Description

Hi there,

I'm looking for a method that could generate best.pt based on mAP0.5 instead of mAP0.5:0.95, just wondering how to do that?

Thanks so much!!

Use case

No response

Additional

No response

Are you willing to submit a PR?

glenn-jocher commented 2 years ago

@bzha5848 you can modify the fitness function to more heavily weight another metric here: https://github.com/ultralytics/yolov5/blob/d7bc5d77730c625e8b7039e8680714602f5b321f/utils/metrics.py#L15-L19

github-actions[bot] commented 2 years ago

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!