Skip to content

How do I evaluate openai clip image embedder so that values match your .npy files? #100

Answered by rom1504
hubenjm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the difference you see is probably due to the resizing applied in img2dataset, we did the resizing called border in https://github.com/rom1504/img2dataset#api ; you can see the code there https://github.com/rom1504/img2dataset/blob/main/img2dataset/resizer.py#L98

here is how to query the index locally https://github.com/rom1504/clip-retrieval/blob/main/notebook/simple_filter.ipynb

you can also query our backend directly with https://colab.research.google.com/drive/1d234Gp_7xGI5pAQ0dE71LT4rklZS_OsK#scrollTo=Xp3EBMHsMf6n

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@hubenjm
Comment options

@rom1504
Comment options

@hubenjm
Comment options

Answer selected by hubenjm
Comment options

You must be logged in to vote
1 reply
@rom1504
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants