Update README.md
Browse files
README.md
CHANGED
@@ -25,10 +25,10 @@ Pre-trained representations are becoming crucial for many NLP and perception tas
|
|
25 |
from PIL import Image
|
26 |
import requests
|
27 |
|
28 |
-
from transformers import
|
29 |
|
30 |
-
|
31 |
-
|
32 |
|
33 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
34 |
image = Image.open(requests.get(url, stream=True).raw)
|
|
|
25 |
from PIL import Image
|
26 |
import requests
|
27 |
|
28 |
+
from transformers import AlignProcessor, AlignModel
|
29 |
|
30 |
+
processor = AlignProcessor.from_pretrained("kakaobrain/align-base")
|
31 |
+
model = AlignModel.from_pretrained("kakaobrain/align-base")
|
32 |
|
33 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
34 |
image = Image.open(requests.get(url, stream=True).raw)
|