xmrt commited on
Commit
361423b
·
1 Parent(s): 8b65e9d

new model path 3d

Browse files
Files changed (1) hide show
  1. main_noweb.py +5 -5
main_noweb.py CHANGED
@@ -95,7 +95,7 @@ def pose3d(video, kpt_threshold):
95
  video = check_extension(video)
96
  print(device)
97
 
98
- human3d = MMPoseInferencer(pose3d="human3d")
99
 
100
  # Define new unique folder
101
  add_dir = str(uuid.uuid4())
@@ -198,7 +198,7 @@ def UI():
198
  with gr.Row():
199
  with gr.Column():
200
  with gr.Row():
201
- video_input = gr.Video(source="upload", type="filepath", height=512, width=512)
202
  # Insert slider with kpt_thr
203
  with gr.Column():
204
  gr.Markdown("Drag the keypoint threshold to filter out lower probability keypoints:")
@@ -209,9 +209,9 @@ def UI():
209
  submit_hand_file = gr.Button("Make 2d hand estimation")
210
 
211
  with gr.Row():
212
- video_output1 = gr.PlayableVideo(height=512, label = "Estimate human 2d poses", show_label=True)
213
- video_output2 = gr.PlayableVideo(height=512, label = "Estimate human 3d poses", show_label=True)
214
- video_output3 = gr.PlayableVideo(height=512, label = "Estimate human hand poses", show_label=True)
215
 
216
  gr.Markdown("Download the .json file that contains the keypoint positions for each frame in the video.")
217
  jsonoutput = gr.File(file_types=[".json"])
 
95
  video = check_extension(video)
96
  print(device)
97
 
98
+ human3d = MMPoseInferencer("pose-lift_videopose3d-243frm-supv-cpn-ft_8xb128-200e_h36m")# pose3d="human3d")
99
 
100
  # Define new unique folder
101
  add_dir = str(uuid.uuid4())
 
198
  with gr.Row():
199
  with gr.Column():
200
  with gr.Row():
201
+ video_input = gr.Video(source="upload", type="filepath", height=256, width=192)
202
  # Insert slider with kpt_thr
203
  with gr.Column():
204
  gr.Markdown("Drag the keypoint threshold to filter out lower probability keypoints:")
 
209
  submit_hand_file = gr.Button("Make 2d hand estimation")
210
 
211
  with gr.Row():
212
+ video_output1 = gr.PlayableVideo(label = "Estimate human 2d poses", show_label=True)
213
+ video_output2 = gr.PlayableVideo(label = "Estimate human 3d poses", show_label=True)
214
+ video_output3 = gr.PlayableVideo(label = "Estimate human hand poses", show_label=True)
215
 
216
  gr.Markdown("Download the .json file that contains the keypoint positions for each frame in the video.")
217
  jsonoutput = gr.File(file_types=[".json"])