2022-02-19 01:38:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ ! -f ~/.kaggle/kaggle.json ]]; then
|
|
|
|
echo -n "Kaggle username: "
|
|
|
|
read USERNAME
|
|
|
|
echo
|
|
|
|
echo -n "Kaggle API key: "
|
|
|
|
read APIKEY
|
|
|
|
|
|
|
|
mkdir -p ~/.kaggle
|
|
|
|
echo "{\"username\":\"$USERNAME\",\"key\":\"$APIKEY\"}" > ~/.kaggle/kaggle.json
|
|
|
|
chmod 600 ~/.kaggle/kaggle.json
|
|
|
|
fi
|
2021-08-16 01:14:33 +00:00
|
|
|
|
|
|
|
pip install kaggle --upgrade
|
|
|
|
|
|
|
|
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
|
2022-02-19 01:38:49 +00:00
|
|
|
rm train_masks.zip
|