Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
import spaces
|
5 |
|
6 |
checkpoint = "google/owlv2-base-patch16-ensemble"
|
7 |
-
detector = pipeline(model=checkpoint, task="zero-shot-object-detection")
|
8 |
sam_model = SamModel.from_pretrained("facebook/sam-vit-base").to("cuda")
|
9 |
sam_processor = SamProcessor.from_pretrained("facebook/sam-vit-base")
|
10 |
|
|
|
4 |
import spaces
|
5 |
|
6 |
checkpoint = "google/owlv2-base-patch16-ensemble"
|
7 |
+
detector = pipeline(model=checkpoint, task="zero-shot-object-detection", device="cuda")
|
8 |
sam_model = SamModel.from_pretrained("facebook/sam-vit-base").to("cuda")
|
9 |
sam_processor = SamProcessor.from_pretrained("facebook/sam-vit-base")
|
10 |
|