Spaces:
Running
Running
models/SRFlow/code/options/options.py
CHANGED
@@ -79,7 +79,7 @@ def parse(opt_path, is_train=True):
|
|
79 |
opt['train']['lr_steps'] = [int(x * niter) for x in opt['train']['lr_steps_rel']]
|
80 |
if 'lr_steps_inverse_rel' in opt['train']:
|
81 |
opt['train']['lr_steps_inverse'] = [int(x * niter) for x in opt['train']['lr_steps_inverse_rel']]
|
82 |
-
print(opt['train'])
|
83 |
|
84 |
return opt
|
85 |
|
|
|
79 |
opt['train']['lr_steps'] = [int(x * niter) for x in opt['train']['lr_steps_rel']]
|
80 |
if 'lr_steps_inverse_rel' in opt['train']:
|
81 |
opt['train']['lr_steps_inverse'] = [int(x * niter) for x in opt['train']['lr_steps_inverse_rel']]
|
82 |
+
# print(opt['train'])
|
83 |
|
84 |
return opt
|
85 |
|
models/SRFlow/srflow.py
CHANGED
@@ -68,7 +68,7 @@ def return_SRFlow_result_from_tensor(lr_tensor, divide=True):
|
|
68 |
sr_tensor = torch.cat(sr_list, dim=0)
|
69 |
|
70 |
if not divide:
|
71 |
-
sr_tensor /= 255
|
72 |
|
73 |
return sr_tensor
|
74 |
|
|
|
68 |
sr_tensor = torch.cat(sr_list, dim=0)
|
69 |
|
70 |
if not divide:
|
71 |
+
sr_tensor /= 255.0
|
72 |
|
73 |
return sr_tensor
|
74 |
|