We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3be1cee commit c83d01bCopy full SHA for c83d01b
1 file changed
ldm/dream/pngwriter.py
@@ -65,6 +65,8 @@ def unique_filename(self, seed, upscaled=False, previouspath=None):
65
series += 1
66
filename = f'{basecount:06}.{seed}.png'
67
path = os.path.join(self.outdir, filename)
68
+ if os.path.exists(path) and upscaled:
69
+ break
70
finished = not os.path.exists(path)
71
return os.path.join(self.outdir, filename)
72
0 commit comments