xmrt commited on
Commit
e281df9
·
1 Parent(s): 38ea66b
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -190,7 +190,7 @@ def run_UI():
190
  with gr.Column():
191
  video_input = gr.Video(source="upload", type="filepath", height=612)
192
  # Insert slider with kpt_thr
193
- file_kpthr = gr.Slider(minimum=0.000001, maximum=0.001, step=0.000001, default=0.00001, label='Keypoint threshold')
194
 
195
  submit_pose_file = gr.Button("Make 2d pose estimation", variant="primary")
196
  submit_pose3d_file = gr.Button("Make 3d pose estimation", variant="primary")
@@ -210,7 +210,7 @@ def run_UI():
210
  with gr.Column():
211
  webcam_input = gr.Video(source="webcam", height=612)
212
 
213
- web_kpthr = gr.Slider(minimum=0.000001, maximum=0.001, step=0.000001, default=0.00001, label='Keypoint threshold')
214
 
215
  submit_pose_web = gr.Button("Make 2d pose estimation", variant="primary")
216
  submit_pose3d_web = gr.Button("Make 3d pose estimation", variant="primary")
 
190
  with gr.Column():
191
  video_input = gr.Video(source="upload", type="filepath", height=612)
192
  # Insert slider with kpt_thr
193
+ file_kpthr = gr.Slider(0, 1, value=0.3, label='Keypoint threshold')
194
 
195
  submit_pose_file = gr.Button("Make 2d pose estimation", variant="primary")
196
  submit_pose3d_file = gr.Button("Make 3d pose estimation", variant="primary")
 
210
  with gr.Column():
211
  webcam_input = gr.Video(source="webcam", height=612)
212
 
213
+ web_kpthr = gr.Slider(0, 1, value=0.3, label='Keypoint threshold')
214
 
215
  submit_pose_web = gr.Button("Make 2d pose estimation", variant="primary")
216
  submit_pose3d_web = gr.Button("Make 3d pose estimation", variant="primary")