YOLOv4 Tutorial #1 - Installation in 10 Steps | OpenCV Python | Computer Vision 2020

preview_player
Показать описание
Want to learn more?

So in the last lecture, I spoke about how YOLOv4 works and why its so awesome! Today Im going to show you how to install the main dependencies in 10 Steps.

If you follow these steps with me you should be able to get YOLOv4 working on images, videos and webcams in the upcoming tutorials.

Let’s go through the 10 steps that we need to for YOLOv4.

Once you have completed the steps, in the next video, I will show you how to implement YOLOv4 on images, video and webcam.

-----------------------------------------------------------
This course was produced in partnership with Geeky Bee AI
Experts in AI and Deep learning Development
------------------------------------------------------------
Learn Advanced Tutorials on Augmented Startups
Support us on Patreon
Chat to us on Discord
Interact with us on Facebook
Check my latest work on Instagram
------------------------------------------------------------
#YOLOv4 #artificialintelligence #computervision
---------------------------------------------------------
We teach YOLO v2, YOLO v3 and YOLOv4
Music Credit:
Simon & Garfunkel
The Sound of Silence (Electric Version)
SME

==Timecode==
0:00 0. Introduction
3:47 1. Install Python
5:02 2. Git Installation
5:17 3. CMake Installation
5:43 4. Visual Studio Installation
6:45 5. Updating GPU Driver
7:32 6. CUDA installation
9:05 7. CuDNN Installation
10:53 8. OpenCV Installation
11:51 9. CMake OpenCV Configuration
12:50 10. Building OpenCV in Visual Studio
Комментарии
Автор

Can you please do an tensorflow implementation ?

gbgkb_creator
Автор

Can I use this video using the intel iRIS Xe GPU ?

burakozkarabekir
Автор

I also noticed a few people having issues with installing opencv (they build it but only 53 packages got built) the reason why is they need to add the configuration paths for Python, which wasn't included in your tutorial. Fyi!!

Courtesy of Kenny Chong

Set OPENCV_EXTRA_MODULES_PATH to be and
b) Tick BUILD_opencv_world
c) Set some python paths
PYTHON3_EXECUTABLE

PYTHON3_INCLUDE_DIR

PYTHON3_LIBRARY

PYTHON3_NUMPY_INCLUDE_DIRS

PYTHON3_PACKAGES_PATH

d) click configure again. make sure there are no red lines. then click generate.
Kenny Chong
He used Anaconda but regular Python should work as well!

Augmented_AI
Автор

If you got the following problem: Designtime build failed for project configuration 'Release|x64'. IntelliSense might be unavailable.
Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate.

Solution - repeat the VS 2019 CUDA and CUDNN installation (i skipped it because i already have VS2017/CUDA10.0/cudnn related to 10.0 installed) and it built successfully. Most likely the reason why i receive the error message could be one of two things 1) CUDA 10.0 wasn't compatible 2) cuda 10.2 and the respective cudnn must be installed again after downloading VS2019.

Augmented_AI
Автор

after everrything succesful got this error:
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python38\lib\site-packages\cv2\__init__.py", line 89, in <module>
bootstrap()
File "C:\Python38\lib\site-packages\cv2\__init__.py", line 79, in bootstrap
import cv2
ImportError: DLL load failed while importing cv2: The specified module could not be found.
>>>

ganapathisubramanyamjayam
Автор

Solutions to Common Problems
1. No module named 'cv2' problem
=> Install Numpy before CMake build using 'pip install numpy'

2. I was wondering why I downloaded and saved the "openCV-contrib"
=> On the step of CMake Configure, Set the "OPENCV_EXTRA_MODULES_PATH" to As a result, I can import and use the SIFT or FAST module that is in only opencv-contrib.

3. 'cv2' import problem when using the virtual python environment
=> Doing CMake, AllBuild, and Install openCV is only for the main python. I made a virtual python environment. There was no cv2 and NumPy module. The solution is very simple.
Install Numpy such as 'pip install numpy' and
Copy cv2 folder in to and
Copy all files in to

In conclusion, it seems easiest to install it in the main Python and virtual Python environments with the following command.
pip install opencv-python
pip install opencv-contrib-python
pip install numpy

Augmented_AI
Автор

Hello, while building the opencv in visual studio, mine showed 60 succeeded, no error. However, yours was 83 succeeded. Could this affect anything?

johnsonolayiwola
Автор

I have seen all your videos on yolov4. Thank you for such amazing videos and doing a brilliant job!! I really wish to join your course!!

nagendraverma
Автор

Thanks a lot of! I know how install YOLO step by step and make use of it, but i watched your video anyway. It been very interesting and useful!

networkpy
Автор

Hi, I followed everything. When i check if the opencv is installed, it says "ModuleNotFoundError: No module named 'cv2'". What would be the error? Thanks

billyjoelllaguna
Автор

I'v finished all steps but I got 'ModuleNotFoundError: No module named 'cv2'' when I type 'import cv2' in python env?
can anyone help me please ?

otis
Автор

Guess YOLOv4 was originally written in C++! So, it's there a Tensorflow written YOLO v4? because I want to convert them to tensorRT optimized model.

saikrishnadas
Автор

while configuring openCv on Cmake I am getting error "Visual studio instances not found" -- how to fix this?

riyankasaha
Автор

Thank you very much for this video! I wasted an entire day last week trying to get this working, just following along with you and I've got it working great!

davidd
Автор

thx for your video:), i have a question i want to play yolov4 in ipython(spyder) what should i do? i did it like a yolov3, but, i have some error ' Unsupported activation: mish in function :( i want to fix it!!

xxsiewn
Автор

can you make a tutorial for the anaconda usage?

muhammadgalanggardamukti
Автор

Everything is done perfectly...but it's showing error at cmake configuration

sumanachaudhari
Автор

nice video. I just finish your yolov3 course. Wait to see how much it improve.

surapoomsomwangthanaroj
Автор

i followed every step but when import cv2 it say module not found, any solution?

muhammadrezafairuzi
Автор

where's the interface opened at 11:56 for CMake Configuration?

jasminepak