yutyan commited on
Commit
c9900aa
·
1 Parent(s): 3851a99

fix min threashld

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -34,8 +34,8 @@ image_interface = gr.Interface(
34
  fn=image_inference,
35
  inputs=[
36
  "image",
37
- gr.Slider(0, 1, value=0.4, step=0.01, label="Confidence Threshold", ),
38
- gr.Slider(0, 1, value=0.01, step=0.01, label="NMS Threshold")
39
  ],
40
  examples=[["assets/sample.png", 0.4, 0.01]],
41
  outputs=gr.Image(type="pil"),
@@ -91,10 +91,10 @@ video_interface = gr.Interface(
91
  fn=video_inference,
92
  inputs=[
93
  gr.Video(),
94
- gr.Slider(0, 1, value=0.5, step=0.01, label="Confidence Threshold", ),
95
- gr.Slider(0, 1, value=0.01, step=0.01, label="NMS Threshold"),
96
  gr.Slider(0, 60, value=0, step=1, label="Start Second"),
97
- gr.Slider(0, 10, value=3, step=1, label="Duration"),
98
  ],
99
  outputs=gr.Video(),
100
  title="OpenLenda video demo"
 
34
  fn=image_inference,
35
  inputs=[
36
  "image",
37
+ gr.Slider(0.01, 1, value=0.4, step=0.01, label="Confidence Threshold", ),
38
+ gr.Slider(0.01, 1, value=0.01, step=0.01, label="NMS Threshold")
39
  ],
40
  examples=[["assets/sample.png", 0.4, 0.01]],
41
  outputs=gr.Image(type="pil"),
 
91
  fn=video_inference,
92
  inputs=[
93
  gr.Video(),
94
+ gr.Slider(0.01, 1, value=0.5, step=0.01, label="Confidence Threshold", ),
95
+ gr.Slider(0.01, 1, value=0.01, step=0.01, label="NMS Threshold"),
96
  gr.Slider(0, 60, value=0, step=1, label="Start Second"),
97
+ gr.Slider(1, 10, value=3, step=1, label="Duration"),
98
  ],
99
  outputs=gr.Video(),
100
  title="OpenLenda video demo"