STEP 3 : How to run the test code

ทำการรัน Application point pillar ด้วย VScode ผ่านการ SSH

  1. ทำการ optimize โมดูล DPU ให้เกิดข้อผิดพลาดในการแสดงผลลดลง

VScode SSH terminal
# Fix bug
$ cd ~/dpu_sw_optimize/zynqmp
$ source ./zynqmp_dpu_optimize.sh

โดยทำการ รัน script นี้จะแก้ไขปัญหาสองอย่างคือ

  • แก้ไขพื้นที่ partition rootfs ให้เหมาะสมกับการใช้งาน

  • แก้ปัญหา Qos ในการใช้งานหน่วยความจำ DDR เพื่อให้สามารถทำงานในการแสดงภาพได้

  1. ทำการ Compile code ที่ได้ทำการแก้ไข

VScode SSH terminal
# Compile program
$ cd ~/Vitis-AI/demo/Vitis-AI-Library/samples/pointpillars
$ sh build.sh
  1. ทำการรันโปรแกรมที่ Compile เสร็จเรียบร้อยแล้ว

VScode SSH terminal
# Run code
$ env XLNX_POINTPILLARS_PRE_MT=1 ./test_bin_pointpillars  pointpillars_kitti_12000_0_pt pointpillars_kitti_12000_1_pt sample_pointpillars.bin  sample_pointpillars.png
  • Output result (sample)

output : 
0       18.456533 4.032932 -1.682877 1.771039 4.524079 1.512004 1.671563     0.904651
0       34.541061 1.562399 -1.557331 1.538705 3.495937 1.431536 1.741875     0.904651
1       21.353041 -2.429055 -1.600262 0.590698 1.917939 1.757244 4.656905     0.835484
0       10.950532 4.672932 -1.657603 1.716550 4.384888 1.753955 1.632500     0.798187
  • ทดสอบประสิทธิภาพ

VScode SSH terminal
# Test performance
$ env XLNX_POINTPILLARS_PRE_MT=1 ./test_performance_pointpillars pointpillars_kitti_12000_0_pt  pointpillars_kitti_12000_1_pt  -t 1 -s 30 test_performance_pointpillars.list

Last updated

Assoc. Prof. Wiroon Sriborrirux, Founder of Advance Innovation Center (AIC) and Bangsaen Design House (BDH), Electrical Engineering Department, Faculty of Engineering, Burapha University