diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-05 18:22:30 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-05 18:22:30 +0000 |
commit | f5563853b83aa8fd60484af1c0d6a9691c887d25 (patch) | |
tree | df5e1da7f28eb7ff82cacb205f79a2632bc0a1fc /modules/processing.py | |
parent | 064965c4660f57f24e2d51a9854defaeabf8c0cf (diff) | |
download | stable-diffusion-webui-gfx803-f5563853b83aa8fd60484af1c0d6a9691c887d25.tar.gz stable-diffusion-webui-gfx803-f5563853b83aa8fd60484af1c0d6a9691c887d25.tar.bz2 stable-diffusion-webui-gfx803-f5563853b83aa8fd60484af1c0d6a9691c887d25.zip |
add information about batch to the image
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 a5b2afb9..b744aa87 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -132,7 +132,9 @@ def process_images(p: StableDiffusionProcessing) -> Processed: "Sampler": samplers[p.sampler_index].name,
"CFG scale": p.cfg_scale,
"Seed": all_seeds[position_in_batch + iteration * p.batch_size],
- "GFPGAN": ("GFPGAN" if p.use_GFPGAN else None)
+ "GFPGAN": ("GFPGAN" if p.use_GFPGAN else None),
+ "Batch size": (None if p.batch_size < 2 else p.batch_size),
+ "Batch pos": (None if p.batch_size < 2 else position_in_batch),
}
if p.extra_generation_params is not None:
|