This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:npu:npu-sdk [2023/10/18 05:45] sravan [NPU Model Convert] |
products:sbc:vim4:npu:npu-sdk [2025/01/09 20:24] (current) louis |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~tag> | ~~tag> | ||
- | ====== NPU Model Convert ====== | + | **Doc for version ddk-3.4.7.7** |
+ | |||
+ | ====== | ||
{{indexmenu_n> | {{indexmenu_n> | ||
Line 13: | Line 15: | ||
</ | </ | ||
- | ===== 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 30: | Line 28: | ||
```shell | ```shell | ||
- | $ git clone https://gitlab.com/ | + | $ git lfs install |
+ | $ git lfs clone https://github.com/ | ||
$ cd vim4_npu_sdk | $ cd vim4_npu_sdk | ||
$ ls | $ ls | ||
- | bin demo | + | adla-toolkit-binary |
``` | ``` | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
+ | |||
+ | <WRAP important> | ||
+ | If your kernel is older than 241129, please use branch npu-ddk-1.7.5.5. | ||
+ | </ | ||
===== Convert Model ===== | ===== Convert Model ===== | ||
Line 45: | Line 48: | ||
```shell | ```shell | ||
- | $ khadas@2655b6cbbc01: | + | bash convert-in-docker.sh normal |
- | $ khadas@2655b6cbbc01: | + | |
``` | ``` | ||
Line 52: | Line 54: | ||
```shell | ```shell | ||
- | $ khadas@2655b6cbbc01: | + | ~/vim4_npu_sdk$ ls adla-toolkit-binary/ |
caffe_output | caffe_output | ||
convert_adla.sh | convert_adla.sh | ||
Line 58: | Line 60: | ||
Converted model is '' | Converted model is '' | ||
+ | |||
+ | <WRAP tip > | ||
+ | If you want to convert your own model, just modify script '' | ||
+ | </ | ||
+ | |||
==== Important parameters ==== | ==== Important parameters ==== |