소스 검색

use curl not wget to fetch flower data

curl is pre-installed on the mac and the tensorflow docker image. wget
is not. This change allows this script to run on a stock mac, or in the
tensorflow docker image
Alexis Gallagher 8 년 전
부모
커밋
28f1b92ae2
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      inception/inception/data/download_and_preprocess_flowers.sh
  2. 1 1
      inception/inception/data/download_and_preprocess_flowers_mac.sh

+ 1 - 1
inception/inception/data/download_and_preprocess_flowers.sh

@@ -53,7 +53,7 @@ cd "${DATA_DIR}"
 TARBALL="flower_photos.tgz"
 if [ ! -f ${TARBALL} ]; then
   echo "Downloading flower data set."
-  wget -O ${TARBALL} "${DATA_URL}"
+  curl -o ${TARBALL} "${DATA_URL}"
 else
   echo "Skipping download of flower data."
 fi

+ 1 - 1
inception/inception/data/download_and_preprocess_flowers_mac.sh

@@ -53,7 +53,7 @@ cd "${DATA_DIR}"
 TARBALL="flower_photos.tgz"
 if [ ! -f ${TARBALL} ]; then
   echo "Downloading flower data set."
-  wget -O ${TARBALL} "${DATA_URL}"
+  curl -o ${TARBALL} "${DATA_URL}"
 else
   echo "Skipping download of flower data."
 fi