Use absolute output directory path.

This commit is contained in:
comfyanonymous 2023-02-09 09:59:43 -05:00
parent 05d571fe7f
commit 1d9ec62cfb
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ class SaveImage:
if extra_pnginfo is not None:
for x in extra_pnginfo:
metadata.add_text(x, json.dumps(extra_pnginfo[x]))
img.save(f"output/{filename_prefix}_{counter:05}_.png", pnginfo=metadata, optimize=True)
img.save(os.path.join(self.output_dir, f"{filename_prefix}_{counter:05}_.png"), pnginfo=metadata, optimize=True)
counter += 1
class LoadImage: