File size: 376 Bytes
367f9a8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import mmpose
print(mmpose.__version__)
from mmpose.apis import MMPoseInferencer
inferencer = MMPoseInferencer(
pose3d='human')
import gradio as gr
def greet(photo):
result_generator = inferencer(photo)
vis, pred = next(result_generator)
return vis
demo = gr.Interface(fn=greet, inputs=gr.Image(source="webcam"), outputs=gr.Image())
demo.launch() |