mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

webcam_demo.py

Open ChenZhenGui opened this issue 2 years ago • 4 comments

image I need to run webcam_demo.py on jetson nano, so I need the lightest object detection model, please help me to see which of the following models is the lightest

ChenZhenGui avatar Nov 28 '22 03:11 ChenZhenGui

Also I would like to ask, is there any way to display fps in webcam_demo.py in real time

ChenZhenGui avatar Nov 28 '22 03:11 ChenZhenGui

Among these models, ssdlite and yolov3 should have faster inference speeds. You can also have a look at the MMDetection model zoo where there are more available detection models: https://mmdetection.readthedocs.io/en/3.x/model_zoo.html

To display fps and other diagnostic information, MonitorNode is what you need: https://mmpose.readthedocs.io/en/1.x/generated/mmpose.apis.webcam.nodes.MonitorNode.html#mmpose.apis.webcam.nodes.MonitorNode (Assume you are using MMPose 1.0)

ly015 avatar Nov 28 '22 04:11 ly015

sorry,I can't find an interface in MonitorNode that shows fps

ChenZhenGui avatar Nov 28 '22 04:11 ChenZhenGui

If you run webcam_demo.py with the default config which has the MonitorNode, the diagnostic information can be enabled by pressing the key "m" and will be shown on the image.

ly015 avatar Nov 28 '22 12:11 ly015