Skip to content

Commit 7679965

Browse files
committed
Update PyTorch container, fix data download
1 parent 0921374 commit 7679965

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nvcr.io/nvidia/pytorch:21.06-py3
1+
FROM nvcr.io/nvidia/pytorch:22.01-py3
22

33
RUN rm -rf /workspace/*
44
WORKDIR /workspace/unet

scripts/download_data.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
echo -n "Kaggle username: "
2-
read USERNAME
3-
echo ""
4-
echo -n "Kaggle API key: "
5-
read APIKEY
1+
#!/bin/bash
2+
3+
if [[ ! -f ~/.kaggle/kaggle.json ]]; then
4+
echo -n "Kaggle username: "
5+
read USERNAME
6+
echo
7+
echo -n "Kaggle API key: "
8+
read APIKEY
9+
10+
mkdir -p ~/.kaggle
11+
echo "{\"username\":\"$USERNAME\",\"key\":\"$APIKEY\"}" > ~/.kaggle/kaggle.json
12+
chmod 600 ~/.kaggle/kaggle.json
13+
fi
614

715
pip install kaggle --upgrade
8-
mkdir -p ~/.kaggle
9-
echo "{\"username\":\"$USERNAME\",\"key\":\"$APIKEY\"}" > ~/.kaggle/kaggle.json
1016

1117
kaggle competitions download -c carvana-image-masking-challenge -f train_hq.zip
1218
unzip train_hq.zip
@@ -18,4 +24,4 @@ kaggle competitions download -c carvana-image-masking-challenge -f train_masks.z
1824
unzip train_masks.zip
1925
mv train_masks/* data/masks/
2026
rm -d train_masks
21-
rm train_masks.zip
27+
rm train_masks.zip

0 commit comments

Comments
 (0)