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:retinaface [2024/11/07 20:19] louis |
products:sbc:vim4:npu:demos:retinaface [2025/01/08 22:29] (current) louis |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~tag> NPU RetinaFace VIM4 PyTorch~~ | ~~tag> NPU RetinaFace VIM4 PyTorch~~ | ||
+ | |||
+ | **Doc for version ddk-3.4.7.7** | ||
====== RetinaFace PyTorch VIM4 Demo - 5 ====== | ====== RetinaFace PyTorch VIM4 Demo - 5 ====== | ||
Line 40: | Line 42: | ||
``` | ``` | ||
- | ===== Get Convert Tool ===== | + | ==== Get Convert Tool ==== |
+ | |||
+ | Download Tool from [[gh> | ||
```shell | ```shell | ||
$ git lfs install | $ git lfs install | ||
- | $ git lfs clone https://gitlab.com/ | + | $ git lfs clone https://github.com/ |
$ cd vim4_npu_sdk | $ cd vim4_npu_sdk | ||
$ ls | $ ls | ||
- | adla-toolkit-binary | + | adla-toolkit-binary |
``` | ``` | ||
Line 53: | Line 57: | ||
* '' | * '' | ||
* '' | * '' | ||
- | ==== Get conversion tool ==== | ||
- | Download Tool from [[gl>khadas/ | + | <WRAP important> |
- | + | If your kernel is older than 241129, please use branch npu-ddk-1.7.5.5. | |
- | ```shell | + | </WRAP> |
- | $ git clone https:// | + | |
- | ``` | + | |
==== Convert ==== | ==== Convert ==== | ||
Line 100: | Line 101: | ||
--dtypes " | --dtypes " | ||
--inference-input-type float32 \ | --inference-input-type float32 \ | ||
- | --inference-output-type float32 \ | + | --inference-output-type float32 \ |
--quantize-dtype int8 --outdir onnx_output | --quantize-dtype int8 --outdir onnx_output | ||
--channel-mean-value " | --channel-mean-value " | ||
Line 124: | Line 125: | ||
$ git clone https:// | $ git clone https:// | ||
``` | ``` | ||
+ | |||
+ | <WRAP important> | ||
+ | If your kernel is older than 241129, please use version before tag ddk-3.4.7.7. | ||
+ | </ | ||
==== Install dependencies ==== | ==== Install dependencies ==== | ||
Line 147: | Line 152: | ||
# Run | # Run | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
+ | |||
+ | {{: | ||
=== Camera input demo === | === Camera input demo === | ||
Line 169: | Line 176: | ||
``` | ``` | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
Line 175: | Line 182: | ||
``` | ``` | ||
$ cd build | $ cd build | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
**TIP**: Replace 0 as the number for your camera device. Such as ''/ | **TIP**: Replace 0 as the number for your camera device. Such as ''/ | ||