DarkNet Training

Hi, Today I would like to announce that my GitHub fork at https://github.com/sowson/darknet has a new update, the fork is an advanced port of DarkNet CNN from CUDA to OpenCL and tested on macOS with eGPU from Sonnet named Breakaway RX 570 Puck and on my GreenPC.

Let’s get started the training by the inspiration from the solution original author Joseph Redmon given the TED talk.

Interested how it works and how to rebuild? Why I spent some time overnight by changing it? Bare with me. The training has just began.

This is some very beginning work I made. After changing DarkNet to run on the macOS Sierra 10.13.3 when external GPU (eGPU) support was in the experimental stage. I bought Sonnet Breakaway RX 570 Puck and my journey began.

So how to make it works on macOS? Here is the command list updated Today.

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew install opencv@2
brew link –force opencv@2
brew install libomp
brew install clblas
brew install clfft
brew install clrng
brew install cmake
brew install wget
mkdir github; cd github; git clone https://github.com/sowson/darknet.git
cd darknet; mkdir build; cmake -Bbuild -H.; cmake –build build; cp build/darknet .; rm -r build

But, I have also GreenPC, quite strong workstation, so I installed on separated SDD the CentOS GNU/Linux on it and to setup quickly all you need here is the commands list. Caution! It is the REBOOT command in the middle.

su –
yum install epel-release
yum upgrade
yum install wget
wget http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-repo-rhel7-9.1.85-1.x86_64.rpm
rpm -i cuda-repo-rhel7-9.1.85-1.x86_64.rpm
yum clean all
yum install cuda
yum install clinfo
yum install cmake
yum instsall gcc-gfortran
yum install boost
wget https://github.com/clMathLibraries/clBLAS/releases/download/v2.12/clBLAS-2.12.0-Linux-x64.tar.gz
tar zxf clBLAS-2.12.0-Linux-x64.tar.gz
cd clBLAS-2.12.0-Linux-x64
cp bin/* /usr/bin/
cp lib64/* /usr/lib64/
cp -r lib64/cmake/* /usr/lib64/cmake/
cp -r lib64/pkgconfig/* /usr/lib64/pkgconfig/
cp -r include/* /usr/include/
yum install git
yum install opencv-devel
yum install openmpi-devel
mkdir github; cd github; git clone https://github.com/sowson/darknet.git
cd darknet; make

The answer for the question how to play with it is on the video on the beggining. Remeber to understand recurrection you need to first understand recurrention. Thank you for reading and watching.

p ;).

2 Replies to “DarkNet Training”

    • Thanks, Imagine also Raspberry Pi and VC4CL and for example AI classifier for Home Sensors. Could be awesome!

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.