xmrt commited on
Commit
582b742
1 Parent(s): 6f5693c
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -88,6 +88,7 @@ def pose3d(video):
88
  result_generator = human3d(video,
89
  vis_out_dir = vis_out_dir,
90
  thickness=2,
 
91
  rebase_keypoint_height=True,
92
  device="cuda")
93
 
@@ -107,6 +108,7 @@ def pose2d(video):
107
  result_generator = human(video,
108
  vis_out_dir = vis_out_dir,
109
  thickness=2,
 
110
  rebase_keypoint_height=True,
111
  device="cuda")
112
 
@@ -128,6 +130,7 @@ def pose2dhand(video):
128
 
129
  result_generator = hand(video,
130
  vis_out_dir = vis_out_dir,
 
131
  thickness=2,
132
  rebase_keypoint_height=True,
133
  device="cuda")
@@ -148,7 +151,6 @@ with gr.Blocks() as demo:
148
  with gr.Column():
149
  video_input = gr.Video(source="upload", type="filepath", height=512)
150
  # Insert slider with kpt_thr
151
- web_kpthr = gr.Slider(0, 1, value=0.3)
152
  file_kpthr = gr.Slider(0, 1, value=0.3)
153
 
154
  submit_pose_file = gr.Button("Make 2d pose estimation")
@@ -167,7 +169,6 @@ with gr.Blocks() as demo:
167
  webcam_input = gr.Video(source="webcam", height=512)
168
 
169
  web_kpthr = gr.Slider(0, 1, value=0.3)
170
- file_kpthr = gr.Slider(0, 1, value=0.3)
171
 
172
  submit_pose_web = gr.Button("Make 2d pose estimation")
173
  submit_pose3d_web = gr.Button("Make 3d pose estimation")
 
88
  result_generator = human3d(video,
89
  vis_out_dir = vis_out_dir,
90
  thickness=2,
91
+ return_vis=True,
92
  rebase_keypoint_height=True,
93
  device="cuda")
94
 
 
108
  result_generator = human(video,
109
  vis_out_dir = vis_out_dir,
110
  thickness=2,
111
+ return_vis=True,
112
  rebase_keypoint_height=True,
113
  device="cuda")
114
 
 
130
 
131
  result_generator = hand(video,
132
  vis_out_dir = vis_out_dir,
133
+ return_vis=True,
134
  thickness=2,
135
  rebase_keypoint_height=True,
136
  device="cuda")
 
151
  with gr.Column():
152
  video_input = gr.Video(source="upload", type="filepath", height=512)
153
  # Insert slider with kpt_thr
 
154
  file_kpthr = gr.Slider(0, 1, value=0.3)
155
 
156
  submit_pose_file = gr.Button("Make 2d pose estimation")
 
169
  webcam_input = gr.Video(source="webcam", height=512)
170
 
171
  web_kpthr = gr.Slider(0, 1, value=0.3)
 
172
 
173
  submit_pose_web = gr.Button("Make 2d pose estimation")
174
  submit_pose3d_web = gr.Button("Make 3d pose estimation")