Skip to content

Instantly share code, notes, and snippets.

@evmcheb
Last active November 10, 2020 07:17
Show Gist options
  • Save evmcheb/2ee09f562c458b5a1a2351e025496002 to your computer and use it in GitHub Desktop.
Save evmcheb/2ee09f562c458b5a1a2351e025496002 to your computer and use it in GitHub Desktop.
!git clone https://github.com/AlexeyAB/darknet/
% cd darknet
!sed -i 's/OPENCV=0/OPENCV=1/g' Makefile
!sed -i 's/GPU=0/GPU=1/g' Makefile
!sed -i 's/CUDNN=0/CUDNN=1/g' Makefile
!sed -i 's/CUDNN_HALF=0/CUDNN_HALF=1/g' Makefile
!sed -i 's/LIBSO=0/LIBSO=1/g' Makefile
!apt update
!apt-get install libopencv-dev python-opencv
!make clean
!make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment