mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-03 06:13:06 -08:00
change skip_early_cond code to use float
This commit is contained in:
parent
83182d2799
commit
6e9b69a338
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 < shared.opts.skip_cond_steps:
|
||||
if 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