ComfyUI > Nodes > ComfyUI-Stream-Pack > Feature Bank Attention Processor

ComfyUI Node: Feature Bank Attention Processor

Class Name

FeatureBankAttentionProcessor

Category
StreamPack/model_patches/unet
Author
livepeer (Account age: 3364days)
Extension
ComfyUI-Stream-Pack
Latest Updated
2025-09-25
Github Stars
0.02K

How to Install ComfyUI-Stream-Pack

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

Feature Bank Attention Processor Description

Enhances AI model attention using feature injection for consistent, detailed view synthesis.

Feature Bank Attention Processor:

The FeatureBankAttentionProcessor is a sophisticated node designed to enhance the attention mechanism in AI models by incorporating feature injection techniques. This node is particularly beneficial for tasks that require high-fidelity view synthesis, as it leverages a feature bank to store and utilize features across multiple frames. By doing so, it improves the model's ability to maintain consistency and detail over time. The processor is equipped with configurable parameters that allow you to fine-tune the strength of feature injection, the similarity threshold for feature matching, and the interval at which features are cached. This flexibility makes it a powerful tool for artists and developers looking to optimize their models for tasks involving complex attention dynamics.

Feature Bank Attention Processor Input Parameters:

model

This parameter represents the model to which the feature bank attention processor will be applied. It is a required input and serves as the foundation upon which the node operates.

use_feature_injection

This boolean parameter determines whether feature injection is enabled. When set to True, the node will inject features from the feature bank into the attention mechanism, enhancing the model's ability to maintain detail and consistency. The default value is True.

feature_injection_strength

This float parameter controls the strength of the feature injection, allowing you to adjust how much influence the injected features have on the attention mechanism. A higher value increases the impact of the injected features. The default value is 0.8, with a minimum of 0.0 and a maximum of 1.0.

feature_similarity_threshold

This float parameter sets the threshold for feature similarity, determining how closely features must match to be considered for injection. A higher threshold means only very similar features will be injected, which can help maintain consistency. The default value is 0.98, with a minimum of 0.0 and a maximum of 1.0.

feature_cache_interval

This integer parameter specifies the interval at which features are cached in the feature bank. A smaller interval means features are cached more frequently, which can improve the model's responsiveness to changes. The default value is 4, with a minimum of 1 and a maximum of 64.

feature_bank_max_frames

This integer parameter defines the maximum number of frames that can be stored in the feature bank. Increasing this value allows the node to consider a larger temporal context, which can be beneficial for tasks requiring long-term consistency. The default value is 4, with a minimum of 1 and a maximum of 16.

Feature Bank Attention Processor Output Parameters:

MODEL

The output of the FeatureBankAttentionProcessor is a modified model that incorporates the enhanced attention mechanism with feature injection. This output model is optimized for tasks requiring detailed and consistent attention across multiple frames, making it ideal for high-fidelity view synthesis and similar applications.

Feature Bank Attention Processor Usage Tips:

  • Experiment with the feature_injection_strength to find the right balance between maintaining detail and introducing new features. A higher strength can enhance detail but may also introduce noise if not carefully managed.
  • Adjust the feature_similarity_threshold based on the specific requirements of your task. A higher threshold ensures only highly similar features are injected, which can be crucial for maintaining consistency in applications like video synthesis.

Feature Bank Attention Processor Common Errors and Solutions:

"FeatureBank size exceeded"

  • Explanation: This error occurs when the number of frames stored in the feature bank exceeds the feature_bank_max_frames limit.
  • Solution: Increase the feature_bank_max_frames parameter to accommodate more frames, or reduce the frequency of feature caching by adjusting the feature_cache_interval.

"Invalid feature injection strength"

  • Explanation: This error indicates that the feature_injection_strength parameter is set outside its valid range.
  • Solution: Ensure that the feature_injection_strength is set between 0.0 and 1.0. Adjust the value to fall within this range.

"Feature similarity threshold out of bounds"

  • Explanation: This error suggests that the feature_similarity_threshold is not within the acceptable range.
  • Solution: Set the feature_similarity_threshold to a value between 0.0 and 1.0 to resolve this issue.

Feature Bank Attention Processor Related Nodes

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