Build and install OpenCV from source with CUDA and cuDNN support

  Рет қаралды 13,077

s1n7ax

s1n7ax

Күн бұрын

-------- IMPORTANT --------
Please add OPENCV_GENERATE_PKGCONFIG=1 flag when configuring to create the opencv.pc 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
-------- END --------
-------- IMPORTANT --------
cuDNN installation has changed since this video. Please refer the instruction in the documentation
docs.nvidia.co...
-------- END --------
CUDA instillation guide:
docs.nvidia.co...
cuDNN installation guide:
docs.nvidia.co...
OpenCV repositories:
github.com/ope...
github.com/ope...
CUDA wiki page:
en.wikipedia.o...
Follow me on:
Email: srineshnisala@gmail.com
GitHub: github.com/s1n7ax
LinkedIn: / srinesh-nisala
Facebook: / s1n7ax
Instagram: / s1n7ax

Пікірлер: 27
@kunalk1234
@kunalk1234 2 жыл бұрын
This was indeed very helpful. I was not able to build with cuda support but now I can. Thanks a ton !
@s1n7ax
@s1n7ax 2 жыл бұрын
Good if you only use cuda. cudnn installation has changed slightly since this video.
@kunalk1234
@kunalk1234 2 жыл бұрын
CUDNN installation was a big pain and I had to copy files. Cmake configuration detected cudnn as well. I think only DNN module uses cudnn which I don't plan to use as of now. Cuda accelerated libraries should work fine.
@MrGopak
@MrGopak 3 жыл бұрын
Exact and thorough manual. Need to add Ubuntu 20.04 in the title for better indexing. Huge thanks!
@YoussifAshrafEdwar
@YoussifAshrafEdwar 2 жыл бұрын
you are the best explanation
@tungphamkhachoang1625
@tungphamkhachoang1625 3 жыл бұрын
That was very helpful, thank you so much!
@anhdang2077
@anhdang2077 2 жыл бұрын
ông cài theo được ko ông
@zakariaesaidi843
@zakariaesaidi843 3 жыл бұрын
Thankyou, it worked for me
@arndtsteffens7831
@arndtsteffens7831 10 ай бұрын
Very well done. Thank you
@s1n7ax
@s1n7ax 2 жыл бұрын
--------- IMPORTANT --------- cuDNN installation has changed since this video. Please refer the instruction in the documentation docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#package-manager-ubuntu-install
@simplesecomumcidadao7592
@simplesecomumcidadao7592 5 ай бұрын
9:52 When I paste the link in this section and press enter, it gives me an error and says no such command was found. how can I do it
@Abhishek_Satasiya
@Abhishek_Satasiya 3 жыл бұрын
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'
@s1n7ax
@s1n7ax 3 жыл бұрын
Someone else said it worked so you could be doing something wrong. Pay attention to errors. Easier to debug
@recepalpsaygl8484
@recepalpsaygl8484 2 жыл бұрын
did you solve the problem
@guillermoalejandrobastianf7330
@guillermoalejandrobastianf7330 Жыл бұрын
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?
@karishmathumu5257
@karishmathumu5257 Жыл бұрын
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.
@aliesatgungor
@aliesatgungor 3 жыл бұрын
Nice Video. Thanks
@timewaster7101
@timewaster7101 Жыл бұрын
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
@s1n7ax
@s1n7ax 3 жыл бұрын
--------- 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
@mohamedkhalilallaoui4747
@mohamedkhalilallaoui4747 2 жыл бұрын
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 ??
@s1n7ax
@s1n7ax 2 жыл бұрын
Change the include directory to virtual env's include dir
@comingsoon578
@comingsoon578 Жыл бұрын
i was succeed built cv2 with cmake, installed it perfectly and cuda support also. but how to put this libs into a virtualenv
@s1n7ax
@s1n7ax Жыл бұрын
Try creating the virtual environment first. Use the virtual environment python and include paths. I think that should work.
@comingsoon578
@comingsoon578 Жыл бұрын
@@s1n7ax thanks a lot sir, it works 👍
@eddygonzalez6513
@eddygonzalez6513 2 жыл бұрын
Is it possible to install this with anaconda ?
@s1n7ax
@s1n7ax 2 жыл бұрын
Not with cuda enable i guess
@eddygonzalez6513
@eddygonzalez6513 Жыл бұрын
@@s1n7ax Could you verify that CUIDA is working from the vscode? is that in my case it does not take the interpreter /usr/bin/python3 it only uses /usr/bin/python and when changing it throws an error (Ubuntu 22.04). I would like the only interpreter that uses ubuntu to be that of anaconda3
Build OpenCV with CUDA Support for Jetson
8:31
JetsonHacks
Рет қаралды 32 М.
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 106 МЛН
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Chapitosiki
Рет қаралды 2,2 МЛН
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 645 М.
10 ways Linux is just better!
11:32
Linus Tech Tips
Рет қаралды 4 МЛН
OpenCV with CUDA in Python on Jetson
8:38
JetsonHacks
Рет қаралды 15 М.
Install Linux instead of Windows 11 - Here's how!
15:10
Linus Tech Tips
Рет қаралды 3,8 МЛН
When you Accidentally Compromise every CPU on Earth
15:59
Daniel Boctor
Рет қаралды 834 М.
Titus Reacts to Linus Tech Tips Linux Daily Drive Challenge
20:21
Chris Titus Tech
Рет қаралды 755 М.
Linux is a MAJOR Rabbit Hole
36:40
TechHut
Рет қаралды 669 М.