Vitis-AI Integration : Setup error @ Edge hardware setup

Hi @jtuyls / @mak ,

I am trying to setup the DPU-PYNQ on target device with fresh and I have followed the steps which was mentioned here.

  1. Download the Pynq v2.5 image for your target (use Z1 or Z2 for Ultra96 target depending on board version) Link to image: Release Glasgow Release · Xilinx/PYNQ · GitHub
  2. Follow Pynq instructions for setting up the board: pynq setup
  3. After connecting to the board, make sure to run as root. Execute su
  4. Set up DPU on Pynq by following the steps here: DPU Pynq setup
  5. Run the following command to download the DPU bitstream:

python3 -c ‘from pynq_dpu import DpuOverlay ; overlay = DpuOverlay(“dpu.bit”)’

  1. Check whether the DPU kernel is alive:

dexplorer -w

At step 4, I am seeing following error while running the “python3 install pynq-dpu” command

Error:

Collecting pynq-dpu

looks like I am missing something here, Can you please help on this?

Note:

  1. Now I have tried with and without 2.6 upgrade step and still I am seeing same error.
  2. Last time somehow I was able to build and run resnet50 model on target device.

Thanks and Regards, Raju

Hi @mak / @jtuyls ,

Above issue was resolve with following changes in the Set up DPU on Pynq phase.

git clone --branch v1.1.2 --recursive --shallow-submodules https://github.com/Xilinx/DPU-PYNQ.git
cd DPU-PYNQ/upgrade
sudo make
sudo pip3 install pynq-dpu==1.1.2

Kindly update these changes into Vitis-AI Integration TVM document .

Thanks and Regards, Raju

Thanks for reporting this issue, @kvaju.454 ! Your fix would also work but I updated the instructions to use the Pynq 2.6 image to make the latest pynq-dpu version work, see this PR: [BYOC][VitisAI] Fix issue in Vitis AI codegen out tensor names matching & update docs and docker by jtuyls · Pull Request #7350 · apache/tvm · GitHub.