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:facenet [2023/09/18 01:44] sravan |
products:sbc:vim4:npu:demos:facenet [2024/01/04 21:24] (current) louis old revision restored (2023/09/20 01:13) |
||
---|---|---|---|
Line 17: | Line 17: | ||
Follow Docker official documentation to install Docker: [[https:// | Follow Docker official documentation to install Docker: [[https:// | ||
- | Then fetch the prebuilt NPU Docker | + | Then fetch the prebuilt NPU Docker |
```shell | ```shell | ||
Line 52: | Line 52: | ||
``` | ``` | ||
- | Create a python | + | Create a Python |
```python export.py | ```python export.py | ||
Line 97: | Line 97: | ||
``` | ``` | ||
- | Run '' | + | Run '' |
```shell | ```shell | ||
Line 124: | Line 124: | ||
=== Picture input demo === | === Picture input demo === | ||
- | There are two modes of this demo. One is converting face images into feature vectors and saving vectors in face library. Another is comparing input face image with faces in library and outputting Euclidean distance and cosine similarity. | + | There are two modes of this demo. One is converting face images into feature vectors and saving vectors in the face library. Another is comparing input face image with faces in the library and outputting Euclidean distance and cosine similarity. |
Put '' | Put '' | ||
Line 130: | Line 130: | ||
```shell | ```shell | ||
# Compile | # Compile | ||
- | $ cd vim4_npu_applications/ | + | $ cd vim4_npu_applications/ |
$ mkdir build | $ mkdir build | ||
$ cd build | $ cd build | ||
Line 144: | Line 144: | ||
```shell | ```shell | ||
# Run mode 2 | # Run mode 2 | ||
- | $ sudo ./facenet -m ../ | + | $ sudo ./facenet -m ../data/model/ |
``` | ``` | ||