0

Deep Learning (DNN) in opencv If you specify CUDA for backend and target, It works even if CUDA is not installed on the PC, but in this case, what settings are it running? Also, I couldn't find a way to get the current settings, so if anyone knows please let me know.

net->setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); 
net->setPreferableTarget(cv::dnn::DNN_TARGET_CUDA);

With this setting, deep learning can be performed even on a computer without CUDA. why

talonmies
  • 70,661
  • 34
  • 192
  • 269
kimton
  • 3
  • 1

1 Answers1

0

Without CUDA it falls back to CPU back-end which is functionally same but not as fast as GPU.

Refer How to deal with "DNN module was not built with CUDA backend; switching to CPU" warning in C++?

balu
  • 1,023
  • 12
  • 18