LocalAggregation-Pytorch icon indicating copy to clipboard operation
LocalAggregation-Pytorch copied to clipboard

AttributeError: 'Clustering' object has no attribute 'obj'

Open pawandeep2155 opened this issue 4 years ago • 2 comments

When I run command CUDA_VISIBLE_DEVICES=0 python scripts/localagg.py ./config/imagenet_la.json to do LA training, I get the following error :

LocalAggregation-Pytorch/src/objectives/localagg.py(240)run_kmeans() -> losses = faiss.vector_to_array(clus.obj) (Pdb) n AttributeError: 'Clustering' object has no attribute 'obj'

I checked the documentation of Faiss and there seems to be no attribute obj. Can you please check it?

pawandeep2155 avatar Sep 17 '20 06:09 pawandeep2155

I believe a recent update of faiss changed its interface. You need to install faiss_gpu==1.6.1, see this issue: https://github.com/neuroailab/VIE/issues/7. I will add this to the documentation, thanks!

chengxuz avatar Sep 17 '20 13:09 chengxuz

Thanks for your reply. I installed faiss version 1.6.1 and it worked.

pawandeep2155 avatar Sep 18 '20 09:09 pawandeep2155