[GH-ISSUE #4] colab is broken ? #6

Closed
opened 2026-10-31 21:09:49 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @evanthebouncy on GitHub (Jan 6, 2021).
Original GitHub issue: https://github.com/openai/CLIP/issues/4

this cell:

tokenizer = SimpleTokenizer()
text_tokens = [tokenizer.encode("This is " + desc + "<|endoftext|>") for desc in texts]

when you run it, generates the following error:


NameError Traceback (most recent call last)
in ()
----> 1 tokenizer = SimpleTokenizer()
2 text_tokens = [tokenizer.encode("This is " + desc + "<|endoftext|>") for desc in texts]

NameError: name 'SimpleTokenizer' is not defined

Originally created by @evanthebouncy on GitHub (Jan 6, 2021). Original GitHub issue: https://github.com/openai/CLIP/issues/4 this cell: tokenizer = SimpleTokenizer() text_tokens = [tokenizer.encode("This is " + desc + "<|endoftext|>") for desc in texts] when you run it, generates the following error: --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-16-ed0057d0ca54> in <module>() ----> 1 tokenizer = SimpleTokenizer() 2 text_tokens = [tokenizer.encode("This is " + desc + "<|endoftext|>") for desc in texts] NameError: name 'SimpleTokenizer' is not defined
Author
Owner

@jongwook commented on GitHub (Jan 6, 2021):

Hi, there is a hidden cell above that in the "text preprocessing" section. Could you check if that cell was executed?

<!-- gh-comment-id:755778269 --> @jongwook commented on GitHub (Jan 6, 2021): Hi, there is a hidden cell above that in the "text preprocessing" section. Could you check if that cell was executed?
Author
Owner

@evanthebouncy commented on GitHub (Jan 7, 2021):

sorry I must have missed that cell. this has been resolved. thanks !

<!-- gh-comment-id:755790876 --> @evanthebouncy commented on GitHub (Jan 7, 2021): sorry I must have missed that cell. this has been resolved. thanks !
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#6
No description provided.