-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathssdcaffe_installation_script.run
54 lines (37 loc) · 1.32 KB
/
ssdcaffe_installation_script.run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
##############################
# INSTALL SSDCaffe ON UBUNTU #
##############################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |-------------------------------------|
# | OS | Test | Last test |
# |----------------|------|-------------|
# | Ubuntu 16.04 | OK | 11 Jul 2019 |
cd $HOME
#clone repo
git clone -b ssd https://github.com/weiliu89/caffe.git ssdcaffe
cd ssdcaffe
git checkout 4817bf8b4200b35ada8ed0dc378dceaf38c539e4
#clone AD-EYE repo to copy Makefile.config to ssdcaffe installation folder
git clone https://gits-15.sys.kth.se/AD-EYE/AD-EYE_Core.git
cd AD-EYE-CORE
checkout dev
cd AD-EYE
cd Data
cp Makefile.config $HOME/ssdcaffe
#install ssdcaffe
clear
echo '/!\/!\/!\/!\/!\/!\/!\/!\'
echo 'MAKE SURE YOU HAVE cuDNN INSTALLED AND OpenCV 2 (if you have version 3, modify the Makefile.config file in $HOME/ssdCaffe)'
echo '/!\/!\/!\/!\/!\/!\/!\/!\'
echo ''
echo ''
cd $HOME/ssdcaffe
echo '/!\/!\/!\/!\/!\/!\/!\/!\'
echo 'If the installation bug shortly after this try to comment out the next line in the script (make distribute, cf wiki)'
echo '/!\/!\/!\/!\/!\/!\/!\/!\'
make distribute
nb_cores=$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}')
make all -j$((nb_cores/2))
make test -j$((nb_cores/2))
make runtest -j$((nb_cores/2))
echo The configuration of ssdCaffe is finished!