Skip to content

Commit

Permalink
Let conditioning specify custom concat conds.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Mar 2, 2024
1 parent 9f71e4b commit 51df846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions comfy/model_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ def blank_inpaint_image_like(latent_image):
if cross_attn_cnet is not None:
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

def load_model_weights(self, sd, unet_prefix=""):
Expand Down

0 comments on commit 51df846

Please sign in to comment.