do not unnecessarily run VAE one more time when saving intermediate image with hires fix

This commit is contained in:
AUTOMATIC
2022-11-02 12:45:03 +03:00
parent 9c67408004
commit eb5e82c7dd
4 changed files with 23 additions and 22 deletions

View File

@@ -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 \