mirror of
https://github.com/Laurent2916/REVA-QCAV.git
synced 2024-11-08 22:42:02 +00:00
f55693b6a4
Former-commit-id: 7679965b6814e40a9bc7be694d30cfd4bb29b9f7
28 lines
650 B
Bash
28 lines
650 B
Bash
#!/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
|
|
|
|
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
|
|
rm train_masks.zip
|