Hi. I am on Jetson Nano. I installed TensorFlow 1.13 using
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v42 tensorflow-gpu==1.13.1+nv19.3. I installed it in a Python3 virtual environment along with other dependencies. Now when I am trying to run inference on my Jetson Nano it is causing me:
**** Failed to initialize TensorRT. This is either because the TensorRT installation path is not in LD_LIBRARY_PATH, or because you do not have it installed. If not installed, please go to https://developer.nvidia.com/tensorrt to download and install TensorRT **** Traceback (most recent call last): File "untitled.py", line 7, in <module> import tensorflow.contrib.tensorrt as trt File "/home/pyimagesearch/.virtualenvs/py3cv4/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/__init__.py", line 34, in <module> raise e File "/home/pyimagesearch/.virtualenvs/py3cv4/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/__init__.py", line 25, in <module> from tensorflow.contrib.tensorrt.python import * File "/home/pyimagesearch/.virtualenvs/py3cv4/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/python/__init__.py", line 22, in <module> from tensorflow.contrib.tensorrt.python.ops import trt_engine_op File "/home/pyimagesearch/.virtualenvs/py3cv4/lib/python3.6/site-packages/tensorflow/contrib/tensorrt/python/ops/trt_engine_op.py", line 32, in <module> resource_loader.get_path_to_datafile("_trt_engine_op.so")) File "/home/pyimagesearch/.virtualenvs/py3cv4/lib/python3.6/site-packages/tensorflow/contrib/util/loader.py", line 56, in load_op_library ret = load_library.load_op_library(path) File "/home/pyimagesearch/.virtualenvs/py3cv4/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: libnvinfer.so.5: cannot open shared object file: No such file or directory
Although I understand that it has got to do something TensorRT installation but I thought the TensorFlow installation comes loaded with that. Kindly assist if I am missing something here.