upd demo for cpu
parent
a0773bd7d2
commit
1bf5c98812
|
@ -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')
|
||||
|
|
|
@ -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 |
Loading…
Reference in New Issue