How to use laion/CLIP-ViT-bigG-14-laion2B-39B-b160k to calculate similarity score of given 2 images?

#5
by MonsterMMORPG - opened

Hello. I am looking for a Google Colab Notebook or a complete code example to calculate image similarity score of given 2 images

These images can be any dimension or image format

Could you provide example code?

So all I want is give image A and image B and get their similarity score.

Thank you so much.

Hello, see https://colab.research.google.com/github/mlfoundations/open_clip/blob/master/docs/Interacting_with_open_clip.ipynb

ty so much

could you add a section which will calculate image to image similarity?

also which pre trained model would be best for this task?

https://github.com/theovercomer8/groupr

Working on a tool that does just that. You can see examples on how to compare images there. Currently working on clustering via faiss index to do similarity matching/grouping.

https://github.com/theovercomer8/groupr

Working on a tool that does just that. You can see examples on how to compare images there. Currently working on clustering via faiss index to do similarity matching/grouping.

Thank you so much I will check and try it asap

Sign up or log in to comment