spuun commited on
Commit
90b7b6f
·
verified ·
1 Parent(s): dbc055b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def compare_face_ssim(img1, img2, face_area):
68
  face2 = face2.astype(np.float32) / 255.0
69
 
70
  # Calculate multichannel SSIM
71
- ssim_value = ssim(face1, face2, data_range=1.0, multichannel=True)
72
  return ssim_value
73
 
74
  def predict_and_compare(image):
 
68
  face2 = face2.astype(np.float32) / 255.0
69
 
70
  # Calculate multichannel SSIM
71
+ ssim_value = ssim(face1, face2, data_range=1.0, channel_axis=2, win_size=3)
72
  return ssim_value
73
 
74
  def predict_and_compare(image):