mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
do not unnecessarily run VAE one more time when saving intermediate image with hires fix
This commit is contained in:
parent
9c67408004
commit
eb5e82c7dd
4 changed files with 23 additions and 22 deletions
|
|
@ -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])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue