Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2: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
products:sbc:edge2:npu:demos:retinaface [2023/09/20 03:12]
louis
products:sbc:edge2:npu:demos:retinaface [2025/04/09 23:33] (current)
louis
Line 5: Line 5:
 {{indexmenu_n>5}} {{indexmenu_n>5}}
  
-===== Get Source Code =====+===== 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 Edge2. 
 + 
 +{{:products:sbc:edge2:npu:demos:retinaface-result.jpg?800|}} 
 + 
 +**Inference speed test**: USB camera about **39ms** per frame. MIPI camera about **33ms** per frame. 
 + 
 +===== Train Model =====
  
 The codes we use [[gh>bubbliiiing/retinaface-pytorch]]. The codes we use [[gh>bubbliiiing/retinaface-pytorch]].
Line 172: Line 182:
 $ bash build.sh $ bash build.sh
  
-# Run+# Run USB camera 
 +$ cd install/retinaface_cap 
 +$ ./retinaface_cap data/model/retinaface.rknn usb 60 
 + 
 +# Run MIPI camera
 $ cd install/retinaface_cap $ cd install/retinaface_cap
-$ ./retinaface_cap data/model/retinaface.rknn 33+$ ./retinaface_cap data/model/retinaface.rknn mipi 42
 ``` ```
  
-''33'' is camera device index.+<WRAP info > 
 +''60'' and ''42'' are camera device index. 
 +</WRAP>
  
Last modified: 2025/04/09 23:33 by louis