willard-yuan / flask-keras-cnn-image-retrieval

🚀CNN-based image retrieval built on Keras
517 stars 175 forks source link

How to get the scores of images? #15

Closed BLACKmaba closed 6 years ago

BLACKmaba commented 6 years ago

why do this? thank you for your answer. scores = np.dot(norm_feat, feats.T) rank_ID = np.argsort(scores)[::-1] rank_score = scores[rank_ID]

willard-yuan commented 6 years ago

The similarity is measured by cosine similarity. The above lines compute the cosine similarity, then sort the scores.

willard-yuan commented 6 years ago

@snapfinger You are welcome to reopen the issue if you have question.