Update README.md
#1
by
adirik
- opened
README.md
CHANGED
@@ -33,7 +33,7 @@ processor = ALIGNProcessor.from_pretrained("kakaobrain/align-base")
|
|
33 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
34 |
image = Image.open(requests.get(url, stream=True).raw)
|
35 |
|
36 |
-
inputs = processor(text=["a photo of a cat", "a photo of a dog"], images=image, return_tensors="pt"
|
37 |
|
38 |
outputs = model(**inputs)
|
39 |
logits_per_image = outputs.logits_per_image # this is the image-text similarity score
|
|
|
33 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
34 |
image = Image.open(requests.get(url, stream=True).raw)
|
35 |
|
36 |
+
inputs = processor(text=["a photo of a cat", "a photo of a dog"], images=image, return_tensors="pt")
|
37 |
|
38 |
outputs = model(**inputs)
|
39 |
logits_per_image = outputs.logits_per_image # this is the image-text similarity score
|