-
Notifications
You must be signed in to change notification settings - Fork 35
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
Comments
@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. |
@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. |
Hi, Yuan, |
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
The text was updated successfully, but these errors were encountered: