better description
Browse files
app.py
CHANGED
@@ -51,30 +51,28 @@ def query_image(input_img, query, binarize, eval_threshold):
|
|
51 |
|
52 |
# Gradio interface
|
53 |
description = """
|
54 |
-
<
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
<div class="
|
64 |
-
<
|
65 |
-
<
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
<
|
72 |
-
<
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
</ul>
|
77 |
-
</div>
|
78 |
</div>
|
79 |
</div>
|
80 |
"""
|
@@ -93,9 +91,6 @@ demo = gr.Interface(
|
|
93 |
cache_examples=False,
|
94 |
allow_flagging = "never",
|
95 |
css = """
|
96 |
-
.body {
|
97 |
-
font-size: 14px;
|
98 |
-
}
|
99 |
.row {
|
100 |
display: flex;
|
101 |
}
|
|
|
51 |
|
52 |
# Gradio interface
|
53 |
description = """
|
54 |
+
Gradio demo for an object detection architecture, introduced in my <a href="https://www.google.com/">bachelor thesis</a> (link will be added).
|
55 |
+
\n\n
|
56 |
+
You can use this architecture to detect objects using textual queries. To use it, simply upload an image and enter any query you want.
|
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">
|
64 |
+
<ul>
|
65 |
+
<li>Find a {class}.</li>
|
66 |
+
<li>Tea</li>
|
67 |
+
<li>Milk</li>
|
68 |
+
</ul>
|
69 |
+
</div>
|
70 |
+
<div class="column">
|
71 |
+
<ul>
|
72 |
+
<li>Coffee</li>
|
73 |
+
<li>Tea</li>
|
74 |
+
<li>Milk</li>
|
75 |
+
</ul>
|
|
|
|
|
76 |
</div>
|
77 |
</div>
|
78 |
"""
|
|
|
91 |
cache_examples=False,
|
92 |
allow_flagging = "never",
|
93 |
css = """
|
|
|
|
|
|
|
94 |
.row {
|
95 |
display: flex;
|
96 |
}
|