mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-22 20:30:25 +08:00
Fix linting issue
This commit is contained in:
parent
9ac2864408
commit
6cffd4c4c2
@ -1252,6 +1252,7 @@ class WanModel_S2V(WanModel):
|
|||||||
num_embeds = x.shape[-3] * 4
|
num_embeds = x.shape[-3] * 4
|
||||||
audio_emb_global, audio_emb = self.casual_audio_encoder(audio_embed[:, :, :, :num_embeds])
|
audio_emb_global, audio_emb = self.casual_audio_encoder(audio_embed[:, :, :, :num_embeds])
|
||||||
else:
|
else:
|
||||||
|
audio_emb_global = None
|
||||||
audio_emb = None
|
audio_emb = None
|
||||||
|
|
||||||
# embeddings
|
# embeddings
|
||||||
@ -1311,7 +1312,7 @@ class WanModel_S2V(WanModel):
|
|||||||
x = out["img"]
|
x = out["img"]
|
||||||
else:
|
else:
|
||||||
x = block(x, e=e0, freqs=freqs, context=context)
|
x = block(x, e=e0, freqs=freqs, context=context)
|
||||||
if audio_emb is not None:
|
if audio_emb is not None and audio_emb_global is not None:
|
||||||
x = self.audio_injector(x, i, audio_emb, audio_emb_global, seq_len)
|
x = self.audio_injector(x, i, audio_emb, audio_emb_global, seq_len)
|
||||||
# head
|
# head
|
||||||
x = self.head(x, e)
|
x = self.head(x, e)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user