Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:npu:demos:retinaface

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim4:npu:demos:retinaface [2024/12/03 02:35]
louis
products:sbc:vim4:npu:demos:retinaface [2026/04/02 02:47] (current)
nick
Line 6: Line 6:
  
 {{indexmenu_n>5}} {{indexmenu_n>5}}
 +
 +===== Introduction =====
 +
 +RetinaFace is a face detection model. It can draw five key points on each face, including two eyes, nose and two corners of mouth.
 +
 +Inference results on VIM4.
 +
 +{{:products:sbc:vim4:npu:demos:retinaface-demo-output.webp?800|}}
 +
 +**Inference speed test**: USB camera about **78ms** per frame.
 +
 ===== Get source code ===== ===== Get source code =====
  
Line 42: Line 53:
 ``` ```
  
-===== Get Convert Tool =====+==== Get Convert Tool ====
  
-Download Tool from [[gl>khadas/vim4_npu_sdk]].+You can find the SDK here: [[dl>products/vim4/tools/npu-sdk/]]
  
 ```shell ```shell
-git lfs install +wget https://dl.khadas.com/products/vim4/tools/npu-sdk/vim4_npu_sdk-ddk-3.4.7.7-250508.tgz 
-$ git lfs clone https://gitlab.com/khadas/vim4_npu_sdk.git +$ tar xvzf vim4_npu_sdk-ddk-3.4.7.7-250508.tgz 
-$ cd vim4_npu_sdk+$ cd vim4_npu_sdk-ddk-3.4.7.7-250508
 $ ls $ ls
 adla-toolkit-binary  adla-toolkit-binary-3.1.7.4  convert-in-docker.sh  Dockerfile  docs  README.md adla-toolkit-binary  adla-toolkit-binary-3.1.7.4  convert-in-docker.sh  Dockerfile  docs  README.md
 ``` ```
  
-  * ''adla-toolkit-binary/docs'' - SDK documentations+  * ''docs'' - SDK documentations
   * ''adla-toolkit-binary/bin'' - SDK tools required for model conversion   * ''adla-toolkit-binary/bin'' - SDK tools required for model conversion
   * ''adla-toolkit-binary/demo'' - Conversion examples   * ''adla-toolkit-binary/demo'' - Conversion examples
 +  * ''adla-toolkit-binary/python'' - KSNN conversion examples
  
 <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.
 </WRAP> </WRAP>
  
Line 154: Line 166:
 $ ./retinaface -m ../data/retinaface_int8.adla -p ../data/timg.jpg $ ./retinaface -m ../data/retinaface_int8.adla -p ../data/timg.jpg
 ``` ```
- 
-{{:products:sbc:vim4:npu:demos:retinaface-demo-output.webp?800|}} 
  
 === Camera input demo === === Camera input demo ===
Last modified: 2024/12/03 02:35 by louis