4rtemi5 commited on
Commit
9c82e81
β€’
1 Parent(s): a273663

lower load manager threshold

Browse files
Files changed (1) hide show
  1. localization.py +7 -2
localization.py CHANGED
@@ -106,7 +106,11 @@ def app():
106
 
107
  ### πŸ‘‹ Ciao!
108
 
109
- Here you can find an exaple for zero shot localization that will show you where in an image the model sees an object.
 
 
 
 
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: