* Make warmup feature less aggressive to support higher thresholding values properly.

This commit is contained in:
Peter Baylies 2022-09-07 04:50:53 -04:00
parent a48c03e0f4
commit dc500946ad

View File

@ -25,7 +25,7 @@ class CFGDenoiser(nn.Module):
self.inner_model = model
self.threshold = threshold
self.warmup_max = warmup
self.warmup = 0
self.warmup = max(warmup / 10, 1)
def forward(self, x, sigma, uncond, cond, cond_scale):
x_in = torch.cat([x] * 2)