Spaces:
Runtime error
Runtime error
Updated markdown and more video examples.
Browse files
app.py
CHANGED
@@ -21,6 +21,14 @@ This is a demo of zero-shot object detection and instance segmentation using
|
|
21 |
|
22 |
Powered by Roboflow [Inference](https://github.com/roboflow/inference) and
|
23 |
[Supervision](https://github.com/roboflow/supervision).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
"""
|
25 |
|
26 |
RESULTS = "results"
|
@@ -31,6 +39,8 @@ IMAGE_EXAMPLES = [
|
|
31 |
VIDEO_EXAMPLES = [
|
32 |
['https://media.roboflow.com/supervision/video-examples/croissant-1280x720.mp4', 'croissant', 0.01, 0.2, False, False, False],
|
33 |
['https://media.roboflow.com/supervision/video-examples/suitcases-1280x720.mp4', 'suitcase', 0.1, 0.2, False, False, False],
|
|
|
|
|
34 |
]
|
35 |
|
36 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
21 |
|
22 |
Powered by Roboflow [Inference](https://github.com/roboflow/inference) and
|
23 |
[Supervision](https://github.com/roboflow/supervision).
|
24 |
+
|
25 |
+
❗ **Don't give up right away if YOLO-World doesn't detect the objects you are looking
|
26 |
+
for on the first try.** Use the `Configuration` tab and experiment with
|
27 |
+
`confidence_threshold` and `iou_threshold`. YOLO-World tends to return low `confidence`
|
28 |
+
values for objects outside the
|
29 |
+
[COCO](https://universe.roboflow.com/microsoft/coco) dataset. Check out this
|
30 |
+
[notebook](https://supervision.roboflow.com/develop/notebooks/zero-shot-object-detection-with-yolo-world)
|
31 |
+
to learn more about YOLO-World's prompting.
|
32 |
"""
|
33 |
|
34 |
RESULTS = "results"
|
|
|
39 |
VIDEO_EXAMPLES = [
|
40 |
['https://media.roboflow.com/supervision/video-examples/croissant-1280x720.mp4', 'croissant', 0.01, 0.2, False, False, False],
|
41 |
['https://media.roboflow.com/supervision/video-examples/suitcases-1280x720.mp4', 'suitcase', 0.1, 0.2, False, False, False],
|
42 |
+
['https://media.roboflow.com/supervision/video-examples/tokyo-walk-1280x720.mp4', 'woman walking', 0.1, 0.2, False, False, False],
|
43 |
+
['https://media.roboflow.com/supervision/video-examples/wooly-mammoth-1280x720.mp4', 'mammoth', 0.01, 0.2, False, False, False],
|
44 |
]
|
45 |
|
46 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|