💥Installing Darknet on Windows💨

Nonpavit Detbun 🔋🍺
1 min readMay 17, 2020

🍀YOLO with Darknet 🎃

Source

Original : https://github.com/pjreddie/darknet

Recommend : https://github.com/AlexeyAB/darknet

Tools

Git : https://git-scm.com/downloads

Anaconda : https://www.anaconda.com/products/individual#windows

Visual Studio : https://visualstudio.microsoft.com/downloads/

OpenCV : https://opencv.org

CMake : https://cmake.org

Vcpkg : https://github.com/Microsoft/vcpkg

CUDA : https://developer.nvidia.com/cuda-toolkit-archive

CuDNN : https://developer.nvidia.com/rdp/cudnn-download

Doc.

GPU : https://en.wikipedia.org/wiki/CUDA#GPUs_supported

Visual Studio

  • Desktop development with C++

Config Darknet

Up to You!

OpenCV

  • Build with CMake
  • Installing with .EXE

Use CMake

  • Build OpenCV
  • Build Darknet

Use Vcpkg

  • Command Prompt
bootstrap-vcpkg.bat
vcpkg integrate install
  • Environment variables (System Variables)
VCPKG_ROOT : vcpkg folderVCPKG_DEFAULT_TRIPLET : x64-windows
  • Powershell
PS \>              cd $env:VCPKG_ROOT
PS \vcpkg> .\vcpkg install pthreads opencv[ffmpeg]
  • Powershell (Administrator)
Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
A/Y
.\build.ps1
Set-ExecutionPolicy -ExecutionPolicy Restricted
A
  • Test

Download coco weights / Train model export weights

darknet.exe detector test cfg/coco.data cfg/yolov3.cfg yolov3.weights -thresh 0.25

Use Linux 😄

make

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Nonpavit Detbun 🔋🍺
Nonpavit Detbun 🔋🍺

Written by Nonpavit Detbun 🔋🍺

I’m Electrical Engineering. 📟 I have an interest in Web App, Mobile App, IoT and Microcontroller 🧐

No responses yet

Write a response