To use the library, you need to prepare the development board and
cross-compilation environment. Pay attention to the header files, library files, and
model library files.
Note: The files in the development environment must match the version provided
in the
Vitis™
Unified Software Development
Environment. These libraries can be executed on the ZCU102, ZCU104, and VCK190
evaluation boards, the
Alveo™
U50LV and U55C
data center accelerator card, and the
Versal®
ACAP VCK5000 data center accelerator cards.
- Select an image. For example,
cv::Mat
. - Call the
create
method provided by the corresponding library to get a class instance. If you set theneed_preprocess
variable tofalse
, the model will not decrease its mean and scale. - Call the
getInputWidth()
and thegetInputHeight()
functions to get the network needed column and row values of the input image. - Resize image to
inputWidth x inputHeight
. - Call
run()
to get the result of the network.
For details about the Programming APIs, see API Reference.
Also, for the Vitis AI APIs, see the Vitis AI User Guide (UG1414). You can download it from the Xilinx website.