[GH-ISSUE #406] CLIp png not found #348

Open
opened 2026-10-31 21:14:12 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @pow9791 on GitHub (Dec 1, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/406

I'm trying to run the code on the site. it is giving me this error.
** image = preprocess(Image.open("CLIP.png")).unsqueeze(0).to(device)**
File /opt/homebrew/Cellar/jupyterlab/4.0.7_1/libexec/lib/python3.11/site-packages/PIL/Image.py:3243, in open(fp, mode, formats)
3240 filename = fp
3242 if filename:
-> 3243 fp = builtins.open(filename, "rb")
3244 exclusive_fp = True
3246 try:

FileNotFoundError: [Errno 2] No such file or directory: 'CLIP.png'

Originally created by @pow9791 on GitHub (Dec 1, 2023). Original GitHub issue: https://github.com/openai/CLIP/issues/406 I'm trying to run the code on the site. it is giving me this error. ** image = preprocess(Image.open("CLIP.png")).unsqueeze(0).to(device)** **File /opt/homebrew/Cellar/jupyterlab/4.0.7_1/libexec/lib/python3.11/site-packages/PIL/Image.py:3243, in open(fp, mode, formats)** 3240 filename = fp 3242 if filename: -> 3243 fp = builtins.open(filename, "rb") 3244 exclusive_fp = True 3246 try: **FileNotFoundError: [Errno 2] No such file or directory: 'CLIP.png'**
Author
Owner

@jimurk commented on GitHub (Jan 11, 2024):

How did you solve this problem?

<!-- gh-comment-id:1886657055 --> @jimurk commented on GitHub (Jan 11, 2024): How did you solve this problem?
Author
Owner

@Len02805 commented on GitHub (Jan 12, 2024):

There is no "CLIP.png" under your directory. Just put a PNG file to the path then the problem solved.

<!-- gh-comment-id:1888601024 --> @Len02805 commented on GitHub (Jan 12, 2024): There is no "CLIP.png" under your directory. Just put a PNG file to the path then the problem solved.
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#348
No description provided.