Skip to content

Commit

Permalink
Make niter a named parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanne authored Jan 23, 2021
1 parent e7ee350 commit 7756777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def get_clusters(cluster_set):

print('====> Clustering..')
niter = 100
kmeans = faiss.Kmeans(encoder_dim, opt.num_clusters, niter, verbose=False)
kmeans = faiss.Kmeans(encoder_dim, opt.num_clusters, niter=niter, verbose=False)
kmeans.train(dbFeat[...])

print('====> Storing centroids', kmeans.centroids.shape)
Expand Down

0 comments on commit 7756777

Please sign in to comment.