new example test
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ else:
|
|
| 18 |
model = OwlViTForObjectDetection.from_pretrained("google/owlvit-large-patch14").to(device)
|
| 19 |
model.eval()
|
| 20 |
processor = OwlViTProcessor.from_pretrained("google/owlvit-large-patch14")
|
| 21 |
-
|
| 22 |
|
| 23 |
def query_image(img, text_queries, score_threshold):
|
| 24 |
text_queries = text_queries.split(",")
|
|
|
|
| 18 |
model = OwlViTForObjectDetection.from_pretrained("google/owlvit-large-patch14").to(device)
|
| 19 |
model.eval()
|
| 20 |
processor = OwlViTProcessor.from_pretrained("google/owlvit-large-patch14")
|
| 21 |
+
print(os.listdir())
|
| 22 |
|
| 23 |
def query_image(img, text_queries, score_threshold):
|
| 24 |
text_queries = text_queries.split(",")
|