How can be run it with GPU
ZIKO94ZIKO opened this issue · 6 comments
Hi Sir , could you please tel me how can be run your project only with GPU using max capacity.?
You can set Backend and Target like this:
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
thanks @deepak112 for make this project opensource ,i have the same problem , when i run the soft it's give me this message Sir : [ WARN:0] global /io/opencv/modules/dnn/src/dnn.cpp (1363) setUpNet DNN module was not built with CUDA backend; switching to CPU
and when i run the camande line : watch nvidia-smi
to watch nvidia :
like you see python use just 41 MiB
@zongoalbert same problem : WARN:0] global /io/opencv/modules/dnn/src/dnn.cpp (1363) setUpNet DNN module was not built with CUDA backend; switching to CPU
do you found the solution ?
@ZIKO94ZIKO OpenCV has to be built with CUDA backend in order to fix that error
Do you know how to use OpenCV with CUDA backend on Windows ? Because know I don't have much time to do on linux.