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:vim4:npu:npu-sdk [2023/09/08 07:03] hyphop [NPU Model Convert] |
products:sbc:vim4:npu:npu-sdk [2024/04/18 04:33] nick [Get Convert Tool] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~tag> | ||
====== NPU Model Convert ====== | ====== NPU Model Convert ====== | ||
+ | |||
+ | {{indexmenu_n> | ||
<WRAP important > | <WRAP important > | ||
- | Only **New VIM4** supports NPU, you can check the version of your [[/VIM4]] here: [[products: | + | Only **New VIM4** supports NPU, you can [[../ |
</ | </ | ||
Line 10: | Line 13: | ||
</ | </ | ||
- | ===== Build Virtual | + | ===== Build Docker |
Follow Docker official docs to install Docker: [[https:// | Follow Docker official docs to install Docker: [[https:// | ||
- | Get Docker: | + | Follow the script below to get Docker |
```shell | ```shell | ||
- | $ docker pull yanwyb/npu:v1 | + | docker pull numbqq/npu-vim4 |
- | $ docker run -it --name | + | |
- | -v / | + | |
- | -v / | + | |
- | yanwyb/ | + | |
``` | ``` | ||
Line 27: | Line 26: | ||
```shell | ```shell | ||
- | $ git clone https:// | + | $ git clone https:// |
$ cd vim4_npu_sdk | $ cd vim4_npu_sdk | ||
$ ls | $ ls | ||
- | bin demo | + | adla-toolkit-binary |
``` | ``` | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
===== Convert Model ===== | ===== Convert Model ===== | ||
Line 42: | Line 41: | ||
```shell | ```shell | ||
- | $ khadas@2655b6cbbc01: | + | ./convert-in-docker.sh |
- | $ khadas@2655b6cbbc01: | + | |
``` | ``` | ||
Line 49: | Line 47: | ||
```shell | ```shell | ||
- | $ khadas@2655b6cbbc01: | + | ~/vim4_npu_sdk$ ls adla-toolkit-binary/ |
caffe_output | caffe_output | ||
convert_adla.sh | convert_adla.sh | ||
Line 55: | Line 53: | ||
Converted model is '' | Converted model is '' | ||
+ | |||
+ | <WRAP tip > | ||
+ | If you want to convert your own model, just modify script '' | ||
+ | </ | ||
+ | |||
==== Important parameters ==== | ==== Important parameters ==== |