mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #279] Question: Do the input tokens have to come from clip.tokenize(str) when using the pretrained model? #242
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#242
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 @sunnypurewal on GitHub (Aug 10, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/279
Can I use a different method to tokenize the input prompt and still get a proper prediction or must I use the
clip.tokenize(str)method? I'm wondering if I can, for example, use Hugging Face's Bert tokenizer or SentencePiece?My intuition says that I must use
clip.tokenize(str)since that's the set of tokens that the model was trained with.