Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import torch
|
|
| 3 |
import numpy as np
|
| 4 |
import spaces
|
| 5 |
|
| 6 |
-
checkpoint = "google/
|
| 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")
|
|
|
|
| 3 |
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")
|