This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:vim4:npu:npu-sdk [2023/08/30 03:04] louis |
products:sbc:vim4:npu:npu-sdk [2024/06/06 21:54] nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~tag> | ||
- | ====== 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 [[../configurations/identify-version|check VIM4 the version]] |
</ | </ | ||
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 | ||
- | $ cd vim4_npu_sdk | + | docker pull numbqq/npu-vim4 |
- | $ docker pull yanwyb/npu:v1 | + | |
- | $ docker run -it --name | + | |
- | -v / | + | |
- | -v / | + | |
- | yanwyb/ | + | |
``` | ``` | ||
Line 31: | Line 29: | ||
$ cd vim4_npu_sdk | $ cd vim4_npu_sdk | ||
$ ls | $ ls | ||
- | bin demo | + | adla-toolkit-binary |
``` | ``` | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
===== Convert Model ===== | ===== Convert Model ===== | ||
Line 43: | Line 41: | ||
```shell | ```shell | ||
- | $ khadas@2655b6cbbc01: | + | ./convert-in-docker.sh |
- | $ khadas@2655b6cbbc01: | + | |
``` | ``` | ||
Line 50: | Line 47: | ||
```shell | ```shell | ||
- | $ khadas@2655b6cbbc01: | + | ~/vim4_npu_sdk$ ls adla-toolkit-binary/ |
caffe_output | caffe_output | ||
convert_adla.sh | convert_adla.sh | ||
Line 56: | 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 ==== |