3d visualization and req.txt
Browse files
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="
|
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 |
|