Closed junwang-wish closed 1 year ago
Whoops just realized that clip-retrieval does a default L2 normalization to unit norm which caused such difference, is there a way to turn such normalization off?
There's no option for it currently but you could add one
Note that if you want to use the embeddings in a knn index, it's better to keep the normalization so dot product are cosine distances
On Tue, Jun 27, 2023, 00:45 junwang-wish @.***> wrote:
Whoops just realized that clip-retrieval does a default L2 normalization to unit norm which caused such difference, is there a way to turn such normalization off?
— Reply to this email directly, view it on GitHub https://github.com/rom1504/clip-retrieval/issues/290#issuecomment-1608420004, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437VGLI7QYXEALEDYZWTXNIGKPANCNFSM6AAAAAAZUY3H44 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
clip-retrieval:
I get
open clip library:
I get
I would understand that the numbers can be a little bit off due to quantization and stuff, but the numbers here just just way off, is it expected?