facebookresearch / deepcluster

Deep Clustering for Unsupervised Learning of Visual Features
Other
1.69k stars 325 forks source link

'Clustering' object has no attribute 'obj' #70

Closed Alice-Shen closed 4 years ago

Alice-Shen commented 4 years ago

clus = faiss.Clustering(d, nmb_clusters) clus.train(x, index) losses = faiss.vector_to_array(clus.obj)

I don't know why it's wrong,would you help me?

boom85423 commented 4 years ago

Did you find the solution? I also suffer from the same problem

Alice-Shen commented 4 years ago

Yes,I have solved the problem. stats = clus.iteration_stats losses = np.array([ stats.at(i).obj for i in range(stats.size()) ]) relace the 'losses = faiss.vector_to_array(clus.obj)'