Spaces:
Runtime error
Runtime error
Testing
Browse files
app.py
CHANGED
@@ -191,7 +191,10 @@ def coompare_face_base64():
|
|
191 |
response.headers["Content-Type"] = "application/json; charset=utf-8"
|
192 |
return response
|
193 |
|
194 |
-
|
|
|
|
|
|
|
195 |
print(feature32)
|
196 |
similarity = ttv_compare_feature(feature1, feature2)
|
197 |
if similarity > 0.7:
|
|
|
191 |
response.headers["Content-Type"] = "application/json; charset=utf-8"
|
192 |
return response
|
193 |
|
194 |
+
feature32_1 = feature1.view(dtype=np.float32)
|
195 |
+
print(feature32_1)
|
196 |
+
print('===========================')
|
197 |
+
feature32 = np.frombuffer(feature1, dtype=np.float32, count=512)
|
198 |
print(feature32)
|
199 |
similarity = ttv_compare_feature(feature1, feature2)
|
200 |
if similarity > 0.7:
|