From c3df20d37e057f597f8c384b76bd2fc66800ca04 Mon Sep 17 00:00:00 2001 From: Johannes Stelzer Date: Sun, 8 Jan 2023 11:51:44 +0100 Subject: [PATCH] guidance_mid_dampening fix --- latent_blending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latent_blending.py b/latent_blending.py index 5866ce5..55312f3 100644 --- a/latent_blending.py +++ b/latent_blending.py @@ -140,7 +140,7 @@ class LatentBlending(): towards 0.5 the minimum will be reached. """ mid_factor = 1 - np.abs(fract_mixing - 0.5)/ 0.5 - max_guidance_reduction = self.guidance_scale_base * (1-self.guidance_scale_mid_damper) + max_guidance_reduction = self.guidance_scale_base * (1-self.guidance_scale_mid_damper) - 1 guidance_scale_effective = self.guidance_scale_base - max_guidance_reduction*mid_factor self.guidance_scale = guidance_scale_effective self.sdh.guidance_scale = guidance_scale_effective