From 20f63a003322d15101ac54c681ebbc538005e7b0 Mon Sep 17 00:00:00 2001 From: Andri Joos <andri@joos.io> Date: Tue, 18 Jun 2024 16:11:07 +0000 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8c26910..538d111 100644 --- a/README.md +++ b/README.md @@ -97,15 +97,16 @@ To see which tensorrt version is needed run strace -e open,openat python -c "import tensorflow as tf" 2>&1 | grep "libnvinfer\|TF-TRT" ``` -Now, [tensorrt](https://docs.nvidia.com/deeplearning/tensorrt/) is installed (installation may fail, but as long as the libnvinver.so.\* and libnvinver_plugin.so.\* are present, that's no big deal) +Now, [tensorrt](https://docs.nvidia.com/deeplearning/tensorrt/) is installed (installation might fail, but as long as the libnvinver.so.\* and libnvinver_plugin.so.\* are present, that's no big deal) ```sh -pip install tensorrt==x.y.z +pip install --no-cache tensorrt==x.y.z ``` Unfortunately, tensorrt does not link the shared libraries, so we need to do ```sh -ln -s /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer.so.8 /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer.so.8.6.1 -ln -s /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer_plugin.so.8 /home/andri/Projects/tf_agents_tutorial/venv/lib/python3.12/site-packages/tensorrt/libnvinfer_plugin.so.8.6.1 +tensorrt_dir=$(pwd)/venv/lib/python$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")/site-packages/tensorrt_libs +ln -s $tensorrt_dir/libnvinfer.so.8 $tensorrt_dir/libnvinfer.so.8.6.1 +ln -s $tensorrt_dir/libnvinfer_plugin.so.8 $tensorrt_dir/libnvinfer_plugin.so.8.6.1 ``` Be aware, that your paths and versions may differ from the given paths. Your paths can be found via -- GitLab