prevent extras from saving in dir

Extras have none of the vars used in dir names, so they cant be saved into dirs.
+grid code cleanup
This commit is contained in:
JustAnOkapi
2022-09-13 15:28:03 -05:00
committed by AUTOMATIC1111
parent e73e2ce2fd
commit f9f9d04b5f
6 changed files with 7 additions and 10 deletions

View File

@@ -321,7 +321,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
output_images.insert(0, grid)
if opts.grid_save:
images.save_image(grid, p.outpath_grids, "grid", all_seeds[0], all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, p=p)
images.save_image(grid, p.outpath_grids, "grid", all_seeds[0], all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, grid=True, p=p)
devices.torch_gc()
return Processed(p, output_images, all_seeds[0], infotext())