Negative audio in s2v should be zeros. (#9578)

This commit is contained in:
comfyanonymous 2025-08-27 09:44:29 -07:00 committed by GitHub
parent 88aee596a3
commit 31a37686d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -920,7 +920,7 @@ class WanSoundImageToVideo(io.ComfyNode):
audio_embed_bucket = audio_embed_bucket.permute(0, 2, 3, 1) audio_embed_bucket = audio_embed_bucket.permute(0, 2, 3, 1)
positive = node_helpers.conditioning_set_values(positive, {"audio_embed": audio_embed_bucket}) positive = node_helpers.conditioning_set_values(positive, {"audio_embed": audio_embed_bucket})
negative = node_helpers.conditioning_set_values(negative, {"audio_embed": audio_embed_bucket}) negative = node_helpers.conditioning_set_values(negative, {"audio_embed": audio_embed_bucket * 0.0})
if ref_image is not None: if ref_image is not None:
ref_image = comfy.utils.common_upscale(ref_image[:1].movedim(-1, 1), width, height, "bilinear", "center").movedim(1, -1) ref_image = comfy.utils.common_upscale(ref_image[:1].movedim(-1, 1), width, height, "bilinear", "center").movedim(1, -1)