mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #44] define unknown category? #42
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#42
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 @batrlatom on GitHub (Feb 18, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/44
Hi,
would it be possible to construct a prompt in the way, that it recognizes that the image does not belong to the selected categories?
For example, my prompt will have classes 'dog' and 'cat' and I will predict images of car. In this case, it will predict the category 'unknown' ( or any other category ) ?
@jongwook commented on GitHub (Feb 20, 2021):
Hi! CLIP does not explicitly support "unknown" category out-of-the-box, but I can imaging two alternative approaches
To make it a bit more robust, you could also try having a collection of "cat" and "dog" vectors, by converting cat and dog images and prompt-engineering cat- and dog-describing texts, and make them vote, like in a k-NN classifier.
I can also imagine using a combination of these two approaches, but in any case, it'll require some manual tuning of thresholds.
@batrlatom commented on GitHub (Mar 2, 2021):
Thank you, I will try it.