Spaces:
Runtime error
Runtime error
Shafeek Saleem
commited on
Commit
•
cc796ce
1
Parent(s):
68c2ecc
bug fixed
Browse files
.idea/sonarlint/issuestore/8/7/87caad19f17efd4c3e8264659f523744ffa94ed8
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
|
2 |
+
Gpython:S1066"/Merge this if statement with the enclosing one.(����
|
dataset/database.pkl → .idea/sonarlint/issuestore/c/6/c615f8a48e6d6fc5c9785bce3642788570175d6c
RENAMED
File without changes
|
.idea/sonarlint/issuestore/index.pb
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87862bf18d4db63602fc54955aabfc69f91a027a381476ed3f14861ad89db28c
|
3 |
+
size 254
|
utils/inference.py
CHANGED
@@ -16,6 +16,10 @@ def recognize(image,tolerance):
|
|
16 |
face_locations = face_recognition.face_locations(image)
|
17 |
face_encodings = face_recognition.face_encodings(image,face_locations)
|
18 |
for (top,right,bottom,left), face_encoding in zip(face_locations,face_encodings):
|
|
|
|
|
|
|
|
|
19 |
matches = face_recognition.compare_faces(known_encoding,face_encoding,tolerance=tolerance)
|
20 |
# distance = face_recognition.face_distance(known_encoding,face_encoding)
|
21 |
name = 'Unknown'
|
|
|
16 |
face_locations = face_recognition.face_locations(image)
|
17 |
face_encodings = face_recognition.face_encodings(image,face_locations)
|
18 |
for (top,right,bottom,left), face_encoding in zip(face_locations,face_encodings):
|
19 |
+
st.write("face_encoding")
|
20 |
+
st.write(face_encoding.shape)
|
21 |
+
st.write("known_encoding")
|
22 |
+
st.write(known_encoding.shape)
|
23 |
matches = face_recognition.compare_faces(known_encoding,face_encoding,tolerance=tolerance)
|
24 |
# distance = face_recognition.face_distance(known_encoding,face_encoding)
|
25 |
name = 'Unknown'
|