Browse Source

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

This reverts commit a704458a5b183277bae1b000e04951db8d332fac.
Chris Shallue 10 năm trước cách đây
mục cha
commit
3e3a4b50ef

+ 0 - 1
im2txt/WORKSPACE

@@ -1 +0,0 @@
-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/im2txt/im2txt"
+WORK_DIR="$0.runfiles/__main__/im2txt"
 
 # Helper function to download and unpack a .zip file.
 function download_and_unzip() {

+ 0 - 1
inception/WORKSPACE

@@ -1 +0,0 @@
-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/inception"
+WORK_DIR="$0.runfiles/__main__/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/inception"
+WORK_DIR="$0.runfiles/__main__/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/inception"
+WORK_DIR="$0.runfiles/__main__/inception"
 
 # Download the ImageNet data.
 LABELS_FILE="${WORK_DIR}/data/imagenet_lsvrc_2015_synsets.txt"