mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 14:50:49 +08:00
Fix more unreferenced variables
This commit is contained in:
parent
2aecff06ff
commit
6015c4132f
@ -96,8 +96,9 @@ def get_activation(activation: Literal["elu", "snake", "none"], antialias=False,
|
||||
else:
|
||||
raise ValueError(f"Unknown activation {activation}")
|
||||
|
||||
if antialias:
|
||||
act = Activation1d(act)
|
||||
# todo: ??? Not existing
|
||||
# if antialias:
|
||||
# act = Activation1d(act)
|
||||
|
||||
return act
|
||||
|
||||
|
||||
@ -775,6 +775,8 @@ class AudioDiffusionTransformer(nn.Module):
|
||||
return_info=False,
|
||||
**kwargs):
|
||||
|
||||
info = None
|
||||
output = None
|
||||
if cross_attn_cond is not None:
|
||||
cross_attn_cond = self.to_cond_embed(cross_attn_cond)
|
||||
|
||||
@ -871,8 +873,10 @@ class AudioDiffusionTransformer(nn.Module):
|
||||
mask=None,
|
||||
return_info=False,
|
||||
control=None,
|
||||
transformer_options={},
|
||||
transformer_options=None,
|
||||
**kwargs):
|
||||
if transformer_options is None:
|
||||
transformer_options = {}
|
||||
return self._forward(
|
||||
x,
|
||||
timestep,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user