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:demos:densenet [2024/12/03 02:10] louis |
products:sbc:vim4:npu:demos:densenet [2025/01/08 22:22] (current) louis |
||
---|---|---|---|
Line 28: | Line 28: | ||
==== Get the conversion tool ==== | ==== Get the conversion tool ==== | ||
- | Download The conversion tool from [[gl> | + | Download The conversion tool from [[gh> |
```shell | ```shell | ||
- | $ git clone https://gitlab.com/ | + | $ git clone https://github.com/ |
- | ``` | + | |
- | + | ||
- | ```shell | + | |
- | $ git lfs install | + | |
- | $ git lfs clone https:// | + | |
$ cd vim4_npu_sdk | $ cd vim4_npu_sdk | ||
+ | $ git lfs pull | ||
$ ls | $ ls | ||
adla-toolkit-binary | adla-toolkit-binary | ||
Line 47: | Line 43: | ||
<WRAP important> | <WRAP important> | ||
- | If your kernel is older than 241129, please use version before tag ddk-3.4.7.7. | + | If your kernel is older than 241129, please use branch npu-ddk-1.7.5.5 |
</ | </ | ||
Line 79: | Line 75: | ||
``` | ``` | ||
- | Enter '' | + | Enter '' |
```bash convert_adla.sh | ```bash convert_adla.sh | ||
Line 100: | Line 96: | ||
--inference-input-type float32 \ | --inference-input-type float32 \ | ||
--inference-output-type float32 \ | --inference-output-type float32 \ | ||
- | --quantize-dtype | + | --quantize-dtype |
--channel-mean-value " | --channel-mean-value " | ||
--source-file ./ | --source-file ./ | ||
Line 139: | Line 135: | ||
=== Picture input demo === | === Picture input demo === | ||
- | Put '' | + | Put '' |
```shell | ```shell | ||
Line 150: | Line 146: | ||
# Run | # Run | ||
- | $ ./ | + | $ ./ |
``` | ``` | ||