slider
Browse files
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(
|
| 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(
|
| 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")
|