-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_training_data.sh
More file actions
90 lines (68 loc) · 3.68 KB
/
get_training_data.sh
File metadata and controls
90 lines (68 loc) · 3.68 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# #!/bin/bash
# # file adapted from MICA https://raw.githubusercontent.com/Zielon/MICA
# #
# echo -e "\nDownloading deca_model..."
# #
# FILEID=1rp8kdyLPvErw2dTmqtjISRVvQLj6Yzje
# FILENAME=./data/deca_model.tar
# wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id='${FILEID} -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=${FILEID}" -O $FILENAME && rm -rf /tmp/cookies.txt
# echo "To download the Emotion Recognition from EMOCA which is used from SPECTRE for expression loss, please register at:",
# echo -e '\e]8;;https://emoca.is.tue.mpg.de\ahttps://emoca.is.tue.mpg.de\e]8;;\a'
# while true; do
# read -p "I have registered and agreed to the license terms at https://emoca.is.tue.mpg.de? (y/n)" yn
# case $yn in
# [Yy]* ) break;;
# [Nn]* ) exit;;
# * ) echo "Please answer yes or no.";;
# esac
# done
# wget https://download.is.tue.mpg.de/emoca/assets/EmotionRecognition/image_based_networks/ResNet50.zip -O ResNet50.zip
# unzip ResNet50.zip -d data/
# rm ResNet50.zip
# echo -e "\nDownloading lipreading pretrained model..."
# FILEID=1yHd4QwC7K_9Ro2OM_hC7pKUT2URPvm_f
# FILENAME=LRS3_V_WER32.3.zip
# wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id='${FILEID} -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=${FILEID}" -O $FILENAME && rm -rf /tmp/cookies.txt
# unzip $FILENAME -d data/
# rm LRS3_V_WER32.3.zip
# echo -e "\nDownloading landmarks for LRS3 dataset ..."
# gdown --id 1QRdOgeHvmKK8t4hsceFVf_BSpidQfUyW
# unzip LRS3_landmarks.zip -d data/
# rm LRS3_landmarks.zip
# echo -e "\nInstallation has finished!"
#!/bin/bash
# file adapted from MICA https://raw.githubusercontent.com/Zielon/MICA
#
echo -e "\nDownloading deca_model..."
#
FILEID=1rp8kdyLPvErw2dTmqtjISRVvQLj6Yzje
FILENAME=./data/deca_model.tar
CONFIRM=$(curl -s -c /tmp/cookies.txt "https://docs.google.com/uc?export=download&id=${FILEID}" | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1/p')
curl -Lb /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=${CONFIRM}&id=${FILEID}" -o $FILENAME
rm -rf /tmp/cookies.txt
echo "To download the Emotion Recognition from EMOCA which is used from SPECTRE for expression loss, please register at:",
echo -e '\e]8;;https://emoca.is.tue.mpg.de\ahttps://emoca.is.tue.mpg.de\e]8;;\a'
while true; do
read -p "I have registered and agreed to the license terms at https://emoca.is.tue.mpg.de? (y/n)" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
curl -L https://download.is.tue.mpg.de/emoca/assets/EmotionRecognition/image_based_networks/ResNet50.zip -o ResNet50.zip
unzip ResNet50.zip -d data/
rm ResNet50.zip
echo -e "\nDownloading lipreading pretrained model..."
FILEID=1yHd4QwC7K_9Ro2OM_hC7pKUT2URPvm_f
FILENAME=LRS3_V_WER32.3.zip
CONFIRM=$(curl -s -c /tmp/cookies.txt "https://docs.google.com/uc?export=download&id=${FILEID}" | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1/p')
curl -Lb /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=${CONFIRM}&id=${FILEID}" -o $FILENAME
rm -rf /tmp/cookies.txt
unzip $FILENAME -d data/
rm LRS3_V_WER32.3.zip
echo -e "\nDownloading landmarks for LRS3 dataset ..."
curl -L -o LRS3_landmarks.zip "https://drive.google.com/uc?export=download&id=1QRdOgeHvmKK8t4hsceFVf_BSpidQfUyW"
unzip LRS3_landmarks.zip -d data/
rm LRS3_landmarks.zip
echo -e "\nInstallation has finished!"