Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pawandeep2155 opened this issue Sep 17, 2020 · 2 comments
Open

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

pawandeep2155 opened this issue Sep 17, 2020 · 2 comments

Comments

@pawandeep2155
Copy link

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?

@chengxuz
Copy link
Contributor

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

@pawandeep2155
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants