赞
踩
1. 确保tensorrt已安装且可用。
dpkg -l | grep nvinfer
输出为:
- ii libnvinfer-bin 7.1.3-1+cuda10.2 arm64 TensorRT binaries
- ii libnvinfer-dev 7.1.3-1+cuda10.2 arm64 TensorRT development libraries and headers
- ii libnvinfer-doc 7.1.3-1+cuda10.2 all TensorRT documentation
- ii libnvinfer-plugin-dev 7.1.3-1+cuda10.2 arm64 TensorRT plugin libraries
- ii libnvinfer-plugin7 7.1.3-1+cuda10.2 arm64 TensorRT plugin libraries
- ii libnvinfer-samples 7.1.3-1+cuda10.2 all TensorRT samples
- ii libnvinfer7 7.1.3-1+cuda10.2 arm64 TensorRT runtime libraries
- ii python-libnvinfer 7.1.3-1+cuda10.2 arm64 Python bindings for TensorRT
- ii python-libnvinfer-dev 7.1.3-1+cuda10.2 arm64 Python development package for TensorRT
- ii python3-libnvinfer 7.1.3-1+cuda10.2 arm64 Python 3 bindings for TensorRT
- ii python3-libnvinfer-dev 7.1.3-1+cuda10.2 arm64 Python 3 development package for TensorRT
尤其是有python3-libnvinfer ,python3-libnvinfer-dev。
若无输出,则需安装tensorrt.
若有输出,需要看下当前python版本是否安装tensorrt
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。