diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-11-02 09:45:03 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-11-02 09:45:03 +0000 |
commit | eb5e82c7ddf5e72fa13b83bd1f12d3a07a4de1a4 (patch) | |
tree | 3fdea81dfaba9a4e2350fbcc9b41a13a5ad362a4 /modules/sd_samplers.py | |
parent | 9c67408004ed132637d10321bf44565f82055fd2 (diff) | |
download | stable-diffusion-webui-gfx803-eb5e82c7ddf5e72fa13b83bd1f12d3a07a4de1a4.tar.gz stable-diffusion-webui-gfx803-eb5e82c7ddf5e72fa13b83bd1f12d3a07a4de1a4.tar.bz2 stable-diffusion-webui-gfx803-eb5e82c7ddf5e72fa13b83bd1f12d3a07a4de1a4.zip |
do not unnecessarily run VAE one more time when saving intermediate image with hires fix
Diffstat (limited to 'modules/sd_samplers.py')
-rw-r--r-- | modules/sd_samplers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py index d7fa89a0..c7c414ef 100644 --- a/modules/sd_samplers.py +++ b/modules/sd_samplers.py @@ -96,6 +96,7 @@ def single_sample_to_image(sample): def sample_to_image(samples, index=0):
return single_sample_to_image(samples[index])
+
def samples_to_image_grid(samples):
return images.image_grid([single_sample_to_image(sample) for sample in samples])
|