00000095
conda create --name py310 python=3.10
conda activate py310
bash ixstream-1.1.4_corex-4.1.2_x86_64.run
pip3 install torch-2.1.1+corex.4.1.2-cp310-cp310-linux_x86_64.whl igie-0.9.1+corex.4.1.2-cp310-cp310-linux_x86_64.whl ixrt-0.9.1+corex.4.1.2-cp310-cp310-linux_x86_64.whl torchvision-0.16.0+corex.4.1.2-cp310-cp310-linux_x86_64.whl pyixstream-1.1.4+corex.4.1.2-cp310-cp310-linux_x86_64.whl --default-timeout=300
apt-get install -y glib2.0 libgstreamer1.0 gstreamer1.0-tools libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libgstrtspserver-1.0 libopenblas-dev libgirepository1.0-dev libcairo2-dev
rm -rf /root/.cache/gstreamer-1.0/
gst-inspect-1.0 | grep Gst
...
ixstream_segvisual: Gst-IxSegVisual: Gst-IxSegVisual plugin
ixstream_analytics: Gst-IxAnalytics: Gst-IxAnalytics plugin
ixstream_jpudecode: Gst-IxJpuDecode: Gst-IxJpuDecode plugin
ixstream_tiler: Gst-IxMultiStreamTiler: Gst-IxMultiStreamTiler plugin
ixstream_h264encode: Gst-IxH264Encode: Gst-IxH264Encode plugin
ixstream_streamdemux: Gst-IxStreamDemux: Gst-IxStreamDemux plugin
ixstream_tracker: Gst-IxTracker: Gst-IxTracker plugin
ixstream_osd: Gst-IxOsd: Gst-IxOsd plugin
ixstream_infer: Gst-IxInfer: Gst-IxInfer plugin
ixstream_preprocess: Gst-IxPreprocess: Gst-IxInfer plugin
ixstream_converter: Gst-IxConverter: Gst-IxConverter plugin
ixstream_streammux: Gst-IxStreamMux: Gst-IxStreamMux plugin
ixstream_jpuencode: Gst-IxJpuEncode: Gst-IxJpuEncode plugin
ixstream_vpudecode: Gst-IxVpuDecode: Gst-IxVpuDecode plugin
...
sftp -P 29880 iluvatar_mr@iftp.iluvatar.com.cn
cd /client_tmp/smx/ixstream
get * ./
mkdir /home/ixstream
cd /home/ixstream
unzip ixstream_samples-corex_release_4.1.2.zip
mkdir models labels videos igie_engines
mv yolov5s.onnx yolov8s.onnx models/
mv sample_720p.h264 videos/
mv coco_labels.txt labels/
cd C++/ixstream_sample_infer_yolo/
igie-exec --model_path ../../models/yolov5s.onnx --input images:1,3,640,640 --precision fp16 --just_export True --engine_path ../../igie_engines/yolov5s_batchsize_1_fp16.so
make (make clean)
./ixstream_sample_infer_yolo yolov5
安装pyixstream时报错:/lib/x86_64-linux-gnu/libgobject-2.0.so.0:undefined symbol:ffi_type_uint32,version LIBFFI_BASE_7.0
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7