Skip to content

Commit 4069a48

Browse files
committed
download checkpoint from S3
1 parent c6a4d89 commit 4069a48

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

scripts/download_data.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#!/usr/bin/env bash
22

3-
# vox-adv-cpk-wget.pth.tar (https://drive.google.com/file/d/1coUCdyRXDbpWnEkA99NLNY60mb9dQ_n3/view)
4-
echo "Downloading model's weights (vox-adv-cpk.pth.tar)"
5-
6-
file_id=1coUCdyRXDbpWnEkA99NLNY60mb9dQ_n3
73
filename=vox-adv-cpk.pth.tar
8-
echo "Getting cookie"
9-
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=${file_id}" > /dev/null
10-
code="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
11-
echo "Downloading data"
12-
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${code}&id=${file_id}" -o ${filename}
4+
5+
curl https://avatarify.s3.amazonaws.com/weights/$filename -o $filename
136

147
echo "Expected checksum: 8a45a24037871c045fbb8a6a8aa95ebc"
15-
echo "Found checksum: $(md5sum ${filename})"
8+
9+
if [ "$(uname)" == "Darwin" ]; then
10+
sum=`md5 ${filename}`
11+
else
12+
sum=`md5sum ${filename}`
13+
fi
14+
echo "Found checksum: $sum"

0 commit comments

Comments
 (0)