mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-24 19:01:06 -08:00
fix case where first step skilled if skip early cond is 0
This commit is contained in:
parent
029adbe531
commit
feeb6802aa
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ class CFGDenoiser(torch.nn.Module):
|
|||
uncond = denoiser_params.text_uncond
|
||||
skip_uncond = False
|
||||
|
||||
if self.step / self.total_steps <= shared.opts.skip_early_cond:
|
||||
if shared.opts.skip_early_cond != 0. and self.step / self.total_steps <= shared.opts.skip_early_cond:
|
||||
skip_uncond = True
|
||||
x_in = x_in[:-batch_size]
|
||||
sigma_in = sigma_in[:-batch_size]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue