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 > ComfyUI-qwen_img_2_1_enhancer > Qwen Image 2.1 Reference Strength

ComfyUI Node: Qwen Image 2.1 Reference Strength

Class Name

QwenImage21ReferenceStrength

Category
model/patch/qwen image
Author
capitan01R (Account age: 276days)
Extension
ComfyUI-qwen_img_2_1_enhancer
Latest Updated
2026-10-10
Github Stars
0.04K

How to Install ComfyUI-qwen_img_2_1_enhancer

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

Qwen Image 2.1 Reference Strength Description

Enhance editing by controlling reference image attention weight for AI artists in Qwen Image 2.1 model.

Qwen Image 2.1 Reference Strength:

QwenImage21ReferenceStrength is a node designed to enhance the editing capabilities of the Qwen Image 2.1 model by allowing you to control the attention weight of a selected reference image during the editing process. This node is particularly useful for AI artists who want to fine-tune the influence of reference images on the final output. By adjusting the attention weight, you can either amplify or diminish the impact of a reference image, providing greater flexibility and precision in image editing. The node ensures that changes to the attention scores are made while preserving normalized attention, image values, and native prefix caching, allowing for seamless integration into your workflow without disrupting the underlying model's functionality.

Qwen Image 2.1 Reference Strength Input Parameters:

model

This parameter represents the model to which the reference strength adjustments will be applied. It is crucial that the model is compatible with the Qwen Image 2.1 framework, as the node is specifically designed to work with this model version.

reference_index

The reference_index parameter specifies the order of the reference image in the encoder's input sequence, starting from 1. This index determines which reference image's attention weight will be adjusted. The minimum value is 1, and the maximum is 16, with a default value of 1. This allows you to target specific reference images for attention modification.

strength

The strength parameter controls the attention weight applied to the selected reference image. A value of 1 represents the native attention level, values above 1 increase the reference's influence, and values below 1 decrease it. Setting the strength to 0 blocks direct attention to the reference's latent tokens, although reference information already present in text remains unaffected. The minimum value is 0.0, the maximum is 8.0, and the default is 1.2. Adjusting this parameter allows for nuanced control over the reference image's impact on the final output.

Qwen Image 2.1 Reference Strength Output Parameters:

model

The output is a modified version of the input model, with the specified reference strength adjustments applied. This output model retains all the original functionalities of the Qwen Image 2.1 model while incorporating the customized attention weights, enabling you to achieve the desired artistic effects in your image editing tasks.

Qwen Image 2.1 Reference Strength Usage Tips:

  • To enhance the influence of a particular reference image, increase the strength parameter above 1. This will make the reference image more prominent in the final output.
  • If you want to minimize the impact of a reference image, reduce the strength parameter below 1. This can be useful when you want the reference to have a subtle effect or when focusing on other elements in the composition.

Qwen Image 2.1 Reference Strength Common Errors and Solutions:

"Reference Strength requires the native Qwen Image 2.1 model."

  • Explanation: This error occurs when the model provided is not compatible with the Qwen Image 2.1 framework.
  • Solution: Ensure that the model you are using is the Qwen Image 2.1 model. Check the model's compatibility before applying the node.

"Reference indices start at 1."

  • Explanation: This error indicates that the reference_index parameter is set to a value less than 1. - Solution: Adjust the reference_index to be 1 or higher, as reference indices are 1-based.

"Reference strength must be finite and nonnegative."

  • Explanation: This error is raised when the strength parameter is set to a negative or non-finite value.
  • Solution: Ensure that the strength parameter is a finite, nonnegative number. Adjust the value to be within the valid range specified.

Qwen Image 2.1 Reference Strength Related Nodes

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

Qwen Image 2.1 Reference Strength