updates
This commit is contained in:
+2
-1
@@ -863,7 +863,8 @@ def apply_classifier(x, model, img, im0):
|
||||
|
||||
def fitness(x):
|
||||
# Returns fitness (for use with results.txt or evolve.txt)
|
||||
return x[:, 2] * 0.3 + x[:, 3] * 0.7 # weighted combination of x=[p, r, mAP@0.5, F1 or mAP@0.5:0.95]
|
||||
w = [0.1, 0.1, 0.6, 0.2] # weights for [P, R, mAP, F1]@0.5 or [P, R, mAP@0.5:0.95, mAP@0.5]
|
||||
return (x[:, :4] * np.array([w])).sum(1)
|
||||
|
||||
|
||||
# Plotting functions ---------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user