Specify pretrained model version
Browse files
README.md
CHANGED
@@ -48,7 +48,7 @@ import requests
|
|
48 |
from PIL import Image
|
49 |
|
50 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
51 |
-
model, _, preprocess = open_clip.create_model_and_transforms('ViT-B-16-plus-240')
|
52 |
model.to(device)
|
53 |
|
54 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
|
|
48 |
from PIL import Image
|
49 |
|
50 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
51 |
+
model, _, preprocess = open_clip.create_model_and_transforms('ViT-B-16-plus-240', pretrained="laion400m_e32")
|
52 |
model.to(device)
|
53 |
|
54 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|