Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -109,6 +109,8 @@ def verify(image, model, person, validation_image=None):
|
|
109 |
|
110 |
face = preprocess_image_siamese(temp_face_path)
|
111 |
validation_face = preprocess_image_siamese(validation_temp_image_path)
|
|
|
|
|
112 |
|
113 |
with torch.no_grad():
|
114 |
output = siamese(face, validation_face)
|
@@ -130,6 +132,8 @@ def verify(image, model, person, validation_image=None):
|
|
130 |
|
131 |
face = preprocess_image_svm(face)
|
132 |
|
|
|
|
|
133 |
hog = extract_hog_features(face)
|
134 |
|
135 |
hog_pca = pca.transform([hog])
|
|
|
109 |
|
110 |
face = preprocess_image_siamese(temp_face_path)
|
111 |
validation_face = preprocess_image_siamese(validation_temp_image_path)
|
112 |
+
|
113 |
+
st.image([face, validation_face], caption=["Face 1", "Face 2"], width=200)
|
114 |
|
115 |
with torch.no_grad():
|
116 |
output = siamese(face, validation_face)
|
|
|
132 |
|
133 |
face = preprocess_image_svm(face)
|
134 |
|
135 |
+
st.image(face, caption="Face 1", width=200)
|
136 |
+
|
137 |
hog = extract_hog_features(face)
|
138 |
|
139 |
hog_pca = pca.transform([hog])
|