Spaces:
Runtime error
Runtime error
adjust embeddings
Browse files- app.py +2 -7
- db/ds_model_deepid_detector_opencv_aligned_normalization_base_expand_0.pkl +3 -0
- db/ds_model_dlib_detector_opencv_aligned_normalization_base_expand_0.pkl +3 -0
- db/ds_model_ghostfacenet_detector_opencv_aligned_normalization_base_expand_0.pkl +3 -0
- db/ds_model_openface_detector_opencv_aligned_normalization_base_expand_0.pkl +3 -0
- db/ds_model_sface_detector_opencv_aligned_normalization_base_expand_0.pkl +3 -0
app.py
CHANGED
@@ -29,13 +29,7 @@ embedding_backends = [
|
|
29 |
"VGG-Face",
|
30 |
"Facenet",
|
31 |
"Facenet512",
|
32 |
-
"OpenFace",
|
33 |
-
"DeepFace",
|
34 |
-
"DeepID",
|
35 |
"ArcFace",
|
36 |
-
"Dlib",
|
37 |
-
"SFace",
|
38 |
-
"GhostFaceNet",
|
39 |
]
|
40 |
|
41 |
|
@@ -106,8 +100,9 @@ with gr.Blocks() as demo:
|
|
106 |
|
107 |
with gr.Tab("Identify People in One Image"):
|
108 |
embedding_backendchoice = gr.Radio(choices=embedding_backends,label='Embedding Backend:',container=True,value='ArcFace')
|
109 |
-
|
110 |
def identify_in_one_image(imgfile, embedding_backendchoice):
|
|
|
111 |
oneimageresults = DeepFace.find(img_path=imgfile, db_path="db", model_name=embedding_backendchoice)
|
112 |
oneimageresults = pd.concat(oneimageresults)
|
113 |
for i, found_face in oneimageresults.iterrows():
|
|
|
29 |
"VGG-Face",
|
30 |
"Facenet",
|
31 |
"Facenet512",
|
|
|
|
|
|
|
32 |
"ArcFace",
|
|
|
|
|
|
|
33 |
]
|
34 |
|
35 |
|
|
|
100 |
|
101 |
with gr.Tab("Identify People in One Image"):
|
102 |
embedding_backendchoice = gr.Radio(choices=embedding_backends,label='Embedding Backend:',container=True,value='ArcFace')
|
103 |
+
|
104 |
def identify_in_one_image(imgfile, embedding_backendchoice):
|
105 |
+
oneimageannotations = []
|
106 |
oneimageresults = DeepFace.find(img_path=imgfile, db_path="db", model_name=embedding_backendchoice)
|
107 |
oneimageresults = pd.concat(oneimageresults)
|
108 |
for i, found_face in oneimageresults.iterrows():
|
db/ds_model_deepid_detector_opencv_aligned_normalization_base_expand_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4fc2c60aba0984c3b5d53df6c7b6ebe720d20649152c2bb48fdb8910fdf6cae2
|
3 |
+
size 9397
|
db/ds_model_dlib_detector_opencv_aligned_normalization_base_expand_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
db/ds_model_ghostfacenet_detector_opencv_aligned_normalization_base_expand_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b384db53b48c3641ca1a319a11f4c39653d65db68ed6058cade070d8df34a512
|
3 |
+
size 28405
|
db/ds_model_openface_detector_opencv_aligned_normalization_base_expand_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08568375dcb387c16c10eb3f805cb7721d4dab101601e5cc2109b964485063e3
|
3 |
+
size 7669
|
db/ds_model_sface_detector_opencv_aligned_normalization_base_expand_0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dcae50b37882e8ff3834ce357b2b4c00d75bbd9e0ebc5cc039e307617bef9909
|
3 |
+
size 7669
|