Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 437c167

Browse files
author
DEKHTIARJonathan
committed
Bash Scripts Fixed - Install path not runtime dependant anymore
1 parent 169e7cd commit 437c167

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tftrt/examples/nvidia_examples/mrcnn_tf2/run_inference.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ python -c "from pycocotools.coco import COCO" > /dev/null 2>&1
1010
DEPENDENCIES_STATUS=$?
1111

1212
if [[ ${DEPENDENCIES_STATUS} != 0 ]]; then
13-
bash "../../helper_scripts/install_pycocotools.sh"
13+
bash "${BASE_DIR}/../../helper_scripts/install_pycocotools.sh"
1414
fi
1515

1616
python ${BASE_DIR}/infer.py \

tftrt/examples/object_detection/base_run_inference.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
4+
35
nvidia-smi
46

57
# Runtime Parameters
@@ -130,7 +132,7 @@ python -c "from pycocotools.coco import COCO" > /dev/null 2>&1
130132
DEPENDENCIES_STATUS=$?
131133

132134
if [[ ${DEPENDENCIES_STATUS} != 0 ]]; then
133-
bash "../helper_scripts/install_pycocotools.sh"
135+
bash "${BASE_DIR}/../helper_scripts/install_pycocotools.sh"
134136
fi
135137

136138
# Step 2: Execute the example

0 commit comments

Comments
 (0)