This commit is contained in:
Glenn Jocher 2019-11-22 13:03:29 -10:00
parent 3834b77961
commit e701979862
1 changed files with 1 additions and 1 deletions

View File

@ -688,7 +688,7 @@ def kmeans_targets(path='../coco/trainvalno5k.txt', n=9, img_size=416): # from
wh = np.concatenate(dataset.labels, 0)[:, 3:5] # wh from cxywh
# Kmeans calculation
k = cluster.vq.kmeans(wh, n)[0]
k, dist = cluster.vq.kmeans(wh, n) # points, mean distance
k = k[np.argsort(k.prod(1))] # sort small to large
# Measure IoUs