Commit c7df5a3d authored by Scott Lowe's avatar Scott Lowe Committed by Karmel Allison
Browse files

BUG: Fix inception imagenet download script (#2299)

* BUG: Fix inception imagenet download script

In `download_imagenet.sh`, the path to the `$SYNSETS_FILE` resource
(imagenet_2012_validation_synset_labels.txt) was not updated to
reflect change in directory after a `cd` earlier in the script.

Fixes #682.

* BUG: Fix slim imagenet download script

In `download_imagenet.sh`, the path to the `$SYNSETS_FILE` resource
(imagenet_2012_validation_synset_labels.txt) was not updated to
reflect change in directory after a `cd` earlier in the script.
parent 1a92eed0
...@@ -43,7 +43,7 @@ SYNSETS_FILE="${2:-./synsets.txt}" ...@@ -43,7 +43,7 @@ SYNSETS_FILE="${2:-./synsets.txt}"
echo "Saving downloaded files to $OUTDIR" echo "Saving downloaded files to $OUTDIR"
mkdir -p "${OUTDIR}" mkdir -p "${OUTDIR}"
CURRENT_DIR=$(pwd) INITIAL_DIR=$(pwd)
BBOX_DIR="${OUTDIR}bounding_boxes" BBOX_DIR="${OUTDIR}bounding_boxes"
mkdir -p "${BBOX_DIR}" mkdir -p "${BBOX_DIR}"
cd "${OUTDIR}" cd "${OUTDIR}"
...@@ -102,4 +102,4 @@ while read SYNSET; do ...@@ -102,4 +102,4 @@ while read SYNSET; do
rm -f "${SYNSET}.tar" rm -f "${SYNSET}.tar"
echo "Finished processing: ${SYNSET}" echo "Finished processing: ${SYNSET}"
done < "${SYNSETS_FILE}" done < "${INITIAL_DIR}/${SYNSETS_FILE}"
...@@ -43,7 +43,7 @@ SYNSETS_FILE="${2:-./synsets.txt}" ...@@ -43,7 +43,7 @@ SYNSETS_FILE="${2:-./synsets.txt}"
echo "Saving downloaded files to $OUTDIR" echo "Saving downloaded files to $OUTDIR"
mkdir -p "${OUTDIR}" mkdir -p "${OUTDIR}"
CURRENT_DIR=$(pwd) INITIAL_DIR=$(pwd)
BBOX_DIR="${OUTDIR}bounding_boxes" BBOX_DIR="${OUTDIR}bounding_boxes"
mkdir -p "${BBOX_DIR}" mkdir -p "${BBOX_DIR}"
cd "${OUTDIR}" cd "${OUTDIR}"
...@@ -96,4 +96,4 @@ while read SYNSET; do ...@@ -96,4 +96,4 @@ while read SYNSET; do
rm -f "${SYNSET}.tar" rm -f "${SYNSET}.tar"
echo "Finished processing: ${SYNSET}" echo "Finished processing: ${SYNSET}"
done < "${SYNSETS_FILE}" done < "${INITIAL_DIR}/${SYNSETS_FILE}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment