Aastha commited on
Commit
d16ea0c
1 Parent(s): 5dbb854

modify threshold

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -77,8 +77,8 @@ if __name__ == '__main__':
77
  fn=run,
78
  inputs=[
79
  gr.Image(label='Input Image'),
80
- gr.Slider(minimum=0.05, maximum=1, step=0.05, default=0.3, label="Confidence Threshold"),
81
- gr.Slider(minimum=0.05, maximum=1, step=0.05, default=0.3, label="NMS Threshold"),
82
  ],
83
  outputs=[
84
  gr.Image(
@@ -91,9 +91,9 @@ if __name__ == '__main__':
91
  ),
92
  ],
93
  examples=[
94
- ['examples/fire1.jpg'],
95
- ['examples/fire2.jpg'],
96
- ['examples/fire3.jpg']
97
  ]
98
  )
99
  style.launch()
 
77
  fn=run,
78
  inputs=[
79
  gr.Image(label='Input Image'),
80
+ gr.Slider(minimum=0.05, maximum=1, step=0.05, label="Confidence Threshold", default=0.2),
81
+ gr.Slider(minimum=0.05, maximum=1, step=0.05, label="NMS Threshold", default=0.5),
82
  ],
83
  outputs=[
84
  gr.Image(
 
91
  ),
92
  ],
93
  examples=[
94
+ ['examples/fire1.jpg', 0.5, 0.5],
95
+ ['examples/fire2.jpg', 0.5, 0.5],
96
+ ['examples/fire3.jpg', 0.5, 0.5]
97
  ]
98
  )
99
  style.launch()