Submitted by Clarkmilo t3_1043mb2 in MachineLearning
DanTycoon t1_j3mlz40 wrote
Reply to comment by PHEEEEELLLLLEEEEP in Image matching within database? [P] by Clarkmilo
Well, if you're storing 1 million images in the database, it's going to take a long time to do the cosine distance for all 1 million images. FAISS will give you very roughly the 1000 nearest and you can do the cosine distance from there. My usage was anybody could enter any text phrase and search my dataset. I can't precompute the cosine distance for every query somebody might make.
PHEEEEELLLLLEEEEP t1_j3mtoyy wrote
What I mean is that faiss can compute knn for a variety of metrics including cosine distance. So you can just directly index by cosine distance instead of L2
DanTycoon t1_j3mx169 wrote
Ah, I see. I didn’t know. I guess you could do it that way.
Viewing a single comment thread. View all comments