dheena
commited on
Commit
·
58597bf
1
Parent(s):
ea99a27
SYS-0000
Browse files- src/model.py +1 -1
src/model.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
|
11 |
|
12 |
device = "cpu"
|
13 |
-
model, preprocess = clip.load("ViT-B/32", device=device, download_root=
|
14 |
|
15 |
def get_image_features(image: Image.Image) -> np.ndarray:
|
16 |
"""Extract CLIP features from an image."""
|
|
|
10 |
|
11 |
|
12 |
device = "cpu"
|
13 |
+
model, preprocess = clip.load("ViT-B/32", device=device, download_root="/tmp")
|
14 |
|
15 |
def get_image_features(image: Image.Image) -> np.ndarray:
|
16 |
"""Extract CLIP features from an image."""
|