mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #428] If the text embedding can be recovered to text? #368
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#368
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 @Zhangwenyao1 on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/openai/CLIP/issues/428
Thanks for your excellent work!
I want to know if the text embedding can be recovered to text.
@hamza13-12 commented on GitHub (Mar 31, 2024):
I believe you'd have to train your own decoder to make something like that work
@zer0int commented on GitHub (May 24, 2024):
If you mean "getting a CLIP opinion about an image", yes, you can do that using gradient ascent.
You can optimize for the text that is "most alike" the image features, and get a "stochastic CLIP textual descriptions" of the image.
If you feed an image of a cat, CLIP will certainly conclude "cat", amongst many other things that may be puzzling to humans. For example, it may conclude "map" about your tabby cat's fur pattern. Or construct conjoined long words like "hallucinkaleidodimensional" about something colorful.
I made an intuitive and interactive GUI with attention visualization (you can see "where CLIP was looking" for a given word):
https://github.com/zer0int/CLIP-XAI-GUI
Or, for batch processing via the command-line:
https://github.com/zer0int/CLIP-text-image-interpretability