Maximef commited on
Commit
1e76775
Β·
1 Parent(s): fad86ee

Edit confidence

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -175,11 +175,11 @@ def detect_logo(img, model, confidence):
175
  txt_output = print_output(txt_path)
176
  return img_output, txt_output, "Recommendations : "+str(set(all_recommendations))
177
 
178
- examples1 = [["exemple1.jpg", "Yologo", 0.60], ["exemple2.jpg", "Yologo", 0.60],
179
- ["exemple3.jpg", "Yologo", 0.60 ], ["exemple4.jpg", "Yologo", 0.60],
180
- ["exemple5.PNG", "Yologo", 0.60], ["exemple6.jpg", "Yologo", 0.60],
181
- ["exemple7.jpg", "Yologo", 0.60], ["exemple8.jpg", "Yologo", 0.60],
182
- ["exemple9.jpg", "Yologo", 0.60], ["exemple10.jpg", "Yologo", 0.60]]
183
 
184
  Top_Title = "<center>Yolov7 πŸš€ Custom Trained by ISAI Team (Capgemini) </center> Logo detection model"
185
  Custom_description="Yologo can detect 44 brands : A.P.C, Abercrombie, Acne Studio, Adidas, Aigle, Airness, Armarni, Balenciaga, Bulgari, Cacharel, Calvin Klein, Carhatt, Champion, Columbia, Converse, Gap, Chanel, Lacoste, Levis, Louis vuitton, Moncler, Mossimo, New Balance, Obey, Pepe jeans, Ralph Lauren, Prada, Rolex, Seiko, Stussy, The North Face, Timberland, Tom Ford, Tommy Hilfiger, Uniqlo, Valentino, Versace, Zara, Asics, Le coq, Oakley, Nike, Puma, Reebok "
@@ -189,7 +189,7 @@ Custom_description="Yologo can detect 44 brands : A.P.C, Abercrombie, Acne Studi
189
 
190
  gr.Interface(detect_logo, [gr.Image(type="pil"),
191
  gr.Dropdown(value="Yologo",choices=["Yologo"]),
192
- gr.Slider(0.10, 1.0, value=0.60)],
193
  [gr.Image(type="pil"), "text", "text"],
194
  title=Top_Title,
195
  description=Custom_description,
 
175
  txt_output = print_output(txt_path)
176
  return img_output, txt_output, "Recommendations : "+str(set(all_recommendations))
177
 
178
+ examples1 = [["exemple1.jpg", "Yologo", 0.59], ["exemple2.jpg", "Yologo", 0.59],
179
+ ["exemple3.jpg", "Yologo", 0.59 ], ["exemple4.jpg", "Yologo", 0.59],
180
+ ["exemple5.PNG", "Yologo", 0.59], ["exemple6.jpg", "Yologo", 0.59],
181
+ ["exemple7.jpg", "Yologo", 0.59], ["exemple8.jpg", "Yologo", 0.59],
182
+ ["exemple9.jpg", "Yologo", 0.59], ["exemple10.jpg", "Yologo", 0.59]]
183
 
184
  Top_Title = "<center>Yolov7 πŸš€ Custom Trained by ISAI Team (Capgemini) </center> Logo detection model"
185
  Custom_description="Yologo can detect 44 brands : A.P.C, Abercrombie, Acne Studio, Adidas, Aigle, Airness, Armarni, Balenciaga, Bulgari, Cacharel, Calvin Klein, Carhatt, Champion, Columbia, Converse, Gap, Chanel, Lacoste, Levis, Louis vuitton, Moncler, Mossimo, New Balance, Obey, Pepe jeans, Ralph Lauren, Prada, Rolex, Seiko, Stussy, The North Face, Timberland, Tom Ford, Tommy Hilfiger, Uniqlo, Valentino, Versace, Zara, Asics, Le coq, Oakley, Nike, Puma, Reebok "
 
189
 
190
  gr.Interface(detect_logo, [gr.Image(type="pil"),
191
  gr.Dropdown(value="Yologo",choices=["Yologo"]),
192
+ gr.Slider(0.10, 1.0, value=0.59)],
193
  [gr.Image(type="pil"), "text", "text"],
194
  title=Top_Title,
195
  description=Custom_description,