FastSAM icon indicating copy to clipboard operation
FastSAM copied to clipboard

fps value

Open mytk2012 opened this issue 1 year ago • 2 comments

This is my test:

  • preprocess:0.7ms
  • inference:44ms
  • postprocess:2.6ms
  • box_prompt:0.31ms
  • total time=0.7+44+2.6+0.31=47.61ms
  • fps=21

The fps is so low, what can i do to improve this,except for TRT conversion.

mytk2012 avatar Sep 01 '23 08:09 mytk2012

you can see this https://github.com/Linaom1214/TensorRT-FastSAM

Linaom1214 avatar Sep 01 '23 09:09 Linaom1214

Are you using gpu to get these inference speed? Trying on cpu gives much longer inference time like ~300ms.

XLY43 avatar Sep 25 '23 21:09 XLY43