The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Cleanup old TODO.
comfyanonymousd8a7a3277923
diff --git a/comfy/model_base.py b/comfy/model_base.pyindex 7625b7126..c9f6bd02b 100644--- a/comfy/model_base.py+++ b/comfy/model_base.py@@ -148,7 +148,9 @@ class BaseModel(torch.nn.Module):xc = xc.to(dtype)t = self.model_sampling.timestep(t).float()- context = context.to(dtype)+ if context is not None:+ context = context.to(dtype)+extra_conds = {}for o in kwargs:extra = kwargs[o]@@ -549,6 +551,10 @@ class SD_X4Upscaler(BaseModel):out['c_concat'] = comfy.conds.CONDNoiseShape(image)out['y'] = comfy.conds.CONDRegular(noise_level)++ cross_attn = kwargs.get("cross_attn", None)+ if cross_attn is not None:+ out['c_crossattn'] = comfy.conds.CONDCrossAttn(cross_attn)return outclass IP2P:diff --git a/comfy/sampler_helpers.py b/comfy/sampler_helpers.pyindex b70e5e636..92ec7ca7a 100644--- a/comfy/sampler_helpers.py+++ b/comfy/sampler_helpers.py@@ -58,7 +58,6 @@ def convert_cond(cond):temp = c[1].copy()model_conds = temp.get("model_conds", {})if c[0] is not None:- model_conds["c_crossattn"] = comfy.conds.CONDCrossAttn(c[0]) #TODO: removetemp["cross_attn"] = c[0]temp["model_conds"] = model_condstemp["uuid"] = uuid.uuid4()