https://github.com/Sha-Lab/FEAT
Tip revision: 47bdc7c1672e00b027c67469d0291e7502918950 authored by Han-Jia Ye on 31 July 2020, 03:57:23 UTC
Update README.md
Update README.md
Tip revision: 47bdc7c
download_weight.sh
#!/usr/bin/env bash
function download() {
printf "\033[32mstart to download $2 in $current/saves/$1\033[0m\n"
[[ -e $1.zip ]] && rm -rf $1.zip
wget -c https://drive.google.com/uc?export=download&confirm=wWiE&id=1XcUZMNTQ-79_2AkNG3E04zh6bDYnPAMY -O $1.zip
if [[ -e $1 ]]; then
backup=$1.`date '+%Y%m%d%H%M%S'`
echo "backup current $1 directory first"
rm -rf $1.*
cp -rf $1 $backup
fi
unzip $1.zip
rm -rf $1.zip
}
# We assume this will run under the FEAT folder
current=$(pwd)
[[ ! -e saves ]] && mkdir -p saves
cd saves
# Download pre-trained weights in "./saves/initialization".
download "initialization" "pre-trained weights"