meso-unimpressed / darknet-net

A fork of darknet that is able to send detection data out via osc and websockets.
http://meso.design
Other
7 stars 1 forks source link

Make install process automated on ubuntu #5

Closed tdurand closed 6 years ago

tdurand commented 6 years ago

We are in the process of shipping a "ready-to-use" software for the project using this darknet-net fork and we need to do a easy installer for ubuntu of the ./darknet-net command

cc @b-g

timonsku commented 6 years ago

Depending on how failsafe you want it to be it is mostly copying all the install steps into a bash scripts and add the according directory changes to it. Something like this could already work. Try it out, I have just written it down without testing:

mkdir dependencies
cd dependencies
git clone https://github.com/PTS93/libwsclient
cd libwsclient
./autogen.sh
./configure && make && sudo make install
cd ..
wget https://github.com/radarsat1/liblo/releases/download/0.29/liblo-0.29.tar.gz
tar xvfz liblo-0.29.tar.gz
cd liblo-0.29
./configure && make && sudo make install
cd ..
git clone https://github.com/json-c/json-c.git
sh autogen.sh
cd json-c
./configure && make && make check && sudo make install
cd ../..
git clone https://github.com/meso-unconstructed/darknet-net.git #this needs to be updated when the repo moves over to our live account)
cd darknet-net
make -j2
RoaldWikene commented 6 years ago

Hi. i have a suggestion

Would it be possible to update the make file for darknet-net ?

Sample flags for generation on CUDA 9 for maximum compatibility. Note the removed SM_20:

-gencode=arch=compute_30,code=sm_30 \ -gencode=arch=compute_50,code=sm_50 \ -gencode=arch=compute_52,code=sm_52 \ -gencode=arch=compute_60,code=sm_60 \ -gencode=arch=compute_61,code=sm_61 \ -gencode=arch=compute_62,code=sm_62 \ -gencode=arch=compute_70,code=sm_70 \ -gencode=arch=compute_70,code=compute_70

timonsku commented 6 years ago

Sure feel free to submit a pull request!

At some point I will update the code base to the latest darknet version as there have been quite a few improvements.

RoaldWikene commented 6 years ago

@PTS93 created https://github.com/meso-unimpressed/darknet-net/pull/7 :)