aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-12 12:41:30 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-12 12:41:30 +0000
commita4416f3585616f93177d85c152c5fddb583ea361 (patch)
tree42a24b538b573a8cd56520cd4c5a3200deb79d4a /modules/processing.py
parentc205a07fbc33ab0619108f68b3a16c51e6ef1b63 (diff)
downloadstable-diffusion-webui-gfx803-a4416f3585616f93177d85c152c5fddb583ea361.tar.gz
stable-diffusion-webui-gfx803-a4416f3585616f93177d85c152c5fddb583ea361.tar.bz2
stable-diffusion-webui-gfx803-a4416f3585616f93177d85c152c5fddb583ea361.zip
[BUG] Not Working As Intended - create a directory with name derived from the prompt #306
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 7dc2b9af..27445def 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -275,7 +275,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
image = image.convert('RGB')
if opts.samples_save and not p.do_not_save_samples:
- images.save_image(image, p.outpath_samples, "", seeds[i], prompts[i], opts.samples_format, info=infotext(n, i), process_info = Processed(p, output_images, all_seeds[0], infotext()))
+ images.save_image(image, p.outpath_samples, "", seeds[i], prompts[i], opts.samples_format, info=infotext(n, i), p=p)
output_images.append(image)
@@ -291,7 +291,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)
+ 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)
devices.torch_gc()
return Processed(p, output_images, all_seeds[0], infotext())