better description
Browse files
app.py
CHANGED
@@ -57,6 +57,12 @@ You can use this architecture to detect objects using textual queries. To use it
|
|
57 |
It can be a single word or in the form of a sentence. The model is trained to recognize only 80 categories from the COCO Detection 2017 dataset.
|
58 |
Refer to <a href="https://tech.amikelive.com/node-718/what-object-categories-labels-are-in-coco-dataset/">this</a> website
|
59 |
or the original <a href="https://arxiv.org/pdf/1405.0312.pdf">COCO</a> paper to see the full list of categories.
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
"""
|
61 |
demo = gr.Interface(
|
62 |
query_image,
|
@@ -72,6 +78,15 @@ demo = gr.Interface(
|
|
72 |
],
|
73 |
cache_examples=False,
|
74 |
allow_flagging = "never",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
)
|
76 |
demo.launch()
|
77 |
|
|
|
57 |
It can be a single word or in the form of a sentence. The model is trained to recognize only 80 categories from the COCO Detection 2017 dataset.
|
58 |
Refer to <a href="https://tech.amikelive.com/node-718/what-object-categories-labels-are-in-coco-dataset/">this</a> website
|
59 |
or the original <a href="https://arxiv.org/pdf/1405.0312.pdf">COCO</a> paper to see the full list of categories.
|
60 |
+
\n\n
|
61 |
+
Best results are obtained using one of these sentences, which were used during training:
|
62 |
+
<div class="row">
|
63 |
+
<div class="column">one column</div>
|
64 |
+
<div class="column">second column</div>
|
65 |
+
</div>
|
66 |
"""
|
67 |
demo = gr.Interface(
|
68 |
query_image,
|
|
|
78 |
],
|
79 |
cache_examples=False,
|
80 |
allow_flagging = "never",
|
81 |
+
css = """
|
82 |
+
.row {
|
83 |
+
display: flex;
|
84 |
+
}
|
85 |
+
|
86 |
+
.column {
|
87 |
+
flex: 50%;
|
88 |
+
}
|
89 |
+
"""
|
90 |
)
|
91 |
demo.launch()
|
92 |
|