#########################################################################################################
Special thanks to sentex https://pythonprogramming.net/
#########################################################################################################
Follow these steps from "https://pjreddie.com/darknet/yolo/" and test if its working
$ git clone https://github.com/pjreddie/darknet $ cd darknet $ make
$ wget https://pjreddie.com/media/files/yolov3.weights
$ sudo apt update $ sudo apt install build-essential #If build essentials doesnt install everything like it did for me in ubuntu $ sudo apt intsall gcc $ sudo apt install g++
$ ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg
# CONTINUE ONLY IF THE ABOVE WORKS"
Toolkit: "https://developer.nvidia.com/cuda-downloads" cuDNN: "https://developer.nvidia.com/cudnn"
$ chmod +x "cuda-toolkit.run-file"
follow all instructions here: "https://tutorials.technology/tutorials/85-How-to-remove-Nouveau-kernel-driver-Nvidia-install-error.html"
$ sudo ./"cuda-toolkit.run-file"
$ tar zxvf "cudnn-file.tgz"
$ cd ~/Downloads $ sudo cp cuda/include/cudnn.h /usr/local/cuda/include $ sudo cp cuda/lib64/* /usr/local/cuda/lib64
$ sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
$ sudo nano ~/.bashrc
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64 $ export CUDA_HOME=/usr/local/cuda $ export PATH=$PATH:/usr/local/cuda/bin
$ source ~/.bashrc
$ sudo nano /etc/enviornment
$ sudo ldconfig
$ sudo nano Makefile -> GPU=1 -> CUDNN=1
$ sudo reboot
$ make clean $ make