mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #262] What is the limit for text sequences? #227
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#227
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 @smith-co on GitHub (Jun 29, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/262
I am trying to apply CLIP on a very specific dataset and need to fine tune. I am doing fine tuning following the steps here https://github.com/openai/CLIP/issues/83.
But cannot figure out what is maximum size of the
textsequence length. Can it handle large texts? Or I have to restict the text to a pre-defined limit.Any help is appreciated.
@akskuchi commented on GitHub (Jul 19, 2022):
According to this function, it can tokenize sequences up to the length of
77(i.e., 77 words/tokens) and raises a runtime exception for anything beyond.@hrithickcodes commented on GitHub (Jul 8, 2023):
The default length is 77, you might need to perform some more fine-tuning to accept larger text sequences. Below is how you can do it.
This code snippet can help.
@chuyihuan commented on GitHub (Jul 19, 2023):
@hrithickcodes commented on GitHub (Jul 19, 2023):
@chuyihuan If you are looking forward to fine-tuning CLIP then the snippet can be useful. yes, transformers is a library.