mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 02:43:30 +00:00
Reuse code.
This commit is contained in:
parent
73ce178021
commit
9424522ead
@ -573,13 +573,8 @@ class SD3(BaseModel):
|
|||||||
return kwargs["pooled_output"]
|
return kwargs["pooled_output"]
|
||||||
|
|
||||||
def extra_conds(self, **kwargs):
|
def extra_conds(self, **kwargs):
|
||||||
out = {}
|
out = super().extra_conds(**kwargs)
|
||||||
adm = self.encode_adm(**kwargs)
|
|
||||||
if adm is not None:
|
|
||||||
out['y'] = comfy.conds.CONDRegular(adm)
|
|
||||||
|
|
||||||
cross_attn = kwargs.get("cross_attn", None)
|
cross_attn = kwargs.get("cross_attn", None)
|
||||||
if cross_attn is not None:
|
if cross_attn is not None:
|
||||||
out['c_crossattn'] = comfy.conds.CONDRegular(cross_attn)
|
out['c_crossattn'] = comfy.conds.CONDRegular(cross_attn)
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user