Build and install OpenCV from source with CUDA and cuDNN support

Build and install OpenCV from source with CUDA and cuDNN support

s1n7ax

3 года назад

12,741 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Time Waster
Time Waster - 17.08.2023 21:09

Hi @s1n7ax! Thank for your help but I face some trouble to install open CV. Could you answer my question
If I use (base) - virtual environment created by anaconda. can I import cv2 in (base) to used in pytorch? and I installed Cuda and CuDNN but not like you so any difference between your install process and my.
Sorry for my bad english and thank you so much for your help

Ответить
Guillermo Alejandro Bastian Fernandez
Guillermo Alejandro Bastian Fernandez - 29.03.2023 05:05

I installed and didn't have errors. But when I run the final command "cv2.cuda.getCudaEnabledDeviceCount()" is returning me 0. Could be because I have CV2 installed using pip before?

Ответить
Coming Soon
Coming Soon - 10.02.2023 21:01

i was succeed built cv2 with cmake, installed it perfectly and cuda support also. but how to put this libs into a virtualenv

Ответить
Karishma Thumu
Karishma Thumu - 27.10.2022 13:58

This was very informative and great narrative. But i am having issues when i am doing the 2nd round of configuration. It says "Error in configuration process, project files maybe invalid". Could you please help me.

Ответить
Eddy Gonzalez
Eddy Gonzalez - 08.10.2022 14:46

Is it possible to install this with anaconda ?

Ответить
Mohamed khalil Allaoui
Mohamed khalil Allaoui - 19.02.2022 05:02

Nice video thanks ! . I have a question i noticed that you imported cv2 globally what if i use virtualenv in a project , how can i use the opencv gpu on my venv ??

Ответить
Kunal Kishore
Kunal Kishore - 04.02.2022 18:24

This was indeed very helpful. I was not able to build with cuda support but now I can. Thanks a ton !

Ответить
Youssif Ashraf Edwar
Youssif Ashraf Edwar - 20.01.2022 18:02

you are the best explanation

Ответить
Ali Esat Güngör
Ali Esat Güngör - 05.09.2021 20:12

Nice Video. Thanks

Ответить
s1n7ax
s1n7ax - 03.09.2021 21:51

--------- IMPORTANT ---------
Please add OPENCV_GENERATE_PKGCONFIG=1 flag in cmake-gui so other applications can find opencv.

If "nvcc not found" then create following soft links to local bin.
sudo ln -s /usr/local/cuda-11.3/bin/* /usr/local/bin
sudo ln -s /usr/local/cuda-11.3/nvvm/bin/* /usr/local/bin

Ответить
Oleg Kyrpenko
Oleg Kyrpenko - 30.08.2021 17:27

Exact and thorough manual. Need to add Ubuntu 20.04 in the title for better indexing. Huge thanks!

Ответить
Zakariae Saidi
Zakariae Saidi - 26.07.2021 20:07

Thankyou, it worked for me

Ответить
Abhishek Satasiya
Abhishek Satasiya - 23.07.2021 17:07

I have done all the things you did in the video. and all things worked out perfectly fine. but in the last step when I write

import cv2
it is giving me ModuleNotFoundError: No module named 'cv2'

Ответить
Tung Pham Khac Hoang
Tung Pham Khac Hoang - 23.06.2021 09:34

That was very helpful, thank you so much!

Ответить