修复在不使用lightx2v的情况下多图参考失效的问题

This commit is contained in:
wallen0322
2025-11-14 22:02:06 +08:00
committed by GitHub
parent e9cdcd63e9
commit d8fe0613c8
+8 -1
View File
@@ -210,7 +210,11 @@ class WanFourFrameReferenceUltimate:
"concat_mask": mask_low_reshaped
})
negative_out = negative
# 修复:negative也设置图像条件(使用high noise的条件)
negative_out = node_helpers.conditioning_set_values(negative, {
"concat_latent_image": concat_latent_image_high,
"concat_mask": mask_high_reshaped
})
clip_vision_output = self._merge_clip_vision_outputs(
clip_vision_frame_1, clip_vision_frame_2,
@@ -220,6 +224,9 @@ class WanFourFrameReferenceUltimate:
if clip_vision_output is not None:
positive_low_noise = node_helpers.conditioning_set_values(positive_low_noise,
{"clip_vision_output": clip_vision_output})
# 修复:negative也应用clip_vision_output
negative_out = node_helpers.conditioning_set_values(negative_out,
{"clip_vision_output": clip_vision_output})
return (positive_high_noise, positive_low_noise, negative_out, {"samples": latent})