Spaces:
Running
Running
- 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 =
|
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
|