This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
products:sbc:vim3:npu:npu-sdk [2023/09/11 03:45] hyphop [Conversion Parameters] |
products:sbc:vim3:npu:npu-sdk [2023/09/15 11:49] sravan [Conversion Parameters] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~tag> | + | ~~tag> |
====== NPU SDK Usage ====== | ====== NPU SDK Usage ====== | ||
- | ===== Introduction ===== | + | Basic information and examples about how to use Amlogic NPU SDK for VIM3 |
- | This document is an introduction to the structure of the NPU SDK. | + | /*===== Introduction ===== |
+ | This document is an introduction to the structure of the NPU SDK. | ||
+ | */ | ||
===== Get SDK ===== | ===== Get SDK ===== | ||
Line 14: | Line 16: | ||
```shell | ```shell | ||
$ mkdir workspace && cd workspace | $ mkdir workspace && cd workspace | ||
- | $ git clone --recursive https:// | + | $ git clone --recursive https:// |
``` | ``` | ||
===== SDK Structure ===== | ===== SDK Structure ===== | ||
- | Enter the SDK directory, | + | Enter inside |
```shell | ```shell | ||
Line 30: | Line 32: | ||
``` | ``` | ||
- | acuity-toolkit | + | acuity-toolkit |
- | android_sdk | + | android_sdk |
- | docs #Conversion related documents collection | + | docs # Conversion-related documents collection |
``` | ``` | ||
- | < | + | < |
- | Since all linux codes have been supports local compiled, host compilation is no longer supported. Therefore, the contents of '' | + | Since all linux code can now be locally |
</ | </ | ||
Line 52: | Line 54: | ||
``` | ``` | ||
- | 1. bin # | + | bin # Conversion is a collection of various tools used, most of which are not open source. |
- | 2. demo #Conversion script directory, convert AI model location | + | demo # Conversion script directory, convert AI model location |
- | 3. demo_hybird | + | demo_hybird |
- | 4. mulity_input_demo | + | mulity_input_demo |
- | 5. python | + | python |
- | 6. ReadMe.txt | + | ReadMe.txt |
- | 7. requirements.txt | + | requirements.txt |
``` | ``` | ||
Line 89: | Line 91: | ||
Here, '' | Here, '' | ||
- | ==== Conversion | + | ==== Conversion |
The conversion script is in the '' | The conversion script is in the '' | ||
Line 105: | Line 107: | ||
``` | ``` | ||
- | Use scripts to convert | + | Use these scripts to convert |
```shell | ```shell | ||
Line 112: | Line 114: | ||
``` | ``` | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
* '' | * '' | ||
Line 121: | Line 123: | ||
$ cd aml_npu_sdk/ | $ cd aml_npu_sdk/ | ||
$ ls | $ ls | ||
- | BUILD | + | BUILD |
- | main.c | + | makefile.linux |
+ | mobilenettf.vcxproj | ||
+ | main.c | ||
+ | mobilenet_tf.nb | ||
+ | nbg_meta.json | ||
+ | vnn_global.h | ||
+ | vnn_mobilenettf.h | ||
+ | vnn_post_process.h | ||
+ | vnn_pre_process.h | ||
+ | vnn_mobilenettf.c | ||
+ | vnn_post_process.c | ||
+ | vnn_pre_process.c | ||
``` | ``` | ||
<WRAP important > | <WRAP important > | ||
- | If your model' | + | If your model' |
</ | </ | ||
Line 132: | Line 145: | ||
For the conversion parameters and settings, please refer to: | For the conversion parameters and settings, please refer to: | ||
- | * [[gh> | + | * [[gh> |
+ | * [[gh> | ||