-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·25 lines (24 loc) · 824 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·25 lines (24 loc) · 824 Bytes
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
# build the darknet framework
echo Building darknet and yolov4-tiny
cd web-demo
if [ ! -d "darknet" ]
then
git clone https://github.com/AlexeyAB/darknet
else
echo Found existing darknet
fi
cd darknet
#sed -i 's/OPENCV=0/OPENCV=1/' Makefile
sed -i 's/AVX=0/AVX=1/' Makefile
sed -i 's/OPENMP=0/OPENMP=1/' Makefile
make
wget https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-tiny.weights
./darknet detector test cfg/coco.data cfg/yolov4-tiny.cfg yolov4-tiny.weights data/dog.jpg -dont_show
echo Finish building darknet and yolov4-tiny
# set up trained custom model
echo Setting up trained custom model
cd ../../custom-data
cd ..
echo Copying trained custom model into web-demo/darknet/data/custom-data
yes | cp -rf custom-data web-demo/darknet/data
echo Finish setting up trained custom model