Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics中的fitness函数 #16229

Open
lyC121 opened this issue Sep 12, 2024 · 2 comments
Open

metrics中的fitness函数 #16229

lyC121 opened this issue Sep 12, 2024 · 2 comments
Labels
Stale Stale and schedule for closing soon

Comments

@lyC121
Copy link

lyC121 commented Sep 12, 2024

一下是metrics中关于fitness函数如下

def fitness(self):
"""Model fitness as a weighted combination of metrics."""
w = [0.0, 0.0, 0.1, 0.9] # weights for [P, R, [email protected], [email protected]:0.95]
return (np.array(self.mean_results()) * w).sum()

为什么最后的best.pt的权重主要是在[email protected][email protected]:0.95,而P和R的权重都为0###

@glenn-jocher
Copy link
Member

@lyC121 the fitness function prioritizes mAP metrics because they provide a comprehensive measure of model performance across different IoU thresholds, which is often more indicative of overall effectiveness than precision and recall alone.

Copy link

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

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 YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale Stale and schedule for closing soon label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Stale and schedule for closing soon
Projects
None yet
Development

No branches or pull requests

2 participants