aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_samplers_cfg_denoiser.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2024-01-29 10:20:27 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2024-01-29 10:20:27 +0300
commitbaaf39b6f92f24275a1b264a634514bac571dfae (patch)
treeb27f1ba7d508f43ca3b765a5d8a0084924b593e9 /modules/sd_samplers_cfg_denoiser.py
parent757dda9ade9d47cb2a755dad0475c8c4fbcaa114 (diff)
fix the typo -- thanks Cyberbeing
Diffstat (limited to 'modules/sd_samplers_cfg_denoiser.py')
-rw-r--r--modules/sd_samplers_cfg_denoiser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_samplers_cfg_denoiser.py b/modules/sd_samplers_cfg_denoiser.py
index ef237396..941dff4b 100644
--- a/modules/sd_samplers_cfg_denoiser.py
+++ b/modules/sd_samplers_cfg_denoiser.py
@@ -94,7 +94,7 @@ class CFGDenoiser(torch.nn.Module):
def pad_cond_uncond(self, cond, uncond):
empty = shared.sd_model.cond_stage_model_empty_prompt
- num_repeats = (cond.shape[1] - cond.shape[1]) // empty.shape[1]
+ num_repeats = (cond.shape[1] - uncond.shape[1]) // empty.shape[1]
if num_repeats < 0:
cond = pad_cond(cond, -num_repeats, empty)