xmrt commited on
Commit
a610dec
1 Parent(s): de93d1c

3d visualization and req.txt

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -25,6 +25,7 @@ print("[INFO]: Downloaded models!")
25
 
26
 
27
  def poses(photo):
 
28
  result_generator = inferencer(photo,
29
  vis_out_dir =".",
30
  return_vis=True,
@@ -73,7 +74,7 @@ def poses(photo):
73
  def run():
74
  #https://github.com/open-mmlab/mmpose/blob/main/docs/en/user_guides/inference.md
75
  demo = gr.Interface(fn=poses,
76
- inputs=gr.Video(source="webcam"),
77
  outputs=gr.Video())
78
 
79
 
 
25
 
26
 
27
  def poses(photo):
28
+ print(photo)
29
  result_generator = inferencer(photo,
30
  vis_out_dir =".",
31
  return_vis=True,
 
74
  def run():
75
  #https://github.com/open-mmlab/mmpose/blob/main/docs/en/user_guides/inference.md
76
  demo = gr.Interface(fn=poses,
77
+ inputs=gr.Video(source="upload"),
78
  outputs=gr.Video())
79
 
80