Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix WanFirstLastFrameToVideo node when no clip vision. (#9134)

comfyanonymous5ee381c058d6
diff --git a/comfy_extras/nodes_wan.py b/comfy_extras/nodes_wan.py
index 0b92c68ac..0067d054d 100644
--- a/comfy_extras/nodes_wan.py
+++ b/comfy_extras/nodes_wan.py
@@ -149,6 +149,7 @@ class WanFirstLastFrameToVideo:
positive = node_helpers.conditioning_set_values(positive, {"concat_latent_image": concat_latent_image, "concat_mask": mask})
negative = node_helpers.conditioning_set_values(negative, {"concat_latent_image": concat_latent_image, "concat_mask": mask})
+ clip_vision_output = None
if clip_vision_start_image is not None:
clip_vision_output = clip_vision_start_image