ComfyUI Node: Attn2 Prompt Injection

Authored by DataCTE

Created

Updated

89 stars

Category

advanced/model

Inputs

model MODEL
all CONDITIONING
input_4 CONDITIONING
input_5 CONDITIONING
input_7 CONDITIONING
input_8 CONDITIONING
middle_0 CONDITIONING
output_0 CONDITIONING
output_1 CONDITIONING
output_2 CONDITIONING
output_3 CONDITIONING
output_4 CONDITIONING
output_5 CONDITIONING
weight FLOAT
start_at FLOAT
end_at FLOAT

Outputs

MODEL

Extension: Prompt Injection Node for ComfyUI

This custom node for ComfyUI allows you to inject specific prompts at specific blocks of the Stable Diffusion UNet, providing fine-grained control over the generated image. It is based on the concept that the content/subject understanding of the model is primarily contained within the MID0 and MID1 blocks, as demonstrated in the B-Lora (Content Style implicit separation) paper. Features. Inject different prompts into specific UNet blocks Three different node variations for flexible workflow integration Customize the learning rate of specific blocks to focus on content, lighting, style, or other aspects Potential for developing a 'Mix of Experts' approach by swapping blocks on-the-fly based on prompt content

Authored by DataCTE

Run ComfyUI workflows in the Cloud!

No downloads or installs are required. Pay only for active GPU usage, not idle time. No complex setups and dependency issues

Learn more