aboutsummaryrefslogtreecommitdiff
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-12 15:41:30 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-12 15:41:30 +0300
commita4416f3585616f93177d85c152c5fddb583ea361 (patch)
tree42a24b538b573a8cd56520cd4c5a3200deb79d4a /modules/img2img.py
parentc205a07fbc33ab0619108f68b3a16c51e6ef1b63 (diff)
[BUG] Not Working As Intended - create a directory with name derived from the prompt #306
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/img2img.py b/modules/img2img.py
index 7461bad5..15e35093 100644
--- a/modules/img2img.py
+++ b/modules/img2img.py
@@ -119,7 +119,7 @@ def img2img(prompt: str, negative_prompt: str, prompt_style: str, init_img, init
grid = images.image_grid(history, batch_size, rows=1)
- images.save_image(grid, p.outpath_grids, "grid", initial_seed, prompt, opts.grid_format, info=info, short_filename=not opts.grid_extended_filename)
+ images.save_image(grid, p.outpath_grids, "grid", initial_seed, prompt, opts.grid_format, info=info, short_filename=not opts.grid_extended_filename, p=p)
processed = Processed(p, history, initial_seed, initial_info)
@@ -180,7 +180,7 @@ def img2img(prompt: str, negative_prompt: str, prompt_style: str, init_img, init
result_images.append(combined_image)
if opts.samples_save:
- images.save_image(combined_image, p.outpath_samples, "", start_seed, prompt, opts.samples_format, info=initial_info)
+ images.save_image(combined_image, p.outpath_samples, "", start_seed, prompt, opts.samples_format, info=initial_info, p=p)
processed = Processed(p, result_images, seed, initial_info)