mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

How to test the speed when I run the test/val

Open ChenZhenGui opened this issue 2 years ago • 5 comments

Hello,I would like to ask how to test the speed just like the cost time or the fps when I run the test/val image

ChenZhenGui avatar Dec 07 '22 06:12 ChenZhenGui

You may try https://github.com/open-mmlab/mmpose/blob/master/tools/analysis/benchmark_inference.py

jin-s13 avatar Dec 07 '22 06:12 jin-s13

@ChenZhenGui Thanks for using MMPose 1.x. For now, we do not have the script to test inference speed in 1.x version.

You may try https://github.com/open-mmlab/mmpose/blob/master/tools/analysis/benchmark_inference.py

You can try the above script which is in the master branch of MMPose and make minor modification to be compatible to 1.x version. We are planning to add this feature into mmpose 1.x. And if you are interested in supporting this feature in mmpose 1.x, please let us know. We are glad to help.

liqikai9 avatar Dec 07 '22 06:12 liqikai9

That's my pleasure, about the speed-test feature I saw in the mmdeploy project, it specifically provides an optional parameter to test the inference speed, it feels very practical

ChenZhenGui avatar Dec 07 '22 06:12 ChenZhenGui

about the speed-test feature I saw in the mmdeploy project,

Could you please share the llink to this feature? So that we may add it in mmpose as well.

liqikai9 avatar Dec 07 '22 07:12 liqikai9

the doc: https://github.com/open-mmlab/mmdeploy/blob/master/docs/zh_cn/02-how-to-run/profile_model.md the code: https://github.com/open-mmlab/mmdeploy/blob/master/tools/test.py

ChenZhenGui avatar Dec 07 '22 07:12 ChenZhenGui