mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #387] I'm confused that logits_per_text is just transpose of logits_per_text. #332
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#332
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 @nietzsche9088 on GitHub (Sep 15, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/387
Thanks for your contribution!
When I'm reviewing the source code of CLIP, I found out that the output of "model(img,text)" is a list of two same-value tensors. Back to /clip/model.py, it shows model.eval() prints logits_per_image, and logits_per_text, and the latter one is just a transpose of the former one. Besides, the logits_per_image is already the multiplication of image features and text features.
I'd appreciate it if someone could answer my confusion.