Spaces:
Running
Running
Martin Tomov
commited on
IDEA-Research/grounding-dino-base
Browse files- gsl_utils.py +1 -1
gsl_utils.py
CHANGED
@@ -12,7 +12,7 @@ from huggingface_hub import hf_hub_download
|
|
12 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
13 |
|
14 |
def load_groundingdino_model(device='cpu'):
|
15 |
-
model = pipeline(model="
|
16 |
return model
|
17 |
|
18 |
def load_sam_model(device='cpu'):
|
|
|
12 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
13 |
|
14 |
def load_groundingdino_model(device='cpu'):
|
15 |
+
model = pipeline(model="IDEA-Research/grounding-dino-base", task="zero-shot-object-detection", device=device)
|
16 |
return model
|
17 |
|
18 |
def load_sam_model(device='cpu'):
|