Spaces:
Running
Running
fix model name
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import faiss
|
|
9 |
|
10 |
# Init similarity search AI model and processor
|
11 |
torch_device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
12 |
-
dino_v2_model = AutoModel.from_pretrained("./dinov2-
|
13 |
-
dino_v2_image_processor = AutoImageProcessor.from_pretrained("./dinov2-
|
14 |
|
15 |
|
16 |
def process_image(image):
|
|
|
9 |
|
10 |
# Init similarity search AI model and processor
|
11 |
torch_device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
12 |
+
dino_v2_model = AutoModel.from_pretrained("./dinov2-large").to(torch_device)
|
13 |
+
dino_v2_image_processor = AutoImageProcessor.from_pretrained("./dinov2-large")
|
14 |
|
15 |
|
16 |
def process_image(image):
|