ComfyUI > Nodes > HunyuanVideo-1.5 nodes > HunyuanVideo text encode

ComfyUI Node: HunyuanVideo text encode

Class Name

HyVideo15TextEncode

Category
HunyuanVideoWrapper1.5
Author
yuanyuan-spec (Account age: 32days)
Extension
HunyuanVideo-1.5 nodes
Latest Updated
2025-12-02
Github Stars
0.02K

How to Install HunyuanVideo-1.5 nodes

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

HunyuanVideo text encode Description

Encodes text into embeddings for video processing, bridging text prompts with video content.

HunyuanVideo text encode:

The HyVideo15TextEncode node is a component of the HunyuanVideo 1.5 suite, designed to facilitate the encoding of text inputs into a format suitable for video processing tasks. This node leverages advanced text encoding techniques to transform textual data into embeddings that can be used in conjunction with other video processing nodes. The primary goal of this node is to bridge the gap between textual prompts and video content, enabling seamless integration of text-based instructions into video generation workflows. By utilizing sophisticated encoding models, HyVideo15TextEncode ensures that the nuances and context of the input text are preserved and effectively translated into video-relevant data. This capability is particularly beneficial for AI artists looking to incorporate detailed textual descriptions into their video projects, allowing for more dynamic and contextually rich video outputs.

HunyuanVideo text encode Input Parameters:

text_encoder

The text_encoder parameter specifies the primary text encoding model to be used for processing the input text. This model is responsible for converting the text into a format that can be utilized by the video generation system. The choice of text encoder can significantly impact the quality and relevance of the resulting video content, as different models may interpret and encode text in varying ways. It is crucial to select a text encoder that aligns with the desired output style and content requirements.

text_encoder_2

The text_encoder_2 parameter allows for the specification of a secondary text encoding model. This can be used to provide additional context or to enhance the encoding process by combining outputs from two different models. Utilizing a secondary encoder can improve the richness and depth of the text embeddings, potentially leading to more nuanced video outputs. This parameter is optional and can be omitted if a single encoder suffices for the task at hand.

hyvid_cfg

The hyvid_cfg parameter is a configuration setting that influences how the text encoding process is conducted. It may include various options and settings that adjust the behavior of the encoding models, such as attention mechanisms or sampling strategies. Proper configuration of this parameter is essential for optimizing the encoding process to meet specific project needs and to ensure that the text is encoded in a manner that aligns with the intended video output.

enable_offloading

The enable_offloading parameter is a boolean setting that determines whether certain computational tasks are offloaded to external resources. By default, this is set to True, which can help manage computational load and improve performance, especially in resource-constrained environments. Offloading can be beneficial for handling large or complex text inputs, but it may also introduce latency depending on the external resources' availability and speed.

clip_skip

The clip_skip parameter is an integer that specifies the number of layers to be skipped in the CLIP model during the computation of prompt embeddings. The default value is 0, meaning no layers are skipped. Adjusting this parameter can affect the granularity and focus of the text embeddings, with higher values potentially leading to more abstract representations. This setting is useful for fine-tuning the balance between detail and abstraction in the encoded text.

HunyuanVideo text encode Output Parameters:

hyvid_embeds

The hyvid_embeds output parameter represents the encoded text embeddings generated by the node. These embeddings are a crucial component in the video generation process, as they encapsulate the semantic and contextual information of the input text in a format that can be interpreted by video processing systems. The quality and relevance of these embeddings directly influence the fidelity and expressiveness of the resulting video content, making them a vital output of the HyVideo15TextEncode node.

HunyuanVideo text encode Usage Tips:

  • Experiment with different text encoders to find the one that best captures the nuances of your input text and aligns with your video project's goals.
  • Utilize the clip_skip parameter to adjust the level of detail in your text embeddings, especially if you find that the default settings do not fully capture the desired context or style.
  • Consider enabling offloading if you are working with large text inputs or require additional computational resources to optimize performance.

HunyuanVideo text encode Common Errors and Solutions:

Unsupported tokenize_input_type: <type>

  • Explanation: This error occurs when an unsupported input type is provided for tokenization. The node expects either a string or a list as input.
  • Solution: Ensure that the input text is provided as a string or a list, and verify that the correct input type is being used.

ValueError: Invalid configuration in hyvid_cfg

  • Explanation: This error indicates that there is an issue with the configuration settings provided in the hyvid_cfg parameter.
  • Solution: Review the configuration settings to ensure they are valid and compatible with the text encoding models being used. Adjust any incorrect or unsupported options.

HunyuanVideo text encode Related Nodes

Go back to the extension to check out more related nodes.
HunyuanVideo-1.5 nodes
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.