NPU SDK is a collection of tools for converting AI models and compiling aml_npu_sdk
Get SDK
The SDK needs to be applied for by email, and an email will be sent to your mailbox after the application. application address
SDK directory structure description
Enter the SDK directory,
cd {workspace}/aml_npu_sdk |
The SDK is mainly divided into several SDK
, conversion tools
and compilation tools
, and docs
.
acuity-toolkit #Conversion tool , used to convert AI models |
Docs description
entre Docs directory,
cd {workspace}/aml_npu_sdk/docs/en |
The document records a series of processes from conversion to integration, as well as some common problems
1. 'Android&Linux_Compilation and Integration Guide_0.2.pdf' #Android&&linux compilation and integration guide, mainly explaining how to use the converted code |
Conversion tool description
acuity-toolkit
is the conversion tool directory,
cd {workspace}/aml_npu_sdk/acuity-toolkit |
The main directory of interest is conversion_scripts
1. bin #Conversion is a collection of various tools used, most of which are not open source. |
Dependent installation
The environment dependency package required by the conversion tool can be installed directly on the PC or installed through the virtual environment virtualenv
cd {workspace}/aml_npu_sdk/acuity-toolkit |
Among them, tensorflow==2.0.0
can be replaced by tensorflow==2.0.0a0
Conversion script usage
The conversion script is in the conversion_scripts
directory,
cd {workspace}/aml_npu_sdk/acuity-toolkit/conversion_scripts |
Use scripts to convert AI models
cd {workspace}/aml_npu_sdk/acuity-toolkit/conversion_scripts |
After the conversion is completed, you can see the converted code in the nbg_unify_xxxx
directory, here is the built-in model as an example
cd {workspace}/aml_npu_sdk/acuity-toolkit/conversion_scripts/nbg_unify_mobilenet_tf |
For the setting of conversion parameters, please refer to’Model Conversion Operation User Guide (0.6).pdf’ in Docs
linux SDK instructions
Enter the linux SDK directory
cd {workspace}/aml_npu_sdk/linux_sdk |
Here you can see a simple demo that has been converted, and various versions of the linux SDK.
1. demo #The executable file and source code of the converted inception model |
Enter linux_sdk
, you can see the main components of the sdk
cd {workspace}/aml_npu_sdk/linux_sdk/linux_sdk |
Mainly used parts:
1. `acuity-ovxlib-dev` #Mainly placed the `ovxlib` library needed for compilation |