OpenPCDet icon indicating copy to clipboard operation
OpenPCDet copied to clipboard

How to obtain inference speed?

Open VsionQing opened this issue 3 years ago • 5 comments

How to calculate the inference speed FPs in this paper? PV-RCNN and so on

VsionQing avatar Jun 12 '22 04:06 VsionQing

Have the same question

Jane-QinJ avatar Jun 24 '22 13:06 Jane-QinJ

We use time.time() with os.environ['CUDA_LAUNCH_BLOCKING'] = '1'

jihanyang avatar Jun 27 '22 09:06 jihanyang

We use time.time() with os.environ['CUDA_LAUNCH_BLOCKING'] = '1'

Thank u for your gentle reply! But I'm not familiar enough to your great work. So could u gentlely tell me in detail how to write this code and use it in your OpenPCDet framework? I'll be very appreciated to your instruction.

Jane-QinJ avatar Jun 30 '22 07:06 Jane-QinJ

I Have the same question.I don't know where to put the time module.

strugglingguoguo avatar Jul 22 '22 00:07 strugglingguoguo

Put time.time() here to calculate the forward time: https://github.com/open-mmlab/OpenPCDet/blob/c233477a4a4bf2861a978794d6b9c047f64641f7/tools/eval_utils/eval_utils.py#L56-L57

jihanyang avatar Jul 22 '22 02:07 jihanyang

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 21 '22 02:08 github-actions[bot]

Supported in the latest verison with --infer_time keyword

jihanyang avatar Aug 21 '22 04:08 jihanyang

Is there a difference between --infer_time and FPS ?

ammaryasirnaich avatar Jul 27 '23 09:07 ammaryasirnaich