new test ports
Browse files
main.py
CHANGED
@@ -2,7 +2,7 @@ import mmpose
|
|
2 |
print(mmpose.__version__)
|
3 |
from mmpose.apis import MMPoseInferencer
|
4 |
inferencer = MMPoseInferencer('human')
|
5 |
-
print("[INFO]: Imported modules
|
6 |
|
7 |
import gradio as gr
|
8 |
|
@@ -23,8 +23,15 @@ def greet(photo):
|
|
23 |
# pose2d_weights='custom_human_pose_estimator.pth',
|
24 |
# det_model='human'
|
25 |
# )
|
26 |
-
if __name__ == '__main__':
|
27 |
-
|
28 |
-
demo = gr.Interface(fn=greet, inputs=gr.Image(source="webcam"), outputs=gr.Image())
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
print(mmpose.__version__)
|
3 |
from mmpose.apis import MMPoseInferencer
|
4 |
inferencer = MMPoseInferencer('human')
|
5 |
+
print("[INFO]: Imported modules!")
|
6 |
|
7 |
import gradio as gr
|
8 |
|
|
|
23 |
# pose2d_weights='custom_human_pose_estimator.pth',
|
24 |
# det_model='human'
|
25 |
# )
|
|
|
|
|
|
|
26 |
|
27 |
+
def run():
|
28 |
+
demo = gr.Interface(fn=greet,
|
29 |
+
inputs=gr.Image(source="webcam"),
|
30 |
+
outputs=gr.Image())
|
31 |
+
|
32 |
+
|
33 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
34 |
+
|
35 |
+
|
36 |
+
if __name__ == "__main__":
|
37 |
+
run()
|