Spaces:
Runtime error
Runtime error
Shafeek Saleem
commited on
Commit
·
3bc7966
1
Parent(s):
3d3bc06
ssf
Browse files- utils/inference.py +2 -1
utils/inference.py
CHANGED
|
@@ -19,7 +19,8 @@ def recognize(image,tolerance):
|
|
| 19 |
st.write("face_encoding")
|
| 20 |
st.write(face_encoding.shape)
|
| 21 |
st.write("known_encoding")
|
| 22 |
-
st.write(known_encoding
|
|
|
|
| 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'
|
|
|
|
| 19 |
st.write("face_encoding")
|
| 20 |
st.write(face_encoding.shape)
|
| 21 |
st.write("known_encoding")
|
| 22 |
+
st.write(len(known_encoding))
|
| 23 |
+
st.write(known_encoding[0].shape)
|
| 24 |
matches = face_recognition.compare_faces(known_encoding,face_encoding,tolerance=tolerance)
|
| 25 |
# distance = face_recognition.face_distance(known_encoding,face_encoding)
|
| 26 |
name = 'Unknown'
|