diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-04-29 16:41:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 16:41:19 +0300 |
commit | 8651943cf9038ef937f0f35640f87fb67490be95 (patch) | |
tree | 9c5740d1f43eb0963914df50a2457237243031c5 /modules/processing.py | |
parent | 7428fb5176ccfd203bddcfa30d75c8df5a772cb4 (diff) | |
parent | e7d624574d476e008d8c148ba5b74bf13b5834de (diff) |
Merge pull request #9445 from gakada/master
Add [batch_number] and [generation_number] filename patterns
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 8d7b2462..a48fff99 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -683,6 +683,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: p.scripts.postprocess_batch(p, x_samples_ddim, batch_number=n)
for i, x_sample in enumerate(x_samples_ddim):
+ p.batch_index = i
+
x_sample = 255. * np.moveaxis(x_sample.cpu().numpy(), 0, 2)
x_sample = x_sample.astype(np.uint8)
@@ -731,7 +733,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: if opts.return_mask:
output_images.append(image_mask)
-
+
if opts.return_mask_composite:
output_images.append(image_mask_composite)
|