From 6fa7dd19f89f9052c087240e05d9db2a4ac2b2e6 Mon Sep 17 00:00:00 2001 From: jovijovi Date: Mon, 15 Jan 2024 11:43:22 +0800 Subject: [PATCH] fix: if get output_tile failed, an exception is thrown. --- basicsr/utils/realesrgan_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/basicsr/utils/realesrgan_utils.py b/basicsr/utils/realesrgan_utils.py index 2757a058..83e183da 100644 --- a/basicsr/utils/realesrgan_utils.py +++ b/basicsr/utils/realesrgan_utils.py @@ -143,6 +143,7 @@ def tile_process(self): output_tile = self.model(input_tile) except RuntimeError as error: print('Error', error) + raise RuntimeError(error) # print(f'\tTile {tile_idx}/{tiles_x * tiles_y}') # output tile area on total image