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

Commit 8e8ae15

Browse files
author
DEKHTIARJonathan
committed
COCOAPI Submodule Removed
1 parent 8a5ccb0 commit 8e8ae15

File tree

6 files changed

+14
-46
lines changed

6 files changed

+14
-46
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "tftrt/examples/third_party/cocoapi"]
2-
path = tftrt/examples/third_party/cocoapi
3-
url = https://github.com/NVIDIA/cocoapi.git
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Installing dependencies if needed:
2+
3+
pip install pybind11 ujson Cython
4+
5+
python -c "from pycocotools.coco import COCO" > /dev/null 2>&1
6+
DEPENDENCIES_STATUS=$?
7+
8+
if [[ ${DEPENDENCIES_STATUS} != 0 ]]; then
9+
# Master Branch of 2022/01/11
10+
PYCOCOTOOLS_BRANCH_OR_COMMIT_ID="142b17a358fdb5a31f9d5153d7a9f3f1cd385178"
11+
pip install "git+https://github.com/NVIDIA/cocoapi.git@${PYCOCOTOOLS_BRANCH_OR_COMMIT_ID}#egg=pycocotools&subdirectory=PythonAPI"
12+
fi

tftrt/examples/nvidia_examples/mrcnn_tf2/run_inference.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ set -x
66

77
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
88

9-
pip --no-cache-dir --no-cache install Cython pytest ujson
10-
119
python -c "from pycocotools.coco import COCO" > /dev/null 2>&1
1210
DEPENDENCIES_STATUS=$?
1311

1412
if [[ ${DEPENDENCIES_STATUS} != 0 ]]; then
15-
git clone -b v2.5.0 https://github.com/pybind/pybind11 /opt/pybind11
16-
cd /opt/pybind11 && cmake . && make install && pip install .
17-
pip install "git+https://github.com/NVIDIA/cocoapi#egg=pycocotools&subdirectory=PythonAPI"
13+
bash "../../helper_scripts/install_pycocotools.sh"
1814
fi
1915

2016
python ${BASE_DIR}/infer.py \
@@ -24,4 +20,3 @@ python ${BASE_DIR}/infer.py \
2420
--output_tensors_name="detection_boxes,detection_classes,detection_scores,image_info,num_detections,source_ids" \
2521
--total_max_samples=5200 \
2622
${@}
27-

tftrt/examples/object_detection/base_run_inference.sh

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

132132
if [[ ${DEPENDENCIES_STATUS} != 0 ]]; then
133-
bash install_dependencies.sh
133+
bash "../helper_scripts/install_pycocotools.sh"
134134
fi
135135

136136
# Step 2: Execute the example

tftrt/examples/object_detection/install_dependencies.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

tftrt/examples/third_party/cocoapi

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)