Skip to content

Commit

Permalink
Fix image path in the README's first code example
Browse files Browse the repository at this point in the history
  • Loading branch information
bryant1410 authored and rwightman committed Mar 24, 2024
1 parent 48633c7 commit 9eaf242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import open_clip
model, _, preprocess = open_clip.create_model_and_transforms('ViT-B-32', pretrained='laion2b_s34b_b79k')
tokenizer = open_clip.get_tokenizer('ViT-B-32')

image = preprocess(Image.open("CLIP.png")).unsqueeze(0)
image = preprocess(Image.open("docs/CLIP.png")).unsqueeze(0)
text = tokenizer(["a diagram", "a dog", "a cat"])

with torch.no_grad(), torch.cuda.amp.autocast():
Expand Down

0 comments on commit 9eaf242

Please sign in to comment.