Skip to content

Commit

Permalink
Update PyTorch container, fix data download
Browse files Browse the repository at this point in the history
  • Loading branch information
milesial committed Feb 19, 2022
1 parent 0921374 commit 7679965
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nvcr.io/nvidia/pytorch:21.06-py3
FROM nvcr.io/nvidia/pytorch:22.01-py3

RUN rm -rf /workspace/*
WORKDIR /workspace/unet
Expand Down
22 changes: 14 additions & 8 deletions scripts/download_data.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
echo -n "Kaggle username: "
read USERNAME
echo ""
echo -n "Kaggle API key: "
read APIKEY
#!/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
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
Expand All @@ -18,4 +24,4 @@ kaggle competitions download -c carvana-image-masking-challenge -f train_masks.z
unzip train_masks.zip
mv train_masks/* data/masks/
rm -d train_masks
rm train_masks.zip
rm train_masks.zip

0 comments on commit 7679965

Please sign in to comment.