CLIP icon indicating copy to clipboard operation
CLIP copied to clipboard

CLIp png not found

Open pow9791 opened this issue 2 years ago • 2 comments

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'

pow9791 avatar Dec 01 '23 11:12 pow9791

How did you solve this problem?

jimurk avatar Jan 11 '24 08:01 jimurk

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

Len02805 avatar Jan 12 '24 07:01 Len02805