Spaces:
Running
Running
lower load manager threshold
Browse files- localization.py +7 -2
localization.py
CHANGED
@@ -106,7 +106,11 @@ def app():
|
|
106 |
|
107 |
### π Ciao!
|
108 |
|
109 |
-
Here you can find an
|
|
|
|
|
|
|
|
|
110 |
|
111 |
π€ Italian mode on! π€
|
112 |
|
@@ -150,7 +154,8 @@ def app():
|
|
150 |
if not caption or not image_url:
|
151 |
st.error("Please choose one image and at least one label")
|
152 |
else:
|
153 |
-
with st.spinner("Computing... This might take up to a few minutes depending on the current load
|
|
|
154 |
heatmap, image = get_heatmap(image_url, caption, pixel_size, iterations)
|
155 |
|
156 |
with col1:
|
|
|
106 |
|
107 |
### π Ciao!
|
108 |
|
109 |
+
Here you can find an example for zero shot localization that will show you where in an image the model sees an object.
|
110 |
+
|
111 |
+
The location of the object is computed by masking different areas of the image and looking at
|
112 |
+
how the similarity to the image description changes. If you want to have a look at the implementation in details
|
113 |
+
you can find it in [this Colab](https://colab.research.google.com/drive/10neENr1DEAFq_GzsLqBDo0gZ50hOhkOr?usp=sharing).
|
114 |
|
115 |
π€ Italian mode on! π€
|
116 |
|
|
|
154 |
if not caption or not image_url:
|
155 |
st.error("Please choose one image and at least one label")
|
156 |
else:
|
157 |
+
with st.spinner("Computing... This might take up to a few minutes depending on the current load π \n"
|
158 |
+
"[Colab Link](https://colab.research.google.com/drive/10neENr1DEAFq_GzsLqBDo0gZ50hOhkOr?usp=sharing)"):
|
159 |
heatmap, image = get_heatmap(image_url, caption, pixel_size, iterations)
|
160 |
|
161 |
with col1:
|