-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.sh
51 lines (48 loc) · 1.17 KB
/
env.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
pip3 install gdown
sudo apt-get install cmake
sudo apt-get install unrar
if [ ! -d thirdparty ]
then
mkdir thirdparty
fi
if [ ! -d dataset ]
then
mkdir dataset
fi
if [ ! -d dataset/eyes ]
then
mkdir dataset/eyes
mkdir dataset/eyes/ClosedFace
mkdir dataset/eyes/OpenFace
fi
if [ ! -d thirdparty/faceDetector ]
then
git clone https://github.com/Linzaer/Ultra-Light-Fast-Generic-Face-Detector-1MB thirdparty/faceDetector
fi
if [ ! -d models ]
then
mkdir models
fi
if [ ! -f models/shape_predictor_68_face_landmarks.dat ]
then
cd models
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
bzip2 -d shape_predictor_68_face_landmarks.dat.bz2
cd ..
fi
if [ ! -f models/eyes_closed_open_model_64_64.h5 ]
then
cd models
gdown https://drive.google.com/uc?id=10yUoGbkzXpoIKlhOgtGUmlLqurPDEqgF
cd ..
fi
if [ ! -d dataset/dataset_B_FacialImages ]
then
cd dataset
gdown https://drive.google.com/uc?id=1niyedvpnATsWMnhcy_DfNNhPGc2J_G8V
echo "extraindo dataset"
unrar x dataset_B_Facial_Images.rar -idq
cd ..
fi
#http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
export PYTHONPATH="./thirdparty/"