编程语言
首页 > 编程语言> > deepstream5.0 python samples试跑(unbunt1804 ,GTX1060)

deepstream5.0 python samples试跑(unbunt1804 ,GTX1060)

作者:互联网

1.deepstream安装:(docker大法)

docker pull nvcr.io/nvidia/deepstream:5.0.1-20.09-samples

2.进入docker

xhost +
docker run --gpus all -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY nvcr.io/nvidia/deepstream:5.0.1-20.09-samples

3.运行示例

cd /opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app
deepstream-app -c source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt

 

4.进行python binding

#安装GST 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.运行python samples

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 

#运行例子2
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test2
python3 deepstream_test_2.py /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264

#运行例子3
cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test3

# 4个视频通道
python3 deepstream_test_3.py file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4  file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_qHD.mp4 file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4  file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_qHD.mp4  

 

标签:deepstream,opt,GTX1060,python,apps,试跑,samples,nvidia
来源: https://blog.csdn.net/u012160945/article/details/112303977