Open anshan-XR-ROB opened 7 years ago
@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, 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?
I have meet this quesiton too.my dist look like this :
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