forked from ConSurv/ThEmoBe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
52 lines (27 loc) · 1.03 KB
/
setup.sh
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
#!/usr/bin/env bash
#downloading and extracting face detector model
cd ~/ThEmoBe
wget https://s3-us-west-2.amazonaws.com/static.pyimagesearch.com/face-detection-opencv-deep-learning/deep-learning-face-detection.zip
unzip deep-learning-face-detection.zip
#downloading GSOM code
%cd ~/ThEmoBe
git clone https://github.com/AathmanT/Parallel_GSOM_for_HAAP.git
#downloading YOLO V3 model
cd ~/ThEmoBe
git clone https://github.com/AathmanT/CVND_Exercises_2_2_YOLO.git
#wget -O yolov3.weights https://pjreddie.com/media/files/yolov3.weights
#cp "/content/drive/My Drive/yolov3.weights" "/content/ThEmoBe/"
pip3 install -r requirements.txt
#sudo rm -rf /var/lib/mysql
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update --fix-missing
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev
pip3 install mysqlclient
/etc/init.d/mysql restart
mysql -u root -proot -e "create database annotate";
sudo apt-get install redis-server
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
echo | redis-server &
pip3 install gevent