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

About test CARS196 #2

Open
anshan-XR-ROB opened this issue Apr 14, 2017 · 4 comments
Open

About test CARS196 #2

anshan-XR-ROB opened this issue Apr 14, 2017 · 4 comments

Comments

@anshan-XR-ROB
Copy link

anshan-XR-ROB commented Apr 14, 2017

Hi,
I have a problem when test CARS196. Would pls. help me?
Traceback (most recent call last):
File "hdc_test.py", line 126, in
main(sys.argv[1:])
File "hdc_test.py", line 55, in main
data_cnt, feature_dim, top_cnt)
File "/export//hardmining/Hard-Aware-Deeply-Cascaded-Embedding_release-master/src_code/test_cars196.py", line 70, in eval_HDC
get_recall(dists, query_label_vector, data_label_vector, top_cnt)
File "/export/
/hardmining/Hard-Aware-Deeply-Cascaded-Embedding_release-master/src_code/test_cars196.py", line 11, in get_recall
labels_sorted = data_label_vector[np.argsort(dists[i, :])].flatten()
TypeError: only integer scalar arrays can be converted to a scalar index

@PkuRainBow
Copy link
Owner

@AnshanTJU I guess this issue is related to the your lmdb of features. In my platform, it is ok. You could just debug the code step by step. I mean that you could watch the whether the dists variable is valid and stores a matrix of float distances.

@PkuRainBow
Copy link
Owner

@AnshanTJU I strongly recommend you debug the code in your platform step by step to find the problem, which would be more efficient. If you still can not solve it, pls provide a snap of your variable dists when debugging.

@anshan-XR-ROB
Copy link
Author

Hi, Yuan,
It seems an error for Numpy. I have reinstalled Numpy but it also occured. The dists variable is about 300 MB so I can't transmit it to you. Do you have any advices?

@Usernamezhx
Copy link

I have meet this quesiton too.my dist look like this :
_20171214153723

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

3 participants