Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update get_models.sh to only delete zips on success #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions model-weights/get_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ wget --load-cookies /tmp/cookies.txt -r "https://docs.google.com/uc?export=downl
wget --load-cookies /tmp/cookies.txt -r "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=1a_pbXPYNj7_Gi6OxUqNo_T23Dt_9CzOV' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1a_pbXPYNj7_Gi6OxUqNo_T23Dt_9CzOV" -O $H5_FILENAME && rm -rf /tmp/cookies.txt

# Unzip
unzip -q $W_FILENAME
unzip -q $H5_FILENAME

# Delete .zip files
rm -rf $W_FILENAME $H5_FILENAME
unzip -q $W_FILENAME && rm -rf $W_FILENAME
unzip -q $H5_FILENAME && rm -rf $H5_FILENAME

echo "*** All done!!!"