mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Grid image not saving after recent changes has been fixed.
This commit is contained in:
parent
ac02a775e4
commit
f0e2fa781f
@ -37,7 +37,7 @@ class PngWriter:
|
|||||||
if not upscaled:
|
if not upscaled:
|
||||||
self.files_written.append([self.filepath, seed])
|
self.files_written.append([self.filepath, seed])
|
||||||
|
|
||||||
def unique_filename(self, seed, upscaled, previouspath=None):
|
def unique_filename(self, seed, upscaled=False, previouspath=None):
|
||||||
revision = 1
|
revision = 1
|
||||||
|
|
||||||
if previouspath is None:
|
if previouspath is None:
|
||||||
@ -60,7 +60,7 @@ class PngWriter:
|
|||||||
basename = os.path.basename(previouspath)
|
basename = os.path.basename(previouspath)
|
||||||
x = re.match('^(\d+)\..*\.png', basename)
|
x = re.match('^(\d+)\..*\.png', basename)
|
||||||
if not x:
|
if not x:
|
||||||
return self.unique_filename(seed, previouspath)
|
return self.unique_filename(seed, upscaled, previouspath)
|
||||||
|
|
||||||
basecount = int(x.groups()[0])
|
basecount = int(x.groups()[0])
|
||||||
series = 0
|
series = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user