Pārlūkot izejas kodu

Add Bazel workspace name to fix bug in relative path of shell scripts.

Chris Shallue 9 gadi atpakaļ
vecāks
revīzija
c778f4ad18

+ 1 - 0
im2txt/WORKSPACE

@@ -0,0 +1 @@
+workspace(name = "im2txt")

+ 1 - 1
im2txt/im2txt/data/download_and_preprocess_mscoco.sh

@@ -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() {

+ 1 - 0
inception/WORKSPACE

@@ -0,0 +1 @@
+workspace(name = "inception")

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

@@ -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"

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

@@ -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"

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

@@ -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"