-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can opencv compiled with GPU support, fall back to CPU #5
Comments
I'm not sure I understand the question, if the dll isn't loading you cannot access either the CPU or GPU functions?
@pks916 Do you know why you are getting this error? Is it because the cuDNN and CUDA toolkit shared libraries (dll's) are not present on your system and/or can't be found? How did you build the openCV python bindings? Note: If you don't know how to check see https://cudawarped.github.io/opencv-experiments/nbs/ImportError_dll_load_failed_while_importing_cv2.html |
no gpu in the system |
The error does not relate to whether you have a GPU or not, it relates to whether the required shared libraries can be found. If you are seeing it check the link above to see which dll's are missing. Are you using the pip install package and if not why not? |
i wanted to use opencv with gpu and use dnn package so i am using opencv-cuda wheels |
Yes but when you are unable to import OpenCV, see the link above to find out why. |
so we can actually use model on cpu as well using the opencv with cuda, right? |
You can run models on the CPU or GPU using the flags given in the documentation of the DNN module https://docs.opencv.org/4.x/d6/d0f/group__dnn.html. |
but it is working fine when gpu is present and detected, that is the main point. i have the models initialise as gpu backend if cv.cuda.getCudaEnabledDeviceCount() else run on opencv backend |
What is the error? If its
this has nothing to do with the GPU being present it is because the shared libraries can't be found see the link in my first reply to address this error. |
ok i will see, but error is that only |
Is there any way to make opencv use cpu if gpu not detected.
right now i tried it and it gives the DLL no found error
i do have the access to cudnn and cuda toolkit , appropriate version
The text was updated successfully, but these errors were encountered: