From c5257f83674de2b80ae4ccfc1ad11cbabbaf7460 Mon Sep 17 00:00:00 2001 From: milesial Date: Mon, 16 Aug 2021 03:14:33 +0200 Subject: [PATCH] Data download script Former-commit-id: 88ff94e36c5c8a3f2965c54ada19f39e539229cd --- download_data.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 download_data.sh diff --git a/download_data.sh b/download_data.sh new file mode 100644 index 0000000..a936c41 --- /dev/null +++ b/download_data.sh @@ -0,0 +1,18 @@ +USERNAME=$1 +APIKEY=$2 + +pip install kaggle --upgrade +mkdir -p ~/.kaggle +echo "{\"username\":\"$USERNAME\",\"key\":\"$APIKEY\"}" > ~/.kaggle/kaggle.json + +kaggle competitions download -c carvana-image-masking-challenge -f train_hq.zip +unzip train_hq.zip +mv train_hq/* data/imgs/ +rm -d train_hq +rm train_hq.zip + +kaggle competitions download -c carvana-image-masking-challenge -f train_masks.zip +unzip train_masks.zip +mv train_masks/* data/masks/ +rm -d train_masks +rm train_masks.zip \ No newline at end of file