ComfyUI > Nodes > ComfyUI-HunyuanVideoWrapper > HyVideo I2V Encode

ComfyUI Node: HyVideo I2V Encode

Class Name

HyVideoI2VEncode

Category
HunyuanVideoWrapper
Author
kijai (Account age: 2506days)
Extension
ComfyUI-HunyuanVideoWrapper
Latest Updated
2025-05-12
Github Stars
2.4K

How to Install ComfyUI-HunyuanVideoWrapper

Install this extension via the ComfyUI Manager by searching for ComfyUI-HunyuanVideoWrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-HunyuanVideoWrapper 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

HyVideo I2V Encode Description

Facilitates image to video conversion with text encoding for AI artists in HunyuanVideo framework.

HyVideo I2V Encode:

The HyVideoI2VEncode node is designed to facilitate the conversion of image prompts into video embeddings, leveraging the capabilities of the HunyuanVideo framework. This node is particularly useful for AI artists who wish to transform static image concepts into dynamic video representations, enhancing the creative process by providing a seamless transition from image to video. By utilizing advanced text encoding techniques, HyVideoI2VEncode allows for the integration of textual prompts with visual elements, offering a robust tool for generating video content that aligns with specific artistic visions. The node's primary goal is to streamline the encoding process, making it accessible and efficient for users who may not have a deep technical background, while still providing the flexibility needed for more advanced configurations.

HyVideo I2V Encode Input Parameters:

text_encoders

This parameter specifies the text encoder to be used, which is crucial for interpreting the textual prompts and converting them into a format that can be integrated with video data. The encoder plays a vital role in ensuring that the semantic meaning of the text is accurately captured and reflected in the video output. There are no specific minimum or maximum values, but the choice of encoder can significantly impact the quality and relevance of the video embeddings.

prompt

The prompt parameter allows you to input a textual description that guides the video generation process. This can be a single line or multiline text, providing flexibility in how detailed or complex the prompt can be. The default value is an empty string, and the prompt's content directly influences the thematic and visual elements of the resulting video.

force_offload

This optional boolean parameter determines whether the model should be offloaded to a secondary device before encoding. By default, it is set to True, which can help manage memory usage and improve performance, especially when working with large models or datasets.

prompt_template

The prompt_template parameter offers predefined templates for the prompt, with options including "I2V_video", "I2V_image", and "disabled". The default setting is "I2V_video", which provides a structured format for the prompt, aiding in consistent and coherent video generation.

clip_l

This parameter allows the use of a comfy clip model instead of the default text encoder. It is particularly useful if you prefer a different model for text interpretation. When using this option, ensure that the text encoder loader's clip_l is disabled to avoid conflicts.

image

The image parameter is optional and allows you to provide an image that can be used as a reference or starting point for the video generation. The default value is None, meaning that the process can proceed without an image, relying solely on the textual prompt.

hyvid_cfg

This parameter is used to pass configuration settings specific to the HunyuanVideo framework. It allows for customization of the encoding process, enabling you to tailor the output to specific requirements or preferences.

image_embed_interleave

This integer parameter, with a default value of 2, controls the interleaving of image embeddings within the video encoding process. Adjusting this value can affect the integration of image data into the video, influencing the final output's visual coherence and style.

model_to_offload

The model_to_offload parameter specifies which model should be moved to an offload device before encoding. This can help optimize resource usage and ensure smoother operation, particularly when dealing with complex or resource-intensive models.

HyVideo I2V Encode Output Parameters:

hyvid_embeds

The hyvid_embeds output parameter represents the video embeddings generated by the node. These embeddings are a crucial component of the video creation process, encapsulating the semantic and visual information derived from the input prompts and images. They serve as the foundation for further video synthesis and manipulation, providing a versatile and adaptable format for creative exploration.

HyVideo I2V Encode Usage Tips:

  • To achieve the best results, experiment with different text encoders and prompt templates to find the combination that best suits your artistic vision.
  • Consider using the force_offload option if you encounter performance issues, as it can help manage system resources more effectively.
  • Utilize the image parameter to incorporate specific visual elements into your video, enhancing the thematic consistency and depth of the final output.

HyVideo I2V Encode Common Errors and Solutions:

"Model not found for offloading"

  • Explanation: This error occurs when the specified model for offloading is not available or incorrectly configured.
  • Solution: Ensure that the model specified in the model_to_offload parameter is correctly loaded and available in the system. Double-check the configuration settings and paths.

"Invalid prompt template"

  • Explanation: This error indicates that the selected prompt template is not recognized or supported by the node.
  • Solution: Verify that the prompt_template parameter is set to one of the supported options: "I2V_video", "I2V_image", or "disabled". Adjust the setting accordingly.

"Text encoder not compatible"

  • Explanation: This error suggests that the chosen text encoder is not compatible with the current configuration or input data.
  • Solution: Review the text_encoders parameter and ensure that the selected encoder is compatible with the other settings and input data. Consider switching to a different encoder if necessary.

HyVideo I2V Encode Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-HunyuanVideoWrapper
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 Playground, enabling artists to harness the latest AI tools to create incredible art.