关于nvidia:经验分享ubuntu-安装-deepstream51

37次阅读

共计 1969 个字符,预计需要花费 5 分钟才能阅读完成。

欢送关注我的公众号 [极智视界],回复 001 获取 Google 编程标准

O_o>_<   o_OO_o~_~o_O

  本教程具体记录了在 ubuntu 上装置 deepstream5.1 的办法。

   之前写的这篇《【教训分享】ubuntu 装置 deepstream6.0》可能对于零碎版本要求过高,故又写了一篇 5.1 版本的,可能更通用一些。

  一些版本要求:

  • Ubuntu 18.04
  • GStreamer 1.14.1
  • NVIDIA driver 460.32
  • CUDA 11.1
  • TensorRT 7.2.3

1、装置 Gstreamer

sudo 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 libssl1.0.0 libgstrtspserver-1.0-0 libjansson4

   查看是否装置胜利:

dpkg -l | grep gstreamer

2、装置 TensorRT 7.2.3

  下载源码包,下载传送:https://developer.nvidia.com/…

   解压,将 TensorRT 库放到零碎环境,而后装置 TensorRT python 接口:

cd <tensorrt-path>/python
pip install tensorrt-7.2.3.4-cpxx-none-linux_x86_64.whl

cd ../uff
pip install uff-0.6.9-py2.py3-none-any.whl

3、装置 librdkafka

git clone https://github.com/edenhill/librdkafka.git

cd librdkafka/
git reset --hard 7101c2310341ab3f4675fc565f64f0967e135a6a

./configure

sudo make
sudo make install

# 生成的库在 /usr/local/lib/librdkafka*

4、装置 deepstream sdk

  下载源码包,下载传送:https://developer.nvidia.com/…

tar -xpvf deepstream_sdk_v5.1.0_x86_64.tbz2

cp -r opt /

# 将后面的 librdkafka 拷到 deepstream 库
sudo cp -r /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream-5.1/lib/

cd /opt/nvidia/deepstream/deepstream

sudo ./install.sh

  装置一下 python 接口:

sudo apt update
sudo apt install python3-gi python3-dev python3-gst-1.0 -y
 
cd /opt/nvidia/deepstream/deepstream/lib
python3 setup.py install

5、验证是否装置胜利

which deepstream-app

  能定位到 deepstream-app 个别就胜利了,而后能够用 deepstram-app 执行一些 samples,根本命令如下:

deepstream-app -c <path_to_config_file>

   验证一下 python 示例:

cd /opt/nvidia/deepstream/deepstream/sources
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
 
# 运行例子 1
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test1
python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264 

   以上分享了在 ubuntu 上装置 deepstream5.1 的办法,心愿我的分享对你会有一点帮忙。


【公众号传送】
《【教训分享】ubuntu 装置 deepstream5.1》

正文完
 0