Unverified Commit 5f9bfd8c authored by Ruslan Baratov's avatar Ruslan Baratov Committed by GitHub
Browse files

deeplab/local_test.sh: Use 'bash' instead of 'sh' (#8534)

- Make it consistent with '/bin/bash' shebang
- Fix "Bad substitution" error in BASH_SOURCE[0]
parent 7e47cd7b
...@@ -68,6 +68,6 @@ Quick running the whole code on the PASCAL VOC 2012 dataset: ...@@ -68,6 +68,6 @@ Quick running the whole code on the PASCAL VOC 2012 dataset:
```bash ```bash
# From tensorflow/models/research/deeplab # From tensorflow/models/research/deeplab
sh local_test.sh bash local_test.sh
``` ```
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# #
# Usage: # Usage:
# # From the tensorflow/models/research/deeplab directory. # # From the tensorflow/models/research/deeplab directory.
# sh ./local_test.sh # bash ./local_test.sh
# #
# #
...@@ -42,7 +42,7 @@ python "${WORK_DIR}"/model_test.py ...@@ -42,7 +42,7 @@ python "${WORK_DIR}"/model_test.py
# Go to datasets folder and download PASCAL VOC 2012 segmentation dataset. # Go to datasets folder and download PASCAL VOC 2012 segmentation dataset.
DATASET_DIR="datasets" DATASET_DIR="datasets"
cd "${WORK_DIR}/${DATASET_DIR}" cd "${WORK_DIR}/${DATASET_DIR}"
sh download_and_convert_voc2012.sh bash download_and_convert_voc2012.sh
# Go back to original directory. # Go back to original directory.
cd "${CURRENT_DIR}" cd "${CURRENT_DIR}"
......
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