mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #356] Laion embeddings and clip output for the same image do not match exactly #309
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stevebottos on GitHub (May 4, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/356
The laion website provides embeddings and parquets which tie an embedding at an index in the array to its associated metadata. In theory the clip output and the laion embedding for the same image should be exactly the same, but they're not. Here's how to reproduce:
This outputs:
I've verified that laion uses the ViT-B/32 backbone as well. I'm wondering what might be causing the discrepancy here. Any ideas?
@stevebottos commented on GitHub (May 4, 2023):
This issue is related to this issue: https://github.com/rom1504/clip-retrieval/discussions/100 which didn't seem to be resolved. I was able to replicate the results in this issue, but it's not a perfect solution.
@TianRui-Song717 commented on GitHub (May 17, 2023):
Another comparable problem is that the text embedding on the LAION400 does not match the output of the CLIP-ViT-B/32 text-encoder.
@TianRui-Song717 commented on GitHub (May 17, 2023):
@stevebottos The text embedding should not be affected by image resizing ....
@stevebottos commented on GitHub (May 17, 2023):
@TianRui-Song717 That's strange, any luck discovering why?