Try   HackMD

Install AlexeyAB Darknet (and OpenCV)

tags: 2022/06 Darknet AlexeyAB OpenCV

(2022/6/17) After installation of CUDA and cuDNN, it is time to run AI applications. One of the most famous image recognition Yolo V4 requires Darknet for complilation.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Table of Contents


Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Dependency

Darknet requires OpenCV, so install the package first.

$ sudo apt install libopencv-dev

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Installation

$ git clone https://github.com/AlexeyAB/darknet
$ cd darknet
# Change the setting to enable GPU
$ sed -i "s/GPU=0/GPU=1/g" Makefile
$ sed -i "s/CUDNN_HALF=0/CUDNN_HALF=1/g" Makefile
$ sed -i "s/CUDNN=0/CUDNN=1/g" Makefile
$ sed -i "s/OPENCV=0/OPENCV=1/g" Makefile
$ make

Previous article - Install Jupyter
Next article - back to marconi's blog
back to marconi's blog