-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·27 lines (22 loc) · 1.03 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
#!/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; }
echo -e "\nAfter registering at https://sgnify.is.tue.mpg.de/, provide your credentials:"
read -p "Username:" username
read -s -p "Password: " password
username=$(urle $username)
password=$(urle $password)
echo -e "\nDownloading SGNify..."
wget --post-data "username=$username&password=$password" 'https://download.is.tue.mpg.de/download.php?domain=sgnify&resume=1&sfile=data.zip' -O 'data.zip' --no-check-certificate --continue
unzip data.zip -d data/
rm data.zip
GIT_LFS_SKIP_SMUDGE=1 git submodule update --init --recursive
conda env create -f environment.yml
eval "$(conda shell.bash hook)"
git submodule update --init --recursive
cd spectre
echo -e "\nDownload pretrained SPECTRE model..."
gdown --id 1vmWX6QmXGPnXTXWFgj67oHzOoOmxBh6B
mkdir -p pretrained/
mv spectre_model.tar pretrained/
cd ..
cp -r data/FLAME2020 spectre/data/FLAME2020