fix hang during GFPGAN processing due to bug introduced by recent removal of batch_size arg from pngwriter

This commit is contained in:
Lincoln Stein 2022-08-31 01:41:15 -04:00
parent 3be1cee17c
commit c83d01b369

View File

@ -65,6 +65,8 @@ class PngWriter:
series += 1
filename = f'{basecount:06}.{seed}.png'
path = os.path.join(self.outdir, filename)
if os.path.exists(path) and upscaled:
break
finished = not os.path.exists(path)
return os.path.join(self.outdir, filename)