diff options
author | random_thoughtss <random_thoughtss@proton.me> | 2022-10-19 22:09:43 +0000 |
---|---|---|
committer | random_thoughtss <random_thoughtss@proton.me> | 2022-10-19 22:09:43 +0000 |
commit | c418467c03db916c3e5312e6ac4a67365e196dbd (patch) | |
tree | 42d4a5a2219112c34d47d5419e8ce939450be5bc /modules/sd_samplers.py | |
parent | dde9f960727bfe151d418e43685a2881cf580a17 (diff) | |
download | stable-diffusion-webui-gfx803-c418467c03db916c3e5312e6ac4a67365e196dbd.tar.gz stable-diffusion-webui-gfx803-c418467c03db916c3e5312e6ac4a67365e196dbd.tar.bz2 stable-diffusion-webui-gfx803-c418467c03db916c3e5312e6ac4a67365e196dbd.zip |
Don't compute latent mask if were not using it. Also added support for fixed highres_fix generation.
Diffstat (limited to 'modules/sd_samplers.py')
-rw-r--r-- | modules/sd_samplers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/sd_samplers.py b/modules/sd_samplers.py index d270e4df..c21be26e 100644 --- a/modules/sd_samplers.py +++ b/modules/sd_samplers.py @@ -117,6 +117,8 @@ class VanillaStableDiffusionSampler: self.config = None
self.last_latent = None
+ self.conditioning_key = sd_model.model.conditioning_key
+
def number_of_needed_noises(self, p):
return 0
@@ -328,6 +330,8 @@ class KDiffusionSampler: self.config = None
self.last_latent = None
+ self.conditioning_key = sd_model.model.conditioning_key
+
def callback_state(self, d):
step = d['i']
latent = d["denoised"]
|