DeepStream开发日志
DeepStream主頁:https://developer.nvidia.com/deepstream-sdk
DeepStream Development Guide:https://docs.nvidia.com/metropolis/deepstream/4.0/dev-guide/
DeepStream SDK API:https://docs.nvidia.com/metropolis/deepstream/4.0/dev-guide/DeepStream_Development_Guide/baggage/index.html
環境搭建:
1)要求
? Ubuntu 18.04 ? Gstreamer 1.14.1 ? NVIDIA driver 418+ ? CUDA 10.1 ? TensorRT 5.1.52)執行nvidia-smi查詢Nvidia驅動版本
Driver Version: 418.87.00
執行cat /usr/local/cuda/version.txt查詢CUDA版本
CUDA Version 10.1.243
執行cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2查詢cudnn版本
7.6.3
執行cat /proc/version查詢ubuntu系統版本
18.04.1
Gstreamer安裝:
apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
驗證Gstreamer:dpkg -l | grep gstreamer
?
?TensorRT安裝:參考https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html#installing-tar
下載:https://developer.nvidia.com/nvidia-tensorrt-5x-download,需要先登錄NVIDIA賬號
tar xzvf TensorRT-5.1.5.0.Ubuntu-18.04.2.x86_64-gnu.cuda-10.1.cudnn7.5.tar.gz
sudo vim ~/.bashrc,添加:
?
?source ~/.bashrc
cd TensorRT-5.1.5.0/python/
sudo -H pip3 install tensorrt-5.1.5.0-cp36-none-linux_x86_64.whl
cd ../uff?? (計劃將TensorRT與TensorFlow一起使用時,安裝uff才是必要的)
sudo -H pip3 install uff-0.6.3-py2.py3-none-any.whl
which convert-to-uff
cd ../graphsurgeon
sudo -H pip3 install graphsurgeon-0.4.1-py2.py3-none-any.whl
驗證TensorRT
cd TensorRT-5.1.5.0/samples/sampleMNIST/
make
cd ../../bin
./sample_mnist,如下所示,則安裝成功
安裝其他依賴:
sudo apt install \
???? libssl1.0.0 \
???? libgstrtspserver-1.0-0 \
???? libjansson4
3)安裝librdkafka
git clone https://github.com/edenhill/librdkafka.git
cd librdkafka/
git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a
./configure
make
sudo make install
sudo mkdir -p /opt/nvidia/deepstream/deepstream-4.0/lib
sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream-4.0/lib
4)安裝DeepStream SDK
下載:https://developer.nvidia.com/deepstream-sdk
tar -xpvf deepstream_sdk_v4.0_x86_64.tbz2
cd deepstream_sdk_v4.0_x86_64
sudo tar -xvpf binaries.tbz2 -C /
sudo ./install.sh
轉載于:https://www.cnblogs.com/walker-lin/p/11528243.html
總結
以上是生活随笔為你收集整理的DeepStream开发日志的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【python】关于控制台的中文输出出现
- 下一篇: 后盾网lavarel视频项目---lav