Skip to content

Commit

Permalink
Merge pull request basujindal#168 from blessedcoolant/bug-fixes
Browse files Browse the repository at this point in the history
Fixed grid image not saving
  • Loading branch information
blessedcoolant authored Aug 29, 2022
2 parents 373a2d9 + f0e2fa7 commit b605310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldm/dream/pngwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def write_image(self, image, seed, upscaled=False):
if not upscaled:
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

if previouspath is None:
Expand All @@ -60,7 +60,7 @@ def unique_filename(self, seed, upscaled, previouspath=None):
basename = os.path.basename(previouspath)
x = re.match('^(\d+)\..*\.png', basename)
if not x:
return self.unique_filename(seed, previouspath)
return self.unique_filename(seed, upscaled, previouspath)

basecount = int(x.groups()[0])
series = 0
Expand Down

0 comments on commit b605310

Please sign in to comment.