OpenCV DNN on GPU
Hello, I recently tested pretrained MobileNet SSD on my machine by using cv2.dnn module in python. It seems my code is only computing on CPU. So, I wanted to know: is there is any GPU support in cv2.dnn module?
Not yet ... its planned for the near future, but for now, no GPU support yet.
I'm really happy about the DNN module - especially because the DNN libraries have very limited C++ support. However it's really slow on CPU, so I also hope that it will be implemented on GPUs too - so you get my upvote.
OTOH as long as you use Python, you can use the original DNN library for processing - they all have good GPU support.
There is OpenCL support, https://docs.opencv.org/master/d6/d0f....
Great! (I prefer OpenCL support, as it's much more general than Cuda)
I was able to run my script on my GPU by using OpenCL, but it runs 2x slower than on CPU :\
@wingsoflight, what kind of GPU?
@dkurt, Quadro M2000
Where you able to figure out a solution for the poor performance on GPU?
Did you figure out why it ran slower on the GPU when compared to the CPU? Isn't it supposed to be the other way around?