Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:npu:demos:facenet

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:vim4:npu:demos:facenet [2025/01/08 22:31]
louis
products:sbc:vim4:npu:demos:facenet [2025/06/11 22:05] (current)
louis
Line 6: Line 6:
  
 {{indexmenu_n>6}} {{indexmenu_n>6}}
 +
 +===== Introduction =====
 +
 +FaceNet is a face recognition model. It will convert a face image into a feature map. Compare the feature map between image and face database. Here are two judgment indicators, cosine similarity and Euclidean distance. The closer the cosine similarity is to 1 and the closer the Euclidean distance is to 0, the more similar is between two faces.
 +
 +Here takes **lin_1.jpg** as example. Inference results on VIM4.
 +
 +{{:products:sbc:vim4:npu:demos:facenet-demo-output.webp?400|}}
 +
 ===== Get Source Code ===== ===== Get Source Code =====
  
Line 163: Line 172:
 $ ./facenet -m ../data/model/facenet_int8.adla -p ../data/img/lin_2.jpg $ ./facenet -m ../data/model/facenet_int8.adla -p ../data/img/lin_2.jpg
 ``` ```
- 
-{{:products:sbc:vim4:npu:demos:facenet-demo-output.webp?400|}} 
  
 Here are two comparison methods, **Euclidean distance** and **cosine similarity**. Here are two comparison methods, **Euclidean distance** and **cosine similarity**.
Last modified: 2025/06/11 22:05 by louis