MITB Banner

Guide To Darknet Installation On Windows 10 – CPU Version

Share

Darknet is a framework for real-time object detection. Darknet is an open-source neural network framework and is written in C and CUDA. A major reason it is used widely is that it is highly accurate and very fast. The reason for Darknet to be fast is because it is written in C and CUDA. Darknet supports CPU and GPU computations so it integrates better with your system and works accordingly.

If you are reading this, it means you are facing issues, the same problem which many Windows 10 users have faced. Already complications of Deep Learning are not enough we windows users have to face this new problem. Installing Darknet on the Windows system. And if this is not enough you will not find any proper YouTube videos or website which will tell you what to do and how.

After spending different tutorials, from different sources and failing several times, I finally succeeded. So here are the simple steps I followed to install Darknet in my windows 10 system.

Step 1: This is the most common step you will find in any tutorial. Clone Darknet git repo for windows by AlexeyAB.

If you have git installed you can open command prompt and run command:

git clone  https://github.com/AlexeyAB/darknet

If you don’t have git installed you can open above link and download zip and unzip (screenshot shared below)

Step 2: Open the Makefile in unzipped/downloaded folder darknet-master and change OPENCV=1 and save it.

Step 3:     Go to https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.3.0/opencv-3.3.0-vc14.exe/download  and Download OpenCV

Create a folder named opencv_3.0 in C drive, double click the .exe file downloaded and unzip it in opencv_3.0 folder.

WINWORD_b44hct3sZJ.png

After this step add the following path to Environment  Variables (Just for sanity check, copy these paths from your system.)

C:\opencv_3.0\opencv\build\include 

C:\opencv_3.0\opencv\build\x64\vc14\lib

C:\opencv_3.0\opencv\build\x64\vc14\bin

Step 4: Download and Install Microsoft Visual Studio Community Edition 2019 from following link:

https://visualstudio.microsoft.com/

Select Python development and Desktop development with C++ package too.

Now this will take a while to finish Installing and it will take quite some Gigs on C Drive. To save some space in C Drive, go to Installation location and you can select different Drive for top two options: You can see in below I have changed path to G drive.

Step 5: Go to Darknet\build\darknet open darknet_no_gpu.sln file with Visual Studio

When you open, Visual Studio will ask you to download two more dependencies. This will take a little more time to complete. 

Change Debug option to Release

Then click the .sln file once in Solution Explorer window so that it is selected (make sure it is collapsed)

Next go to Build option and click Build darknet_no_gpu

Process will end showing following message: 

========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Step 6: Now go to darknet\build\darknet\x64 folder and you will see darknet_no_gpu.exe has been created.

explorer_asFDCpeMhc.png

If you have successfully completed this point. Congratulations have successfully installed Darknet in your Windows 10 system.

Share
Picture of Goldy Mazumdar

Goldy Mazumdar

I am BE Mechanical. In the path of becoming a Data Science. Technology fascinates me. I am a Certified ML Engineer. Pursuing Deep Learning.
Related Posts

CORPORATE TRAINING PROGRAMS ON GENERATIVE AI

Generative AI Skilling for Enterprises

Our customized corporate training program on Generative AI provides a unique opportunity to empower, retain, and advance your talent.

Upcoming Large format Conference

May 30 and 31, 2024 | 📍 Bangalore, India

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

AI Courses & Careers

Become a Certified Generative AI Engineer

AI Forum for India

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Flagship Events

Rising 2024 | DE&I in Tech Summit

April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore

MachineCon GCC Summit 2024

June 28 2024 | 📍Bangalore, India

MachineCon USA 2024

26 July 2024 | 583 Park Avenue, New York

Cypher India 2024

September 25-27, 2024 | 📍Bangalore, India

Cypher USA 2024

Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA

Data Engineering Summit 2024

May 30 and 31, 2024 | 📍 Bangalore, India

Subscribe to Our Newsletter

The Belamy, our weekly Newsletter is a rage. Just enter your email below.