I am using the pre-trained ViT-H-14 model from open_clip to compare the similarity of identical texts, and I found that the similarity score is not 1 even for exactly the same inputs. Here is the code snippet I used for testing:
The similarity result shows as 0.4930, which is far below the expected 1.
I would like to know if this is an expected behavior of the model,or if there might be an error in how i am using it ?Or, it is caused by precision problem(but the difference should not be that big).I would appreciate any help you can provide.Thank you!
Problem Description
I am using the pre-trained ViT-H-14 model from open_clip to compare the similarity of identical texts, and I found that the similarity score is not 1 even for exactly the same inputs. Here is the code snippet I used for testing:
output result:
The similarity result shows as 0.4930, which is far below the expected 1. I would like to know if this is an expected behavior of the model,or if there might be an error in how i am using it ?Or, it is caused by precision problem(but the difference should not be that big).I would appreciate any help you can provide.Thank you!