xinntao / ESRGAN

ECCV18 Workshops - Enhanced SRGAN. Champion PIRM Challenge on Perceptual Super-Resolution. The training codes are in BasicSR.
https://github.com/xinntao/BasicSR
Apache License 2.0
5.95k stars 1.06k forks source link

keep going if some file processing fail ? #51

Closed satsukiyatoshi closed 5 years ago

satsukiyatoshi commented 5 years ago

Hello. When i use the test.py all is working great, but if i have some picture bigger than my computer can process in a whole set of picture, the processing stops then it can't process one file. Is there any way to keep the processing going to the nexts file in case of processing error on one file ?

thanks

xinntao commented 5 years ago
  1. If just want to skip these files, you can use try ... except
  2. If you want to process these large files, you can first split the large image to several sub-images (for example, 4 parts) and then process them individually. Finally, splice them to a large image.
satsukiyatoshi commented 5 years ago

Thank the try except did the trick