apailang commited on
Commit
e8f434e
β€’
1 Parent(s): 7218336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -60,7 +60,7 @@ def predict2(image_np):
60
  category_index,
61
  use_normalized_coordinates=True,
62
  max_boxes_to_draw=20,
63
- min_score_thresh=0.3,
64
  agnostic_mode=False,
65
  line_thickness=2)
66
 
@@ -91,7 +91,7 @@ def predict4(image_np):
91
  category_index,
92
  use_normalized_coordinates=True,
93
  max_boxes_to_draw=20,
94
- min_score_thresh=.30,
95
  agnostic_mode=False,
96
  line_thickness=2)
97
 
@@ -175,7 +175,7 @@ base_image = gr.Interface(
175
  inputs=[gr.Image(type="pil"),gr.Slider(minimum=0.01, maximum=0.99, value=0.6 ,label="Threshold(WIP)",info="[not in used]to set prediction confidence threshold")],
176
  outputs=gr.Image(type="pil"),
177
  title="Luffy and Chopper face detection (Base mobile net model)",
178
- description="Upload a Image for prediction or click on below examples",
179
  examples=[[test1],[test2],[test3],[test4],[test5],[test6],[test7],[test8],[test9],[test10],[test11],[test12],],
180
  cache_examples=True
181
  )#.launch(share=True)
@@ -185,7 +185,7 @@ tuned_image = gr.Interface(
185
  inputs=gr.Image(type="pil"),
186
  outputs=gr.Image(type="pil"),
187
  title="Luffy and Chopper face detection (tuned mobile net model)",
188
- description="Upload a Image for prediction or click on below examples. Mobile net tuned with data Augmentation",
189
  examples=[[test1],[test2],[test3],[test4],[test5],[test6],[test7],[test8],[test9],[test10],[test11],[test12],],
190
  cache_examples=True
191
  )#.launch(share=True)
 
60
  category_index,
61
  use_normalized_coordinates=True,
62
  max_boxes_to_draw=20,
63
+ min_score_thresh=0.38,
64
  agnostic_mode=False,
65
  line_thickness=2)
66
 
 
91
  category_index,
92
  use_normalized_coordinates=True,
93
  max_boxes_to_draw=20,
94
+ min_score_thresh=.38,
95
  agnostic_mode=False,
96
  line_thickness=2)
97
 
 
175
  inputs=[gr.Image(type="pil"),gr.Slider(minimum=0.01, maximum=0.99, value=0.6 ,label="Threshold(WIP)",info="[not in used]to set prediction confidence threshold")],
176
  outputs=gr.Image(type="pil"),
177
  title="Luffy and Chopper face detection (Base mobile net model)",
178
+ description="Upload a Image for prediction or click on below examples. Prediction confident >38%",
179
  examples=[[test1],[test2],[test3],[test4],[test5],[test6],[test7],[test8],[test9],[test10],[test11],[test12],],
180
  cache_examples=True
181
  )#.launch(share=True)
 
185
  inputs=gr.Image(type="pil"),
186
  outputs=gr.Image(type="pil"),
187
  title="Luffy and Chopper face detection (tuned mobile net model)",
188
+ description="Upload a Image for prediction or click on below examples. Mobile net tuned with data Augmentation. Prediction confident >38%",
189
  examples=[[test1],[test2],[test3],[test4],[test5],[test6],[test7],[test8],[test9],[test10],[test11],[test12],],
190
  cache_examples=True
191
  )#.launch(share=True)