hail75 commited on
Commit
1ba6b94
·
1 Parent(s): d0f6f9b
Files changed (1) hide show
  1. models/SRFlow/srflow.py +1 -1
models/SRFlow/srflow.py CHANGED
@@ -24,7 +24,7 @@ def return_SRFlow_result(lr, divide, conf_path='models/SRFlow/code/confs/SRFlow_
24
  lr = PILToTensor()(lr).permute(1, 2, 0).numpy()
25
 
26
  if not divide:
27
- lr = int(round(255*lr))
28
 
29
  scale = opt['scale']
30
  pad_factor = 2
 
24
  lr = PILToTensor()(lr).permute(1, 2, 0).numpy()
25
 
26
  if not divide:
27
+ lr = np.round(255 * lr).astype(np.uint8)
28
 
29
  scale = opt['scale']
30
  pad_factor = 2