cc1234 commited on
Commit
0c7bdfe
1 Parent(s): f4c2a7f

add normalization

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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