I got this error while trying to use my YOLO model with this image in Azure Container Instance, tried it on the console directly and still got this message as well.
[ WARN:0] global ../modules/dnn/src/dnn.cpp (1451) setUpNet DNN module was not built with CUDA backend; switching to CPU
The result of printing cv2.getBuildInfo(). It seems like the WITH_CUDNN, OPENCV_DNN_CUDA, and BUILD_opencv_world aren't turned ON while building with CMake.
I got this error while trying to use my YOLO model with this image in Azure Container Instance, tried it on the console directly and still got this message as well.
The result of printing
cv2.getBuildInfo()
. It seems like theWITH_CUDNN
,OPENCV_DNN_CUDA
, andBUILD_opencv_world
aren't turned ON while building withCMake
.