"vscode:/vscode.git/clone" did not exist on "e454159942fa88b480363a92cfebc065f321d138"
Unverified Commit 040f62d1 authored by Adam Tetelman's avatar Adam Tetelman Committed by GitHub
Browse files

Fix paths/permissions in download_and_preprocess_flowers.sh to work end-to-end (#8351)

parent 83d8bab5
File mode changed from 100644 to 100755
......@@ -42,9 +42,9 @@ fi
# Create the output and temporary directories.
DATA_DIR="${1%/}"
SCRATCH_DIR="${DATA_DIR}/raw-data"
WORK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
mkdir -p "${DATA_DIR}"
mkdir -p "${SCRATCH_DIR}"
WORK_DIR="$0.runfiles/inception/inception"
# Download the flowers data.
DATA_URL="http://download.tensorflow.org/example_images/flower_photos.tgz"
......@@ -87,7 +87,7 @@ done < "${LABELS_FILE}"
# Build the TFRecords version of the image data.
cd "${CURRENT_DIR}"
BUILD_SCRIPT="${WORK_DIR}/build_image_data"
BUILD_SCRIPT="${WORK_DIR}/build_image_data.py"
OUTPUT_DIRECTORY="${DATA_DIR}"
"${BUILD_SCRIPT}" \
--train_directory="${TRAIN_DIRECTORY}" \
......
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