Qwen Image 2.1 Block Cache (T8):
QwenImage21BlockCacheT8 is a specialized node designed to enhance image processing by leveraging a first-block target residual cache. This node is particularly useful for preserving the reference and text key-value (KV) cache of the Core model, which is crucial for maintaining consistency in image editing tasks. By utilizing this cache, the node allows for efficient editing of images, starting with a threshold of 0.03, which can be adjusted to higher values if changes in pose and details are desired. The node is marked as experimental, indicating that it is a cutting-edge feature that may offer significant benefits in terms of performance and flexibility in image manipulation tasks.
Qwen Image 2.1 Block Cache (T8) Input Parameters:
node_id
The node_id parameter uniquely identifies the node within the system. It is a string value that should be set to "QwenImage21BlockCacheT8" to ensure the correct node is being utilized. This parameter is crucial for the system to recognize and execute the appropriate node functions.
display_name
The display_name parameter provides a human-readable name for the node, which is "Qwen Image 2.1 Block Cache (T8)". This name is used in user interfaces to help users easily identify the node and understand its purpose.
category
The category parameter classifies the node within a broader group of related nodes. This helps in organizing nodes within the system and allows users to find and use nodes based on their specific needs or tasks.
description
The description parameter offers a detailed explanation of the node's functionality and purpose. It is a string that describes the node as a first-block target residual cache, emphasizing its role in preserving the Core's reference/text KV cache and its utility in image editing tasks.
is_experimental
The is_experimental parameter is a boolean value indicating whether the node is experimental. If set to True, it signifies that the node is a new feature that may still be under testing and development, offering advanced capabilities that are not yet fully established.
cache_device
The cache_device parameter specifies the device on which the cache will be stored, such as "cpu". This parameter is important for determining where the cache operations will be executed, impacting the performance and efficiency of the node.
metric_stride
The metric_stride parameter defines the stride length for metric calculations, with a default value of 8. This parameter affects how the node processes data and can influence the speed and accuracy of the image processing tasks.
max_cache_mb
The max_cache_mb parameter sets the maximum cache size in megabytes, with a default value of 1024 MB. This parameter is crucial for managing memory usage and ensuring that the node operates within the available system resources.
threshold_mode
The threshold_mode parameter determines the mode of thresholding used in the node, with options such as "two_stage". This parameter influences how the node decides when to apply certain processing steps, affecting the final output quality.
split_ratio
The split_ratio parameter specifies the ratio for splitting data during processing, with a default value of 0.35. This parameter can impact the balance between different processing stages and the overall performance of the node.
late_threshold
The late_threshold parameter sets a threshold value for late-stage processing, with a default value of 0.15. This parameter is important for fine-tuning the node's behavior in the later stages of image processing, potentially affecting the final output.
Qwen Image 2.1 Block Cache (T8) Output Parameters:
NodeOutput
The NodeOutput parameter represents the final output of the node after processing. It encapsulates the results of the image processing tasks, including any modifications made to the image based on the input parameters and cache operations. This output is crucial for users to obtain the desired edited images and assess the effectiveness of the node's processing capabilities.
Qwen Image 2.1 Block Cache (T8) Usage Tips:
- Start with a threshold value of 0.03 for initial image editing tasks to maintain consistency and gradually increase it if you wish to alter poses or details significantly.
- Ensure that the
cache_deviceis set appropriately based on your system's capabilities to optimize performance, especially if working with large images or complex tasks. - Utilize the
max_cache_mbparameter to manage memory usage effectively, particularly when dealing with high-resolution images or multiple processing tasks simultaneously.
Qwen Image 2.1 Block Cache (T8) Common Errors and Solutions:
"Spectrum history must exceed degree, and ridge must be positive"
- Explanation: This error occurs when the spectrum history is not greater than the degree, or if the ridge parameter is set to a non-positive value.
- Solution: Ensure that the spectrum history parameter is set to a value greater than the degree, and that the ridge parameter is positive to avoid this error.
"Cache device not supported"
- Explanation: This error indicates that the specified cache device is not supported by the system.
- Solution: Verify that the
cache_deviceparameter is set to a supported device, such as "cpu", and adjust it accordingly if necessary.
