演示 5:vck190_4mipi - 2.5 简体中文

Vitis AI Library 用户指南 (UG1354)

Document ID
UG1354
Release Date
2022-06-15
Version
2.5 简体中文

AI 模型和性能

表 1. vck190_4mipi 的 AI 模型和性能演示
通道 模型名称 性能 (fps)
0 sp_net 30
ssd_pedestrian_pruned_0_97
1 ssd_pedestrian_pruned_0_97 30
2 densebox_640_360 30
3 densebox_640_360 30

MIPI 摄像头设置

  1. 此处下载 ZU4 SC 镜像,并遵循 https://china.xilinx.com/member/vck190_headstart/Update_System_Controller_uSD_Card_Instructions.pdf 更新 ZU4 SC。
  2. 此处下载 BoardUI 工具
    注释: 请确保您拥有帐户用于下载上述资源。您可使用自己的赛灵思帐户或创建新帐户。
  3. 请参阅 https://xilinx.github.io/vck190-base-trd/2021.1/html/run/run-setup.html#:~:text=Board%20jumper%20and%20switch%20settings 了解如何设置开发板。
  4. 请参阅 https://xilinx.github.io/vck190-base-trd/2021.1/html/run/run-setup.html#:~:text=Vadj%20settings,了解如何设置 Vadj
    注释: 确保正确设置 Vadj 1.2V。

构建和运行演示

  • 在主机中构建演示,并将程序复制到目标开发板上。
    cd Vitis-AI/examples/Vitis-AI-Library/apps/vck190_4mipi
    bash build_4mipi_spnet.sh
    scp -r vck190_4mipi root@IP_OF_BOARD:~/
  • 初始化摄像头。
    # /etc/init.d/xserver-nodm stop
    # sh quad_640x360_bgr.sh
  • 修改摄像头的 ISP 参数
    
    v4l2-ctl -d /dev/v4l-subdev11 -c ar0231_green_balance=170
    v4l2-ctl -d /dev/v4l-subdev12 -c ar0231_green_balance=170
    v4l2-ctl -d /dev/v4l-subdev13 -c ar0231_green_balance=170
    v4l2-ctl -d /dev/v4l-subdev14 -c ar0231_green_balance=170
    v4l2-ctl -d /dev/v4l-subdev11 -c ar0231_blue_balance=500
    v4l2-ctl -d /dev/v4l-subdev11 -c ar0231_red_balance=140
    v4l2-ctl -d /dev/v4l-subdev11 -c ar0231_exposure=1000
    v4l2-ctl -d /dev/v4l-subdev11 -c ar0231_digital_gain=800
    v4l2-ctl -d /dev/v4l-subdev12 -c ar0231_blue_balance=500
    v4l2-ctl -d /dev/v4l-subdev12 -c ar0231_red_balance=140
    v4l2-ctl -d /dev/v4l-subdev12 -c ar0231_exposure=1000
    v4l2-ctl -d /dev/v4l-subdev12 -c ar0231_digital_gain=800
    v4l2-ctl -d /dev/v4l-subdev13 -c ar0231_blue_balance=500
    v4l2-ctl -d /dev/v4l-subdev13 -c ar0231_red_balance=140
    v4l2-ctl -d /dev/v4l-subdev13 -c ar0231_exposure=1000
    v4l2-ctl -d /dev/v4l-subdev13 -c ar0231_digital_gain=800
    v4l2-ctl -d /dev/v4l-subdev14 -c ar0231_blue_balance=500
    v4l2-ctl -d /dev/v4l-subdev14 -c ar0231_red_balance=140
    v4l2-ctl -d /dev/v4l-subdev14 -c ar0231_exposure=1000
    v4l2-ctl -d /dev/v4l-subdev14 -c ar0231_digital_gain=800
  • 运行演示
    sh run_4mipi_spnet.sh
    图 1. vck190_4mipi 演示图