Skip to content

Find out when best fitness was achieved #6308

Answered by glenn-jocher
felix-knopp asked this question in Q&A
Discussion options

You must be logged in to vote

@felix-knopp fitness is heavily weighted towards mAP@0.5:0.95 by default, so just looking for the max point there would be a good proxy. The fitness function is here:

yolov5/utils/metrics.py

Lines 15 to 19 in 436ffc4

def fitness(x):
# Model fitness as a weighted combination of metrics
w = [0.0, 0.0, 0.1, 0.9] # weights for [P, R, mAP@0.5, mAP@0.5:0.95]
return (x[:, :4] * w).sum(1)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@glenn-jocher
Comment options

@felix-knopp
Comment options

@glenn-jocher
Comment options

Answer selected by felix-knopp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants