faceplugin commited on
Commit
a86b2f7
1 Parent(s): 901e379

Update model

Browse files
Files changed (2) hide show
  1. .gitattributes +1 -0
  2. app.py +5 -3
.gitattributes CHANGED
@@ -1,5 +1,6 @@
1
  *.npy filter=lfs diff=lfs merge=lfs -text
2
  *.pth filter=lfs diff=lfs merge=lfs -text
 
3
  *.jpg filter=lfs diff=lfs merge=lfs -text
4
  *.png filter=lfs diff=lfs merge=lfs -text
5
  *.tar filter=lfs diff=lfs merge=lfs -text
 
1
  *.npy filter=lfs diff=lfs merge=lfs -text
2
  *.pth filter=lfs diff=lfs merge=lfs -text
3
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
4
  *.jpg filter=lfs diff=lfs merge=lfs -text
5
  *.png filter=lfs diff=lfs merge=lfs -text
6
  *.tar filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import sys
2
  sys.path.append('.')
3
- sys.path.append('./face_recognition')
4
  import os
5
  import io
6
  import cv2
@@ -14,13 +14,15 @@ import configparser
14
  import numpy as np
15
  from PIL import Image
16
 
17
- from face_recognition.match import match_1_1
 
 
18
 
19
  def face_recognition_on_file(file1, file2):
20
  img1 = cv2.imread(file1)
21
  img2 = cv2.imread(file2)
22
 
23
- response = match_1_1(img1, img2)
24
 
25
  return response
26
 
 
1
  import sys
2
  sys.path.append('.')
3
+ sys.path.append('./face_recognition1')
4
  import os
5
  import io
6
  import cv2
 
14
  import numpy as np
15
  from PIL import Image
16
 
17
+ # from face_recognition.match import match_1_1
18
+ from face_recognition1.run import match_image
19
+
20
 
21
  def face_recognition_on_file(file1, file2):
22
  img1 = cv2.imread(file1)
23
  img2 = cv2.imread(file2)
24
 
25
+ response = match_image(img1, img2)
26
 
27
  return response
28