Turing311 commited on
Commit
de00ac2
1 Parent(s): 835fc71
Files changed (1) hide show
  1. app.py +4 -1
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
- feature32 = np.frombuffer(feature1, dtype=np.float32, 512)
 
 
 
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: