mirror of
https://github.com/Laurent2916/REVA-QCAV.git
synced 2024-11-08 14:39:00 +00:00
1022338a3b
Former-commit-id: b44a96b989ff3000a5afa72af863f4cb0df21e92
21 lines
545 B
Bash
21 lines
545 B
Bash
echo -n "Kaggle username: "
|
|
read USERNAME
|
|
echo ""
|
|
echo -n "Kaggle API key: "
|
|
read APIKEY
|
|
|
|
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 |