CUDA backend for the opencv_dnn

asked 2016-12-06 01:59:23 -0600

pi-null-mezon gravatar image

Does anybody know if I can somewhere find the opencv_dnn module with CUDA support? A master branch supports only MKL and OpenCL backends but both too slow compare to the Caffe with CUDA: in my particular task average forward propagation time in Caffe with CUDA takes about 15 ms whereas in opencv_dnn with MKL 350 ms and with OpenCL 280 ms.

edit retag flag offensive close merge delete


You need to built it from scratch. There are no prepacked modules with CUDA support.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-12-07 03:29:43 -0600 )edit

I've asked not about how to build, but about existence of CUDA backend for the opencv dnn, maybe someone already works on it?

pi-null-mezon gravatar imagepi-null-mezon ( 2016-12-09 00:28:35 -0600 )edit

am facing the same problem but on tensorflow, however Ican't make it forward propagate on opencl, how could you use opencl to increase the inference time?

khaled elmadawi gravatar imagekhaled elmadawi ( 2018-06-05 08:51:42 -0600 )edit