License-Plate-Recognition icon indicating copy to clipboard operation
License-Plate-Recognition copied to clipboard

How many frames can be processed per second

Open MingRongXi opened this issue 3 years ago • 3 comments

Sorry, saswat0, I clicked in a wrong place that closed the issue. My cuda version is 10.2, so I install the cudatoolkit and cudnn with the command: conda install cudatoolkit=10.2, conda install cudnn. Because the first command specifies the cudatoolkit version, so the cudnn 7.6.5 is installed. Then I install the tensorflow-gpu with conda install tensorflow-gpu. The tensorflow-gpu 1.8 is installed. But when I run the python video.py, the gpu is not used.

MingRongXi avatar May 10 '21 16:05 MingRongXi

Try installing tensorflow-gpu using pip instead of conda. That'll download and initialise cuda+cudnn separately Also, ensure that GPU and CUDNN flags are set to 1. Run make clean in place of make to clear out any persisting build components from the previous make

saswat0 avatar May 10 '21 17:05 saswat0

I reinstalled tensorflow-gpu, keras and cudnn. The speed is faster than before, but the fps is still low. It spends 1 or 2 seconds processing an image. I run nvidia-smi to check the gpu usage, memory-usage: 6365MiB / 8192MiB, GPU-Util: 80%.

MingRongXi avatar May 19 '21 10:05 MingRongXi

If the GPU usage is ~80%, I think that's the maximum fps that you could get from your current system. Do mind that this is an academic paper implementation and hence focuses more on accuracy and applicability rather than deployability/performance Since further gain in speed won't be possible considering the current hardware bottlenecks, what I could possibly suggest you to do is to check out the 'tensorrt' branch of this repository. That implementation will hopefully provide you with better fps with the same hardware

saswat0 avatar May 22 '21 06:05 saswat0