Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Krea 2 Identity Edit > Krea2 Edit (grounded encode)

ComfyUI Node: Krea2 Edit (grounded encode)

Class Name

Krea2EditGroundedEncode

Category
krea2edit
Author
conradlocke (Account age: 120days)
Extension
Krea 2 Identity Edit
Latest Updated
2026-07-21
Github Stars
0.28K

How to Install Krea 2 Identity Edit

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

Krea2 Edit (grounded encode) Description

Enhances text-to-image generation with image-grounded instructions for detailed and accurate scene depiction.

Krea2 Edit (grounded encode):

Krea2EditGroundedEncode is a specialized node designed to enhance the Krea2 model's capabilities by incorporating image-grounded instructions into the text-to-image generation process. This node leverages the Qwen3-VL model, which combines vision and language understanding, to encode instructions alongside a source image. By doing so, it provides a more comprehensive understanding of the scene semantics, such as spatial relationships and object details, which are crucial for generating images that accurately reflect the given instructions. The node is particularly beneficial for tasks that require detailed scene descriptions, as it ensures that the generated images are not only visually coherent but also semantically aligned with the input instructions. This approach enhances the model's ability to generate images that are contextually rich and visually accurate, making it a valuable tool for AI artists seeking to create complex and detailed visual content.

Krea2 Edit (grounded encode) Input Parameters:

transformer_options

This parameter allows you to specify various options for the transformer model used in the encoding process. It can include settings that affect how the model processes the input data, such as attention mechanisms or layer configurations. The impact of this parameter is significant as it can alter the model's behavior and performance, potentially leading to more accurate or efficient encoding. There are no specific minimum, maximum, or default values provided, as the options can vary based on the model's capabilities and the user's requirements.

ref_boost

The ref_boost parameter is a multiplier that enhances the influence of the reference image during the encoding process. By adjusting this value, you can control the degree to which the reference image impacts the final output, allowing for more or less emphasis on the visual features of the source image. The default value is 1.0, indicating no additional boost, but it can be increased to amplify the reference image's effect.

ref_boost_a

Similar to ref_boost, the ref_boost_a parameter specifically targets the attention mechanism within the model, boosting the attention given to the reference image. This can be useful for scenarios where the visual details of the reference image are crucial for the task at hand. Like ref_boost, the default value is 1.0, with higher values increasing the attention boost.

ref_boost_mask

This parameter allows you to apply a mask to the reference image, selectively boosting certain areas while leaving others unchanged. This can be particularly useful for focusing on specific regions of the image that are more relevant to the task. The mask can be defined as needed, with no specific default value provided.

ref_native

The ref_native parameter determines whether the reference image should be processed in its native resolution or adjusted to fit the model's input requirements. Setting this to True ensures that the image is used in its original form, which can be beneficial for maintaining high fidelity in the encoding process. The default value is False, indicating that the image may be resized or otherwise adjusted.

pos_mode

This parameter specifies the positioning mode for the reference image within the encoding process. The default value is "anchor," which suggests a specific method of aligning the reference image with the text input. Other modes may be available depending on the model's capabilities, allowing for different alignment strategies.

Krea2 Edit (grounded encode) Output Parameters:

encoded_sequence

The encoded_sequence is the primary output of the Krea2EditGroundedEncode node, representing the combined encoding of the text instructions and the reference image. This sequence is crucial for subsequent processing steps, as it contains the integrated semantic and visual information needed to generate the final image. The encoded sequence ensures that the generated image accurately reflects both the textual and visual inputs, providing a coherent and contextually rich output.

Krea2 Edit (grounded encode) Usage Tips:

  • To achieve optimal results, ensure that the reference image is of high quality and relevant to the instructions provided. This will enhance the model's ability to generate accurate and detailed images.
  • Experiment with the ref_boost and ref_boost_a parameters to find the right balance between the influence of the reference image and the text instructions. This can help tailor the output to specific artistic goals.
  • Utilize the ref_boost_mask to focus on particular areas of the reference image that are most relevant to the task, allowing for more targeted and effective encoding.

Krea2 Edit (grounded encode) Common Errors and Solutions:

"Invalid transformer options"

  • Explanation: This error occurs when the transformer_options parameter contains invalid or unsupported settings.
  • Solution: Review the options provided and ensure they are compatible with the model's capabilities. Refer to the model's documentation for supported options.

"Reference image resolution mismatch"

  • Explanation: This error indicates that the reference image's resolution does not match the expected input size for the model.
  • Solution: Adjust the image resolution to fit the model's input requirements, or set ref_native to True if native resolution is desired.

"Mask application failed"

  • Explanation: This error occurs when the ref_boost_mask is improperly defined or incompatible with the reference image.
  • Solution: Verify that the mask is correctly formatted and matches the dimensions of the reference image. Adjust as necessary to ensure compatibility.

Krea2 Edit (grounded encode) Related Nodes

Go back to the extension to check out more related nodes.
Krea 2 Identity Edit
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.

Krea2 Edit (grounded encode)