00000468
宿主机确保已经安装好4.3.8驱动以及docker环境。
下载base镜像以及ixstream环境所需安装包
#mkdir /root/data
#cd /root/data
#sftp -P 29880 iluvatar_mr@iftp.iluvatar.com.cn
输入登录密码
get /SDK_4.3.8/x86/sdk/ixrt-1.0.0.alpha+corex.4.3.8-linux_x86_64.run ./
get /SDK_4.3.8/x86/sdk/ixstream-1.2.8_corex-4.3.8_x86_64.run ./
get /SDK_4.3.8/x86/sdk/iva_stress_pipeline-4.3.8_x86_64.run ./
注:sftp登录密码可联系天数售后获取。
#bash corex-docker-installer-4.3.8-10.2-ubuntu20.04-py3.10-x86_64.run,默认配置,直接选择install
#docker run -dit -v /usr/src:/usr/src -v /lib/modules:/lib/modules -v /dev:/dev -v /root/data:/root/data -v /home:/home --network=host --name=core4.8-ixstream --pid=host --ipc=host --privileged --cap-add=ALL corex:4.3.8 /bin/bash
查看容器id
#docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
faab025e9616 corex:4.3.8 "/bin/bash" 3 days ago Up 3 days core4.8-ixstream
#docker exec -it faab025e9616 /bin/bash
进入容器后
#apt update -y
#apt-get install -y glib2.0 \
libgstreamer1.0 \
libgstreamer1.0-dev \
gstreamer1.0-tools \
libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
libgstreamer-plugins-bad1.0-dev \
libgstrtspserver-1.0 \
libopenblas-dev \
libgirepository1.0-dev \
libcairo2-dev \
flex \
bison \
libeigen3-dev \
libyaml-cpp-dev \
gir1.2-gst-rtsp-server-1.0 \
gstreamer1.0-rtsp \
gstreamer1.0-libav \
gstreamer1.0-doc \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-gl \
gstreamer1.0-gtk3
#pip install meson ninja onnxsim
#pip install pycocotools scikit-learn==1.5.1 paddle2onnx==1.2.4 shapely imageio
#pip install imgaug scikit-image --no-deps
#cd /root/data
#bash ixrt-1.0.0.alpha+corex.4.3.8-linux_x86_64.run
#bash ixstream-1.2.8_corex-4.3.8_x86_64.run
#bash iva_stress_pipeline-4.3.8_x86_64.run
#pip install argparse aenum munkres thop loguru lazy_loader onnx==1.18.0 onnxoptimizer
#echo 'export GST_PLUGIN_PATH=/usr/local/corex/lib64/plugins:${GST_PLUGIN_PATH}' >> ~/.bashrc
#echo 'export LD_LIBRARY_PATH=/usr/local/corex/lib64:/usr/local/openmpi/lib:/usr/local/corex/lib64/python3/dist-packages/tvm:/usr/local/corex/lib64/python3/dist-packages/ixrt/lib:/usr/local/lib:${LD_LIBRARY_PATH}' >> ~/.bashrc
#echo 'export PATH=/usr/local/corex/bin:/usr/local/corex/lib64/python3/dist-packages/bin:/usr/local/openmpi/bin:${PATH}' >> ~/.bashrc
#source /root/.bashrc
# gst-inspect-1.0 | grep Gst
ixstream_vpudecode: Gst-IxVpuDecode: Gst-IxVpuDecode plugin
ixstream_jpudecode: Gst-IxJpuDecode: Gst-IxJpuDecode plugin
ixstream_analytics: Gst-IxAnalytics: Gst-IxAnalytics plugin
ixstream_osd: Gst-IxOsd: Gst-IxOsd plugin
ixstream_preprocess: Gst-IxPreprocess: Gst-IxInfer plugin
ixstream_streammux: Gst-IxStreamMux: Gst-IxStreamMux plugin
ixstream_infer: Gst-IxInfer: Gst-IxInfer plugin
ixstream_converter: Gst-IxConverter: Gst-IxConverter plugin
ixstream_tracker: Gst-IxTracker: Gst-IxTracker plugin
ixstream_vpuencode: Gst-IxVpuEncode: Gst-IxVpuEncode plugin
ixstream_tiler: Gst-IxMultiStreamTiler: Gst-IxMultiStreamTiler plugin
ixstream_streamdemux: Gst-IxStreamDemux: Gst-IxStreamDemux plugin
ixstream_h264encode: Gst-IxH264Encode: Gst-IxH264Encode plugin
ixstream_jpuencode: Gst-IxJpuEncode: Gst-IxJpuEncode plugin
ixstream_segvisual: Gst-IxSegVisual: Gst-IxSegVisual plugin