hail75 commited on
Commit
4c480fe
·
1 Parent(s): 95110bc

change heat to 0.7

Browse files
models/SRFlow/example.py DELETED
@@ -1,14 +0,0 @@
1
- import matplotlib.pyplot as plt
2
- import sys
3
-
4
- sys.path.append('SRFlow')
5
- from srflow import *
6
-
7
- # Example usage of the function
8
- path = 'images/demo.png'
9
- output = return_SRFlow_result(path)
10
- print(output.shape)
11
-
12
- plt.imshow(output)
13
- # plt.axis('off')
14
- plt.show()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
models/SRFlow/srflow.py CHANGED
@@ -6,7 +6,7 @@ from SRFlow.code import imread, impad, load_model, t, rgb
6
  from PIL import Image
7
  from torchvision.transforms import PILToTensor
8
 
9
- def return_SRFlow_result(lr, conf_path='models/SRFlow/code/confs/SRFlow_DF2K_4X.yml', heat=0.6):
10
  """
11
  Apply Super-Resolution using SRFlow model to the input LR (low-resolution) image.
12
 
 
6
  from PIL import Image
7
  from torchvision.transforms import PILToTensor
8
 
9
+ def return_SRFlow_result(lr, conf_path='models/SRFlow/code/confs/SRFlow_DF2K_4X.yml', heat=0.7):
10
  """
11
  Apply Super-Resolution using SRFlow model to the input LR (low-resolution) image.
12