add exemples
Browse files- .gitattributes +1 -0
- app.py +5 -5
- exemple1.jpg +3 -0
- exemple2.jpg +3 -0
- exemple3.jpg +3 -0
- exemple4.jpg +3 -0
- exemple5.jpg +3 -0
- exemple6.jpg +3 -0
.gitattributes
CHANGED
|
@@ -29,3 +29,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 29 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 29 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -167,14 +167,14 @@ def detect_logo(img, model, confidence):
|
|
| 167 |
txt_output = print_output(txt_path)
|
| 168 |
return img_output, txt_output
|
| 169 |
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
# ["horses.jpeg", "yolov7"], ["horses.jpeg", "yolov7-e6"]]
|
| 174 |
|
| 175 |
Top_Title = "<center>Yolov7 🚀 Custom Trained by ISAI Team (Capgemini) </center> Logo detection model"
|
| 176 |
|
| 177 |
gr.Interface(detect_logo, [gr.Image(type="pil"), gr.Dropdown(value="Yologo",
|
| 178 |
choices=["Yologo"]), gr.Slider(0.10, 1.0, value=0.60)], [gr.Image(type="pil"), "text"],
|
| 179 |
-
title=Top_Title).launch()
|
|
|
|
| 180 |
|
|
|
|
| 167 |
txt_output = print_output(txt_path)
|
| 168 |
return img_output, txt_output
|
| 169 |
|
| 170 |
+
examples1 = [["exemple1.jpg", "Yologo"], ["exemple2.jpg", "Yologo"],
|
| 171 |
+
["exemple3.jpg", "Yologo", ], ["exemple4.jpg", "Yologo"],
|
| 172 |
+
["exemple5.jpg", "Yologo"], ["exemple6.jpg", "Yologo"]]
|
|
|
|
| 173 |
|
| 174 |
Top_Title = "<center>Yolov7 🚀 Custom Trained by ISAI Team (Capgemini) </center> Logo detection model"
|
| 175 |
|
| 176 |
gr.Interface(detect_logo, [gr.Image(type="pil"), gr.Dropdown(value="Yologo",
|
| 177 |
choices=["Yologo"]), gr.Slider(0.10, 1.0, value=0.60)], [gr.Image(type="pil"), "text"],
|
| 178 |
+
title=Top_Title, examples=examples1, cache_examples=False).launch()
|
| 179 |
+
|
| 180 |
|
exemple1.jpg
ADDED
|
Git LFS Details
|
exemple2.jpg
ADDED
|
Git LFS Details
|
exemple3.jpg
ADDED
|
Git LFS Details
|
exemple4.jpg
ADDED
|
Git LFS Details
|
exemple5.jpg
ADDED
|
Git LFS Details
|
exemple6.jpg
ADDED
|
Git LFS Details
|