Skip to content

Commit

Permalink
Merge pull request tensorflow#33 from ffmpbgrnn/master
Browse files Browse the repository at this point in the history
The ILSVRC original image url somehow changed, use the new one if failed
  • Loading branch information
martinwicke committed Mar 28, 2016
2 parents d51fdd2 + 2aff70f commit 1493624
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inception/inception/data/download_imagenet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ BASE_URL="http://www.image-net.org/challenges/LSVRC/2012/nonpub"
BOUNDING_BOX_ANNOTATIONS="${BASE_URL}/ILSVRC2012_bbox_train_v2.tar.gz"
BBOX_TAR_BALL="${BBOX_DIR}/annotations.tar.gz"
echo "Downloading bounding box annotations."
wget "${BOUNDING_BOX_ANNOTATIONS}" -O "${BBOX_TAR_BALL}" || BASE_URL_CHANGE=1
if [ $BASE_URL_CHANGE ]; then
BASE_URL="http://www.image-net.org/challenges/LSVRC/2012/nnoupb"
BOUNDING_BOX_ANNOTATIONS="${BASE_URL}/ILSVRC2012_bbox_train_v2.tar.gz"
BBOX_TAR_BALL="${BBOX_DIR}/annotations.tar.gz"
fi
wget "${BOUNDING_BOX_ANNOTATIONS}" -O "${BBOX_TAR_BALL}"
echo "Uncompressing bounding box annotations ..."
tar xzf "${BBOX_TAR_BALL}" -C "${BBOX_DIR}"
Expand Down

0 comments on commit 1493624

Please sign in to comment.