Maximef commited on
Commit
df75ef7
·
1 Parent(s): ff950c8

add exemples

Browse files
Files changed (8) hide show
  1. .gitattributes +1 -0
  2. app.py +5 -5
  3. exemple1.jpg +3 -0
  4. exemple2.jpg +3 -0
  5. exemple3.jpg +3 -0
  6. exemple4.jpg +3 -0
  7. exemple5.jpg +3 -0
  8. 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
- #examples1 = [["Image1.jpeg", "Yolo_v7_Custom_trained_By_Owais"], ["Image2.jpeg", "Yolo_v7_Custom_trained_By_Owais"],
171
- # ["Image3.jpeg", "Yolo_v7_Custom_trained_By_Owais", ], ["Image4.jpeg", "Yolo_v7_Custom_trained_By_Owais"],
172
- # ["Image5.jpeg", "Yolo_v7_Custom_trained_By_Owais"], ["Image6.jpeg", "Yolo_v7_Custom_trained_By_Owais"],
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

  • SHA256: 3f5a3d7e864e4f66474c8abc7c831a28c28b6d04705c28f824b964323d9907f5
  • Pointer size: 132 Bytes
  • Size of remote file: 3.77 MB
exemple2.jpg ADDED

Git LFS Details

  • SHA256: 429a69c4f2014cdd5ccdc87abd626ab800d1b8d49216b221c1045cf23a64af71
  • Pointer size: 132 Bytes
  • Size of remote file: 3.39 MB
exemple3.jpg ADDED

Git LFS Details

  • SHA256: bf26e32f4eae614525c247a50ea48566655796ea13c01a6262871a7f98d851cf
  • Pointer size: 132 Bytes
  • Size of remote file: 3.37 MB
exemple4.jpg ADDED

Git LFS Details

  • SHA256: e9ae5ed389f6f6963484923bff722eba1147adc5fcf05b46e9837df75f0df640
  • Pointer size: 132 Bytes
  • Size of remote file: 3.75 MB
exemple5.jpg ADDED

Git LFS Details

  • SHA256: 9f88b7864211105b985f07b50294e8d3f3962ad38e361bdf29d1f92e4cd71036
  • Pointer size: 132 Bytes
  • Size of remote file: 3.57 MB
exemple6.jpg ADDED

Git LFS Details

  • SHA256: 460e369da99500a7d079a3cdcfa7ac21818659b35b5c039101ac24150d321ffe
  • Pointer size: 132 Bytes
  • Size of remote file: 3.33 MB