upd demo for cpu

pull/96/head
achusky 2022-04-28 00:23:29 +08:00
parent a0773bd7d2
commit 1bf5c98812
4 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ from basicsr.utils import FileClient, imfrombytes, img2tensor, padding, tensor2i
def main():
# parse options, set distributed setting, set ramdom seed
opt = parse_options(is_train=False)
opt['num_gpu'] = torch.cuda.device_count()
img_path = opt['img_path'].get('input_img')
output_path = opt['img_path'].get('output_img')

View File

@ -78,6 +78,7 @@ def imread(img_path):
def main():
# parse options, set distributed setting, set ramdom seed
opt = parse_options(is_train=False)
opt['num_gpu'] = torch.cuda.device_count()
img_l_path = opt['img_path'].get('input_l')
img_r_path = opt['img_path'].get('input_r')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB