mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Fix regression with ddim and uni_pc when batch size > 1.
This commit is contained in:
parent
3ded1a3a04
commit
ee8f8ee07f
@ -92,8 +92,8 @@ class DiscreteSchedule(nn.Module):
|
||||
|
||||
def predict_eps_discrete_timestep(self, input, t, **kwargs):
|
||||
sigma = self.t_to_sigma(t.round())
|
||||
input = input * ((sigma ** 2 + 1.0) ** 0.5)
|
||||
return (input - self(input, sigma, **kwargs)) / sigma
|
||||
input = input * ((utils.append_dims(sigma, input.ndim) ** 2 + 1.0) ** 0.5)
|
||||
return (input - self(input, sigma, **kwargs)) / utils.append_dims(sigma, input.ndim)
|
||||
|
||||
class DiscreteEpsDDPMDenoiser(DiscreteSchedule):
|
||||
"""A wrapper for discrete schedule DDPM models that output eps (the predicted
|
||||
|
Loading…
Reference in New Issue
Block a user