This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:edge2:npu:demos:facenet [2023/08/25 06:23] louis |
products:sbc:edge2:npu:demos:facenet [2025/04/09 23:38] (current) louis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Demo6 - Facenet ====== | + | ~~tag> NPU FaceNet Edge2 PyTorch~~ |
- | ===== Get Source Code ===== | + | ====== FaceNet PyTorch Edge2 Demo - 6 ====== |
- | The codes we use. | + | {{indexmenu_n> |
+ | |||
+ | ===== 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 Edge2. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Train Model ===== | ||
+ | |||
+ | The codes we use [[gh> | ||
```shell | ```shell | ||
Line 132: | Line 144: | ||
==== Get source code ==== | ==== Get source code ==== | ||
- | Clone the source code form our [[gh> | + | Clone the source code from our [[gh> |
```shell | ```shell |