Skip to content

Commit f50bc17

Browse files
committed
Continue getting a partially-downloaded file.
Move second try after base_url_change into if-statement.
1 parent ce6fccb commit f50bc17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

research/inception/inception/data/download_imagenet.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ BASE_URL="http://www.image-net.org/challenges/LSVRC/2012/nonpub"
5555
BOUNDING_BOX_ANNOTATIONS="${BASE_URL}/ILSVRC2012_bbox_train_v2.tar.gz"
5656
BBOX_TAR_BALL="${BBOX_DIR}/annotations.tar.gz"
5757
echo "Downloading bounding box annotations."
58-
wget "${BOUNDING_BOX_ANNOTATIONS}" -O "${BBOX_TAR_BALL}" || BASE_URL_CHANGE=1
58+
wget -c "${BOUNDING_BOX_ANNOTATIONS}" -O "${BBOX_TAR_BALL}" || BASE_URL_CHANGE=1
5959
if [ $BASE_URL_CHANGE ]; then
6060
BASE_URL="http://www.image-net.org/challenges/LSVRC/2012/nnoupb"
6161
BOUNDING_BOX_ANNOTATIONS="${BASE_URL}/ILSVRC2012_bbox_train_v2.tar.gz"
62-
BBOX_TAR_BALL="${BBOX_DIR}/annotations.tar.gz"
62+
wget -c "${BOUNDING_BOX_ANNOTATIONS}" -O "${BBOX_TAR_BALL}"
6363
fi
64-
wget "${BOUNDING_BOX_ANNOTATIONS}" -O "${BBOX_TAR_BALL}"
6564
echo "Uncompressing bounding box annotations ..."
6665
tar xzf "${BBOX_TAR_BALL}" -C "${BBOX_DIR}"
6766

0 commit comments

Comments
 (0)