Spaces:
Running
Running
add normalization
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def image_search_performer(image, threshold=20.0, results=3):
|
|
36 |
|
37 |
image_array = np.array(image)
|
38 |
|
39 |
-
face = DeepFace.represent(img_path = image_array, detector_backend='retinaface', model_name='Facenet512')[0]['embedding']
|
40 |
return search_performer(face, threshold, results)
|
41 |
|
42 |
|
|
|
36 |
|
37 |
image_array = np.array(image)
|
38 |
|
39 |
+
face = DeepFace.represent(img_path = image_array, detector_backend='retinaface', model_name='Facenet512', normalization="Facenet2018")[0]['embedding']
|
40 |
return search_performer(face, threshold, results)
|
41 |
|
42 |
|