Technology-TensorRT 编译

TensorRT 编译

安装

UBUNTU18.04 安装

CMAKE

1
2
set(OpenCV_DIR /opt/miniconda/envs/tc/share/OpenCV/)
find_package(OpenCV)
1
2
3
4
cp /usr/local/tensorrt/TensorRT-6.0.1.5/include/*  /usr/local/include/
ln -s /usr/local/tensorrt/TensorRT-6.0.1.5/lib/libnvinfer.so /opt/miniconda/envs/tc/lib/libnvinfer.so
ln -s /usr/local/tensorrt/TensorRT-6.0.1.5/targets/x86_64-linux-gnu/lib/libnvinfer.so.6 /opt/miniconda/envs/tc/lib/libnvinfer.so.6
sudo apt-get install libopencv-dev

第三方库

更新TIFF