List ALL the models, on 2025-02-26 01:30:43 JST
Browse files
README.md
CHANGED
@@ -10,6 +10,28 @@ tags:
|
|
10 |
|
11 |
ONNX models from [insightface project](https://github.com/deepinsight/insightface).
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# Available Models
|
14 |
|
15 |
We evaluated all these models with some evaluation datasets on face recognition.
|
|
|
10 |
|
11 |
ONNX models from [insightface project](https://github.com/deepinsight/insightface).
|
12 |
|
13 |
+
# How To Use
|
14 |
+
|
15 |
+
```shell
|
16 |
+
pip install dghs-realutils>=0.1.0
|
17 |
+
```
|
18 |
+
|
19 |
+
```python
|
20 |
+
from realutils.face.insightface import isf_face_batch_similarity, isf_analysis_faces, isf_faces_visualize
|
21 |
+
|
22 |
+
image_path = "/your/image/file"
|
23 |
+
# get the analysis all the faces
|
24 |
+
faces = isf_analysis_faces(image_path)
|
25 |
+
print(faces)
|
26 |
+
|
27 |
+
# compare them
|
28 |
+
print(isf_face_batch_similarity([face.embedding for face in faces]))
|
29 |
+
|
30 |
+
# visualize it
|
31 |
+
isf_faces_visualize(image_path, faces).show()
|
32 |
+
|
33 |
+
```
|
34 |
+
|
35 |
# Available Models
|
36 |
|
37 |
We evaluated all these models with some evaluation datasets on face recognition.
|