This repository holds the PYNQ DPU overlay. Specifically, the Vitis AI DPU is included in the accompanying bitstreams with example training and inference notebooks ready to run on PYNQ enabled platforms. Steps are also included to rebuild the designs in Vitis and can be ported onto PYNQ-enabled Zynq Ultrascale+ boards.
In this repository, we currently support the following boards:
- Ultra96
- ZCU104
- KV260
Other Zynq Ultrascale+ boards may be supported with few adjustments. This repository supports Vitis AI 1.4.0.
To install the pynq-dpu on your board, simply run:
pip3 install pynq-dpu --no-build-isolation
Then go to your jupyter notebook home folder and fetch the notebooks:
cd $PYNQ_JUPYTER_NOTEBOOKS
pynq get-notebooks pynq-dpu -p .
This will make sure the desired notebooks shows up in your jupyter notebook folder.
You are ready to go! Now in jupyter, you can explore the notebooks
in pynq-dpu
folder.
The DPU IP comes from the Vitis Ai Github. If you want to rebuild the hardware project, you can refer to the instructions for DPU Hardware Design.
In short, the following files will be generated in boards/<Board>
folder:
dpu.bit
dpu.hwh
dpu.xclbin
These are the overlay files that can be used by the pynq_dpu
package.
DPU models are available on the Vitis AI GitHub repository model zoo, where you can find a model-list containing quantized models, as well as pre-compiled .xmodel files that can be directly loaded into your DPU application.
If you want to recompile the DPU models or train your own network, you can refer to the instructions for DPU models.
Copyright (C) 2021 Xilinx, Inc
SPDX-License-Identifier: Apache-2.0