aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/img2imgalt.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-11-02 09:45:03 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-11-02 09:45:03 +0000
commiteb5e82c7ddf5e72fa13b83bd1f12d3a07a4de1a4 (patch)
tree3fdea81dfaba9a4e2350fbcc9b41a13a5ad362a4 /scripts/img2imgalt.py
parent9c67408004ed132637d10321bf44565f82055fd2 (diff)
downloadstable-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 'scripts/img2imgalt.py')
-rw-r--r--scripts/img2imgalt.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/img2imgalt.py b/scripts/img2imgalt.py
index 88abc093..964b75c7 100644
--- a/scripts/img2imgalt.py
+++ b/scripts/img2imgalt.py
@@ -166,8 +166,7 @@ class Script(scripts.Script):
if override_strength:
p.denoising_strength = 1.0
-
- def sample_extra(conditioning, unconditional_conditioning, seeds, subseeds, subseed_strength):
+ def sample_extra(conditioning, unconditional_conditioning, seeds, subseeds, subseed_strength, prompts):
lat = (p.init_latent.cpu().numpy() * 10).astype(int)
same_params = self.cache is not None and self.cache.cfg_scale == cfg and self.cache.steps == st \