Skip to content

Commit

Permalink
Merge pull request tensorflow#441 from cshallue/bazel-path
Browse files Browse the repository at this point in the history
Add Bazel workspace name to fix bug in relative path of shell scripts.
  • Loading branch information
lukaszkaiser authored Sep 22, 2016
2 parents 4203765 + c778f4a commit 71f239f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions im2txt/WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspace(name = "im2txt")
2 changes: 1 addition & 1 deletion im2txt/im2txt/data/download_and_preprocess_mscoco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SCRATCH_DIR="${OUTPUT_DIR}/raw-data"
mkdir -p "${OUTPUT_DIR}"
mkdir -p "${SCRATCH_DIR}"
CURRENT_DIR=$(pwd)
WORK_DIR="$0.runfiles/__main__/im2txt"
WORK_DIR="$0.runfiles/im2txt/im2txt"

# Helper function to download and unpack a .zip file.
function download_and_unzip() {
Expand Down
1 change: 1 addition & 0 deletions inception/WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspace(name = "inception")
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ DATA_DIR="${1%/}"
SCRATCH_DIR="${DATA_DIR}/raw-data/"
mkdir -p "${DATA_DIR}"
mkdir -p "${SCRATCH_DIR}"
WORK_DIR="$0.runfiles/inception"
WORK_DIR="$0.runfiles/inception/inception"

# Download the flowers data.
DATA_URL="http://download.tensorflow.org/example_images/flower_photos.tgz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ DATA_DIR="${1%/}"
SCRATCH_DIR="${DATA_DIR}/raw-data/"
mkdir -p "${DATA_DIR}"
mkdir -p "${SCRATCH_DIR}"
WORK_DIR="$0.runfiles/inception"
WORK_DIR="$0.runfiles/inception/inception"

# Download the flowers data.
DATA_URL="http://download.tensorflow.org/example_images/flower_photos.tgz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ DATA_DIR="${1%/}"
SCRATCH_DIR="${DATA_DIR}/raw-data/"
mkdir -p "${DATA_DIR}"
mkdir -p "${SCRATCH_DIR}"
WORK_DIR="$0.runfiles/inception"
WORK_DIR="$0.runfiles/inception/inception"

# Download the ImageNet data.
LABELS_FILE="${WORK_DIR}/data/imagenet_lsvrc_2015_synsets.txt"
Expand Down

0 comments on commit 71f239f

Please sign in to comment.