forked from Zielon/metrical-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·43 lines (33 loc) · 1.77 KB
/
install.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
#!/bin/bash
urle () { [[ "${1}" ]] || return 1; local LANG=C i x; for (( i = 0; i < ${#1}; i++ )); do x="${1:i:1}"; [[ "${x}" == [a-zA-Z0-9.~-] ]] && echo -n "${x}" || printf '%%%02X' "'${x}"; done; echo; }
COLOR='\033[0;32m'
username and password input
echo -e "\nIf you do not have an account you can register at https://flame.is.tue.mpg.de/ following the installation instruction."
read -p "Username (FLAME):" username
read -p "Password (FLAME):" password
username=$(urle $username)
password=$(urle $password)
# echo -e "\n${COLOR}Downloading FLAME..."
# mkdir -p data/FLAME2020/
# wget --post-data "username=$username&password=$password" 'https://download.is.tue.mpg.de/download.php?domain=flame&sfile=FLAME2020.zip&resume=1' -O './FLAME2020.zip' --no-check-certificate --continue
# unzip FLAME2020.zip -d data/FLAME2020/
# rm -rf FLAME2020.zip
echo -e "\n${COLOR}Copying FLAME..."
mkdir -p data/FLAME2020/
cp -r ../MICA/data/FLAME2020/* data/FLAME2020/
mv data/FLAME2020/Readme.pdf data/FLAME2020/Readme_FLAME.pdf
wget --post-data "username=$username&password=$password" 'https://download.is.tue.mpg.de/download.php?domain=flame&resume=1&sfile=TextureSpace.zip' -O './TextureSpace.zip' --no-check-certificate --continue
unzip TextureSpace.zip -d data/FLAME2020/
rm -rf TextureSpace.zip
wget 'https://files.is.tue.mpg.de/tbolkart/FLAME/FLAME_masks.zip' -O './FLAME_masks.zip' --no-check-certificate --continue
unzip FLAME_masks.zip -d data/FLAME2020/
rm -rf FLAME_masks.zip
echo -e "\n${COLOR}Downloading Mesh..."
wget -O mesh.zip "https://keeper.mpdl.mpg.de/f/f158a430ef754edba5ec/?dl=1"
unzip mesh.zip -d data/
mv data/mesh/* data/
rm -rf data/mesh
rm -rf mesh.zip
# echo -e "\n${COLOR}Installing conda env..."
# conda env create -f environment.yml
echo -e "\n${COLOR}Installation has finished!"