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

A question when I run the code of GLT Stage II #28

Open
pumpkin-vera opened this issue Mar 1, 2022 · 0 comments
Open

A question when I run the code of GLT Stage II #28

pumpkin-vera opened this issue Mar 1, 2022 · 0 comments

Comments

@pumpkin-vera
Copy link

==> Create pseudo labels for unlabeled target domain
Traceback (most recent call last):
File "sbs_trainkmeans.py", line 537, in
main()
File "sbs_trainkmeans.py", line 166, in main
main_worker(args)
File "sbs_trainkmeans.py", line 296, in main_worker
cluster.train(moving_avg_features)
File "/home/lzshang/anaconda3/envs/slz_udaabs3/lib/python3.7/site-packages/faiss/init.py", line 734, in train
clus.train(x, self.index, weights)
File "/home/lzshang/anaconda3/envs/slz_udaabs3/lib/python3.7/site-packages/faiss/init.py", line 85, in replacement_train
self.train_c(n, swig_ptr(x), index)
File "/home/lzshang/anaconda3/envs/slz_udaabs3/lib/python3.7/site-packages/faiss/swigfaiss.py", line 5059, in swig_ptr
return _swigfaiss.swig_ptr(a)
ValueError: input not a numpy array

I have check the type of moving_avg_features, is numpy.ndarray

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

1 participant