Update README.md
Browse filesthis example python throws error without the from_tf arg
README.md
CHANGED
@@ -40,7 +40,7 @@ import requests
|
|
40 |
|
41 |
from transformers import CLIPProcessor, CLIPModel
|
42 |
|
43 |
-
model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
|
44 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
45 |
|
46 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
|
|
40 |
|
41 |
from transformers import CLIPProcessor, CLIPModel
|
42 |
|
43 |
+
model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32", from_tf=True)
|
44 |
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
45 |
|
46 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|