Created
October 11, 2023 18:02
-
-
Save shubhamagarwal92/22153dfaa599a63ca0167678b168a88b to your computer and use it in GitHub Desktop.
GDrive download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fixed https://github.com/alexandre01/deepsvg/blob/master/dataset/download.sh | |
#!/usr/bin/env bash | |
function gdrive_download () { | |
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=download&id=$1" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p') | |
wget --no-check-certificate --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2 | |
rm -rf /tmp/cookies.txt | |
} | |
echo "Downloading dataset..." | |
gdrive_download 10Zx4TB1-BEdWv1GbwcSUl2-uRFiqgUP1 icons_meta.csv | |
gdrive_download 1gTuO3k98u_Y1rvpSbJFbqgCf6AJi2qIA icons_tensor.zip | |
echo "Download done. Unzipping..." | |
unzip icons_tensor.zip | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment