adirik commited on
Commit
71fdc45
1 Parent(s): 5623896

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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", padding=True)
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