diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-29 07:20:27 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-29 07:20:27 +0000 |
commit | baaf39b6f92f24275a1b264a634514bac571dfae (patch) | |
tree | b27f1ba7d508f43ca3b765a5d8a0084924b593e9 /modules | |
parent | 757dda9ade9d47cb2a755dad0475c8c4fbcaa114 (diff) | |
download | stable-diffusion-webui-gfx803-baaf39b6f92f24275a1b264a634514bac571dfae.tar.gz stable-diffusion-webui-gfx803-baaf39b6f92f24275a1b264a634514bac571dfae.tar.bz2 stable-diffusion-webui-gfx803-baaf39b6f92f24275a1b264a634514bac571dfae.zip |
fix the typo -- thanks Cyberbeing
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sd_samplers_cfg_denoiser.py | 2 |
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)
|