simayhosmeyve commited on
Commit
079d739
1 Parent(s): bff863c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -117,7 +117,6 @@ def ssim_psnr(pre,target):
117
  psnr_results.append(ssim_results)
118
 
119
 
120
-
121
  def result(Input,Choice,Step):
122
 
123
  if Choice=="Indoor-Coloring":
@@ -177,7 +176,7 @@ def result(Input,Choice,Step):
177
  Psnr = 20 * math.log10(MAX / math.sqrt(mse))
178
  return Input,Psnr
179
 
180
- if Choice=="Enhancement":
181
  pre_trained2 = tf.keras.models.load_model("generatorLR-HR_300.h5")
182
  size0 = Input.shape[0]
183
  size1 = Input.shape[1]
@@ -191,6 +190,7 @@ def result(Input,Choice,Step):
191
  return Input
192
 
193
 
 
194
  #lst = cv2.imread('/content/drive/MyDrive/ColabNotebooks/enhance/low-sat.jpg')
195
  #r = result(lst)
196
  #cv2.imshow(r)
 
117
  psnr_results.append(ssim_results)
118
 
119
 
 
120
  def result(Input,Choice,Step):
121
 
122
  if Choice=="Indoor-Coloring":
 
176
  Psnr = 20 * math.log10(MAX / math.sqrt(mse))
177
  return Input,Psnr
178
 
179
+ if Choice =="Enhancement":
180
  pre_trained2 = tf.keras.models.load_model("generatorLR-HR_300.h5")
181
  size0 = Input.shape[0]
182
  size1 = Input.shape[1]
 
190
  return Input
191
 
192
 
193
+
194
  #lst = cv2.imread('/content/drive/MyDrive/ColabNotebooks/enhance/low-sat.jpg')
195
  #r = result(lst)
196
  #cv2.imshow(r)