ComfyUI > Nodes > ComfyUI > TextEncodeQwenImageEditPlus

ComfyUI Node: TextEncodeQwenImageEditPlus

Class Name

TextEncodeQwenImageEditPlus

Category
advanced/conditioning
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

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

TextEncodeQwenImageEditPlus Description

Specialized node for encoding textual data for image editing using Qwen model, facilitating seamless integration of textual instructions into image processing workflows.

TextEncodeQwenImageEditPlus:

TextEncodeQwenImageEditPlus is a specialized node designed to enhance the process of encoding textual data for image editing tasks using the Qwen model. This node leverages advanced tokenization and encoding techniques to transform textual prompts into a format that can be effectively utilized by image editing models. The primary goal of this node is to facilitate seamless integration of textual instructions into image processing workflows, enabling AI artists to achieve precise and nuanced edits based on textual descriptions. By utilizing the QwenImageTEModel, this node ensures that the encoded text is optimized for compatibility with image editing models, thereby enhancing the overall quality and accuracy of the edits. This node is particularly beneficial for users looking to incorporate complex textual prompts into their image editing projects, providing a robust and efficient solution for text-to-image translation tasks.

TextEncodeQwenImageEditPlus Input Parameters:

token_weight_pairs

The token_weight_pairs parameter is a crucial input that consists of pairs of tokens and their corresponding weights. These pairs are used to guide the encoding process, allowing for the adjustment of the influence each token has on the final encoded output. The weights can be adjusted to emphasize or de-emphasize certain aspects of the text, thereby affecting the resulting image edits. This parameter does not have predefined minimum or maximum values, as it is highly dependent on the specific requirements of the task at hand. Users can experiment with different token-weight configurations to achieve the desired emphasis in their image editing projects.

template_end

The template_end parameter is an optional input that specifies the endpoint of the template used during the encoding process. By default, this parameter is set to -1, indicating that the template end is determined automatically based on the token sequence. However, users can manually set this parameter to a specific index to control the portion of the token sequence that is considered during encoding. This can be particularly useful for refining prompts or ensuring that certain tokens are included or excluded from the encoding process. Adjusting the template_end can have a significant impact on the encoded output and, consequently, on the resulting image edits.

TextEncodeQwenImageEditPlus Output Parameters:

encoded_output

The encoded_output parameter represents the final encoded text that is ready to be used by image editing models. This output is a transformed version of the input text, optimized for compatibility with the Qwen model. The encoded output retains the semantic meaning of the original text while being formatted in a way that can be effectively processed by image editing algorithms. This ensures that the textual instructions are accurately translated into visual edits, allowing for precise and meaningful modifications to the image.

attention_mask

The attention_mask parameter is an auxiliary output that indicates which parts of the encoded text should be attended to during the image editing process. This mask helps the model focus on the relevant portions of the text, ensuring that the most important instructions are prioritized during editing. The attention mask is particularly useful in scenarios where certain tokens need to be emphasized or ignored, providing an additional layer of control over the editing process. If the attention mask is not needed, it may be omitted from the output to streamline processing.

TextEncodeQwenImageEditPlus Usage Tips:

  • Experiment with different token_weight_pairs configurations to find the optimal balance for your specific image editing task, as this can significantly influence the final output.
  • Utilize the template_end parameter to refine your prompts, especially when working with complex or lengthy textual instructions, to ensure that the most relevant parts are encoded.

TextEncodeQwenImageEditPlus Common Errors and Solutions:

InvalidTokenWeightPairs

  • Explanation: This error occurs when the token_weight_pairs input is not formatted correctly or contains invalid tokens.
  • Solution: Ensure that the token_weight_pairs are structured as pairs of valid tokens and weights, and verify that all tokens are recognized by the Qwen model.

TemplateEndOutOfRange

  • Explanation: This error is triggered when the template_end parameter is set to an index that exceeds the length of the token sequence.
  • Solution: Adjust the template_end value to a valid index within the range of the token sequence, or leave it at the default setting for automatic determination.

TextEncodeQwenImageEditPlus Related Nodes

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

TextEncodeQwenImageEditPlus