Spaces:
Runtime error
Runtime error
ngthanhtinqn
commited on
Commit
β’
9730cbb
1
Parent(s):
3daa867
add desc
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ description = """
|
|
7 |
Gradio demo for combining <a href="https://github.com/facebookresearch/segment-anything">Segment-Anything (SAM)</a>
|
8 |
<a href="https://huggingface.co/docs/transformers/main/en/model_doc/owlvit">OWL-ViT</a>.
|
9 |
\n\nYou can use OWL-ViT to query boxes with text descriptions of any object, then SAM will segment anything in the boxes.
|
|
|
|
|
10 |
"""
|
11 |
demo = gr.Interface(
|
12 |
query_image,
|
|
|
7 |
Gradio demo for combining <a href="https://github.com/facebookresearch/segment-anything">Segment-Anything (SAM)</a>
|
8 |
<a href="https://huggingface.co/docs/transformers/main/en/model_doc/owlvit">OWL-ViT</a>.
|
9 |
\n\nYou can use OWL-ViT to query boxes with text descriptions of any object, then SAM will segment anything in the boxes.
|
10 |
+
|
11 |
+
Note: In this demo, I only get the one box per class to demonstrate, you can modify the code to get multiple boxes beyond a threshold.
|
12 |
"""
|
13 |
demo = gr.Interface(
|
14 |
query_image,
|