Skip to content

Instantly share code, notes, and snippets.

View SeitaroShinagawa's full-sized avatar

Seitaro Shinagawa SeitaroShinagawa

View GitHub Profile
@SeitaroShinagawa
SeitaroShinagawa / download_celebA-wild.sh
Last active June 7, 2022 17:36
download celebA (not aligned data) from google drive
#!/bin/sh
#download celebA-HQ dataset with bash script
#1. make ~/.bash_aliases and add the following codes to gdrive_download (alias command):
#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 --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
# rm -rf /tmp/cookies.txt
@SeitaroShinagawa
SeitaroShinagawa / download_celebA-HQ.sh
Last active August 5, 2019 16:22
download celebA-HQ with bash script from google drive
#!/bin/sh
#download celebA-HQ dataset with bash script
#1. make ~/.bash_aliases and add the following codes to gdrive_download (alias command):
#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 --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
# rm -rf /tmp/cookies.txt