The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix regression with ddim and uni_pc when batch size > 1.
comfyanonymousee8f8ee07fb1
diff --git a/comfy/k_diffusion/external.py b/comfy/k_diffusion/external.pyindex 680a3568c..7335d56c4 100644--- a/comfy/k_diffusion/external.py+++ b/comfy/k_diffusion/external.py@@ -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