ComfyUI > Nodes > ComfyUI-WanVideoWrapper > WanVideo Add StoryMem Latents

ComfyUI Node: WanVideo Add StoryMem Latents

Class Name

WanVideoAddStoryMemLatents

Category
WanVideoWrapper
Author
kijai (Account age: 2871days)
Extension
ComfyUI-WanVideoWrapper
Latest Updated
2026-05-05
Github Stars
6.41K

How to Install ComfyUI-WanVideoWrapper

Install this extension via the ComfyUI Manager by searching for ComfyUI-WanVideoWrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-WanVideoWrapper in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

WanVideo Add StoryMem Latents Description

Enhances video processing by integrating memory latents for cohesive storytelling and thematic consistency.

WanVideo Add StoryMem Latents:

The WanVideoAddStoryMemLatents node is designed to enhance video processing by integrating story memory latents into the video embedding process. This node is particularly useful for AI artists looking to add depth and continuity to their video projects by leveraging memory images that can influence the narrative or thematic elements of the video. By incorporating these memory latents, the node allows for a more cohesive storytelling experience, ensuring that the video content maintains a consistent style or theme throughout its duration. The node achieves this by encoding memory images into latent representations and adjusting them with optional frequency offsets, which can be particularly beneficial for creating dynamic and engaging video content.

WanVideo Add StoryMem Latents Input Parameters:

vae

The vae parameter refers to the Variational Autoencoder (VAE) model used for encoding the memory images into latent representations. This model is crucial for transforming the input images into a format that can be integrated into the video embeddings, ensuring that the memory latents are accurately represented in the final output.

embeds

The embeds parameter represents the initial video embeddings that will be augmented with the story memory latents. These embeddings serve as the foundation for the video content, and the addition of memory latents helps to enrich the narrative or thematic elements of the video.

memory_images

The memory_images parameter consists of the images that will be encoded into story memory latents. These images are used to influence the video content, providing a visual reference that can enhance the storytelling aspect of the video.

rope_negative_offset

The rope_negative_offset is a boolean parameter that determines whether a positive RoPE (Rotary Position Embedding) frequency offset should be used for the memory latents. This option allows for fine-tuning the temporal dynamics of the memory latents, which can affect how they are integrated into the video embeddings.

rope_negative_offset_frames

The rope_negative_offset_frames parameter specifies the number of frames for which the RoPE frequency offset should be applied to the memory latents. It has a default value of 5, with a minimum of 0 and a maximum of 100, allowing for precise control over the temporal influence of the memory latents on the video content.

WanVideo Add StoryMem Latents Output Parameters:

image_embeds

The image_embeds output parameter contains the updated video embeddings that now include the story memory latents. This output is crucial for generating the final video content, as it incorporates the narrative or thematic elements introduced by the memory images, resulting in a more cohesive and engaging video experience.

WanVideo Add StoryMem Latents Usage Tips:

  • To achieve a more dynamic storytelling effect, experiment with different memory_images that align with the theme of your video project.
  • Adjust the rope_negative_offset_frames to control the temporal influence of the memory latents, which can help in creating smoother transitions and maintaining narrative consistency.

WanVideo Add StoryMem Latents Common Errors and Solutions:

Error: "Invalid VAE model"

  • Explanation: This error occurs when the provided VAE model is not compatible or incorrectly configured.
  • Solution: Ensure that the VAE model is correctly loaded and compatible with the node's requirements.

Error: "Memory images not found"

  • Explanation: This error indicates that the memory_images parameter is missing or incorrectly specified.
  • Solution: Verify that the memory_images parameter is correctly set with valid image data before executing the node.

WanVideo Add StoryMem Latents Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-WanVideoWrapper
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

WanVideo Add StoryMem Latents