Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance AI models by injecting prompts for precise control over outputs and artistic effects.
The PromptInjection
node is designed to enhance the capabilities of AI models by injecting specific prompts into the model's attention mechanism. This process allows for more precise control over the model's behavior and output, enabling you to fine-tune the model's responses to better align with your creative vision. By leveraging this node, you can manipulate the model's attention weights and conditioning, resulting in more targeted and refined outputs. This is particularly useful for AI artists who want to achieve specific artistic effects or ensure that the model adheres to particular stylistic guidelines.
This parameter specifies the AI model that will be used for prompt injection. It is a required parameter and ensures that the node knows which model to apply the prompt injection to.
This optional parameter allows you to select specific blocks within the model where the prompt injection will be applied. The available options are input:4
, input:5
, input:7
, input:8
, middle:0
, output:0
, output:1
, output:2
, output:3
, output:4
, and output:5
. By selecting a block, you can target specific layers of the model for more granular control.
This optional parameter allows you to provide additional conditioning to the model. Conditioning can be used to influence the model's behavior and output based on specific criteria or context.
This optional parameter controls the weight of the prompt injection. It has a default value of 1.0, with a minimum value of -2.0 and a maximum value of 5.0. The weight determines the strength of the prompt injection's influence on the model.
This optional parameter specifies the starting point of the prompt injection as a percentage of the model's processing timeline. It has a default value of 0.0, with a minimum value of 0.0 and a maximum value of 1.0. This allows you to control when the prompt injection begins to take effect.
This optional parameter specifies the ending point of the prompt injection as a percentage of the model's processing timeline. It has a default value of 1.0, with a minimum value of 0.0 and a maximum value of 1.0. This allows you to control when the prompt injection stops taking effect.
The output parameter is the modified AI model after the prompt injection has been applied. This model will have the specified prompts injected into its attention mechanism, resulting in altered behavior and output that aligns with the provided conditioning and parameters.
block
options to find the most effective layers for your specific artistic goals.weight
parameter to fine-tune the influence of the prompt injection. Higher weights will have a stronger impact, while lower weights will be more subtle.start_at
and end_at
parameters to control the timing of the prompt injection, allowing for dynamic changes in the model's behavior throughout the processing timeline.class_type
is missing from a node in the prompt.class_type
property correctly defined.{class_type}
does not exist.NODE_CLASS_MAPPINGS
.NODE_CLASS_MAPPINGS
.© Copyright 2024 RunComfy. All Rights Reserved.