Fediory commited on
Commit
f061dd5
·
1 Parent(s): 068f0e2

fix: brisque

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def process_image(input_img,score,model_path,gamma=1.0,alpha_s=1.0,alpha_i=1.0):
36
  output = output[:, :, :h, :w]
37
  enhanced_img = transforms.ToPILImage()(output.squeeze(0))
38
  if score == 'Yes':
39
- # im1 = enhanced_img
40
  # score_brisque = brisque.score(im1)
41
  im1 = np.array(im1)
42
  score_niqe = calculate_niqe(im1)
 
36
  output = output[:, :, :h, :w]
37
  enhanced_img = transforms.ToPILImage()(output.squeeze(0))
38
  if score == 'Yes':
39
+ im1 = enhanced_img
40
  # score_brisque = brisque.score(im1)
41
  im1 = np.array(im1)
42
  score_niqe = calculate_niqe(im1)