mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Let conditioning specify custom concat conds.
This commit is contained in:
parent
9f71e4b62d
commit
51df846598
@ -167,6 +167,10 @@ class BaseModel(torch.nn.Module):
|
|||||||
if cross_attn_cnet is not None:
|
if cross_attn_cnet is not None:
|
||||||
out['crossattn_controlnet'] = comfy.conds.CONDCrossAttn(cross_attn_cnet)
|
out['crossattn_controlnet'] = comfy.conds.CONDCrossAttn(cross_attn_cnet)
|
||||||
|
|
||||||
|
c_concat = kwargs.get("noise_concat", None)
|
||||||
|
if c_concat is not None:
|
||||||
|
out['c_concat'] = comfy.conds.CONDNoiseShape(data)
|
||||||
|
|
||||||
return out
|
return out
|
||||||
|
|
||||||
def load_model_weights(self, sd, unet_prefix=""):
|
def load_model_weights(self, sd, unet_prefix=""):
|
||||||
|
Loading…
Reference in New Issue
Block a user